Merge feature/dc-061-fix-export: preserve default-export compat for createDashboardWS
This commit is contained in:
@@ -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