mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-20 01:18:52 +00:00
Remove duplicate declaration
This commit is contained in:
parent
00c6b0029d
commit
b4054a01fa
@ -76,8 +76,6 @@ class Server {
|
|||||||
this.app.use(bodyParser.json()); // support json encoded bodies
|
this.app.use(bodyParser.json()); // support json encoded bodies
|
||||||
this.app.use(bodyParser.urlencoded({extended: true})); // support encoded bodies
|
this.app.use(bodyParser.urlencoded({extended: true})); // support encoded bodies
|
||||||
|
|
||||||
expressWebSocket(this.app);
|
|
||||||
|
|
||||||
this.app.ws('/logs', function(ws, _req) {
|
this.app.ws('/logs', function(ws, _req) {
|
||||||
self.events.on("log", function(logLevel, logMsg) {
|
self.events.on("log", function(logLevel, logMsg) {
|
||||||
ws.send(JSON.stringify({msg: logMsg, msg_clear: logMsg.stripColors, logLevel: logLevel}), () => {});
|
ws.send(JSON.stringify({msg: logMsg, msg_clear: logMsg.stripColors, logLevel: logLevel}), () => {});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user