Text decodes the frame payload as a UTF-8 string.
()
| 89 | |
| 90 | // Text decodes the frame payload as a UTF-8 string. |
| 91 | func (m CopilotWebSocketMessage) Text() string { return string(m.Data) } |
| 92 | |
| 93 | // NewTextMessage creates a text-frame message from a UTF-8 string. Binary |
| 94 | // frames are constructed directly with CopilotWebSocketMessage{Data: ..., Binary: true}. |
no outgoing calls