Repository navigation
websocket-client 0.1.0
·
103 commits
to main
since this release
[dependencies]
websocket-client = { git = "https://github.com/agentica-lang/packages", tag = "websocket-client-0.1.0", subdir = "websocket-client" }websocket-client is a WebSocket client (RFC 6455) for ws:// and wss:// over std TCP and TLS. Needs Agentica 0.30.0 or later.
WebSocket.connectdoes the upgrade handshake and theSec-WebSocket-Acceptcheck, with subprotocols and extra headers.send_text,send_binary,send_ping,send_pongandclose; every frame is masked.receivegives whole text and binary messages, answers a ping with a pong, and answers a close frame.- A message size limit, a read timeout, and protocol errors as
errorresults after the close frame. - Every timeout is from 1 ms to one day.
Full list: CHANGELOG.
Docs: https://agentica-lang.github.io/packages/websocket-client/