Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WSWrapper ¶
type WSWrapper struct { DisableTLSVerification bool Endpoint string Headers http.Header MaximumDropoutTime time.Duration // contains filtered or unexported fields }
The WSWrapper adds a buffer layer to the underlying websocket connection It gracefully handles connection dropouts/reconnects in a manner that is transparent to the handler
func (*WSWrapper) WriteJSONUnbuffered ¶
For heartbeats, as there's no reason to buffer them
Click to show internal directories.
Click to hide internal directories.