Files
talk/client/coral-embed/src/StreamInterface.js
T
2017-08-03 11:23:06 +10:00

22 lines
350 B
JavaScript

export default class StreamInterface {
constructor(stream) {
this._stream = stream;
}
on(eventName, callback) {
return this._stream.emitter.on(eventName, callback);
}
login(token) {
return this._stream.login(token);
}
logout() {
return this._stream.logout();
}
remove() {
return this._stream.remove();
}
}