6 lines
196 B
JavaScript
6 lines
196 B
JavaScript
|
const webSocket = new WebSocket('ws://localhost:{{PORT}}/');
|
||
|
webSocket.onmessage = (event) => {
|
||
|
const data = JSON.parse(event.data);
|
||
|
console.log(data);
|
||
|
};
|
||
|
//# sourceMappingURL=index.js.map
|