|
@@ -5,7 +5,7 @@ import { instrument, RedisStore } from "@socket.io/admin-ui";
|
|
import { createAdapter } from "@socket.io/redis-adapter";
|
|
import { createAdapter } from "@socket.io/redis-adapter";
|
|
import { pubClient, subClient } from "../connection/redis.js";
|
|
import { pubClient, subClient } from "../connection/redis.js";
|
|
import { logger } from "./logger.js";
|
|
import { logger } from "./logger.js";
|
|
-// import customParser from "socket.io-msgpack-parser";
|
|
|
|
|
|
+import customParser from "socket.io-msgpack-parser";
|
|
console.log("process.env.SOCKET_PATH", process.env.SOCKET_PATH);
|
|
console.log("process.env.SOCKET_PATH", process.env.SOCKET_PATH);
|
|
const httpServer = http.createServer();
|
|
const httpServer = http.createServer();
|
|
const io = new Server(httpServer, {
|
|
const io = new Server(httpServer, {
|
|
@@ -15,7 +15,7 @@ const io = new Server(httpServer, {
|
|
path: process.env.SOCKET_PATH || "",
|
|
path: process.env.SOCKET_PATH || "",
|
|
pingInterval: 10000,
|
|
pingInterval: 10000,
|
|
pingTimeout: 5000,
|
|
pingTimeout: 5000,
|
|
- // parser: customParser,
|
|
|
|
|
|
+ parser: customParser,
|
|
});
|
|
});
|
|
|
|
|
|
instrument(io, {
|
|
instrument(io, {
|