robbie-cahill / tunnelmole-service

Give local web servers a public URL
GNU Affero General Public License v3.0
239 stars 38 forks source link

WebSocket support #5

Open thgh opened 1 year ago

thgh commented 1 year ago

How would you approach adding WebSocket tunnel support?

robbie-cahill commented 6 months ago

Thats an interesting question. Tunnelmole kind of already works over websocket, the client makes a two-way websocket connection and thats how traffic gets routed from a server on the internet to something you have running locally. But it does not yet support websocket from the service to the client, which would essentially be websocket over websocket.

I use this library but purely as a library. I don't know the finer details of the websocket protocol, so i'd have to do some research on it to implement it myself. I would probably do it at some point but have been busy with other parts of the project.