koding / websocketproxy

WebSocket reverse proxy handler for Go
http://godoc.org/github.com/koding/websocketproxy
MIT License
429 stars 120 forks source link

Add support for overwriting Connection's read and write functions #29

Open ariel-bentu opened 5 years ago

ariel-bentu commented 5 years ago

With this change, one can observe and modify the traffic on the websocket, and also get notified when websocket is closed. In addition, in fact one can initiate a close, by returning error from read or write.

jmatosp commented 5 years ago

I do need something similar but this implementation is a bit wierd, sorry