Closed aeciorc closed 4 years ago
Setup socket server on the backend
Setup client connection (should connect if the user is authed)
We also want an object to keep track of which users are currently connected (will be used later on to send notifications )
io.on('connect', (socket)=>{ socket.headers.cookies[''] socket.disconnect() })
Setup socket server on the backend
Setup client connection (should connect if the user is authed)
We also want an object to keep track of which users are currently connected (will be used later on to send notifications )
io.on('connect', (socket)=>{ socket.headers.cookies[''] socket.disconnect() })