node-stratum icon indicating copy to clipboard operation
node-stratum copied to clipboard

Support WebSockets

Open LorbusChris opened this issue 7 years ago • 1 comments

Hello, this is just an idea, as HTTP and TCP are both already supported in this project. Afaik a WebSocket connection starts out as HTTP, a handshake occurs and the protocol is changed to TCP. One could probably use a library such as ws for that.

LorbusChris avatar Feb 02 '18 23:02 LorbusChris

yeah, it could. in the refactor I'm doing, I'm trying to decouple most of hard coded functionality so it could actually facilitate using other protocols, like HTTP, RPC2 itself, gRPC, etc, because right now, doing a stratum proxy isn't very straightforward and needs a lot of jumping through hoops to get there

pocesar avatar Feb 03 '18 15:02 pocesar