-
Notifications
You must be signed in to change notification settings - Fork 5
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
push support #64
Comments
Both use the same protocol. It's probably a good idea to use a WS subprotocol from the start, eg. The protocol needs to support (semantically, not as-is on-wire-format, that wouldn't work):
|
For now we'll forego sending the contents in-line. Protocol is JSON:
One JSON object per WebSocket message. Messages are sent via text frames. WebSocket subprotocol name will be This permits us to change the protocol in the future, including backwards incompatible changes and changes of the framing protocol, since WS subprotocol negotiation takes place before any data is exchanged between parties. The server will ignore messages sent from the client to the server via the |
Here's a sample JSON: {
"operation": "POST",
"etag": "1476865590312410415",
"prefix": "123451234",
"path": "123451234/testfile"
} {
"operation": "DELETE",
"prefix": "123451234",
"path": "123451234/testfile"
} Implementation notes:
|
Clients poll. A lot. Tornado can do WS oob. Already requires Redis (as a sync backend).
The text was updated successfully, but these errors were encountered: