feature(config) socket -> middle

This commit is contained in:
coderaiser 2015-06-22 07:54:03 -04:00
parent 59f122f099
commit 8ad5359b5b
2 changed files with 13 additions and 8 deletions

View file

@ -63,7 +63,7 @@
if (p.socket)
listen(p.socket);
return cloudcmd(prefix);
return cloudcmd(prefix, p.socket);
};
function listen(socket) {
@ -75,8 +75,6 @@
socket: socket
});
config.socket(socket);
edward.listen(socket, {
size: size,
root: root
@ -92,7 +90,7 @@
});
}
function cloudcmd(prefix) {
function cloudcmd(prefix, socket) {
var isOption = function(name) {
return config(name);
},
@ -111,7 +109,9 @@
logout,
setUrl(prefix),
auth(),
config(),
config.middle({
socket: socket,
}),
restafary({
prefix : cloudfunc.apiURL + '/fs',
root : root