Skip to content

Commit

Permalink
Update type from http to https
Browse files Browse the repository at this point in the history
  • Loading branch information
refringe committed Feb 18, 2025
1 parent 8bc9b15 commit 92da715
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions project/src/servers/WebSocketServer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import http, { IncomingMessage } from "node:http";
import { IncomingMessage } from "node:http";
import https from "node:https";
import { ProgramStatics } from "@spt/ProgramStatics";
import { HttpServerHelper } from "@spt/helpers/HttpServerHelper";
import type { ILogger } from "@spt/models/spt/utils/ILogger";
Expand Down Expand Up @@ -27,7 +28,7 @@ export class WebSocketServer {
return this.webSocketServer;
}

public setupWebSocket(httpServer: http.Server): void {
public setupWebSocket(httpServer: https.Server): void {
this.webSocketServer = new Server({ server: httpServer, WebSocket: SPTWebSocket });

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

0 comments on commit 92da715

Please sign in to comment.