Skip to content

websocket-client 0.2.0

Latest

Choose a tag to compare

@sonic182 sonic182 released this 12 Nov 11:11
· 99 commits to main since this release
af80325
[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.handshake is like connect, but a server that does not upgrade (a 403, a 426) gives Refused(status, headers, body) instead of an error.
  • Client gained status and headers, with defaults: the answer of the 101 handshake.
  • connect still stops at the head of a refusing answer; only handshake reads 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/