Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
74fe35d969 | ||
|
|
678a0160c4 |
@@ -75,7 +75,7 @@ process.on('uncaughtException', (error) => {
|
||||
// .on() on a class threw on every boot and silently killed the WS).
|
||||
try {
|
||||
const { ctx } = app.locals;
|
||||
const createDashboardWS = require('./src/websocket/dashboard-ws');
|
||||
const createDashboardWS = require('./src/websocket/dashboard-ws').createDashboardWS;
|
||||
|
||||
// DC-061: WS upgrade bypasses Express middleware, so inject the
|
||||
// real session verifier from the shared context. Without this
|
||||
|
||||
@@ -331,4 +331,6 @@ function createDashboardWS(server, deps = {}) {
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = { createDashboardWS, parseCookieHeader };
|
||||
module.exports = createDashboardWS;
|
||||
module.exports.createDashboardWS = createDashboardWS;
|
||||
module.exports.parseCookieHeader = parseCookieHeader;
|
||||
|
||||
Reference in New Issue
Block a user