react-use-websocket
react-use-websocket copied to clipboard
Sending password one time
Hello, I have visted this library before but it didnt work for my implementation but now i have another use case that i think would work great.
We have a socket that expects a combo of user/pasword in ajson on socket open ( the json is being sent form the client upon socket open) how can i mimick this behavout using the libarray. obviouslly we are looking at ashare socket across the app, i feel like repeating the function every time to send the code is unnecessary, any idea how to do that ?