mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(import) add nameStore
This commit is contained in:
parent
7981d4a257
commit
6599bc9d3d
1 changed files with 5 additions and 1 deletions
|
|
@ -89,6 +89,7 @@ module.exports = (options, fn) => {
|
|||
const close = closeIfNot(socket, importListen);
|
||||
|
||||
const statusStore = fullstore();
|
||||
const nameStore = fullstore();
|
||||
const statusStoreWraped = wraptile(statusStore);
|
||||
|
||||
const onConfig = apply(squad, [
|
||||
|
|
@ -113,7 +114,10 @@ module.exports = (options, fn) => {
|
|||
]);
|
||||
|
||||
const onConnect = emitAuth(importUrl, socket);
|
||||
const onAccept = logWraped(importStr,`${connectedStr} to ${colorUrl}`);
|
||||
const onAccept = apply(squad, [
|
||||
logWraped(importStr,`${connectedStr} to ${colorUrl}`),
|
||||
nameStore,
|
||||
]);
|
||||
const onDisconnect = apply(squad, [
|
||||
done(fn, statusStore),
|
||||
logWraped(importStr, `${disconnectedStr} from ${colorUrl}`),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue