Documentation
¶
Index ¶
- func GenerateID() string
- func GetClient(id string) *websocket.Conn
- func PortsToRangeString(ports []string) string
- func Register(req *http.Request, socket *websocket.Conn) string
- func WaitForClient(id string, timeout time.Duration) (*websocket.Conn, error)
- func WebsocketHandler(w http.ResponseWriter, req *http.Request)
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateID ¶
func GenerateID() string
func PortsToRangeString ¶
func WaitForClient ¶
Wait for client with id to connect
func WebsocketHandler ¶
func WebsocketHandler(w http.ResponseWriter, req *http.Request)
HTTP handler for WebSocket server
Types ¶
Click to show internal directories.
Click to hide internal directories.