-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for websockets #4046
Comments
If this would result in fewer/no |
I don't think this will. The primary reason for |
merged into #5262 |
Dark users should be able to trivially make use of websockets. This is about how to provide that.
One option is for us to use something like Pusher.com. However, that would require our users to use the pusher client library, which would lock us in to that.
Asp.net has built-in websockets so we could do this ourselves.
How should it work:
WEBSOCKET
handler, similar to a HTTP handler. It would receive websockets requests and potentially reply to them. This would not fundamentally be different to HTTP requests, just over websockets.TODO: what does the product equivalent of "channels" look like. Devs want to be able to send data to their users, and so we need a thing for users to subscribe to so that they can receive arbitrary pushes that can be authenticated.
Technology wise, pushes will be able to come from anywhere, not just the machine that the user is connected to. So pushes should be delivered via pubsub, and when the user is connected to a WS server, the server subscribes the appropriate pubsub channel for that canvas(?) so that we can send them the pushes if it is appropriate for the user to receive them.
One complication is that users may switch servers due to a redeploy, and need to miss anything or run the same event twice:
The text was updated successfully, but these errors were encountered: