allow for user data to be attached to the websocket
This commit is contained in:
parent
5b97a8f59d
commit
d66c4a6735
3
docs/index.d.ts
vendored
3
docs/index.d.ts
vendored
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user