Versions in this module Expand all Collapse all v1 v1.0.1 Apr 15, 2024 Changes in this version + type WsClient struct + Errors chan error + Stream chan *WsEvent + func NewWsClient(options ...WsOption) (*WsClient, error) + func (c *WsClient) Close() + func (c *WsClient) IsReconnectRequest(event *WsEvent) bool + func (c *WsClient) Subscribe(channels ...string) + func (c *WsClient) Unsubscribe(channels ...string) + type WsEvent struct + Channel string + Data interface{} + Event string + type WsOption func(*wsClientConfig) + func Timeout(timeout time.Duration) WsOption + func WsUrl(domain string) WsOption