Add Socket.IO client
This commit is contained in:
parent
224f674ae1
commit
dbc372a0a0
4 changed files with 151 additions and 2 deletions
11
frontend/src/components/SocketIO.tsx
Normal file
11
frontend/src/components/SocketIO.tsx
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue