WebSocketResponseWriter forwards upstream→runtime WebSocket messages back into the runtime response. A [CopilotWebSocketHandler] receives one in [CopilotWebSocketHandler.Open].
| 118 | // into the runtime response. A [CopilotWebSocketHandler] receives one in |
| 119 | // [CopilotWebSocketHandler.Open]. |
| 120 | type 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 |
no outgoing calls
no test coverage detected
searching dependent graphs…