We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af01147 commit c77b5b2Copy full SHA for c77b5b2
instant-markdown-d
@@ -6,9 +6,7 @@ var hljs = require('highlight.js');
6
var server = require('http').createServer(httpHandler),
7
exec = require('child_process').exec,
8
io = require('socket.io').listen(server),
9
- send = require('send'),
10
- server,
11
- socket;
+ send = require('send');
12
13
// WARNING: By setting this environment variable, anyone on your network may
14
// run arbitrary code in your browser and read arbitrary files in the working
@@ -120,7 +118,7 @@ function httpHandler(req, res) {
120
118
// break;
121
119
122
case 'DELETE':
123
- socket.emit('die');
+ io.sockets.emit('die');
124
process.exit();
125
break;
126
0 commit comments