Skip to content
This repository was archived by the owner on Jun 7, 2024. It is now read-only.

Commit e33757a

Browse files
author
Scott
committed
Fix
1 parent ba25913 commit e33757a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

lib/client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ interface ClientArgs {
1010
clientName: string;
1111
userId: number;
1212
serverId: number;
13+
roomId: number;
1314
}
1415

1516
const createClient = async (args: Maybe<Partial<ClientArgs>>, createWebSocket = true): Promise<Client> => {
1617
updateState(state => {
1718
state.userId ??= args?.userId ?? Number(process.env.USER_ID);
18-
state.initialServerId ??= args?.serverId ?? Number(process.env.SERVER_ID);
19+
state.initialServerId ??= args?.serverId ?? Number(process.env.SERVER_ID) ?? args?.roomId;
1920
});
2021

2122
setAuthData(store => {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sonar-tools/sonar.js",
3-
"version": "0.1.0-alpha.6",
3+
"version": "0.1.0-alpha.7",
44
"main": "./build/index.js",
55
"author": "@sonar-tools",
66
"contributors": [
@@ -24,7 +24,7 @@
2424
"devDependencies": {
2525
"@types/dotenv": "8.x.x",
2626
"@types/lodash": "4.x.x",
27-
"@types/node": ">= 14",
27+
"@types/node": "^14.14.37",
2828
"@types/ws": "7.x.x",
2929
"@typescript-eslint/eslint-plugin": "4.20.0",
3030
"@typescript-eslint/parser": "^4.20.1-alpha.7",

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.168.tgz#fe24632e79b7ade3f132891afff86caa5e5ce008"
8282
integrity sha512-oVfRvqHV/V6D1yifJbVRU3TMp8OT6o6BG+U9MkwuJ3U8/CsDHvalRpsxBqivn71ztOFZBTfJMvETbqHiaNSj7Q==
8383

84-
"@types/node@*", "@types/node@>= 14":
84+
"@types/node@*", "@types/node@^14.14.37":
8585
version "14.14.37"
8686
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.37.tgz#a3dd8da4eb84a996c36e331df98d82abd76b516e"
8787
integrity sha512-XYmBiy+ohOR4Lh5jE379fV2IU+6Jn4g5qASinhitfyO71b/sCo6MKsMLF5tc7Zf2CE8hViVQyYSobJNke8OvUw==

0 commit comments

Comments
 (0)