Documentation
¶
Index ¶
Constants ¶
View Source
const ( // SchemeWS represents WebSocket URI scheme SchemeWS reader.Scheme = "ws" // SchemeWSS represents WebSocket Secure URI scheme SchemeWSS reader.Scheme = "wss" // DefaultTimeout for WebSocket connection DefaultTimeout = 30 * time.Second // DefaultRetryAttempts for failed connections DefaultRetryAttempts = 3 // DefaultRetryDelay between retry attempts DefaultRetryDelay = 1 * time.Second // DefaultPingInterval for WebSocket ping DefaultPingInterval = 30 * time.Second // DefaultPongWait for WebSocket pong response DefaultPongWait = 60 * time.Second // DefaultWriteWait for WebSocket write operations DefaultWriteWait = 10 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WSConfig ¶
type WSConfig struct {
Timeout time.Duration
RetryAttempts int
RetryDelay time.Duration
PingInterval time.Duration
PongWait time.Duration
WriteWait time.Duration
Headers map[string]string
TLSConfig *tls.Config
}
WSConfig holds WebSocket client configuration
type WSReader ¶
type WSReader struct {
// contains filtered or unexported fields
}
WSReader implements ConfReader for WebSocket-based configuration
func NewWSReader ¶
NewWSReader creates a new WebSocket reader
Click to show internal directories.
Click to hide internal directories.