Add Socket.IO client

This commit is contained in:
aronmal 2022-10-26 00:15:33 +02:00
parent 224f674ae1
commit dbc372a0a0
Signed by: aronmal
GPG key ID: 816B7707426FC612
4 changed files with 151 additions and 2 deletions

View file

@ -0,0 +1,11 @@
import { io } from 'socket.io-client';
function SocketIO() {
// const socket = io("wss://server-domain.com");
const socket = io(); // The server URL will be deduced from the window.location object.
return (
<div>SocketIO</div>
)
}
export default SocketIO