twilio-taskrouter 0.8.2 → 0.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4385 @@
1
+ <!DOCTYPE html><html lang="en"><head>
2
+ <meta charset="utf-8">
3
+ <meta name="viewport" content="width=device-width">
4
+ <title>Documentation Class: Supervisor</title>
5
+
6
+ <!--[if lt IE 9]>
7
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
8
+ <![endif]-->
9
+ <link type="text/css" rel="stylesheet" href="styles/sunlight.default.css">
10
+
11
+ <link type="text/css" rel="stylesheet" href="styles/site.simplex.css">
12
+
13
+ </head>
14
+
15
+ <body>
16
+
17
+ <div class="navbar navbar-default navbar-fixed-top ">
18
+ <div class="container">
19
+ <div class="navbar-header">
20
+ <a class="navbar-brand" href="index.html">Documentation</a>
21
+ <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
22
+ <span class="icon-bar"></span>
23
+ <span class="icon-bar"></span>
24
+ <span class="icon-bar"></span>
25
+ </button>
26
+ </div>
27
+ <div class="navbar-collapse collapse" id="topNavigation">
28
+ <ul class="nav navbar-nav">
29
+
30
+ <li class="dropdown">
31
+ <a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b class="caret"></b></a>
32
+ <ul class="dropdown-menu ">
33
+ <li><a href="Activity.html">Activity</a></li><li><a href="Channel.html">Channel</a></li><li><a href="IncomingTransfer.html">IncomingTransfer</a></li><li><a href="OutgoingTransfer.html">OutgoingTransfer</a></li><li><a href="Reservation.html">Reservation</a></li><li><a href="Supervisor.html">Supervisor</a></li><li><a href="Task.html">Task</a></li><li><a href="TaskQueue.html">TaskQueue</a></li><li><a href="Transfers.html">Transfers</a></li><li><a href="Worker.html">Worker</a></li><li><a href="Workspace.html">Workspace</a></li>
34
+ </ul>
35
+ </li>
36
+
37
+ <li class="dropdown">
38
+ <a href="events.list.html" class="dropdown-toggle" data-toggle="dropdown">Events<b class="caret"></b></a>
39
+ <ul class="dropdown-menu ">
40
+ <li><a href="Channel.html#event:availabilityUpdated">Channel#event:availabilityUpdated</a></li><li><a href="Channel.html#event:capacityUpdated">Channel#event:capacityUpdated</a></li><li><a href="OutgoingTransfer.html#event:attemptFailed">OutgoingTransfer#event:attemptFailed</a></li><li><a href="OutgoingTransfer.html#event:canceled">OutgoingTransfer#event:canceled</a></li><li><a href="OutgoingTransfer.html#event:completed">OutgoingTransfer#event:completed</a></li><li><a href="OutgoingTransfer.html#event:failed">OutgoingTransfer#event:failed</a></li><li><a href="Reservation.html#event:accepted">Reservation#event:accepted</a></li><li><a href="Reservation.html#event:canceled">Reservation#event:canceled</a></li><li><a href="Reservation.html#event:completed">Reservation#event:completed</a></li><li><a href="Reservation.html#event:rejected">Reservation#event:rejected</a></li><li><a href="Reservation.html#event:rescinded">Reservation#event:rescinded</a></li><li><a href="Reservation.html#event:timeout">Reservation#event:timeout</a></li><li><a href="Reservation.html#event:wrapup">Reservation#event:wrapup</a></li><li><a href="Supervisor.html#event:activityUpdated">Supervisor#event:activityUpdated</a></li><li><a href="Supervisor.html#event:attributesUpdated">Supervisor#event:attributesUpdated</a></li><li><a href="Supervisor.html#event:disconnected">Supervisor#event:disconnected</a></li><li><a href="Supervisor.html#event:error">Supervisor#event:error</a></li><li><a href="Supervisor.html#event:monitor">Supervisor#event:monitor</a></li><li><a href="Supervisor.html#event:ready">Supervisor#event:ready</a></li><li><a href="Supervisor.html#event:reservationCreated">Supervisor#event:reservationCreated</a></li><li><a href="Supervisor.html#event:reservationFailed">Supervisor#event:reservationFailed</a></li><li><a href="Supervisor.html#event:tokenExpired">Supervisor#event:tokenExpired</a></li><li><a href="Supervisor.html#event:tokenUpdated">Supervisor#event:tokenUpdated</a></li><li><a href="Task.html#event:canceled">Task#event:canceled</a></li><li><a href="Task.html#event:completed">Task#event:completed</a></li><li><a href="Task.html#event:transferAttemptFailed">Task#event:transferAttemptFailed</a></li><li><a href="Task.html#event:transferCanceled">Task#event:transferCanceled</a></li><li><a href="Task.html#event:transferCompleted">Task#event:transferCompleted</a></li><li><a href="Task.html#event:transferFailed">Task#event:transferFailed</a></li><li><a href="Task.html#event:transferInitiated">Task#event:transferInitiated</a></li><li><a href="Task.html#event:updated">Task#event:updated</a></li><li><a href="Task.html#event:wrapup">Task#event:wrapup</a></li><li><a href="Worker.html#event:activityUpdated">Worker#event:activityUpdated</a></li><li><a href="Worker.html#event:attributesUpdated">Worker#event:attributesUpdated</a></li><li><a href="Worker.html#event:disconnected">Worker#event:disconnected</a></li><li><a href="Worker.html#event:error">Worker#event:error</a></li><li><a href="Worker.html#event:ready">Worker#event:ready</a></li><li><a href="Worker.html#event:reservationCreated">Worker#event:reservationCreated</a></li><li><a href="Worker.html#event:reservationFailed">Worker#event:reservationFailed</a></li><li><a href="Worker.html#event:tokenExpired">Worker#event:tokenExpired</a></li><li><a href="Worker.html#event:tokenUpdated">Worker#event:tokenUpdated</a></li>
41
+ </ul>
42
+ </li>
43
+
44
+ <li class="dropdown">
45
+ <a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b class="caret"></b></a>
46
+ <ul class="dropdown-menu ">
47
+ <li><a href="global.html">Global</a></li>
48
+ </ul>
49
+ </li>
50
+
51
+ </ul>
52
+
53
+ <div class="col-sm-3 col-md-3">
54
+ <form class="navbar-form" role="search">
55
+ <div class="input-group">
56
+ <input type="text" class="form-control" placeholder="Search" name="q" id="search-input">
57
+ <div class="input-group-btn">
58
+ <button class="btn btn-default" id="search-submit"><i class="glyphicon glyphicon-search"></i></button>
59
+ </div>
60
+ </div>
61
+ </form>
62
+ </div>
63
+
64
+ </div>
65
+
66
+ </div>
67
+ </div>
68
+
69
+
70
+ <div class="container" id="toc-content">
71
+ <div class="row">
72
+
73
+
74
+ <div class="col-md-8">
75
+
76
+ <div id="main">
77
+
78
+
79
+ <h1 class="page-title">Class: Supervisor</h1>
80
+ <section>
81
+
82
+ <header>
83
+
84
+ <h2>
85
+ Supervisor
86
+ </h2>
87
+
88
+ <div class="class-description"><p>Create a <a href="Supervisor.html">Supervisor</a> client representing a privileged TaskRouter Worker</p></div>
89
+
90
+
91
+ </header>
92
+
93
+
94
+ <article>
95
+ <div class="container-overview">
96
+
97
+
98
+ <hr>
99
+ <dt>
100
+ <h4 class="name" id="Supervisor"><span class="type-signature"></span>new <span style="color: #999">Twilio.TaskRouter.</span>Supervisor(token [, options])</h4>
101
+
102
+
103
+ </dt>
104
+ <dd>
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+ <h5>Parameters:</h5>
115
+
116
+
117
+ <table class="params table table-striped">
118
+ <thead>
119
+ <tr>
120
+
121
+ <th>Name</th>
122
+
123
+
124
+ <th>Type</th>
125
+
126
+
127
+ <th>Argument</th>
128
+
129
+
130
+
131
+
132
+ <th class="last">Description</th>
133
+ </tr>
134
+ </thead>
135
+
136
+ <tbody>
137
+
138
+
139
+ <tr>
140
+
141
+ <td class="name"><code>token</code></td>
142
+
143
+
144
+ <td class="type">
145
+
146
+
147
+ <span class="param-type">string</span>
148
+
149
+
150
+
151
+
152
+ </td>
153
+
154
+
155
+ <td class="attributes">
156
+
157
+
158
+
159
+
160
+
161
+ </td>
162
+
163
+
164
+
165
+
166
+ <td class="description last"><p>The string token</p></td>
167
+ </tr>
168
+
169
+
170
+
171
+ <tr>
172
+
173
+ <td class="name"><code>options</code></td>
174
+
175
+
176
+ <td class="type">
177
+
178
+
179
+ <span class="param-type"><a href="global.html#WorkerOptions">WorkerOptions</a></span>
180
+
181
+
182
+
183
+
184
+ </td>
185
+
186
+
187
+ <td class="attributes">
188
+
189
+ &lt;optional&gt;<br>
190
+
191
+
192
+
193
+
194
+
195
+ </td>
196
+
197
+
198
+
199
+
200
+ <td class="description last"></td>
201
+ </tr>
202
+
203
+
204
+ </tbody>
205
+ </table>
206
+
207
+
208
+
209
+
210
+ <dl class="details">
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+ </dl>
247
+
248
+
249
+
250
+
251
+
252
+ <h5>Fires:</h5>
253
+ <ul>
254
+ <li><a href="Supervisor.html#event:monitor">Supervisor#event:monitor</a></li>
255
+ </ul>
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+ </dd>
268
+
269
+
270
+ </div>
271
+
272
+
273
+ <h3 class="subsection-title">Extends</h3>
274
+
275
+
276
+
277
+
278
+ <ul>
279
+ <li><a href="Worker.html">Worker</a></li>
280
+ </ul>
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+ <h3 class="subsection-title">Members</h3>
295
+
296
+ <dl>
297
+
298
+ <hr>
299
+ <dt class="name" id="accountSid">
300
+ <h4 id="accountSid"><span class="type-signature">&lt;readonly&gt; </span>accountSid<span class="type-signature"> :string</span></h4>
301
+
302
+
303
+ </dt>
304
+ <dd>
305
+
306
+
307
+
308
+ <h5>Type:</h5>
309
+ <ul>
310
+ <li>
311
+
312
+ <span class="param-type">string</span>
313
+
314
+
315
+
316
+ </li>
317
+ </ul>
318
+
319
+
320
+
321
+ <dl class="details">
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
330
+ <dd class="inherited-from">
331
+ <ul class="dummy">
332
+ <li>
333
+ <a href="Worker.html#accountSid">Worker#accountSid</a>
334
+ </li>
335
+ </ul>
336
+ </dd>
337
+
338
+
339
+
340
+
341
+
342
+
343
+
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+
365
+
366
+ </dl>
367
+
368
+
369
+
370
+ </dd>
371
+
372
+
373
+
374
+ <hr>
375
+ <dt class="name" id="activities">
376
+ <h4 id="activities"><span class="type-signature"></span>activities<span class="type-signature"></span></h4>
377
+
378
+
379
+ </dt>
380
+ <dd>
381
+
382
+
383
+
384
+
385
+
386
+ <dl class="details">
387
+
388
+
389
+
390
+
391
+
392
+
393
+
394
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
395
+ <dd class="inherited-from">
396
+ <ul class="dummy">
397
+ <li>
398
+ <a href="Worker.html#activities">Worker#activities</a>
399
+ </li>
400
+ </ul>
401
+ </dd>
402
+
403
+
404
+
405
+
406
+
407
+
408
+
409
+
410
+
411
+
412
+
413
+
414
+
415
+
416
+
417
+
418
+
419
+
420
+
421
+
422
+
423
+
424
+
425
+
426
+
427
+
428
+
429
+
430
+
431
+ </dl>
432
+
433
+
434
+
435
+ </dd>
436
+
437
+
438
+
439
+ <hr>
440
+ <dt class="name" id="activity">
441
+ <h4 id="activity"><span class="type-signature">&lt;readonly&gt; </span>activity<span class="type-signature"></span></h4>
442
+
443
+
444
+ </dt>
445
+ <dd>
446
+
447
+
448
+
449
+
450
+
451
+ <dl class="details">
452
+
453
+
454
+
455
+
456
+
457
+
458
+
459
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
460
+ <dd class="inherited-from">
461
+ <ul class="dummy">
462
+ <li>
463
+ <a href="Worker.html#activity">Worker#activity</a>
464
+ </li>
465
+ </ul>
466
+ </dd>
467
+
468
+
469
+
470
+
471
+
472
+
473
+
474
+
475
+
476
+
477
+
478
+
479
+
480
+
481
+
482
+
483
+
484
+
485
+
486
+
487
+
488
+
489
+
490
+
491
+
492
+
493
+
494
+
495
+
496
+ </dl>
497
+
498
+
499
+
500
+ </dd>
501
+
502
+
503
+
504
+ <hr>
505
+ <dt class="name" id="attributes">
506
+ <h4 id="attributes"><span class="type-signature">&lt;readonly&gt; </span>attributes<span class="type-signature"> :Record.&lt;any, any&gt;</span></h4>
507
+
508
+
509
+ </dt>
510
+ <dd>
511
+
512
+
513
+
514
+ <h5>Type:</h5>
515
+ <ul>
516
+ <li>
517
+
518
+ <span class="param-type">Record.&lt;any, any&gt;</span>
519
+
520
+
521
+
522
+ </li>
523
+ </ul>
524
+
525
+
526
+
527
+ <dl class="details">
528
+
529
+
530
+
531
+
532
+
533
+
534
+
535
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
536
+ <dd class="inherited-from">
537
+ <ul class="dummy">
538
+ <li>
539
+ <a href="Worker.html#attributes">Worker#attributes</a>
540
+ </li>
541
+ </ul>
542
+ </dd>
543
+
544
+
545
+
546
+
547
+
548
+
549
+
550
+
551
+
552
+
553
+
554
+
555
+
556
+
557
+
558
+
559
+
560
+
561
+
562
+
563
+
564
+
565
+
566
+
567
+
568
+
569
+
570
+
571
+
572
+ </dl>
573
+
574
+
575
+
576
+ </dd>
577
+
578
+
579
+
580
+ <hr>
581
+ <dt class="name" id="channels">
582
+ <h4 id="channels"><span class="type-signature"></span>channels<span class="type-signature"></span></h4>
583
+
584
+
585
+ </dt>
586
+ <dd>
587
+
588
+
589
+
590
+
591
+
592
+ <dl class="details">
593
+
594
+
595
+
596
+
597
+
598
+
599
+
600
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
601
+ <dd class="inherited-from">
602
+ <ul class="dummy">
603
+ <li>
604
+ <a href="Worker.html#channels">Worker#channels</a>
605
+ </li>
606
+ </ul>
607
+ </dd>
608
+
609
+
610
+
611
+
612
+
613
+
614
+
615
+
616
+
617
+
618
+
619
+
620
+
621
+
622
+
623
+
624
+
625
+
626
+
627
+
628
+
629
+
630
+
631
+
632
+
633
+
634
+
635
+
636
+
637
+ </dl>
638
+
639
+
640
+
641
+ </dd>
642
+
643
+
644
+
645
+ <hr>
646
+ <dt class="name" id="dateActivityChanged">
647
+ <h4 id="dateActivityChanged"><span class="type-signature">&lt;readonly&gt; </span>dateActivityChanged<span class="type-signature"> :Date</span></h4>
648
+
649
+
650
+ </dt>
651
+ <dd>
652
+
653
+
654
+
655
+ <h5>Type:</h5>
656
+ <ul>
657
+ <li>
658
+
659
+ <span class="param-type">Date</span>
660
+
661
+
662
+
663
+ </li>
664
+ </ul>
665
+
666
+
667
+
668
+ <dl class="details">
669
+
670
+
671
+
672
+
673
+
674
+
675
+
676
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
677
+ <dd class="inherited-from">
678
+ <ul class="dummy">
679
+ <li>
680
+ <a href="Worker.html#dateActivityChanged">Worker#dateActivityChanged</a>
681
+ </li>
682
+ </ul>
683
+ </dd>
684
+
685
+
686
+
687
+
688
+
689
+
690
+
691
+
692
+
693
+
694
+
695
+
696
+
697
+
698
+
699
+
700
+
701
+
702
+
703
+
704
+
705
+
706
+
707
+
708
+
709
+
710
+
711
+
712
+
713
+ </dl>
714
+
715
+
716
+
717
+ </dd>
718
+
719
+
720
+
721
+ <hr>
722
+ <dt class="name" id="dateCreated">
723
+ <h4 id="dateCreated"><span class="type-signature">&lt;readonly&gt; </span>dateCreated<span class="type-signature"> :Date</span></h4>
724
+
725
+
726
+ </dt>
727
+ <dd>
728
+
729
+
730
+
731
+ <h5>Type:</h5>
732
+ <ul>
733
+ <li>
734
+
735
+ <span class="param-type">Date</span>
736
+
737
+
738
+
739
+ </li>
740
+ </ul>
741
+
742
+
743
+
744
+ <dl class="details">
745
+
746
+
747
+
748
+
749
+
750
+
751
+
752
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
753
+ <dd class="inherited-from">
754
+ <ul class="dummy">
755
+ <li>
756
+ <a href="Worker.html#dateCreated">Worker#dateCreated</a>
757
+ </li>
758
+ </ul>
759
+ </dd>
760
+
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+
771
+
772
+
773
+
774
+
775
+
776
+
777
+
778
+
779
+
780
+
781
+
782
+
783
+
784
+
785
+
786
+
787
+
788
+
789
+ </dl>
790
+
791
+
792
+
793
+ </dd>
794
+
795
+
796
+
797
+ <hr>
798
+ <dt class="name" id="dateStatusChanged">
799
+ <h4 id="dateStatusChanged"><span class="type-signature">&lt;readonly&gt; </span>dateStatusChanged<span class="type-signature"> :Date</span></h4>
800
+
801
+
802
+ </dt>
803
+ <dd>
804
+
805
+
806
+
807
+ <h5>Type:</h5>
808
+ <ul>
809
+ <li>
810
+
811
+ <span class="param-type">Date</span>
812
+
813
+
814
+
815
+ </li>
816
+ </ul>
817
+
818
+
819
+
820
+ <dl class="details">
821
+
822
+
823
+
824
+
825
+
826
+
827
+
828
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
829
+ <dd class="inherited-from">
830
+ <ul class="dummy">
831
+ <li>
832
+ <a href="Worker.html#dateStatusChanged">Worker#dateStatusChanged</a>
833
+ </li>
834
+ </ul>
835
+ </dd>
836
+
837
+
838
+
839
+
840
+
841
+
842
+
843
+
844
+
845
+
846
+
847
+
848
+
849
+
850
+
851
+
852
+
853
+
854
+
855
+
856
+
857
+
858
+
859
+
860
+
861
+
862
+
863
+
864
+
865
+ </dl>
866
+
867
+
868
+
869
+ </dd>
870
+
871
+
872
+
873
+ <hr>
874
+ <dt class="name" id="dateUpdated">
875
+ <h4 id="dateUpdated"><span class="type-signature">&lt;readonly&gt; </span>dateUpdated<span class="type-signature"> :Date</span></h4>
876
+
877
+
878
+ </dt>
879
+ <dd>
880
+
881
+
882
+
883
+ <h5>Type:</h5>
884
+ <ul>
885
+ <li>
886
+
887
+ <span class="param-type">Date</span>
888
+
889
+
890
+
891
+ </li>
892
+ </ul>
893
+
894
+
895
+
896
+ <dl class="details">
897
+
898
+
899
+
900
+
901
+
902
+
903
+
904
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
905
+ <dd class="inherited-from">
906
+ <ul class="dummy">
907
+ <li>
908
+ <a href="Worker.html#dateUpdated">Worker#dateUpdated</a>
909
+ </li>
910
+ </ul>
911
+ </dd>
912
+
913
+
914
+
915
+
916
+
917
+
918
+
919
+
920
+
921
+
922
+
923
+
924
+
925
+
926
+
927
+
928
+
929
+
930
+
931
+
932
+
933
+
934
+
935
+
936
+
937
+
938
+
939
+
940
+
941
+ </dl>
942
+
943
+
944
+
945
+ </dd>
946
+
947
+
948
+
949
+ <hr>
950
+ <dt class="name" id="friendlyName">
951
+ <h4 id="friendlyName"><span class="type-signature">&lt;readonly&gt; </span>friendlyName<span class="type-signature"> :string</span></h4>
952
+
953
+
954
+ </dt>
955
+ <dd>
956
+
957
+
958
+
959
+ <h5>Type:</h5>
960
+ <ul>
961
+ <li>
962
+
963
+ <span class="param-type">string</span>
964
+
965
+
966
+
967
+ </li>
968
+ </ul>
969
+
970
+
971
+
972
+ <dl class="details">
973
+
974
+
975
+
976
+
977
+
978
+
979
+
980
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
981
+ <dd class="inherited-from">
982
+ <ul class="dummy">
983
+ <li>
984
+ <a href="Worker.html#friendlyName">Worker#friendlyName</a>
985
+ </li>
986
+ </ul>
987
+ </dd>
988
+
989
+
990
+
991
+
992
+
993
+
994
+
995
+
996
+
997
+
998
+
999
+
1000
+
1001
+
1002
+
1003
+
1004
+
1005
+
1006
+
1007
+
1008
+
1009
+
1010
+
1011
+
1012
+
1013
+
1014
+
1015
+
1016
+
1017
+ </dl>
1018
+
1019
+
1020
+
1021
+ </dd>
1022
+
1023
+
1024
+
1025
+ <hr>
1026
+ <dt class="name" id="name">
1027
+ <h4 id="name"><span class="type-signature">&lt;readonly&gt; </span>name<span class="type-signature"> :string</span></h4>
1028
+
1029
+
1030
+ </dt>
1031
+ <dd>
1032
+
1033
+
1034
+
1035
+ <h5>Type:</h5>
1036
+ <ul>
1037
+ <li>
1038
+
1039
+ <span class="param-type">string</span>
1040
+
1041
+
1042
+
1043
+ </li>
1044
+ </ul>
1045
+
1046
+
1047
+
1048
+ <dl class="details">
1049
+
1050
+
1051
+
1052
+
1053
+
1054
+
1055
+
1056
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
1057
+ <dd class="inherited-from">
1058
+ <ul class="dummy">
1059
+ <li>
1060
+ <a href="Worker.html#name">Worker#name</a>
1061
+ </li>
1062
+ </ul>
1063
+ </dd>
1064
+
1065
+
1066
+
1067
+
1068
+
1069
+
1070
+
1071
+
1072
+
1073
+
1074
+
1075
+
1076
+
1077
+
1078
+
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+
1085
+
1086
+
1087
+
1088
+
1089
+
1090
+
1091
+
1092
+
1093
+ </dl>
1094
+
1095
+
1096
+
1097
+ </dd>
1098
+
1099
+
1100
+
1101
+ <hr>
1102
+ <dt class="name" id="reservations">
1103
+ <h4 id="reservations"><span class="type-signature"></span>reservations<span class="type-signature"></span></h4>
1104
+
1105
+
1106
+ </dt>
1107
+ <dd>
1108
+
1109
+
1110
+
1111
+
1112
+
1113
+ <dl class="details">
1114
+
1115
+
1116
+
1117
+
1118
+
1119
+
1120
+
1121
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
1122
+ <dd class="inherited-from">
1123
+ <ul class="dummy">
1124
+ <li>
1125
+ <a href="Worker.html#reservations">Worker#reservations</a>
1126
+ </li>
1127
+ </ul>
1128
+ </dd>
1129
+
1130
+
1131
+
1132
+
1133
+
1134
+
1135
+
1136
+
1137
+
1138
+
1139
+
1140
+
1141
+
1142
+
1143
+
1144
+
1145
+
1146
+
1147
+
1148
+
1149
+
1150
+
1151
+
1152
+
1153
+
1154
+
1155
+
1156
+
1157
+
1158
+ </dl>
1159
+
1160
+
1161
+
1162
+ </dd>
1163
+
1164
+
1165
+
1166
+ <hr>
1167
+ <dt class="name" id="sid">
1168
+ <h4 id="sid"><span class="type-signature">&lt;readonly&gt; </span>sid<span class="type-signature"> :string</span></h4>
1169
+
1170
+
1171
+ </dt>
1172
+ <dd>
1173
+
1174
+
1175
+
1176
+ <h5>Type:</h5>
1177
+ <ul>
1178
+ <li>
1179
+
1180
+ <span class="param-type">string</span>
1181
+
1182
+
1183
+
1184
+ </li>
1185
+ </ul>
1186
+
1187
+
1188
+
1189
+ <dl class="details">
1190
+
1191
+
1192
+
1193
+
1194
+
1195
+
1196
+
1197
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
1198
+ <dd class="inherited-from">
1199
+ <ul class="dummy">
1200
+ <li>
1201
+ <a href="Worker.html#sid">Worker#sid</a>
1202
+ </li>
1203
+ </ul>
1204
+ </dd>
1205
+
1206
+
1207
+
1208
+
1209
+
1210
+
1211
+
1212
+
1213
+
1214
+
1215
+
1216
+
1217
+
1218
+
1219
+
1220
+
1221
+
1222
+
1223
+
1224
+
1225
+
1226
+
1227
+
1228
+
1229
+
1230
+
1231
+
1232
+
1233
+
1234
+ </dl>
1235
+
1236
+
1237
+
1238
+ </dd>
1239
+
1240
+
1241
+
1242
+ <hr>
1243
+ <dt class="name" id="version">
1244
+ <h4 id="version"><span class="type-signature"></span>version<span class="type-signature"> :string</span></h4>
1245
+
1246
+
1247
+ </dt>
1248
+ <dd>
1249
+
1250
+
1251
+
1252
+ <h5>Type:</h5>
1253
+ <ul>
1254
+ <li>
1255
+
1256
+ <span class="param-type">string</span>
1257
+
1258
+
1259
+
1260
+ </li>
1261
+ </ul>
1262
+
1263
+
1264
+
1265
+ <dl class="details">
1266
+
1267
+
1268
+
1269
+
1270
+
1271
+
1272
+
1273
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
1274
+ <dd class="inherited-from">
1275
+ <ul class="dummy">
1276
+ <li>
1277
+ <a href="Worker.html#version">Worker#version</a>
1278
+ </li>
1279
+ </ul>
1280
+ </dd>
1281
+
1282
+
1283
+
1284
+
1285
+
1286
+
1287
+
1288
+
1289
+
1290
+
1291
+
1292
+
1293
+
1294
+
1295
+
1296
+
1297
+
1298
+
1299
+
1300
+
1301
+
1302
+
1303
+
1304
+
1305
+
1306
+
1307
+
1308
+
1309
+
1310
+ </dl>
1311
+
1312
+
1313
+
1314
+ </dd>
1315
+
1316
+
1317
+
1318
+ <hr>
1319
+ <dt class="name" id="workerActivitySid">
1320
+ <h4 id="workerActivitySid"><span class="type-signature">&lt;readonly&gt; </span>workerActivitySid<span class="type-signature"> :string</span></h4>
1321
+
1322
+
1323
+ </dt>
1324
+ <dd>
1325
+
1326
+
1327
+
1328
+ <h5>Type:</h5>
1329
+ <ul>
1330
+ <li>
1331
+
1332
+ <span class="param-type">string</span>
1333
+
1334
+
1335
+
1336
+ </li>
1337
+ </ul>
1338
+
1339
+
1340
+
1341
+ <dl class="details">
1342
+
1343
+
1344
+
1345
+
1346
+
1347
+
1348
+
1349
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
1350
+ <dd class="inherited-from">
1351
+ <ul class="dummy">
1352
+ <li>
1353
+ <a href="Worker.html#workerActivitySid">Worker#workerActivitySid</a>
1354
+ </li>
1355
+ </ul>
1356
+ </dd>
1357
+
1358
+
1359
+
1360
+
1361
+
1362
+
1363
+
1364
+
1365
+
1366
+
1367
+
1368
+
1369
+
1370
+
1371
+
1372
+
1373
+
1374
+
1375
+
1376
+
1377
+
1378
+
1379
+
1380
+
1381
+
1382
+
1383
+
1384
+
1385
+
1386
+ </dl>
1387
+
1388
+
1389
+
1390
+ </dd>
1391
+
1392
+
1393
+
1394
+ <hr>
1395
+ <dt class="name" id="workerSid">
1396
+ <h4 id="workerSid"><span class="type-signature">&lt;readonly&gt; </span>workerSid<span class="type-signature"> :string</span></h4>
1397
+
1398
+
1399
+ </dt>
1400
+ <dd>
1401
+
1402
+
1403
+
1404
+ <h5>Type:</h5>
1405
+ <ul>
1406
+ <li>
1407
+
1408
+ <span class="param-type">string</span>
1409
+
1410
+
1411
+
1412
+ </li>
1413
+ </ul>
1414
+
1415
+
1416
+
1417
+ <dl class="details">
1418
+
1419
+
1420
+
1421
+
1422
+
1423
+
1424
+
1425
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
1426
+ <dd class="inherited-from">
1427
+ <ul class="dummy">
1428
+ <li>
1429
+ <a href="Worker.html#workerSid">Worker#workerSid</a>
1430
+ </li>
1431
+ </ul>
1432
+ </dd>
1433
+
1434
+
1435
+
1436
+
1437
+
1438
+
1439
+
1440
+
1441
+
1442
+
1443
+
1444
+
1445
+
1446
+
1447
+
1448
+
1449
+
1450
+
1451
+
1452
+
1453
+
1454
+
1455
+
1456
+
1457
+
1458
+
1459
+
1460
+
1461
+
1462
+ </dl>
1463
+
1464
+
1465
+
1466
+ </dd>
1467
+
1468
+
1469
+
1470
+ <hr>
1471
+ <dt class="name" id="workspaceSid">
1472
+ <h4 id="workspaceSid"><span class="type-signature">&lt;readonly&gt; </span>workspaceSid<span class="type-signature"> :string</span></h4>
1473
+
1474
+
1475
+ </dt>
1476
+ <dd>
1477
+
1478
+
1479
+
1480
+ <h5>Type:</h5>
1481
+ <ul>
1482
+ <li>
1483
+
1484
+ <span class="param-type">string</span>
1485
+
1486
+
1487
+
1488
+ </li>
1489
+ </ul>
1490
+
1491
+
1492
+
1493
+ <dl class="details">
1494
+
1495
+
1496
+
1497
+
1498
+
1499
+
1500
+
1501
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
1502
+ <dd class="inherited-from">
1503
+ <ul class="dummy">
1504
+ <li>
1505
+ <a href="Worker.html#workspaceSid">Worker#workspaceSid</a>
1506
+ </li>
1507
+ </ul>
1508
+ </dd>
1509
+
1510
+
1511
+
1512
+
1513
+
1514
+
1515
+
1516
+
1517
+
1518
+
1519
+
1520
+
1521
+
1522
+
1523
+
1524
+
1525
+
1526
+
1527
+
1528
+
1529
+
1530
+
1531
+
1532
+
1533
+
1534
+
1535
+
1536
+
1537
+
1538
+ </dl>
1539
+
1540
+
1541
+
1542
+ </dd>
1543
+
1544
+ </dl>
1545
+
1546
+
1547
+
1548
+ <h3 class="subsection-title">Methods</h3>
1549
+
1550
+ <dl>
1551
+
1552
+ <hr>
1553
+ <dt>
1554
+ <h4 class="name" id="_bumpVersion"><span class="type-signature"></span>_bumpVersion()</h4>
1555
+
1556
+
1557
+ </dt>
1558
+ <dd>
1559
+
1560
+
1561
+ <div class="description">
1562
+ <p>bumps the worker version</p>
1563
+ </div>
1564
+
1565
+
1566
+
1567
+
1568
+
1569
+
1570
+
1571
+
1572
+
1573
+
1574
+ <dl class="details">
1575
+
1576
+
1577
+
1578
+
1579
+
1580
+
1581
+
1582
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
1583
+ <dd class="inherited-from">
1584
+ <ul class="dummy">
1585
+ <li>
1586
+ <a href="Worker.html#_bumpVersion">Worker#_bumpVersion</a>
1587
+ </li>
1588
+ </ul>
1589
+ </dd>
1590
+
1591
+
1592
+
1593
+
1594
+
1595
+
1596
+
1597
+
1598
+
1599
+
1600
+
1601
+
1602
+
1603
+
1604
+
1605
+
1606
+
1607
+
1608
+
1609
+
1610
+
1611
+
1612
+
1613
+
1614
+
1615
+
1616
+
1617
+
1618
+
1619
+ </dl>
1620
+
1621
+
1622
+
1623
+
1624
+
1625
+
1626
+
1627
+
1628
+
1629
+
1630
+
1631
+
1632
+
1633
+
1634
+
1635
+ </dd>
1636
+
1637
+
1638
+
1639
+ <hr>
1640
+ <dt>
1641
+ <h4 class="name" id="createTask"><span class="type-signature"></span>createTask(to, from, workflowSid, taskQueueSid [, options])</h4>
1642
+
1643
+
1644
+ </dt>
1645
+ <dd>
1646
+
1647
+
1648
+ <div class="description">
1649
+ <p>Create a Task</p>
1650
+ </div>
1651
+
1652
+
1653
+
1654
+
1655
+
1656
+
1657
+
1658
+
1659
+ <h5>Parameters:</h5>
1660
+
1661
+
1662
+ <table class="params table table-striped">
1663
+ <thead>
1664
+ <tr>
1665
+
1666
+ <th>Name</th>
1667
+
1668
+
1669
+ <th>Type</th>
1670
+
1671
+
1672
+ <th>Argument</th>
1673
+
1674
+
1675
+
1676
+
1677
+ <th class="last">Description</th>
1678
+ </tr>
1679
+ </thead>
1680
+
1681
+ <tbody>
1682
+
1683
+
1684
+ <tr>
1685
+
1686
+ <td class="name"><code>to</code></td>
1687
+
1688
+
1689
+ <td class="type">
1690
+
1691
+
1692
+ <span class="param-type">string</span>
1693
+
1694
+
1695
+
1696
+
1697
+ </td>
1698
+
1699
+
1700
+ <td class="attributes">
1701
+
1702
+
1703
+
1704
+
1705
+
1706
+ </td>
1707
+
1708
+
1709
+
1710
+
1711
+ <td class="description last"><p>The contact uri of the customer. Stored in the <a href="Task.html">Task</a>'s attributes as "outbound_to"</p></td>
1712
+ </tr>
1713
+
1714
+
1715
+
1716
+ <tr>
1717
+
1718
+ <td class="name"><code>from</code></td>
1719
+
1720
+
1721
+ <td class="type">
1722
+
1723
+
1724
+ <span class="param-type">string</span>
1725
+
1726
+
1727
+
1728
+
1729
+ </td>
1730
+
1731
+
1732
+ <td class="attributes">
1733
+
1734
+
1735
+
1736
+
1737
+
1738
+ </td>
1739
+
1740
+
1741
+
1742
+
1743
+ <td class="description last"><p>The contact uri of the <a href="Worker.html">Worker</a>. Stored in the <a href="Task.html">Task</a>'s attributes as "from"</p></td>
1744
+ </tr>
1745
+
1746
+
1747
+
1748
+ <tr>
1749
+
1750
+ <td class="name"><code>workflowSid</code></td>
1751
+
1752
+
1753
+ <td class="type">
1754
+
1755
+
1756
+ <span class="param-type">string</span>
1757
+
1758
+
1759
+
1760
+
1761
+ </td>
1762
+
1763
+
1764
+ <td class="attributes">
1765
+
1766
+
1767
+
1768
+
1769
+
1770
+ </td>
1771
+
1772
+
1773
+
1774
+
1775
+ <td class="description last"><p>The Sid of the Workflow this Task should belong to</p></td>
1776
+ </tr>
1777
+
1778
+
1779
+
1780
+ <tr>
1781
+
1782
+ <td class="name"><code>taskQueueSid</code></td>
1783
+
1784
+
1785
+ <td class="type">
1786
+
1787
+
1788
+ <span class="param-type">string</span>
1789
+
1790
+
1791
+
1792
+
1793
+ </td>
1794
+
1795
+
1796
+ <td class="attributes">
1797
+
1798
+
1799
+
1800
+
1801
+
1802
+ </td>
1803
+
1804
+
1805
+
1806
+
1807
+ <td class="description last"><p>The Sid of the <a href="TaskQueue.html">TaskQueue</a> this Task should belong to, used for reporting
1808
+ purposes only</p></td>
1809
+ </tr>
1810
+
1811
+
1812
+
1813
+ <tr>
1814
+
1815
+ <td class="name"><code>options</code></td>
1816
+
1817
+
1818
+ <td class="type">
1819
+
1820
+
1821
+ <span class="param-type"><a href="global.html#WorkerTaskOptions">WorkerTaskOptions</a></span>
1822
+
1823
+
1824
+
1825
+
1826
+ </td>
1827
+
1828
+
1829
+ <td class="attributes">
1830
+
1831
+ &lt;optional&gt;<br>
1832
+
1833
+
1834
+
1835
+
1836
+
1837
+ </td>
1838
+
1839
+
1840
+
1841
+
1842
+ <td class="description last"></td>
1843
+ </tr>
1844
+
1845
+
1846
+ </tbody>
1847
+ </table>
1848
+
1849
+
1850
+
1851
+
1852
+ <dl class="details">
1853
+
1854
+
1855
+
1856
+
1857
+
1858
+
1859
+
1860
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
1861
+ <dd class="inherited-from">
1862
+ <ul class="dummy">
1863
+ <li>
1864
+ <a href="Worker.html#createTask">Worker#createTask</a>
1865
+ </li>
1866
+ </ul>
1867
+ </dd>
1868
+
1869
+
1870
+
1871
+
1872
+
1873
+
1874
+
1875
+
1876
+
1877
+
1878
+
1879
+
1880
+
1881
+
1882
+
1883
+
1884
+
1885
+
1886
+
1887
+
1888
+
1889
+
1890
+
1891
+
1892
+
1893
+
1894
+
1895
+
1896
+
1897
+ </dl>
1898
+
1899
+
1900
+
1901
+
1902
+
1903
+
1904
+
1905
+
1906
+
1907
+
1908
+
1909
+
1910
+
1911
+ <h5>Returns:</h5>
1912
+
1913
+
1914
+ <div class="param-desc">
1915
+ <ul>
1916
+ <li>Rejected if unable to create a Task on behalf of the <a href="Worker.html">Worker</a>. Returns the
1917
+ TaskSid of the created Task.</li>
1918
+ </ul>
1919
+ </div>
1920
+
1921
+
1922
+
1923
+ <dl>
1924
+ <dt>
1925
+ Type
1926
+ </dt>
1927
+ <dd>
1928
+
1929
+ <span class="param-type">Promise.&lt;string&gt;</span>
1930
+
1931
+
1932
+
1933
+ </dd>
1934
+ </dl>
1935
+
1936
+
1937
+
1938
+
1939
+
1940
+ </dd>
1941
+
1942
+
1943
+
1944
+ <hr>
1945
+ <dt>
1946
+ <h4 class="name" id="disconnect"><span class="type-signature"></span>disconnect()</h4>
1947
+
1948
+
1949
+ </dt>
1950
+ <dd>
1951
+
1952
+
1953
+ <div class="description">
1954
+ <p>Gracefully disconnect the client.</p>
1955
+ </div>
1956
+
1957
+
1958
+
1959
+
1960
+
1961
+
1962
+
1963
+
1964
+
1965
+
1966
+ <dl class="details">
1967
+
1968
+
1969
+
1970
+
1971
+
1972
+
1973
+
1974
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
1975
+ <dd class="inherited-from">
1976
+ <ul class="dummy">
1977
+ <li>
1978
+ <a href="Worker.html#disconnect">Worker#disconnect</a>
1979
+ </li>
1980
+ </ul>
1981
+ </dd>
1982
+
1983
+
1984
+
1985
+
1986
+
1987
+
1988
+
1989
+
1990
+
1991
+
1992
+
1993
+
1994
+
1995
+
1996
+
1997
+
1998
+
1999
+
2000
+
2001
+
2002
+
2003
+
2004
+
2005
+
2006
+
2007
+
2008
+
2009
+
2010
+
2011
+ </dl>
2012
+
2013
+
2014
+
2015
+
2016
+
2017
+
2018
+
2019
+
2020
+
2021
+
2022
+
2023
+
2024
+
2025
+ <h5>Returns:</h5>
2026
+
2027
+
2028
+
2029
+
2030
+ <dl>
2031
+ <dt>
2032
+ Type
2033
+ </dt>
2034
+ <dd>
2035
+
2036
+ <span class="param-type">void</span>
2037
+
2038
+
2039
+
2040
+ </dd>
2041
+ </dl>
2042
+
2043
+
2044
+
2045
+
2046
+
2047
+ </dd>
2048
+
2049
+
2050
+
2051
+ <hr>
2052
+ <dt>
2053
+ <h4 class="name" id="fetchLatestVersion"><span class="type-signature"></span>fetchLatestVersion()</h4>
2054
+
2055
+
2056
+ </dt>
2057
+ <dd>
2058
+
2059
+
2060
+ <div class="description">
2061
+ <p>Fetch the last version of this <a href="Worker.html">Worker</a></p>
2062
+ </div>
2063
+
2064
+
2065
+
2066
+
2067
+
2068
+
2069
+
2070
+
2071
+
2072
+
2073
+ <dl class="details">
2074
+
2075
+
2076
+
2077
+
2078
+
2079
+
2080
+
2081
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
2082
+ <dd class="inherited-from">
2083
+ <ul class="dummy">
2084
+ <li>
2085
+ <a href="Worker.html#fetchLatestVersion">Worker#fetchLatestVersion</a>
2086
+ </li>
2087
+ </ul>
2088
+ </dd>
2089
+
2090
+
2091
+
2092
+
2093
+
2094
+
2095
+
2096
+
2097
+
2098
+
2099
+
2100
+
2101
+
2102
+
2103
+
2104
+
2105
+
2106
+
2107
+
2108
+
2109
+
2110
+
2111
+
2112
+
2113
+
2114
+
2115
+
2116
+
2117
+
2118
+ </dl>
2119
+
2120
+
2121
+
2122
+
2123
+
2124
+
2125
+
2126
+
2127
+
2128
+
2129
+
2130
+
2131
+
2132
+ <h5>Returns:</h5>
2133
+
2134
+
2135
+
2136
+
2137
+ <dl>
2138
+ <dt>
2139
+ Type
2140
+ </dt>
2141
+ <dd>
2142
+
2143
+ <span class="param-type">Promise.&lt;this&gt;</span>
2144
+
2145
+
2146
+
2147
+ </dd>
2148
+ </dl>
2149
+
2150
+
2151
+
2152
+
2153
+
2154
+ </dd>
2155
+
2156
+
2157
+
2158
+ <hr>
2159
+ <dt>
2160
+ <h4 class="name" id="getLogger"><span class="type-signature"></span>getLogger(prefix)</h4>
2161
+
2162
+
2163
+ </dt>
2164
+ <dd>
2165
+
2166
+
2167
+
2168
+
2169
+
2170
+
2171
+
2172
+
2173
+
2174
+ <h5>Parameters:</h5>
2175
+
2176
+
2177
+ <table class="params table table-striped">
2178
+ <thead>
2179
+ <tr>
2180
+
2181
+ <th>Name</th>
2182
+
2183
+
2184
+ <th>Type</th>
2185
+
2186
+
2187
+
2188
+
2189
+
2190
+ <th class="last">Description</th>
2191
+ </tr>
2192
+ </thead>
2193
+
2194
+ <tbody>
2195
+
2196
+
2197
+ <tr>
2198
+
2199
+ <td class="name"><code>prefix</code></td>
2200
+
2201
+
2202
+ <td class="type">
2203
+
2204
+
2205
+ <span class="param-type">string</span>
2206
+
2207
+
2208
+
2209
+
2210
+ </td>
2211
+
2212
+
2213
+
2214
+
2215
+
2216
+ <td class="description last"></td>
2217
+ </tr>
2218
+
2219
+
2220
+ </tbody>
2221
+ </table>
2222
+
2223
+
2224
+
2225
+
2226
+ <dl class="details">
2227
+
2228
+
2229
+
2230
+
2231
+
2232
+
2233
+
2234
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
2235
+ <dd class="inherited-from">
2236
+ <ul class="dummy">
2237
+ <li>
2238
+ <a href="Worker.html#getLogger">Worker#getLogger</a>
2239
+ </li>
2240
+ </ul>
2241
+ </dd>
2242
+
2243
+
2244
+
2245
+
2246
+
2247
+
2248
+
2249
+
2250
+
2251
+
2252
+
2253
+
2254
+
2255
+
2256
+
2257
+
2258
+
2259
+
2260
+
2261
+
2262
+
2263
+
2264
+
2265
+
2266
+
2267
+
2268
+
2269
+
2270
+
2271
+ </dl>
2272
+
2273
+
2274
+
2275
+
2276
+
2277
+
2278
+
2279
+
2280
+
2281
+
2282
+
2283
+
2284
+
2285
+ <h5>Returns:</h5>
2286
+
2287
+
2288
+
2289
+
2290
+ <dl>
2291
+ <dt>
2292
+ Type
2293
+ </dt>
2294
+ <dd>
2295
+
2296
+ <span class="param-type">Logger</span>
2297
+
2298
+
2299
+
2300
+ </dd>
2301
+ </dl>
2302
+
2303
+
2304
+
2305
+
2306
+
2307
+ </dd>
2308
+
2309
+
2310
+
2311
+ <hr>
2312
+ <dt>
2313
+ <h4 class="name" id="getRoutes"><span class="type-signature"></span>getRoutes()</h4>
2314
+
2315
+
2316
+ </dt>
2317
+ <dd>
2318
+
2319
+
2320
+
2321
+
2322
+
2323
+
2324
+
2325
+
2326
+
2327
+
2328
+
2329
+ <dl class="details">
2330
+
2331
+
2332
+
2333
+
2334
+
2335
+
2336
+
2337
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
2338
+ <dd class="inherited-from">
2339
+ <ul class="dummy">
2340
+ <li>
2341
+ <a href="Worker.html#getRoutes">Worker#getRoutes</a>
2342
+ </li>
2343
+ </ul>
2344
+ </dd>
2345
+
2346
+
2347
+
2348
+
2349
+
2350
+
2351
+
2352
+
2353
+
2354
+
2355
+
2356
+
2357
+
2358
+
2359
+
2360
+
2361
+
2362
+
2363
+
2364
+
2365
+
2366
+
2367
+
2368
+
2369
+
2370
+
2371
+
2372
+
2373
+
2374
+ </dl>
2375
+
2376
+
2377
+
2378
+
2379
+
2380
+
2381
+
2382
+
2383
+
2384
+
2385
+
2386
+
2387
+
2388
+ <h5>Returns:</h5>
2389
+
2390
+
2391
+
2392
+
2393
+ <dl>
2394
+ <dt>
2395
+ Type
2396
+ </dt>
2397
+ <dd>
2398
+
2399
+ <span class="param-type">Routes</span>
2400
+
2401
+
2402
+
2403
+ </dd>
2404
+ </dl>
2405
+
2406
+
2407
+
2408
+
2409
+
2410
+ </dd>
2411
+
2412
+
2413
+
2414
+ <hr>
2415
+ <dt>
2416
+ <h4 class="name" id="monitor"><span class="type-signature"></span>monitor(taskSid, reservationSid [, extraParams])</h4>
2417
+
2418
+
2419
+ </dt>
2420
+ <dd>
2421
+
2422
+
2423
+ <div class="description">
2424
+ <p>Add this <a href="Supervisor.html">Supervisor</a> to an ongoing <a href="Reservation.html">Reservation</a> by Sid.</p>
2425
+ </div>
2426
+
2427
+
2428
+
2429
+
2430
+
2431
+
2432
+
2433
+
2434
+ <h5>Parameters:</h5>
2435
+
2436
+
2437
+ <table class="params table table-striped">
2438
+ <thead>
2439
+ <tr>
2440
+
2441
+ <th>Name</th>
2442
+
2443
+
2444
+ <th>Type</th>
2445
+
2446
+
2447
+ <th>Argument</th>
2448
+
2449
+
2450
+
2451
+
2452
+ <th class="last">Description</th>
2453
+ </tr>
2454
+ </thead>
2455
+
2456
+ <tbody>
2457
+
2458
+
2459
+ <tr>
2460
+
2461
+ <td class="name"><code>taskSid</code></td>
2462
+
2463
+
2464
+ <td class="type">
2465
+
2466
+
2467
+ <span class="param-type">string</span>
2468
+
2469
+
2470
+
2471
+
2472
+ </td>
2473
+
2474
+
2475
+ <td class="attributes">
2476
+
2477
+
2478
+
2479
+
2480
+
2481
+ </td>
2482
+
2483
+
2484
+
2485
+
2486
+ <td class="description last"><p>The sid of the <a href="Task.html">Task</a> to add a monitor to.</p></td>
2487
+ </tr>
2488
+
2489
+
2490
+
2491
+ <tr>
2492
+
2493
+ <td class="name"><code>reservationSid</code></td>
2494
+
2495
+
2496
+ <td class="type">
2497
+
2498
+
2499
+ <span class="param-type">string</span>
2500
+
2501
+
2502
+
2503
+
2504
+ </td>
2505
+
2506
+
2507
+ <td class="attributes">
2508
+
2509
+
2510
+
2511
+
2512
+
2513
+ </td>
2514
+
2515
+
2516
+
2517
+
2518
+ <td class="description last"><p>The sid of the <a href="Reservation.html">Reservation</a> to add a monitor to.</p></td>
2519
+ </tr>
2520
+
2521
+
2522
+
2523
+ <tr>
2524
+
2525
+ <td class="name"><code>extraParams</code></td>
2526
+
2527
+
2528
+ <td class="type">
2529
+
2530
+
2531
+ <span class="param-type">Record.&lt;any, any&gt;</span>
2532
+
2533
+
2534
+
2535
+
2536
+ </td>
2537
+
2538
+
2539
+ <td class="attributes">
2540
+
2541
+ &lt;optional&gt;<br>
2542
+
2543
+
2544
+
2545
+
2546
+
2547
+ </td>
2548
+
2549
+
2550
+
2551
+
2552
+ <td class="description last"><p>An object containing extra params to append to the payload.</p></td>
2553
+ </tr>
2554
+
2555
+
2556
+ </tbody>
2557
+ </table>
2558
+
2559
+
2560
+
2561
+
2562
+ <dl class="details">
2563
+
2564
+
2565
+
2566
+
2567
+
2568
+
2569
+
2570
+
2571
+
2572
+
2573
+
2574
+
2575
+
2576
+
2577
+
2578
+
2579
+
2580
+
2581
+
2582
+
2583
+
2584
+
2585
+
2586
+
2587
+
2588
+
2589
+
2590
+
2591
+
2592
+
2593
+
2594
+
2595
+
2596
+
2597
+
2598
+ </dl>
2599
+
2600
+
2601
+
2602
+
2603
+
2604
+
2605
+
2606
+
2607
+
2608
+
2609
+
2610
+
2611
+
2612
+ <h5>Returns:</h5>
2613
+
2614
+
2615
+ <div class="param-desc">
2616
+ <p>Promise<void></void></p>
2617
+ </div>
2618
+
2619
+
2620
+
2621
+
2622
+
2623
+
2624
+
2625
+ </dd>
2626
+
2627
+
2628
+
2629
+ <hr>
2630
+ <dt>
2631
+ <h4 class="name" id="setAttributes"><span class="type-signature"></span>setAttributes(attributes)</h4>
2632
+
2633
+
2634
+ </dt>
2635
+ <dd>
2636
+
2637
+
2638
+ <div class="description">
2639
+ <p>Update attributes</p>
2640
+ </div>
2641
+
2642
+
2643
+
2644
+
2645
+
2646
+
2647
+
2648
+
2649
+ <h5>Parameters:</h5>
2650
+
2651
+
2652
+ <table class="params table table-striped">
2653
+ <thead>
2654
+ <tr>
2655
+
2656
+ <th>Name</th>
2657
+
2658
+
2659
+ <th>Type</th>
2660
+
2661
+
2662
+
2663
+
2664
+
2665
+ <th class="last">Description</th>
2666
+ </tr>
2667
+ </thead>
2668
+
2669
+ <tbody>
2670
+
2671
+
2672
+ <tr>
2673
+
2674
+ <td class="name"><code>attributes</code></td>
2675
+
2676
+
2677
+ <td class="type">
2678
+
2679
+
2680
+ <span class="param-type">Record.&lt;any, any&gt;</span>
2681
+
2682
+
2683
+
2684
+
2685
+ </td>
2686
+
2687
+
2688
+
2689
+
2690
+
2691
+ <td class="description last"><p>A JSON describing the Worker's attributes</p></td>
2692
+ </tr>
2693
+
2694
+
2695
+ </tbody>
2696
+ </table>
2697
+
2698
+
2699
+
2700
+
2701
+ <dl class="details">
2702
+
2703
+
2704
+
2705
+
2706
+
2707
+
2708
+
2709
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
2710
+ <dd class="inherited-from">
2711
+ <ul class="dummy">
2712
+ <li>
2713
+ <a href="Worker.html#setAttributes">Worker#setAttributes</a>
2714
+ </li>
2715
+ </ul>
2716
+ </dd>
2717
+
2718
+
2719
+
2720
+
2721
+
2722
+
2723
+
2724
+
2725
+
2726
+
2727
+
2728
+
2729
+
2730
+
2731
+
2732
+
2733
+
2734
+
2735
+
2736
+
2737
+
2738
+
2739
+
2740
+
2741
+
2742
+
2743
+
2744
+
2745
+
2746
+ </dl>
2747
+
2748
+
2749
+
2750
+
2751
+
2752
+
2753
+
2754
+
2755
+
2756
+
2757
+
2758
+
2759
+
2760
+ <h5>Returns:</h5>
2761
+
2762
+
2763
+ <div class="param-desc">
2764
+ <ul>
2765
+ <li>Rejected if the attributes cannot be set</li>
2766
+ </ul>
2767
+ </div>
2768
+
2769
+
2770
+
2771
+ <dl>
2772
+ <dt>
2773
+ Type
2774
+ </dt>
2775
+ <dd>
2776
+
2777
+ <span class="param-type">Promise.&lt;this&gt;</span>
2778
+
2779
+
2780
+
2781
+ </dd>
2782
+ </dl>
2783
+
2784
+
2785
+
2786
+
2787
+
2788
+ </dd>
2789
+
2790
+
2791
+
2792
+ <hr>
2793
+ <dt>
2794
+ <h4 class="name" id="updateToken"><span class="type-signature"></span>updateToken(newToken)</h4>
2795
+
2796
+
2797
+ </dt>
2798
+ <dd>
2799
+
2800
+
2801
+ <div class="description">
2802
+ <p>Update token</p>
2803
+ </div>
2804
+
2805
+
2806
+
2807
+
2808
+
2809
+
2810
+
2811
+
2812
+ <h5>Parameters:</h5>
2813
+
2814
+
2815
+ <table class="params table table-striped">
2816
+ <thead>
2817
+ <tr>
2818
+
2819
+ <th>Name</th>
2820
+
2821
+
2822
+ <th>Type</th>
2823
+
2824
+
2825
+
2826
+
2827
+
2828
+ <th class="last">Description</th>
2829
+ </tr>
2830
+ </thead>
2831
+
2832
+ <tbody>
2833
+
2834
+
2835
+ <tr>
2836
+
2837
+ <td class="name"><code>newToken</code></td>
2838
+
2839
+
2840
+ <td class="type">
2841
+
2842
+
2843
+ <span class="param-type">string</span>
2844
+
2845
+
2846
+
2847
+
2848
+ </td>
2849
+
2850
+
2851
+
2852
+
2853
+
2854
+ <td class="description last"><p>The new token that should be used for authentication</p></td>
2855
+ </tr>
2856
+
2857
+
2858
+ </tbody>
2859
+ </table>
2860
+
2861
+
2862
+
2863
+
2864
+ <dl class="details">
2865
+
2866
+
2867
+
2868
+
2869
+
2870
+
2871
+
2872
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
2873
+ <dd class="inherited-from">
2874
+ <ul class="dummy">
2875
+ <li>
2876
+ <a href="Worker.html#updateToken">Worker#updateToken</a>
2877
+ </li>
2878
+ </ul>
2879
+ </dd>
2880
+
2881
+
2882
+
2883
+
2884
+
2885
+
2886
+
2887
+
2888
+
2889
+
2890
+
2891
+
2892
+
2893
+
2894
+
2895
+
2896
+
2897
+
2898
+
2899
+
2900
+
2901
+
2902
+
2903
+
2904
+
2905
+
2906
+
2907
+
2908
+
2909
+ </dl>
2910
+
2911
+
2912
+
2913
+
2914
+
2915
+
2916
+
2917
+
2918
+
2919
+
2920
+
2921
+
2922
+
2923
+ <h5>Returns:</h5>
2924
+
2925
+
2926
+ <div class="param-desc">
2927
+ <ul>
2928
+ <li>Emits error if unable to update token</li>
2929
+ </ul>
2930
+ </div>
2931
+
2932
+
2933
+
2934
+ <dl>
2935
+ <dt>
2936
+ Type
2937
+ </dt>
2938
+ <dd>
2939
+
2940
+ <span class="param-type">void</span>
2941
+
2942
+
2943
+
2944
+ </dd>
2945
+ </dl>
2946
+
2947
+
2948
+
2949
+
2950
+
2951
+ </dd>
2952
+
2953
+ </dl>
2954
+
2955
+
2956
+
2957
+
2958
+
2959
+ <h3 class="subsection-title">Events</h3>
2960
+
2961
+ <dl>
2962
+
2963
+ <hr>
2964
+ <dt>
2965
+ <h4 class="name" id="event:activityUpdated">activityUpdated</h4>
2966
+
2967
+
2968
+ </dt>
2969
+ <dd>
2970
+
2971
+
2972
+ <div class="description">
2973
+ <p><a href="Worker.html">Worker</a> activity has updated</p>
2974
+ </div>
2975
+
2976
+
2977
+
2978
+
2979
+
2980
+
2981
+
2982
+
2983
+ <h5>Parameters:</h5>
2984
+
2985
+
2986
+ <table class="params table table-striped">
2987
+ <thead>
2988
+ <tr>
2989
+
2990
+ <th>Name</th>
2991
+
2992
+
2993
+ <th>Type</th>
2994
+
2995
+
2996
+
2997
+
2998
+
2999
+ <th class="last">Description</th>
3000
+ </tr>
3001
+ </thead>
3002
+
3003
+ <tbody>
3004
+
3005
+
3006
+ <tr>
3007
+
3008
+ <td class="name"><code>worker</code></td>
3009
+
3010
+
3011
+ <td class="type">
3012
+
3013
+
3014
+ <span class="param-type"><a href="Worker.html">Worker</a></span>
3015
+
3016
+
3017
+
3018
+
3019
+ </td>
3020
+
3021
+
3022
+
3023
+
3024
+
3025
+ <td class="description last"><p>The updated <a href="Worker.html">Worker</a></p></td>
3026
+ </tr>
3027
+
3028
+
3029
+ </tbody>
3030
+ </table>
3031
+
3032
+
3033
+
3034
+
3035
+ <dl class="details">
3036
+
3037
+
3038
+
3039
+
3040
+
3041
+
3042
+
3043
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
3044
+ <dd class="inherited-from">
3045
+ <ul class="dummy">
3046
+ <li>
3047
+ <a href="Worker.html#event:activityUpdated">Worker#event:activityUpdated</a>
3048
+ </li>
3049
+ </ul>
3050
+ </dd>
3051
+
3052
+
3053
+
3054
+
3055
+
3056
+
3057
+
3058
+
3059
+
3060
+
3061
+
3062
+
3063
+
3064
+
3065
+
3066
+
3067
+
3068
+
3069
+
3070
+
3071
+
3072
+
3073
+
3074
+
3075
+
3076
+
3077
+
3078
+
3079
+
3080
+ </dl>
3081
+
3082
+
3083
+
3084
+
3085
+
3086
+
3087
+
3088
+
3089
+
3090
+
3091
+
3092
+
3093
+
3094
+
3095
+
3096
+ </dd>
3097
+
3098
+
3099
+
3100
+ <hr>
3101
+ <dt>
3102
+ <h4 class="name" id="event:attributesUpdated">attributesUpdated</h4>
3103
+
3104
+
3105
+ </dt>
3106
+ <dd>
3107
+
3108
+
3109
+ <div class="description">
3110
+ <p><a href="Worker.html">Worker</a> attributes have updated</p>
3111
+ </div>
3112
+
3113
+
3114
+
3115
+
3116
+
3117
+
3118
+
3119
+
3120
+ <h5>Parameters:</h5>
3121
+
3122
+
3123
+ <table class="params table table-striped">
3124
+ <thead>
3125
+ <tr>
3126
+
3127
+ <th>Name</th>
3128
+
3129
+
3130
+ <th>Type</th>
3131
+
3132
+
3133
+
3134
+
3135
+
3136
+ <th class="last">Description</th>
3137
+ </tr>
3138
+ </thead>
3139
+
3140
+ <tbody>
3141
+
3142
+
3143
+ <tr>
3144
+
3145
+ <td class="name"><code>worker</code></td>
3146
+
3147
+
3148
+ <td class="type">
3149
+
3150
+
3151
+ <span class="param-type"><a href="Worker.html">Worker</a></span>
3152
+
3153
+
3154
+
3155
+
3156
+ </td>
3157
+
3158
+
3159
+
3160
+
3161
+
3162
+ <td class="description last"><p>The updated <a href="Worker.html">Worker</a></p></td>
3163
+ </tr>
3164
+
3165
+
3166
+ </tbody>
3167
+ </table>
3168
+
3169
+
3170
+
3171
+
3172
+ <dl class="details">
3173
+
3174
+
3175
+
3176
+
3177
+
3178
+
3179
+
3180
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
3181
+ <dd class="inherited-from">
3182
+ <ul class="dummy">
3183
+ <li>
3184
+ <a href="Worker.html#event:attributesUpdated">Worker#event:attributesUpdated</a>
3185
+ </li>
3186
+ </ul>
3187
+ </dd>
3188
+
3189
+
3190
+
3191
+
3192
+
3193
+
3194
+
3195
+
3196
+
3197
+
3198
+
3199
+
3200
+
3201
+
3202
+
3203
+
3204
+
3205
+
3206
+
3207
+
3208
+
3209
+
3210
+
3211
+
3212
+
3213
+
3214
+
3215
+
3216
+
3217
+ </dl>
3218
+
3219
+
3220
+
3221
+
3222
+
3223
+
3224
+
3225
+
3226
+
3227
+
3228
+
3229
+
3230
+
3231
+
3232
+
3233
+ </dd>
3234
+
3235
+
3236
+
3237
+ <hr>
3238
+ <dt>
3239
+ <h4 class="name" id="event:disconnected">disconnected</h4>
3240
+
3241
+
3242
+ </dt>
3243
+ <dd>
3244
+
3245
+
3246
+ <div class="description">
3247
+ <p>The signaling layer has lost the websocket connection</p>
3248
+ </div>
3249
+
3250
+
3251
+
3252
+
3253
+
3254
+
3255
+
3256
+
3257
+ <h5>Parameters:</h5>
3258
+
3259
+
3260
+ <table class="params table table-striped">
3261
+ <thead>
3262
+ <tr>
3263
+
3264
+ <th>Name</th>
3265
+
3266
+
3267
+ <th>Type</th>
3268
+
3269
+
3270
+
3271
+
3272
+
3273
+ <th class="last">Description</th>
3274
+ </tr>
3275
+ </thead>
3276
+
3277
+ <tbody>
3278
+
3279
+
3280
+ <tr>
3281
+
3282
+ <td class="name"><code>reason</code></td>
3283
+
3284
+
3285
+ <td class="type">
3286
+
3287
+
3288
+ <span class="param-type">Object</span>
3289
+
3290
+
3291
+
3292
+
3293
+ </td>
3294
+
3295
+
3296
+
3297
+
3298
+
3299
+ <td class="description last"><p>The reason the <a href="Worker.html">Worker</a> websocket disconnected</p></td>
3300
+ </tr>
3301
+
3302
+
3303
+ </tbody>
3304
+ </table>
3305
+
3306
+
3307
+
3308
+
3309
+ <dl class="details">
3310
+
3311
+
3312
+
3313
+
3314
+
3315
+
3316
+
3317
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
3318
+ <dd class="inherited-from">
3319
+ <ul class="dummy">
3320
+ <li>
3321
+ <a href="Worker.html#event:disconnected">Worker#event:disconnected</a>
3322
+ </li>
3323
+ </ul>
3324
+ </dd>
3325
+
3326
+
3327
+
3328
+
3329
+
3330
+
3331
+
3332
+
3333
+
3334
+
3335
+
3336
+
3337
+
3338
+
3339
+
3340
+
3341
+
3342
+
3343
+
3344
+
3345
+
3346
+
3347
+
3348
+
3349
+
3350
+
3351
+
3352
+
3353
+
3354
+ </dl>
3355
+
3356
+
3357
+
3358
+
3359
+
3360
+
3361
+
3362
+
3363
+
3364
+
3365
+
3366
+
3367
+
3368
+
3369
+
3370
+ </dd>
3371
+
3372
+
3373
+
3374
+ <hr>
3375
+ <dt>
3376
+ <h4 class="name" id="event:error">error</h4>
3377
+
3378
+
3379
+ </dt>
3380
+ <dd>
3381
+
3382
+
3383
+ <div class="description">
3384
+ <p>An error has occurred</p>
3385
+ </div>
3386
+
3387
+
3388
+
3389
+
3390
+
3391
+
3392
+
3393
+
3394
+ <h5>Parameters:</h5>
3395
+
3396
+
3397
+ <table class="params table table-striped">
3398
+ <thead>
3399
+ <tr>
3400
+
3401
+ <th>Name</th>
3402
+
3403
+
3404
+ <th>Type</th>
3405
+
3406
+
3407
+
3408
+
3409
+
3410
+ <th class="last">Description</th>
3411
+ </tr>
3412
+ </thead>
3413
+
3414
+ <tbody>
3415
+
3416
+
3417
+ <tr>
3418
+
3419
+ <td class="name"><code>error</code></td>
3420
+
3421
+
3422
+ <td class="type">
3423
+
3424
+
3425
+ <span class="param-type">Error</span>
3426
+
3427
+
3428
+
3429
+
3430
+ </td>
3431
+
3432
+
3433
+
3434
+
3435
+
3436
+ <td class="description last"><p>The Error that occurred</p></td>
3437
+ </tr>
3438
+
3439
+
3440
+ </tbody>
3441
+ </table>
3442
+
3443
+
3444
+
3445
+
3446
+ <dl class="details">
3447
+
3448
+
3449
+
3450
+
3451
+
3452
+
3453
+
3454
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
3455
+ <dd class="inherited-from">
3456
+ <ul class="dummy">
3457
+ <li>
3458
+ <a href="Worker.html#event:error">Worker#event:error</a>
3459
+ </li>
3460
+ </ul>
3461
+ </dd>
3462
+
3463
+
3464
+
3465
+
3466
+
3467
+
3468
+
3469
+
3470
+
3471
+
3472
+
3473
+
3474
+
3475
+
3476
+
3477
+
3478
+
3479
+
3480
+
3481
+
3482
+
3483
+
3484
+
3485
+
3486
+
3487
+
3488
+
3489
+
3490
+
3491
+ </dl>
3492
+
3493
+
3494
+
3495
+
3496
+
3497
+
3498
+
3499
+
3500
+
3501
+
3502
+
3503
+
3504
+
3505
+
3506
+
3507
+ </dd>
3508
+
3509
+
3510
+
3511
+ <hr>
3512
+ <dt>
3513
+ <h4 class="name" id="event:monitor">monitor</h4>
3514
+
3515
+
3516
+ </dt>
3517
+ <dd>
3518
+
3519
+
3520
+ <div class="description">
3521
+ <p>Add this <a href="Supervisor.html">Supervisor</a> to an ongoing <a href="Reservation.html">Reservation</a> by Sid.</p>
3522
+ </div>
3523
+
3524
+
3525
+
3526
+
3527
+
3528
+
3529
+
3530
+
3531
+ <h5>Parameters:</h5>
3532
+
3533
+
3534
+ <table class="params table table-striped">
3535
+ <thead>
3536
+ <tr>
3537
+
3538
+ <th>Name</th>
3539
+
3540
+
3541
+ <th>Type</th>
3542
+
3543
+
3544
+ <th>Argument</th>
3545
+
3546
+
3547
+
3548
+
3549
+ <th class="last">Description</th>
3550
+ </tr>
3551
+ </thead>
3552
+
3553
+ <tbody>
3554
+
3555
+
3556
+ <tr>
3557
+
3558
+ <td class="name"><code>taskSid</code></td>
3559
+
3560
+
3561
+ <td class="type">
3562
+
3563
+
3564
+ <span class="param-type">string</span>
3565
+
3566
+
3567
+
3568
+
3569
+ </td>
3570
+
3571
+
3572
+ <td class="attributes">
3573
+
3574
+
3575
+
3576
+
3577
+
3578
+ </td>
3579
+
3580
+
3581
+
3582
+
3583
+ <td class="description last"><p>The sid of the <a href="Task.html">Task</a> to add a monitor to.</p></td>
3584
+ </tr>
3585
+
3586
+
3587
+
3588
+ <tr>
3589
+
3590
+ <td class="name"><code>reservationSid</code></td>
3591
+
3592
+
3593
+ <td class="type">
3594
+
3595
+
3596
+ <span class="param-type">string</span>
3597
+
3598
+
3599
+
3600
+
3601
+ </td>
3602
+
3603
+
3604
+ <td class="attributes">
3605
+
3606
+
3607
+
3608
+
3609
+
3610
+ </td>
3611
+
3612
+
3613
+
3614
+
3615
+ <td class="description last"><p>The sid of the <a href="Reservation.html">Reservation</a> to add a monitor to.</p></td>
3616
+ </tr>
3617
+
3618
+
3619
+
3620
+ <tr>
3621
+
3622
+ <td class="name"><code>extraParams</code></td>
3623
+
3624
+
3625
+ <td class="type">
3626
+
3627
+
3628
+ <span class="param-type">Object</span>
3629
+
3630
+
3631
+
3632
+
3633
+ </td>
3634
+
3635
+
3636
+ <td class="attributes">
3637
+
3638
+ &lt;optional&gt;<br>
3639
+
3640
+
3641
+
3642
+
3643
+
3644
+ </td>
3645
+
3646
+
3647
+
3648
+
3649
+ <td class="description last"><p>An object containing extra params to append to the payload.</p></td>
3650
+ </tr>
3651
+
3652
+
3653
+ </tbody>
3654
+ </table>
3655
+
3656
+
3657
+
3658
+
3659
+ <dl class="details">
3660
+
3661
+
3662
+
3663
+
3664
+
3665
+
3666
+
3667
+
3668
+
3669
+
3670
+
3671
+
3672
+
3673
+
3674
+
3675
+
3676
+
3677
+
3678
+
3679
+
3680
+
3681
+
3682
+
3683
+
3684
+
3685
+
3686
+
3687
+
3688
+
3689
+
3690
+
3691
+
3692
+
3693
+
3694
+
3695
+ </dl>
3696
+
3697
+
3698
+
3699
+
3700
+
3701
+
3702
+
3703
+
3704
+
3705
+
3706
+
3707
+
3708
+
3709
+
3710
+
3711
+ </dd>
3712
+
3713
+
3714
+
3715
+ <hr>
3716
+ <dt>
3717
+ <h4 class="name" id="event:ready">ready</h4>
3718
+
3719
+
3720
+ </dt>
3721
+ <dd>
3722
+
3723
+
3724
+ <div class="description">
3725
+ <p><a href="Worker.html">Worker</a> is ready to listen for events and take action</p>
3726
+ </div>
3727
+
3728
+
3729
+
3730
+
3731
+
3732
+
3733
+
3734
+
3735
+
3736
+
3737
+ <dl class="details">
3738
+
3739
+
3740
+
3741
+
3742
+
3743
+
3744
+
3745
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
3746
+ <dd class="inherited-from">
3747
+ <ul class="dummy">
3748
+ <li>
3749
+ <a href="Worker.html#event:ready">Worker#event:ready</a>
3750
+ </li>
3751
+ </ul>
3752
+ </dd>
3753
+
3754
+
3755
+
3756
+
3757
+
3758
+
3759
+
3760
+
3761
+
3762
+
3763
+
3764
+
3765
+
3766
+
3767
+
3768
+
3769
+
3770
+
3771
+
3772
+
3773
+
3774
+
3775
+
3776
+
3777
+
3778
+
3779
+
3780
+
3781
+
3782
+ </dl>
3783
+
3784
+
3785
+
3786
+
3787
+
3788
+
3789
+
3790
+
3791
+
3792
+
3793
+
3794
+
3795
+
3796
+
3797
+
3798
+ </dd>
3799
+
3800
+
3801
+
3802
+ <hr>
3803
+ <dt>
3804
+ <h4 class="name" id="event:reservationCreated">reservationCreated</h4>
3805
+
3806
+
3807
+ </dt>
3808
+ <dd>
3809
+
3810
+
3811
+ <div class="description">
3812
+ <p>A <a href="Reservation.html">Reservation</a> has been created for the <a href="Worker.html">Worker</a></p>
3813
+ </div>
3814
+
3815
+
3816
+
3817
+
3818
+
3819
+
3820
+
3821
+
3822
+ <h5>Parameters:</h5>
3823
+
3824
+
3825
+ <table class="params table table-striped">
3826
+ <thead>
3827
+ <tr>
3828
+
3829
+ <th>Name</th>
3830
+
3831
+
3832
+ <th>Type</th>
3833
+
3834
+
3835
+
3836
+
3837
+
3838
+ <th class="last">Description</th>
3839
+ </tr>
3840
+ </thead>
3841
+
3842
+ <tbody>
3843
+
3844
+
3845
+ <tr>
3846
+
3847
+ <td class="name"><code>reservation</code></td>
3848
+
3849
+
3850
+ <td class="type">
3851
+
3852
+
3853
+ <span class="param-type"><a href="Reservation.html">Reservation</a></span>
3854
+
3855
+
3856
+
3857
+
3858
+ </td>
3859
+
3860
+
3861
+
3862
+
3863
+
3864
+ <td class="description last"><p>The created <a href="Reservation.html">Reservation</a></p></td>
3865
+ </tr>
3866
+
3867
+
3868
+ </tbody>
3869
+ </table>
3870
+
3871
+
3872
+
3873
+
3874
+ <dl class="details">
3875
+
3876
+
3877
+
3878
+
3879
+
3880
+
3881
+
3882
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
3883
+ <dd class="inherited-from">
3884
+ <ul class="dummy">
3885
+ <li>
3886
+ <a href="Worker.html#event:reservationCreated">Worker#event:reservationCreated</a>
3887
+ </li>
3888
+ </ul>
3889
+ </dd>
3890
+
3891
+
3892
+
3893
+
3894
+
3895
+
3896
+
3897
+
3898
+
3899
+
3900
+
3901
+
3902
+
3903
+
3904
+
3905
+
3906
+
3907
+
3908
+
3909
+
3910
+
3911
+
3912
+
3913
+
3914
+
3915
+
3916
+
3917
+
3918
+
3919
+ </dl>
3920
+
3921
+
3922
+
3923
+
3924
+
3925
+
3926
+
3927
+
3928
+
3929
+
3930
+
3931
+
3932
+
3933
+
3934
+
3935
+ </dd>
3936
+
3937
+
3938
+
3939
+ <hr>
3940
+ <dt>
3941
+ <h4 class="name" id="event:reservationFailed">reservationFailed</h4>
3942
+
3943
+
3944
+ </dt>
3945
+ <dd>
3946
+
3947
+
3948
+ <div class="description">
3949
+ <p><a href="Worker.html">Worker</a> was unable to receive a <a href="Reservation.html">Reservation</a> for the <a href="Task.html">Task</a> it created</p>
3950
+ </div>
3951
+
3952
+
3953
+
3954
+
3955
+
3956
+
3957
+
3958
+
3959
+ <h5>Parameters:</h5>
3960
+
3961
+
3962
+ <table class="params table table-striped">
3963
+ <thead>
3964
+ <tr>
3965
+
3966
+ <th>Name</th>
3967
+
3968
+
3969
+ <th>Type</th>
3970
+
3971
+
3972
+
3973
+
3974
+
3975
+ <th class="last">Description</th>
3976
+ </tr>
3977
+ </thead>
3978
+
3979
+ <tbody>
3980
+
3981
+
3982
+ <tr>
3983
+
3984
+ <td class="name"><code>task</code></td>
3985
+
3986
+
3987
+ <td class="type">
3988
+
3989
+
3990
+ <span class="param-type">Object</span>
3991
+
3992
+
3993
+
3994
+
3995
+ </td>
3996
+
3997
+
3998
+
3999
+
4000
+
4001
+ <td class="description last"><p>The raw Task-like payload that failed to generate a Reservation</p></td>
4002
+ </tr>
4003
+
4004
+
4005
+ </tbody>
4006
+ </table>
4007
+
4008
+
4009
+
4010
+
4011
+ <dl class="details">
4012
+
4013
+
4014
+
4015
+
4016
+
4017
+
4018
+
4019
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
4020
+ <dd class="inherited-from">
4021
+ <ul class="dummy">
4022
+ <li>
4023
+ <a href="Worker.html#event:reservationFailed">Worker#event:reservationFailed</a>
4024
+ </li>
4025
+ </ul>
4026
+ </dd>
4027
+
4028
+
4029
+
4030
+
4031
+
4032
+
4033
+
4034
+
4035
+
4036
+
4037
+
4038
+
4039
+
4040
+
4041
+
4042
+
4043
+
4044
+
4045
+
4046
+
4047
+
4048
+
4049
+
4050
+
4051
+
4052
+
4053
+
4054
+
4055
+
4056
+ </dl>
4057
+
4058
+
4059
+
4060
+
4061
+
4062
+
4063
+
4064
+
4065
+
4066
+
4067
+
4068
+
4069
+
4070
+
4071
+
4072
+ </dd>
4073
+
4074
+
4075
+
4076
+ <hr>
4077
+ <dt>
4078
+ <h4 class="name" id="event:tokenExpired">tokenExpired</h4>
4079
+
4080
+
4081
+ </dt>
4082
+ <dd>
4083
+
4084
+
4085
+ <div class="description">
4086
+ <p>The <a href="Worker.html">Worker</a> token has expired</p>
4087
+ </div>
4088
+
4089
+
4090
+
4091
+
4092
+
4093
+
4094
+
4095
+
4096
+
4097
+
4098
+ <dl class="details">
4099
+
4100
+
4101
+
4102
+
4103
+
4104
+
4105
+
4106
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
4107
+ <dd class="inherited-from">
4108
+ <ul class="dummy">
4109
+ <li>
4110
+ <a href="Worker.html#event:tokenExpired">Worker#event:tokenExpired</a>
4111
+ </li>
4112
+ </ul>
4113
+ </dd>
4114
+
4115
+
4116
+
4117
+
4118
+
4119
+
4120
+
4121
+
4122
+
4123
+
4124
+
4125
+
4126
+
4127
+
4128
+
4129
+
4130
+
4131
+
4132
+
4133
+
4134
+
4135
+
4136
+
4137
+
4138
+
4139
+
4140
+
4141
+
4142
+
4143
+ </dl>
4144
+
4145
+
4146
+
4147
+
4148
+
4149
+
4150
+
4151
+
4152
+
4153
+
4154
+
4155
+
4156
+
4157
+
4158
+
4159
+ </dd>
4160
+
4161
+
4162
+
4163
+ <hr>
4164
+ <dt>
4165
+ <h4 class="name" id="event:tokenUpdated">tokenUpdated</h4>
4166
+
4167
+
4168
+ </dt>
4169
+ <dd>
4170
+
4171
+
4172
+ <div class="description">
4173
+ <p>The <a href="Worker.html">Worker</a> token has successfully updated</p>
4174
+ </div>
4175
+
4176
+
4177
+
4178
+
4179
+
4180
+
4181
+
4182
+
4183
+
4184
+
4185
+ <dl class="details">
4186
+
4187
+
4188
+
4189
+
4190
+
4191
+
4192
+
4193
+ <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
4194
+ <dd class="inherited-from">
4195
+ <ul class="dummy">
4196
+ <li>
4197
+ <a href="Worker.html#event:tokenUpdated">Worker#event:tokenUpdated</a>
4198
+ </li>
4199
+ </ul>
4200
+ </dd>
4201
+
4202
+
4203
+
4204
+
4205
+
4206
+
4207
+
4208
+
4209
+
4210
+
4211
+
4212
+
4213
+
4214
+
4215
+
4216
+
4217
+
4218
+
4219
+
4220
+
4221
+
4222
+
4223
+
4224
+
4225
+
4226
+
4227
+
4228
+
4229
+
4230
+ </dl>
4231
+
4232
+
4233
+
4234
+
4235
+
4236
+
4237
+
4238
+
4239
+
4240
+
4241
+
4242
+
4243
+
4244
+
4245
+
4246
+ </dd>
4247
+
4248
+ </dl>
4249
+
4250
+ </article>
4251
+
4252
+ </section>
4253
+
4254
+
4255
+
4256
+
4257
+ </div>
4258
+ </div>
4259
+
4260
+ <div class="clearfix"></div>
4261
+
4262
+
4263
+ <div class="col-md-3">
4264
+ <div id="toc" class="col-md-3 hidden-xs hidden-sm hidden-md"></div>
4265
+ </div>
4266
+
4267
+
4268
+ </div>
4269
+ </div>
4270
+
4271
+
4272
+ <div class="modal fade" id="searchResults">
4273
+ <div class="modal-dialog">
4274
+ <div class="modal-content">
4275
+ <div class="modal-header">
4276
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
4277
+ <h4 class="modal-title">Search results</h4>
4278
+ </div>
4279
+ <div class="modal-body"></div>
4280
+ <div class="modal-footer">
4281
+ <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
4282
+ </div>
4283
+ </div><!-- /.modal-content -->
4284
+ </div><!-- /.modal-dialog -->
4285
+ </div>
4286
+
4287
+
4288
+ <footer>
4289
+
4290
+
4291
+ <span class="jsdoc-message">
4292
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a>
4293
+
4294
+ on 2023-08-01T08:45:21+00:00
4295
+
4296
+ using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
4297
+ </span>
4298
+ </footer>
4299
+
4300
+ <script src="scripts/docstrap.lib.js"></script>
4301
+ <script src="scripts/toc.js"></script>
4302
+
4303
+ <script type="text/javascript" src="scripts/fulltext-search-ui.js"></script>
4304
+
4305
+
4306
+ <script>
4307
+ $( function () {
4308
+ $( "[id*='$']" ).each( function () {
4309
+ var $this = $( this );
4310
+
4311
+ $this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
4312
+ } );
4313
+
4314
+ $( ".tutorial-section pre, .readme-section pre, pre.prettyprint.source" ).each( function () {
4315
+ var $this = $( this );
4316
+
4317
+ var example = $this.find( "code" );
4318
+ exampleText = example.html();
4319
+ var lang = /{@lang (.*?)}/.exec( exampleText );
4320
+ if ( lang && lang[1] ) {
4321
+ exampleText = exampleText.replace( lang[0], "" );
4322
+ example.html( exampleText );
4323
+ lang = lang[1];
4324
+ } else {
4325
+ var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
4326
+ lang = langClassMatch ? langClassMatch[1] : "javascript";
4327
+ }
4328
+
4329
+ if ( lang ) {
4330
+
4331
+ $this
4332
+ .addClass( "sunlight-highlight-" + lang )
4333
+ .addClass( "linenums" )
4334
+ .html( example.html() );
4335
+
4336
+ }
4337
+ } );
4338
+
4339
+ Sunlight.highlightAll( {
4340
+ lineNumbers : false,
4341
+ showMenu : true,
4342
+ enableDoclinks : true
4343
+ } );
4344
+
4345
+ $.catchAnchorLinks( {
4346
+ navbarOffset: 10
4347
+ } );
4348
+ $( "#toc" ).toc( {
4349
+ anchorName : function ( i, heading, prefix ) {
4350
+ return $( heading ).attr( "id" ) || ( prefix + i );
4351
+ },
4352
+ selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4",
4353
+ showAndHide : false,
4354
+ smoothScrolling: true
4355
+ } );
4356
+
4357
+ $( "#main span[id^='toc']" ).addClass( "toc-shim" );
4358
+ $( '.dropdown-toggle' ).dropdown();
4359
+
4360
+ $( "table" ).each( function () {
4361
+ var $this = $( this );
4362
+ $this.addClass('table');
4363
+ } );
4364
+
4365
+ } );
4366
+ </script>
4367
+
4368
+
4369
+
4370
+ <!--Navigation and Symbol Display-->
4371
+
4372
+
4373
+ <!--Google Analytics-->
4374
+
4375
+
4376
+
4377
+ <script type="text/javascript">
4378
+ $(document).ready(function() {
4379
+ SearcherDisplay.init();
4380
+ });
4381
+ </script>
4382
+
4383
+
4384
+
4385
+ </body></html>