-
Notifications
You must be signed in to change notification settings - Fork 24
Description
Would it make sense for there to be a WebSocket Binding document?
The WebSocket protocol is a bit unusual in that whilst it has its own URI scheme and defines things like an opening handshake and data framing, it relies on the definition of sub-protocols for any useful communication.
The current draft of the Bindings Registry document says that in a binding document "There MUST be at least one operation mapped to a protocol message/vocabulary term."
Because WebSockets lack any semantics of their own it is difficult to imagine what vocabulary terms would be useful. As far as I can tell the only useful metadata you can provide for a WebSocket endpoint in Form in a TD is the subprotocol member, which is already a first class member of a Forms. It therefore seems impossible to satisfy this requirement without defining a sub-protocol to provide the mappings.