Comments (4)
I had another go at this today and again failed to get it working - too much type-tetris. I really hope someone can take a look at this pre-1.0
.
from examples.
Hey, I have figure out a working example and have made a PR. Feel free to try it.
from examples.
As I mentioned when this was brought up in the main repo, I have tried to fix this, and I think doing so uncovers some weaknesses in the API. In particular:
-
It is unclear when one is supposed to use a
Frame
vs aMessage
. It looks likeFrame
is for receiving messages andMessage
is for sending them, which makes sense except that the websocket actorStreamHandler
accepts aMessage
, not aFrame
-
Unclear when/whether a
WebsocketContext
actor is useful. It seems thatWebsocketContext
is supposed to be used by servers, not clients, but since a websocket is full-duplex this does not seem like a useful distinction
from examples.
fix is merged
from examples.
Related Issues (20)
- Streaming responses (from an AsyncWrite) HOT 3
- Read request body Middleware panics when json Body is sent HOT 8
- About protobuf HOT 1
- actix_cors is always returing 404 on OPTIONS requests
- identity logout does not have effect
- The basic/todo app breaks with 405 (method not allowed) after create/update action applied on an item
- Please add rate-limit example HOT 2
- auth/simple-auth-server panics when default `SECRET_KEY` is used to instantiate a `actix_web::cookie::Key` instance
- Executing send_message from Actix Websocket Chat example HOT 1
- example for Mysql client library (MySql database driver) HOT 1
- No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. HOT 1
- Please add caching example HOT 4
- Expand postgres example to include querying/fetching all HOT 3
- webauthn passkey example
- Server-sent-events example not working correctly
- Having examples use actix_web_lab is confusing HOT 2
- please update rustls example to 0.22.0 HOT 2
- Improve Test Documentation
- Tagging clients in SSE
- protobuf example is not good enough!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from examples.