mirror of
https://github.com/whyour/qinglong.git
synced 2026-06-30 20:35:09 +08:00
修复websocket连接域名
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user