From d66c4a6735a73237bf81b30f25c0905f8993d056 Mon Sep 17 00:00:00 2001 From: Kyle McCarthy Date: Mon, 4 Mar 2019 16:41:17 -0600 Subject: [PATCH] allow for user data to be attached to the websocket --- docs/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/index.d.ts b/docs/index.d.ts index 53a1026..9160cd0 100644 --- a/docs/index.d.ts +++ b/docs/index.d.ts @@ -33,6 +33,9 @@ interface WebSocket { /** Returns the remote IP address */ getRemoteAddress() : ArrayBuffer; + + /** Arbitrary user data may be attached to this object */ + [key: string]: any; } /** An HttpResponse is valid until either onAborted callback or any of the .end/.tryEnd calls succeed. You may attach user data to this object. */