提交 6ca63b7a authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Node: getters first.

上级 cf564963
...@@ -33,6 +33,11 @@ class Peer extends EventEmitter ...@@ -33,6 +33,11 @@ class Peer extends EventEmitter
// TODO: subscribe to channel notifications from the worker // TODO: subscribe to channel notifications from the worker
} }
get closed()
{
return this._closed;
}
/** /**
* Close the Peer * Close the Peer
*/ */
......
...@@ -29,6 +29,11 @@ class Room extends EventEmitter ...@@ -29,6 +29,11 @@ class Room extends EventEmitter
// TODO: subscribe to channel notifications from the worker // TODO: subscribe to channel notifications from the worker
} }
get closed()
{
return this._closed;
}
/** /**
* Close the Room * Close the Room
*/ */
......
...@@ -109,6 +109,11 @@ class Server extends EventEmitter ...@@ -109,6 +109,11 @@ class Server extends EventEmitter
} }
} }
get closed()
{
return this._closed;
}
/** /**
* Close the Server * Close the Server
*/ */
......
...@@ -35,6 +35,26 @@ class Transport extends EventEmitter ...@@ -35,6 +35,26 @@ class Transport extends EventEmitter
// TODO: subscribe to channel notifications from the worker // TODO: subscribe to channel notifications from the worker
} }
get closed()
{
return this._closed;
}
get iceComponent()
{
return this._data.iceComponent;
}
get iceLocalParameters()
{
return this._data.iceLocalParameters;
}
get iceLocalCandidates()
{
return this._data.iceLocalCandidates;
}
/** /**
* Close the Transport * Close the Transport
*/ */
...@@ -103,21 +123,6 @@ class Transport extends EventEmitter ...@@ -103,21 +123,6 @@ class Transport extends EventEmitter
}); });
} }
get iceComponent()
{
return this._data.iceComponent;
}
getIceLocalParameters()
{
return this._data.iceLocalParameters;
}
getIceLocalCandidates()
{
return this._data.iceLocalCandidates;
}
createAssociatedTransport() createAssociatedTransport()
{ {
logger.debug('createAssociatedTransport()'); logger.debug('createAssociatedTransport()');
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论