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