Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UIMessage ¶
type UIMessage struct {
Type string `json:"type"`
Payload interface{} `json:"payload"`
}
type WebSocketHandler ¶
type WebSocketHandler struct {
// contains filtered or unexported fields
}
WebSocketHandler handles WebSocket connections.
func NewWebSocketHandler ¶
func NewWebSocketHandler(agent interfaces.LlmAgent, sess *sessions.Session) *WebSocketHandler
NewWebSocketHandler creates a new WebSocketHandler.
func (*WebSocketHandler) ServeWS ¶
func (h *WebSocketHandler) ServeWS(w http.ResponseWriter, r *http.Request)
ServeWS handles WebSocket requests from the peer.
Click to show internal directories.
Click to hide internal directories.