Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HttpHandler = http.HttpHandler
View Source
var HttpWebsocketHandler = func(srv *server.Server, origins []string) gohttp.Handler { cwss := WebsocketHandler(srv, origins) chttp := HttpHandler(srv) return gohttp.HandlerFunc(func(w gohttp.ResponseWriter, r *gohttp.Request) { if r.Header.Get("upgrade") != "" { cwss.ServeHTTP(w, r) return } chttp.ServeHTTP(w, r) }) }
View Source
var NewInProc = inproc.NewCodec
View Source
var WebsocketHandler = websocket.WebsocketHandler
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.