initial commit

This commit is contained in:
2026-07-01 22:38:29 -06:00
commit 9302ad8dce
1662 changed files with 140758 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
const proto = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
const socket = new WebSocket(`${proto}//${window.location.host}/ws`);
socket.onopen = () => {
console.log('Connected to server...');
socket.send('world');
};
socket.onmessage = (e) => {
console.log('Received message from server: ', e.data);
};