mirror of
https://github.com/wisplite/tether.git
synced 2026-05-01 06:22:41 -05:00
update logging and add testing to make sure client IDs are stable
This commit is contained in:
@@ -9,6 +9,12 @@ function test() {
|
||||
type: "subscribe",
|
||||
channel: "messages",
|
||||
}));
|
||||
setTimeout(() => {
|
||||
ws.send(JSON.stringify({
|
||||
type: "unsubscribe",
|
||||
channel: "messages",
|
||||
}));
|
||||
}, 5000);
|
||||
};
|
||||
ws.onclose = () => {
|
||||
console.log("Disconnected from server");
|
||||
|
||||
Reference in New Issue
Block a user