fix dashboard websocket route
This commit is contained in:
@@ -7,7 +7,7 @@ import expressWs from 'express-ws';
|
|||||||
export function registerRoutes(express: Express, config: ConfigType, ws: expressWs.Instance): void {
|
export function registerRoutes(express: Express, config: ConfigType, ws: expressWs.Instance): void {
|
||||||
RegisterRoutes(express);
|
RegisterRoutes(express);
|
||||||
// (express as any as expressWs.Application).ws('ws/dashboard', (ws, req, next) => isAuthenticatedMiddleware(req, req.res!, next));
|
// (express as any as expressWs.Application).ws('ws/dashboard', (ws, req, next) => isAuthenticatedMiddleware(req, req.res!, next));
|
||||||
(express as any as expressWs.Application).ws('ws/dashboard', (ws, req) => {
|
(express as any as expressWs.Application).ws('/ws/dashboard', (ws, req) => {
|
||||||
// ws.on('open', function () {
|
// ws.on('open', function () {
|
||||||
// console.log(this);
|
// console.log(this);
|
||||||
// });
|
// });
|
||||||
|
|||||||
Reference in New Issue
Block a user