MCPcopy Index your code
hub / github.com/coder/websocket / SendText

Method SendText

internal/wsjs/wsjs_js.go:144–148  ·  view source on GitHub ↗

SendText sends the given string as a text message on the WebSocket.

(v string)

Source from the content-addressed store, hash-verified

142// SendText sends the given string as a text message
143// on the WebSocket.
144func (c WebSocket) SendText(v string) (err error) {
145 defer handleJSError(&err, nil)
146 c.v.Call("send", v)
147 return err
148}
149
150// SendBytes sends the given message as a binary message
151// on the WebSocket.

Callers 1

writeMethod · 0.80

Calls 1

handleJSErrorFunction · 0.85

Tested by

no test coverage detected