mirror of
https://github.com/jech/galene.git
synced 2024-11-23 00:55:58 +01:00
Add userdata field to ServerConnection and Stream.
This commit is contained in:
parent
e698e187e6
commit
8d9c3d7d1c
1 changed files with 12 additions and 0 deletions
|
@ -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) {
|
||||||
* @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 */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue