ws.io-bun-client
v0.1.4
Published
High-performance WebSocket client for WS.io
Maintainers
Readme
ws.io-bun-client
High-performance WebSocket client for WS.io. Documentation: https://sarathkumar1207.github.io/ws.io/
Features
- Auto-Reconnect: Exponential backoff with jitter.
- Binary-First: Efficient communication.
- ACKs: Support for message acknowledgments.
- Encryption: Secure communication support.
Installation
bun add ws.io-bun-clientUsage
import { Client } from "ws.io-bun-client";
const socket = new Client({ url: "ws://localhost:3000/ws.io" });
socket.on("connect", () => {
socket.emit("hello", "world", (ack) => {
console.log("Got ACK:", ack);
});
});