Wrap WebSocket.cork, update docs
This commit is contained in:
parent
6691236309
commit
68fde105e6
13 changed files with 157 additions and 82 deletions
3
docs/index.d.ts
vendored
3
docs/index.d.ts
vendored
|
@ -31,6 +31,9 @@ export interface WebSocket {
|
|||
/** Publish a message to a topic in MQTT syntax */
|
||||
publish(topic: RecognizedString, message: RecognizedString, isBinary?: boolean, compress?: boolean) : WebSocket;
|
||||
|
||||
/** See HttpResponse.cork */
|
||||
cork(cb: () => void) : void;
|
||||
|
||||
/** Returns the remote IP address */
|
||||
getRemoteAddress() : ArrayBuffer;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue