Documentation ¶ Index ¶ type WsClient func NewWsClient(ctx context.Context, address string) *WsClient func (ws *WsClient) Close() func (ws *WsClient) Connect() func (ws *WsClient) GetConnId() string func (ws *WsClient) Send(message string) func (ws *WsClient) WriteToServer() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type WsClient ¶ type WsClient struct { // contains filtered or unexported fields } func NewWsClient ¶ func NewWsClient(ctx context.Context, address string) *WsClient func (*WsClient) Close ¶ func (ws *WsClient) Close() func (*WsClient) Connect ¶ func (ws *WsClient) Connect() func (*WsClient) GetConnId ¶ func (ws *WsClient) GetConnId() string func (*WsClient) Send ¶ func (ws *WsClient) Send(message string) func (*WsClient) WriteToServer ¶ added in v1.0.0 func (ws *WsClient) WriteToServer() Source Files ¶ View all Source files client.go Click to show internal directories. Click to hide internal directories.