Skip to content

Commit

Permalink
Merge pull request #80 from erictik:new-ws
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
zcpua authored Jun 4, 2023
2 parents 4385039 + 13835dd commit 258df7d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
},
"dependencies": {
"@huggingface/inference": "^2.5.0",
"isomorphic-ws": "^5.0.0",
"p-queue": "^6.6.2",
"snowyflake": "^2.0.0",
"throat": "^6.0.2",
Expand Down
2 changes: 1 addition & 1 deletion src/ws.message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from "./interfaces";
import { VerifyHuman } from "./verify.human";
import { WebsocketBuilder, Websocket } from "websocket-ts";
import WebSocket from "ws";
import WebSocket from "isomorphic-ws";

export class WsMessage {
ws: Websocket;
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,11 @@ get-tsconfig@^4.4.0:
resolved "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.5.0.tgz"
integrity sha512-MjhiaIWCJ1sAU4pIQ5i5OfOuHHxVo1oYeNsWTON7jxYkod8pHocXeh+SSbmu5OZZZK73B6cbJ2XADzXehLyovQ==

isomorphic-ws@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz#e5529148912ecb9b451b46ed44d53dae1ce04bbf"
integrity sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==

make-error@^1.1.1:
version "1.3.6"
resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2"
Expand Down

0 comments on commit 258df7d

Please sign in to comment.