websocket

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReportClosing

func ReportClosing(connection *websocket.Conn)

ReportClosing sends close to client then closes connection

func UpgradeToWebsocket

func UpgradeToWebsocket(request *restful.Request, response *restful.Response) (*websocket.Conn, error)

UpgradeToWebsocket attempts to upgrade connection from HTTP(S) to WS(S)

func WriteOnlyWebsocket

func WriteOnlyWebsocket(connection *websocket.Conn, b *broadcaster.Broadcaster)

WriteOnlyWebsocket discards text messages from the peer connection

Types

This section is empty.

Jump to

Keyboard shortcuts

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