aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/server-commands/socket/socket-io-command.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/server-commands/socket/socket-io-command.ts')
-rw-r--r--shared/server-commands/socket/socket-io-command.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/shared/server-commands/socket/socket-io-command.ts b/shared/server-commands/socket/socket-io-command.ts
index c277ead28..c28a86366 100644
--- a/shared/server-commands/socket/socket-io-command.ts
+++ b/shared/server-commands/socket/socket-io-command.ts
@@ -12,4 +12,13 @@ export class SocketIOCommand extends AbstractCommand {
12 getLiveNotificationSocket () { 12 getLiveNotificationSocket () {
13 return io(this.server.url + '/live-videos') 13 return io(this.server.url + '/live-videos')
14 } 14 }
15
16 getRunnersSocket (options: {
17 runnerToken: string
18 }) {
19 return io(this.server.url + '/runners', {
20 reconnection: false,
21 auth: { runnerToken: options.runnerToken }
22 })
23 }
15} 24}