MCPcopy Index your code
hub / github.com/github/copilot-sdk / WebSocketResponseWriter

Interface WebSocketResponseWriter

go/copilot_request_handler.go:120–125  ·  view source on GitHub ↗

WebSocketResponseWriter forwards upstream→runtime WebSocket messages back into the runtime response. A [CopilotWebSocketHandler] receives one in [CopilotWebSocketHandler.Open].

Source from the content-addressed store, hash-verified

118// into the runtime response. A [CopilotWebSocketHandler] receives one in
119// [CopilotWebSocketHandler.Open].
120type WebSocketResponseWriter interface {
121 // SendText forwards an upstream text message to the runtime.
122 SendText(data []byte) error
123 // SendBinary forwards an upstream binary message to the runtime.
124 SendBinary(data []byte) error
125}
126
127// CopilotWebSocketHandler is a per-connection WebSocket handler returned by
128// [CopilotRequestHandler.OpenWebSocket]. The default implementation is

Callers 2

receiveLoopMethod · 0.65
receiveLoopMethod · 0.65

Implementers 1

wsResponseWritergo/copilot_request_handler.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…