Available

amalgame-net-websocket

RFC 6455 client + server, text + binary frames.

amc package add net-websocket GitHub ↗ ← Back to the ecosystem

Overview

RFC 6455 WebSocket implementation. SHA-1+Base64 handshake in pure Amalgame (via amalgame-crypto), text and binary framing, ping/pong, fragmentation. Server side integrated in Mosaic through amalgame-net-http.

Features

  • RFC 6455 client and server
  • Text and binary frames
  • TLS via amalgame-tls (wss://)
  • Ping/pong heartbeat, idle disconnect
  • Per-message-deflate extension

Example

Minimal usage example — copy-paste runnable after install.

amc package add net-websocket

let ws = WsClient.Connect("wss://echo.example.com/ws")
ws.SendText("hello")
let reply = ws.RecvText()

At a glance

Related packages