Skip to content

Commit

Permalink
ci: eslint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wobsoriano committed Nov 11, 2024
1 parent 71d822f commit 3dce6ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/runtime/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ declare global {
export function createIOHandler<T extends Record<string, (io: SocketServer) => void>>(functions: T, serverOptions: Partial<ServerOptions>) {
return eventHandler((event) => {
if (!globalThis.__io && process.env.NODE_ENV === 'production') {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const httpServer = (event.node.req.socket as any).server as Server
const io = new SocketServer(httpServer, serverOptions)

Expand Down

0 comments on commit 3dce6ac

Please sign in to comment.