]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/server-commands/socket/socket-io-command.ts
Add runner server tests
[github/Chocobozzz/PeerTube.git] / shared / server-commands / socket / socket-io-command.ts
index c277ead28151a8300df5aabaee793c99b1f6c628..c28a86366ff9c03de1f8b0cc54b8ea9a12d82efb 100644 (file)
@@ -12,4 +12,13 @@ export class SocketIOCommand extends AbstractCommand {
   getLiveNotificationSocket () {
     return io(this.server.url + '/live-videos')
   }
+
+  getRunnersSocket (options: {
+    runnerToken: string
+  }) {
+    return io(this.server.url + '/runners', {
+      reconnection: false,
+      auth: { runnerToken: options.runnerToken }
+    })
+  }
 }