Versions in this module Expand all Collapse all v1 v1.0.7 Mar 8, 2023 Changes in this version + type WsClient struct + func NewWsClient(opt WsClientOpt) (*WsClient, error) + func (c *WsClient) Close() error + func (c *WsClient) Request(method string, req interface{}) (protoo.Message, error) + type WsClientOpt struct + Addr string + Path string + QueryFields map[string]string + type WsServer struct + func NewWsServer(opt WsServerOpt) (*WsServer, error) + func (w *WsServer) Start() + type WsServerOpt struct + Conn *websocket.Conn + PingInterval time.Duration + PongWait time.Duration + RequestHandler func(message protoo.Message) *protoo.Message