mirror of
https://github.com/thib8956/tic-tac-toe-ws.git
synced 2024-11-17 09:26:33 +00:00
8 lines
137 B
TypeScript
8 lines
137 B
TypeScript
|
const ws = new WebSocket("ws://localhost:1234");
|
||
|
|
||
|
ws.onopen = (e) => {
|
||
|
console.log("connected to server");
|
||
|
ws.send("hello");
|
||
|
};
|
||
|
|