Spitgranger / SyncMaster

Capstone project
MIT License
2 stars 0 forks source link

Task - Create Socket Context for Client #270

Closed Spitgranger closed 1 week ago

Spitgranger commented 2 weeks ago

Description For the client to access the socket, it needs to have the same instance of the socket connection. Create an connection to (http://localhost:5001) using socket.io-client and create context around it so that it can be accessed in multiple components throughout the application. useContext and createContext may not even be needed, a simple export default module could work

e.g.

const socket = io("http://localhost:5001");

Definition of Done