Documentation ¶
Overview ¶
Package ws implements websocket used with UI communications
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleWebsocketRequest ¶
func HandleWebsocketRequest(w http.ResponseWriter, r *http.Request)
HandleWebsocketRequest handles the websocket request coming from clients upgrade normal http request to websocket request and stores the connection
func InitWebsocketUpgrader ¶
func InitWebsocketUpgrader(hostBind string)
InitWebsocketUpgrader initializes the upgrader and configures the CheckOrigin function using the provided host
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.