mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
修复websocket连接域名
This commit is contained in:
1 parent
efa1fcfbdf
commit
003cdd1e06
2 files changed
+7
-5
No files matched your search
@@ -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