Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultServeWebSocketSessionOptions ¶
func DefaultServeWebSocketSessionOptions(w http.ResponseWriter, r *http.Request) contract.ServeWebSocketSessionOptions
Types ¶
type Client ¶
type Client interface {
contract.WebSocketSessionOperator
}
func NewClient ¶
func NewClient(d Dependencies) (Client, error)
type DefaultTool ¶
func NewTool ¶
func NewTool(c Client, opts contract.ToolOptions[Client]) *DefaultTool
func (*DefaultTool) ServeWebSocketSession ¶
func (d *DefaultTool) ServeWebSocketSession(ctx context.Context, opts contract.ServeWebSocketSessionOptions) (*contract.WebSocketSession, error)
ServeWebSocketSession serves a websocket session and returns its handle.
type Dependencies ¶
type Dependencies struct {
C contract.WebSocketOperator
}
Click to show internal directories.
Click to hide internal directories.