View definition

const OptionWebSocketHandler

Defined in github.com/go-mangos/mangos/transport/ws/ws.go

Description

OptionWebSocketHandler is used to obtain the underlying http.Handler (websocket.Server) object, so you can use this on your own http.Server instances. It is a gross error to use the value returned by this method on an http server if the server is also started with mangos Listen(). This means that you will use at most either this option, or OptionWebSocketMux, but never both. This option is only valid on a listener.

OptionWebSocketHandler is referenced in 1 repository

github.com/go-mangos/mangos