Skip to content

Commit 92da715

Browse files
committed
Update type from http to https
1 parent 8bc9b15 commit 92da715

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

project/src/servers/WebSocketServer.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import http, { IncomingMessage } from "node:http";
1+
import { IncomingMessage } from "node:http";
2+
import https from "node:https";
23
import { ProgramStatics } from "@spt/ProgramStatics";
34
import { HttpServerHelper } from "@spt/helpers/HttpServerHelper";
45
import type { ILogger } from "@spt/models/spt/utils/ILogger";
@@ -27,7 +28,7 @@ export class WebSocketServer {
2728
return this.webSocketServer;
2829
}
2930

30-
public setupWebSocket(httpServer: http.Server): void {
31+
public setupWebSocket(httpServer: https.Server): void {
3132
this.webSocketServer = new Server({ server: httpServer, WebSocket: SPTWebSocket });
3233

3334
this.webSocketServer.addListener("listening", () => {

0 commit comments

Comments
 (0)