Documentation
¶
Overview ¶
Package ws provides a WebSocket implementation of the MCP transport.
This package implements the Transport interface using WebSockets, suitable for web applications requiring bidirectional communication.
Index ¶
Constants ¶
View Source
const DefaultShutdownTimeout = 10 * time.Second
DefaultShutdownTimeout is the default timeout for graceful shutdown
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transport ¶
type Transport struct {
transport.BaseTransport
// contains filtered or unexported fields
}
Transport implements the transport.Transport interface for WebSocket
func NewTransport ¶
NewTransport creates a new WebSocket transport
func (*Transport) Initialize ¶
Initialize initializes the transport
Click to show internal directories.
Click to hide internal directories.