Skip to content

Commit

Permalink
❌ Remove eiows
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashu11-A committed Jun 22, 2024
1 parent 49ab6f4 commit e16ea86
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 21 deletions.
25 changes: 9 additions & 16 deletions core/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"crypto-js": "^4.2.0",
"discord.js": "^14.15.3",
"dotenv": "^16.4.5",
"eiows": "^7.1.0",
"express": "^4.19.2",
"glob": "^10.4.1",
"i18next": "^23.11.5",
Expand Down
5 changes: 1 addition & 4 deletions core/src/controller/socket.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { i18 } from '@/index.js'
import express, { type Application } from 'express'
import { createServer } from 'http'
import { Server } from 'socket.io'
import ws from 'ws'
import { Event } from './events.js'
import eiows from 'eiows'
import { i18 } from '@/controller/lang.js'

export class SocketController {
protected readonly app: Application
Expand All @@ -16,7 +14,6 @@ export class SocketController {
this.server = createServer(this.app)
SocketController.io = new Server(this.server, {
path: '/socket.io',
wsEngine: process.platform !== 'win32' ? eiows.Server : ws.Server
})
}

Expand Down

0 comments on commit e16ea86

Please sign in to comment.