1
0
mirror of https://github.com/thib8956/tic-tac-toe-ws.git synced 2024-11-17 01:16:33 +00:00
tic-tac-toe-ws/client.mts
2024-09-02 22:35:04 +02:00

8 lines
137 B
TypeScript

const ws = new WebSocket("ws://localhost:1234");
ws.onopen = (e) => {
console.log("connected to server");
ws.send("hello");
};