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
Hello all, the request interceptor print the log and shows that scarlet use http instead of ws to send request, and the server side return code 101, "switching protocols", how to fix? thanks.
The text was updated successfully, but these errors were encountered:
101 status means that handshake succeeded and protocol was switched to websocket, and two-way communication is ready.
It just means everything is fine.
All connections will start with http(s) and then upgrade to ws(s). This is the specification as @solidogen has linked. What you are seeing is completely expected as far as the upgrade path.
Regarding the disconnects, if you are seeing constant disconnects that may need to be investigated, however common issues can include improper control frame timing expectations on the webserver and client. Whereas in order to maintain a live connection a series of messages have to be sent between the client and server (not necessarily within your application). https://datatracker.ietf.org/doc/html/rfc6455#section-5.5 specifically how control messages Ping and Pong relate.
Hello all, the request interceptor print the log and shows that scarlet use http instead of ws to send request, and the server side return code 101, "switching protocols", how to fix? thanks.
The text was updated successfully, but these errors were encountered: