@@ -417,7 +417,8 @@ receives an `OpenEvent` named "open".
417
417
418
418
### websocket.ping([ data[ , mask]] [ , callback ] )
419
419
420
- - ` data ` {Any} The data to send in the ping frame.
420
+ - ` data ` {Array|Number|Object|String|ArrayBuffer|Buffer|DataView|TypedArray} The
421
+ data to send in the ping frame.
421
422
- ` mask ` {Boolean} Specifies whether ` data ` should be masked or not. Defaults to
422
423
` true ` when ` websocket ` is not a server client.
423
424
- ` callback ` {Function} An optional callback which is invoked when the ping
@@ -427,7 +428,8 @@ Send a ping.
427
428
428
429
### websocket.pong([ data[ , mask]] [ , callback ] )
429
430
430
- - ` data ` {Any} The data to send in the pong frame.
431
+ - ` data ` {Array|Number|Object|String|ArrayBuffer|Buffer|DataView|TypedArray} The
432
+ data to send in the pong frame.
431
433
- ` mask ` {Boolean} Specifies whether ` data ` should be masked or not. Defaults to
432
434
` true ` when ` websocket ` is not a server client.
433
435
- ` callback ` {Function} An optional callback which is invoked when the pong
@@ -456,7 +458,8 @@ Removes an event listener emulating the `EventTarget` interface.
456
458
457
459
### websocket.send(data[ , options] [ , callback ] )
458
460
459
- - ` data ` {Any} The data to send.
461
+ - ` data ` {Array|Number|Object|String|ArrayBuffer|Buffer|DataView|TypedArray} The
462
+ data to send.
460
463
- ` options ` {Object}
461
464
- ` compress ` {Boolean} Specifies whether ` data ` should be compressed or not.
462
465
Defaults to ` true ` when permessage-deflate is enabled.
0 commit comments