Wrap WebSocket.cork, update docs

This commit is contained in:
Alex Hultman 2020-01-10 19:02:51 +01:00
parent 6691236309
commit 68fde105e6
13 changed files with 157 additions and 82 deletions

3
docs/index.d.ts vendored
View file

@ -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;