修复websocket连接域名

This commit is contained in:
hanhh
2021-10-13 23:09:48 +08:00
parent 3cae44a136
commit dcaa9ce000
2 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ import fs from 'fs';
import { getPlatform } from '../config/util';
export default async ({ server }: { server: Server }) => {
const echo = sockjs.createServer({ prefix: '/ws' });
const echo = sockjs.createServer({ prefix: '/api/ws' });
const sockService = Container.get(SockService);
echo.on('connection', (conn) => {