Websocket support #16
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: extollo/lib#16
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Introduce a websocket server to
HTTPServer
.Design to hammer out:
When a socket connects to an entrypoint, create a new event bus for that connection.
Once the bus is created, optionally call some connect callback that takes the socket and bus as parameters.
Pushing an event to the socket's bus serializes the event and emits it as JSON over the socket.
Subscribing to the bus works normally.
When a message is received over the socket, it is parsed, validated, deserialized, then emitted on the bus normally.
For a client library, we need a minimal subtree of the event bus, socket implementation, and (de)serializer.