ws

package
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

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

func SendLog

func SendLog(logMsg []byte)

SendLog send the log message to all the connected websocket clients

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL