allow for user data to be attached to the websocket

This commit is contained in:
Kyle McCarthy 2019-03-04 16:41:17 -06:00
parent 5b97a8f59d
commit d66c4a6735

3
docs/index.d.ts vendored
View File

@ -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. */