Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrRpcConn string = "gRpcConnectionLost:" ErrWebsocketUpgrade string = "WebSocketUpgradeError:" ErrUnexpectedClose string = "UnexpectedCloseError:" ErrUndefinedReadMessage string = "UndefinedReadMessageError:" ErrWriteMessage string = "Write Message Error:" ErrUnexpectedType string = "UnexpectedTypeError:" ErrJsonUnmarshal string = "JsonUnmarshalError" ErrCreateRpcStream string = "Failed to Create Rpc Stream" STATUS_ERROR string = "status_error" STATUS_OK string = "status_ok" InvalidVersion string = "invalid version, closing websocket" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebSocketServer ¶
type WebSocketServer struct { Upgrader websocket.Upgrader // contains filtered or unexported fields }
func NewSocketServer ¶
func NewSocketServer() *WebSocketServer
Click to show internal directories.
Click to hide internal directories.