Versions in this module Expand all Collapse all v1 v1.2.1 Oct 9, 2019 Changes in this version + type Client interface + Close func() error + Dial func(ctx context.Context, url string) error + Emit func(ctx context.Context, event string, body []byte) error + On func(event string, f func(data []byte)) Client + OnConnect func(f func()) Client + OnDefault func(f func(event string, data []byte)) Client + OnDisconnect func(f func(error)) Client + OnError func(f func(error)) Client + Unsubscribe func(event string) Client + func NewClient(config Config) Client + type Config struct + ConnectionReadLimit int64 + HttpClient *http.Client + HttpHeaders http.Header Incompatible versions in this module v2.0.2+incompatible Dec 24, 2019 v2.0.1+incompatible Dec 24, 2019 v2.0.0+incompatible Oct 29, 2019