Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BBB Dashboard
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Zohren
BBB Dashboard
Commits
8c2507a6
Commit
8c2507a6
authored
4 years ago
by
Jonas Zohren
Browse files
Options
Downloads
Patches
Plain Diff
Add autoAttach code on startup
parent
4f973801
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/server.js
+16
-0
16 additions, 0 deletions
server/server.js
with
16 additions
and
0 deletions
server/server.js
+
16
−
0
View file @
8c2507a6
...
...
@@ -174,6 +174,22 @@ app.post(
}
);
try
{
const
autoAttachRoomsPath
=
path
.
join
(
__dirname
,
"
autoAttach.json
"
);
const
urlList
=
JSON
.
parse
(
fs
.
readFileSync
(
autoAttachRoomsPath
));
const
attach
=
async
function
(
roomUrl
)
{
try
{
const
room
=
await
attachToRoom
(
roomUrl
);
attachedRooms
[
room
.
uid
]
=
room
;
}
catch
(
error
)
{}
};
for
(
const
url
of
urlList
)
{
attach
(
url
);
}
}
catch
(
error
)
{
console
.
error
(
"
Could not read autoAttachroomList:
"
,
error
);
}
try
{
console
.
debug
(
"
[Debug] Running in
"
,
process
.
cwd
());
console
.
debug
(
"
[Debug] Running as
"
,
__filename
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment