alewin/useWorker

useWorker for Sockets

umernawaz0301 opened this issue · 2 comments

Can I use useWorker for web sockets? does this library support web sockets?

zant commented

Hi! @umernawaz0301 I would think so, as WebSockets in the client are mostly callback based, I will be surprised if there's an issue with that. Do you have any specific use case in mind?

@umernawaz0301 If your want to reduce the server load, the best option is to use SharedWorkers

https://dev.to/ayushgp/scaling-websocket-connections-using-shared-workers-14mj