Open TommasoAmici opened 3 years ago
Hello @TommasoAmici sorry for the delay,
You need to cast ResponseWriter to *muxie.Writer
and then get its standard writer, example code:
mux.HandleFunc("/ws", func(w http.ResponseWriter, r *http.Request) {
serveWs(hub, w.(*muxie.Writer).ResponseWriter, r)
})
Example: https://github.com/kataras/muxie/tree/master/_examples/14_websocket
Hi, I'm trying to use this library with WebSockets using https://github.com/gorilla/websocket, but I get this error when the server attempts to upgrade the connection.
If I revert to the standard library with
everything works fine