同じ接続を使いまわすように
This commit is contained in:
parent
f24d86bf93
commit
98dca7b7ac
6 changed files with 60 additions and 13 deletions
|
|
@ -1,9 +1,13 @@
|
|||
import * as riot from 'riot';
|
||||
|
||||
import activateMe from './i';
|
||||
import activateApi from './api';
|
||||
import activateStream from './stream';
|
||||
|
||||
export default (me, stream) => {
|
||||
export default (me, stream, serverStreamManager) => {
|
||||
activateMe(me);
|
||||
activateApi(me);
|
||||
activateStream(stream);
|
||||
|
||||
riot.mixin('stream', { stream });
|
||||
|
||||
riot.mixin('server-stream', { serverStream: serverStreamManager });
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue