mirror of
https://github.com/wassname/talk.git
synced 2026-07-03 20:23:29 +08:00
22 lines
350 B
JavaScript
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();
|
|
}
|
|
}
|