Repository navigation
·
99 commits
to main
since this release
[dependencies]
websocket-client = { git = "https://github.com/agentica-lang/packages", tag = "websocket-client-0.2.0", subdir = "websocket-client" }websocket-client 0.2.0 adds WebSocket.handshake, so a program can read why a server refused the upgrade.
WebSocket.handshakeis likeconnect, but a server that does not upgrade (a 403, a 426) givesRefused(status, headers, body)instead of anerror.Clientgainedstatusandheaders, with defaults: the answer of the 101 handshake.connectstill stops at the head of a refusing answer; onlyhandshakereads its body (at most 64 KiB).
Needs Agentica 0.30.0 or later.
Full list: CHANGELOG.
Docs: https://agentica-lang.github.io/packages/websocket-client/