You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The proposal here is get rid of URL parameters. Use explicit server configuration since the pattern when someone want different types of protocol/encoding for same server should be really rare. And can be solved by introducing another HTTP handler using this proposal.
On client side we will now have an explicit option with protocol type where applicable (at this moment Javascript and Go clients).
This information will be negotiated with server using WebSocket subprotocol. So no URL param pollution.
For Centrifuge the user-payload encoding format is not important at all. So I think the encoding tip can be safely moved to Centrifugo (since v3 I suppose) and removed from Transport here.
The text was updated successfully, but these errors were encountered:
FZambia
changed the title
Avoid modifying protocol behaviour using URL params
Websocket: Avoid modifying protocol behaviour using URL params
May 3, 2021
At this moment client that want to use JSON protocol should connect to:
To indicate an intent to use Protobuf protocol URL should look like:
Also, to give server a tip about binary type of used data used inside frames:
A bit awkward and hard to explain/document.
The proposal here is get rid of URL parameters. Use explicit server configuration since the pattern when someone want different types of protocol/encoding for same server should be really rare. And can be solved by introducing another HTTP handler using this proposal.
On client side we will now have an explicit option with protocol type where applicable (at this moment Javascript and Go clients).
Ex.:
This information will be negotiated with server using WebSocket subprotocol. So no URL param pollution.
For Centrifuge the user-payload encoding format is not important at all. So I think the encoding tip can be safely moved to Centrifugo (since v3 I suppose) and removed from Transport here.
The text was updated successfully, but these errors were encountered: