gocraft / web

Go Router + Middleware. Your Contexts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement Hijacker() in web.ResponseWriter for websockets

phea opened this issue · comments

Unfortunately you can't use Gocraft's Handler for websockets as it does not implement the required Hijacker interface. Passing web.ResponseWriter will fail at this line:

https://github.com/gorilla/websocket/blob/master/server.go#L134

@phea Send a PR if you'd like this support.

@phea I implemented this.