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

Method setBinaryType

internal/wsjs/wsjs_js.go:55–57  ·  view source on GitHub ↗
(typ string)

Source from the content-addressed store, hash-verified

53}
54
55func (c WebSocket) setBinaryType(typ string) {
56 c.v.Set("binaryType", string(typ))
57}
58
59func (c WebSocket) addEventListener(eventType string, fn func(e js.Value)) func() {
60 f := js.FuncOf(func(this js.Value, args []js.Value) any {

Callers 1

NewFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected