Commit 8d9c3d7d authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Add userdata field to ServerConnection and Stream.

parent e698e187
...@@ -70,6 +70,12 @@ function ServerConnection() { ...@@ -70,6 +70,12 @@ function ServerConnection() {
* @type {Object.<string,boolean>} * @type {Object.<string,boolean>}
*/ */
this.permissions = {}; this.permissions = {};
/**
* clientdata is a convenient place to attach data to a ServerConnection.
* It is not used by the library.
* @type{Object.<string,any>}
*/
this.userdata = {};
/* Callbacks */ /* Callbacks */
...@@ -723,6 +729,12 @@ function Stream(sc, id, pc) { ...@@ -723,6 +729,12 @@ function Stream(sc, id, pc) {
* @type {number} * @type {number}
*/ */
this.statsHandler = null; this.statsHandler = null;
/**
* clientdata is a convenient place to attach data to a Stream.
* It is not used by the library.
* @type{Object.<string,any>}
*/
this.userdata = {};
/* Callbacks */ /* Callbacks */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment