Skip to content

Commit 17f123d

Browse files
committed
remove socket call
1 parent a0fb858 commit 17f123d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

server.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ var davServer,
3131

3232
var terminals = {}, logs = {};
3333

34-
var editor_ws = null;
35-
3634
//check for the existence of the logs directory, if it doesn't
3735
//exist, create it prior to starting the child process.
3836
var exists = fs.existsSync(__dirname + '/logs');
@@ -132,7 +130,6 @@ app.post('/terminals/:pid/size', function (req, res) {
132130
});
133131

134132
app.ws('/terminals/:pid', function (ws, req) {
135-
editor_ws = ws;
136133
var term = terminals[parseInt(req.params.pid)];
137134
console.log('Connected to terminal ' + term.pid);
138135
ws.send(logs[term.pid]);
@@ -248,10 +245,6 @@ function mount_dav(server) {
248245
winston.info('webdav filesystem mounted');
249246
}
250247

251-
exports.get_socket = function (cb) {
252-
cb(editor_ws);
253-
};
254-
255248
process.on('SIGINT', function() {
256249
winston.info("\nShutting down from SIGINT");
257250
// some other closing procedures go here

0 commit comments

Comments
 (0)