[add] port

This commit is contained in:
建喵 2023-09-11 15:37:04 +08:00
parent 6b42db9ecb
commit c44dac2cfd

View File

@ -16,7 +16,7 @@ dayjs.locale("zh-tw");
dotenv.config(); dotenv.config();
// Create the Server // Create the Server
const port: number = +process.env.PORT || 3000; const port: number = +process.env.PORT || 3003;
export const server: WsServer<ServiceType> = new WsServer(serviceProto, { export const server: WsServer<ServiceType> = new WsServer(serviceProto, {
port: port, port: port,
// Remove this to use binary mode (remove from the client too) // Remove this to use binary mode (remove from the client too)