Skip to content

Commit cea3220

Browse files
authored
Merge pull request #273 from sshanks-kx/kxnodeflate
update for sec-websocket-protocol with kxnodeflate
2 parents 1a43264 + 73d93fa commit cea3220

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/kb/websockets.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,12 @@ Here we can see the uncompressed data was quicker to add to the queue, and consu
162162

163163
In Chrome you can also observe the network handshake in _View>Developer>Developer tools_; a successful negotiation will have `“Sec-WebSocket-Extensions:permessage-deflate”` in the HTTP response header.
164164

165+
Since 4.1 2024.03.12, 4.0 2024.03.04 websocket compression is disabled if kdb+ receives the `sec-websocket-protocol` http header with value `kxnodeflate`, for example client javascript:
166+
167+
```js
168+
ws=new WebSocket(url),"kxnodeflate");
169+
```
170+
165171

166172
## Simple WebSocket client example
167173

0 commit comments

Comments
 (0)