const client = new Client({ authCallback, echoMessages: true });
await client.subscribe("test", (data) => console.log(data));
await client.publish("test", "my-event", { message: "Hello!" });
await client.unsubscribe("test");
await client.close();
const authCallback = async () => { /* auth logic */ };
client.publish("channel", "event", { data: "payload" });

GSM

Geo's Supercool Messaging

gsm@georgehm.com