Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WS ¶
WS is the struct resprenting a websocket server handler
func (*WS) HandleServerError ¶
HandleServerError handles WS server errors by logging them and sending a response back of the error itself
func (*WS) HandleUpgrades ¶
func (ws *WS) HandleUpgrades(res http.ResponseWriter, req *http.Request)
HandleUpgrades handles a HTTP upgrade to a websocket
func (*WS) HandleWSError ¶
HandleWSError handles errors once the connection has been upgraded
Click to show internal directories.
Click to hide internal directories.