This repository was archived by the owner on Jun 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,13 @@ interface ClientArgs {
10
10
clientName : string ;
11
11
userId : number ;
12
12
serverId : number ;
13
+ roomId : number ;
13
14
}
14
15
15
16
const createClient = async ( args : Maybe < Partial < ClientArgs > > , createWebSocket = true ) : Promise < Client > => {
16
17
updateState ( state => {
17
18
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 ;
19
20
} ) ;
20
21
21
22
setAuthData ( store => {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @sonar-tools/sonar.js" ,
3
- "version" : " 0.1.0-alpha.6 " ,
3
+ "version" : " 0.1.0-alpha.7 " ,
4
4
"main" : " ./build/index.js" ,
5
5
"author" : " @sonar-tools" ,
6
6
"contributors" : [
24
24
"devDependencies" : {
25
25
"@types/dotenv" : " 8.x.x" ,
26
26
"@types/lodash" : " 4.x.x" ,
27
- "@types/node" : " >= 14 " ,
27
+ "@types/node" : " ^14.14.37 " ,
28
28
"@types/ws" : " 7.x.x" ,
29
29
"@typescript-eslint/eslint-plugin" : " 4.20.0" ,
30
30
"@typescript-eslint/parser" : " ^4.20.1-alpha.7" ,
Original file line number Diff line number Diff line change 81
81
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.168.tgz#fe24632e79b7ade3f132891afff86caa5e5ce008"
82
82
integrity sha512-oVfRvqHV/V6D1yifJbVRU3TMp8OT6o6BG+U9MkwuJ3U8/CsDHvalRpsxBqivn71ztOFZBTfJMvETbqHiaNSj7Q==
83
83
84
- " @types/node@*" , "@types/node@>= 14 ":
84
+ " @types/node@*" , "@types/node@^14.14.37 ":
85
85
version "14.14.37"
86
86
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.37.tgz#a3dd8da4eb84a996c36e331df98d82abd76b516e"
87
87
integrity sha512-XYmBiy+ohOR4Lh5jE379fV2IU+6Jn4g5qASinhitfyO71b/sCo6MKsMLF5tc7Zf2CE8hViVQyYSobJNke8OvUw==
You can’t perform that action at this time.
0 commit comments