mirror of
https://github.com/wisplite/tether.git
synced 2026-05-01 14:22:41 -05:00
8 lines
215 B
TypeScript
8 lines
215 B
TypeScript
import { TetherClient } from "tether-ts";
|
|
|
|
const client = new TetherClient();
|
|
client.connect("ws://localhost:8080/tether");
|
|
|
|
client.subscribe("messages", (message) => {
|
|
console.log("Received message", message);
|
|
}); |