mirror of
https://github.com/MercuryWorkshop/adrift.git
synced 2025-05-12 22:00:02 -04:00
forward ws protocols
This commit is contained in:
parent
eae44fef4b
commit
ccf556118b
7 changed files with 13 additions and 10 deletions
|
@ -187,7 +187,7 @@
|
|||
const url = "ws://127.0.0.1:3002/";
|
||||
const ws = ((window as any).ws = (
|
||||
(window as any).bare as BareClient
|
||||
).createWebSocket(url, [], {}));
|
||||
).createWebSocket(url, ["a", "b"], {}));
|
||||
ws.onopen = () => console.log("onopen");
|
||||
ws.addEventListener("open", () => console.log("open listener"));
|
||||
ws.onclose = () => console.error(new Error("onclose"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue