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
I am having issues connecting to some websocket servers using the websocket client.
After investigation it turned out to be a handshake issue where the server-side expected a 16-byte base64 encoded key, but the current client implementation creates a nonce of 24 bytes.
The request MUST include a header field with the name
|Sec-WebSocket-Key|. The value of this header field MUST be a
nonce consisting of a randomly selected 16-byte value that has
been base64-encoded (see Section 4 of [RFC4648]). The nonce
MUST be selected randomly for each connection.
The text was updated successfully, but these errors were encountered:
I am having issues connecting to some websocket servers using the websocket client.
After investigation it turned out to be a handshake issue where the server-side expected a 16-byte base64 encoded key, but the current client implementation creates a nonce of 24 bytes.
ktor/ktor-client/ktor-client-features/ktor-client-websocket/jvm/src/io/ktor/client/features/websocket/WebSocketContent.kt
Line 10 in 69732c0
According to RFC 6455 (https://tools.ietf.org/html/rfc6455#section-4.1):
The text was updated successfully, but these errors were encountered: