Documentation ¶
Overview ¶
Package websocket implements the WebSocket connector.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
Message represents a WebSocket message container. Message types are defined in RFC 6455, section 11.8.
type Sink ¶
type Sink struct {
// contains filtered or unexported fields
}
Sink represents a WebSocket sink connector.
func NewSinkWithDialer ¶
NewSinkWithDialer returns a new Sink using the specified dialer.
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source represents a WebSocket source connector.
func NewSourceWithDialer ¶
func NewSourceWithDialer(ctx context.Context, url string, dialer *ws.Dialer, logger *slog.Logger) (*Source, error)
NewSourceWithDialer returns a new Source using the specified dialer.
Click to show internal directories.
Click to hide internal directories.