@dmarket/p2p-tracker-headless 1.1.0-beta → 1.2.0-beta
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.
- package/dmarket-p2p-tracker-core-domain.mjs +5603 -4360
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +3385 -2726
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-coroutines-core.mjs +2869 -2866
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +32 -32
- package/kotlinx-io-kotlinx-io-core.mjs +455 -455
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1889 -1888
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1666 -1654
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/ktor-ktor-client-core.mjs +3008 -3008
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-events.mjs +6 -6
- package/ktor-ktor-http-cio.mjs +482 -482
- package/ktor-ktor-http.mjs +663 -658
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +1038 -1038
- package/ktor-ktor-io.mjs.map +1 -1
- package/ktor-ktor-utils.mjs +783 -783
- package/ktor-ktor-websockets.mjs +748 -748
- package/ktor-ktor-websockets.mjs.map +1 -1
- package/p2p-tracker-core.mjs +20883 -16668
- package/p2p-tracker-core.mjs.map +1 -1
- package/p2p-tracker-headless.mjs +1280 -1280
- package/package.json +1 -1
package/ktor-ktor-websockets.mjs
CHANGED
|
@@ -119,7 +119,7 @@ initMetadataForClass(Codes, 'Codes', VOID, Enum);
|
|
|
119
119
|
initMetadataForCompanion(Companion_0);
|
|
120
120
|
initMetadataForClass(CloseReason, 'CloseReason');
|
|
121
121
|
function send(frame, $completion) {
|
|
122
|
-
return this.
|
|
122
|
+
return this.o3m().s1g(frame, $completion);
|
|
123
123
|
}
|
|
124
124
|
initMetadataForInterface(WebSocketSession, 'WebSocketSession', VOID, VOID, [CoroutineScope], [1, 0]);
|
|
125
125
|
initMetadataForInterface(DefaultWebSocketSession, 'DefaultWebSocketSession', VOID, VOID, [WebSocketSession], [1, 0]);
|
|
@@ -183,14 +183,14 @@ function Companion() {
|
|
|
183
183
|
var _iterator__ex2g4s = this_0.t();
|
|
184
184
|
while (_iterator__ex2g4s.u()) {
|
|
185
185
|
var element = _iterator__ex2g4s.v();
|
|
186
|
-
var tmp$ret$2 = element.
|
|
187
|
-
destination.
|
|
186
|
+
var tmp$ret$2 = element.s3l_1;
|
|
187
|
+
destination.a3(tmp$ret$2, element);
|
|
188
188
|
}
|
|
189
|
-
tmp.
|
|
190
|
-
this.
|
|
189
|
+
tmp.t3l_1 = destination;
|
|
190
|
+
this.u3l_1 = Codes_INTERNAL_ERROR_getInstance();
|
|
191
191
|
}
|
|
192
|
-
protoOf(Companion).
|
|
193
|
-
return this.
|
|
192
|
+
protoOf(Companion).v3l = function (code) {
|
|
193
|
+
return this.t3l_1.x2(code);
|
|
194
194
|
};
|
|
195
195
|
var Companion_instance;
|
|
196
196
|
function Companion_getInstance() {
|
|
@@ -228,7 +228,7 @@ function Codes_initEntries() {
|
|
|
228
228
|
}
|
|
229
229
|
var $ENTRIES;
|
|
230
230
|
function CloseReason_init_$Init$(code, message, $this) {
|
|
231
|
-
CloseReason.call($this, code.
|
|
231
|
+
CloseReason.call($this, code.s3l_1, message);
|
|
232
232
|
return $this;
|
|
233
233
|
}
|
|
234
234
|
function CloseReason_init_$Create$(code, message) {
|
|
@@ -236,7 +236,7 @@ function CloseReason_init_$Create$(code, message) {
|
|
|
236
236
|
}
|
|
237
237
|
function Codes(name, ordinal, code) {
|
|
238
238
|
Enum.call(this, name, ordinal);
|
|
239
|
-
this.
|
|
239
|
+
this.s3l_1 = code;
|
|
240
240
|
}
|
|
241
241
|
function Companion_0() {
|
|
242
242
|
}
|
|
@@ -293,25 +293,25 @@ function Codes_TRY_AGAIN_LATER_getInstance() {
|
|
|
293
293
|
return Codes_TRY_AGAIN_LATER_instance;
|
|
294
294
|
}
|
|
295
295
|
function CloseReason(code, message) {
|
|
296
|
-
this.
|
|
297
|
-
this.
|
|
298
|
-
var size = utf8Size(this.
|
|
296
|
+
this.w3l_1 = code;
|
|
297
|
+
this.x3l_1 = message;
|
|
298
|
+
var size = utf8Size(this.x3l_1);
|
|
299
299
|
// Inline function 'kotlin.require' call
|
|
300
300
|
if (!(size <= 123)) {
|
|
301
301
|
var message_0 = 'Close reason message is too long: ' + size + ' bytes, but must not exceed ' + '123 bytes when UTF-8-encoded';
|
|
302
302
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
-
protoOf(CloseReason).
|
|
306
|
-
return Companion_getInstance().
|
|
305
|
+
protoOf(CloseReason).y3l = function () {
|
|
306
|
+
return Companion_getInstance().v3l(this.w3l_1);
|
|
307
307
|
};
|
|
308
308
|
protoOf(CloseReason).toString = function () {
|
|
309
|
-
var tmp0_elvis_lhs = this.
|
|
310
|
-
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.
|
|
309
|
+
var tmp0_elvis_lhs = this.y3l();
|
|
310
|
+
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.w3l_1 : tmp0_elvis_lhs) + ', message=' + this.x3l_1 + ')';
|
|
311
311
|
};
|
|
312
312
|
protoOf(CloseReason).hashCode = function () {
|
|
313
|
-
var result = this.
|
|
314
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
313
|
+
var result = this.w3l_1;
|
|
314
|
+
result = imul(result, 31) + getStringHashCode(this.x3l_1) | 0;
|
|
315
315
|
return result;
|
|
316
316
|
};
|
|
317
317
|
protoOf(CloseReason).equals = function (other) {
|
|
@@ -319,9 +319,9 @@ protoOf(CloseReason).equals = function (other) {
|
|
|
319
319
|
return true;
|
|
320
320
|
if (!(other instanceof CloseReason))
|
|
321
321
|
return false;
|
|
322
|
-
if (!(this.
|
|
322
|
+
if (!(this.w3l_1 === other.w3l_1))
|
|
323
323
|
return false;
|
|
324
|
-
if (!(this.
|
|
324
|
+
if (!(this.x3l_1 === other.x3l_1))
|
|
325
325
|
return false;
|
|
326
326
|
return true;
|
|
327
327
|
};
|
|
@@ -355,8 +355,8 @@ function utf8ByteCountAt(_this__u8e3s4, index) {
|
|
|
355
355
|
}
|
|
356
356
|
function validateSize(_this__u8e3s4) {
|
|
357
357
|
// Inline function 'kotlin.require' call
|
|
358
|
-
if (!(!_this__u8e3s4.
|
|
359
|
-
var message = 'Control frames must not exceed 125 bytes per RFC 6455, ' + ('but ' + _this__u8e3s4.
|
|
358
|
+
if (!(!_this__u8e3s4.e3m_1.b3m_1 || _this__u8e3s4.f3m_1.length <= 125)) {
|
|
359
|
+
var message = 'Control frames must not exceed 125 bytes per RFC 6455, ' + ('but ' + _this__u8e3s4.e3m_1.toString() + ' frame has ' + _this__u8e3s4.f3m_1.length + ' bytes');
|
|
360
360
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
361
361
|
}
|
|
362
362
|
}
|
|
@@ -386,98 +386,98 @@ function DefaultWebSocketSession() {
|
|
|
386
386
|
function DefaultWebSocketSession_0(session, pingIntervalMillis, timeoutMillis, channelsConfig) {
|
|
387
387
|
pingIntervalMillis = pingIntervalMillis === VOID ? new Long(0, 0) : pingIntervalMillis;
|
|
388
388
|
timeoutMillis = timeoutMillis === VOID ? new Long(15000, 0) : timeoutMillis;
|
|
389
|
-
channelsConfig = channelsConfig === VOID ? Companion_getInstance_3().
|
|
389
|
+
channelsConfig = channelsConfig === VOID ? Companion_getInstance_3().q3m_1 : channelsConfig;
|
|
390
390
|
_init_properties_DefaultWebSocketSession_kt__469s0y();
|
|
391
391
|
// Inline function 'kotlin.require' call
|
|
392
392
|
if (!!isInterface(session, DefaultWebSocketSession)) {
|
|
393
393
|
var message = 'Cannot wrap other DefaultWebSocketSession';
|
|
394
394
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
395
395
|
}
|
|
396
|
-
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.
|
|
396
|
+
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.r3m_1, channelsConfig.s3m_1);
|
|
397
397
|
}
|
|
398
398
|
function runIncomingProcessor($this, ponger) {
|
|
399
|
-
var tmp = get_IncomingProcessorCoroutineName().
|
|
399
|
+
var tmp = get_IncomingProcessorCoroutineName().sk(Dispatchers_getInstance().l1a_1);
|
|
400
400
|
return launch($this, tmp, VOID, DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0($this, ponger, null));
|
|
401
401
|
}
|
|
402
402
|
function runOutgoingProcessor($this) {
|
|
403
|
-
var tmp = get_OutgoingProcessorCoroutineName().
|
|
403
|
+
var tmp = get_OutgoingProcessorCoroutineName().sk(Dispatchers_getInstance().l1a_1);
|
|
404
404
|
var tmp_0 = CoroutineStart_UNDISPATCHED_getInstance();
|
|
405
405
|
return launch($this, tmp, tmp_0, DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0($this, null));
|
|
406
406
|
}
|
|
407
407
|
function outgoingProcessorLoop($this, $completion) {
|
|
408
408
|
var tmp = new $outgoingProcessorLoopCOROUTINE$($this, $completion);
|
|
409
|
-
tmp.
|
|
410
|
-
tmp.
|
|
411
|
-
return tmp.
|
|
409
|
+
tmp.k9_1 = Unit_instance;
|
|
410
|
+
tmp.l9_1 = null;
|
|
411
|
+
return tmp.q9();
|
|
412
412
|
}
|
|
413
413
|
function sendCloseSequence($this, reason, exception, $completion) {
|
|
414
414
|
exception = exception === VOID ? null : exception;
|
|
415
415
|
var tmp = new $sendCloseSequenceCOROUTINE$($this, reason, exception, $completion);
|
|
416
|
-
tmp.
|
|
417
|
-
tmp.
|
|
418
|
-
return tmp.
|
|
416
|
+
tmp.k9_1 = Unit_instance;
|
|
417
|
+
tmp.l9_1 = null;
|
|
418
|
+
return tmp.q9();
|
|
419
419
|
}
|
|
420
420
|
function tryClose($this) {
|
|
421
|
-
return $this.
|
|
421
|
+
return $this.x3n_1.atomicfu$compareAndSet(false, true);
|
|
422
422
|
}
|
|
423
423
|
function runOrCancelPinger($this) {
|
|
424
|
-
var interval = $this.
|
|
424
|
+
var interval = $this.a3o_1;
|
|
425
425
|
var tmp;
|
|
426
|
-
if ($this.
|
|
426
|
+
if ($this.x3n_1.kotlinx$atomicfu$value) {
|
|
427
427
|
tmp = null;
|
|
428
428
|
} else if (compare(interval, new Long(0, 0)) > 0) {
|
|
429
|
-
var tmp_0 = $this.
|
|
430
|
-
var tmp_1 = $this.
|
|
429
|
+
var tmp_0 = $this.q3n_1.o3m();
|
|
430
|
+
var tmp_1 = $this.b3o_1;
|
|
431
431
|
tmp = pinger($this, tmp_0, interval, tmp_1, DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0($this, null));
|
|
432
432
|
} else {
|
|
433
433
|
tmp = null;
|
|
434
434
|
}
|
|
435
435
|
var newPinger = tmp;
|
|
436
|
-
var tmp0_safe_receiver = $this.
|
|
436
|
+
var tmp0_safe_receiver = $this.r3n_1.atomicfu$getAndSet(newPinger);
|
|
437
437
|
if (tmp0_safe_receiver == null)
|
|
438
438
|
null;
|
|
439
439
|
else
|
|
440
|
-
tmp0_safe_receiver.
|
|
441
|
-
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.
|
|
440
|
+
tmp0_safe_receiver.z1g();
|
|
441
|
+
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.t1g(Companion_getInstance_1().d3o_1));
|
|
442
442
|
if (tmp2_safe_receiver == null)
|
|
443
443
|
null;
|
|
444
444
|
else
|
|
445
|
-
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.
|
|
446
|
-
if ($this.
|
|
445
|
+
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.d1f_1);
|
|
446
|
+
if ($this.x3n_1.kotlinx$atomicfu$value && !(newPinger == null)) {
|
|
447
447
|
runOrCancelPinger($this);
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
function checkMaxFrameSize($this, packet, frame, $completion) {
|
|
451
451
|
var tmp = new $checkMaxFrameSizeCOROUTINE$($this, packet, frame, $completion);
|
|
452
|
-
tmp.
|
|
453
|
-
tmp.
|
|
454
|
-
return tmp.
|
|
452
|
+
tmp.k9_1 = Unit_instance;
|
|
453
|
+
tmp.l9_1 = null;
|
|
454
|
+
return tmp.q9();
|
|
455
455
|
}
|
|
456
456
|
function processIncomingExtensions($this, frame) {
|
|
457
457
|
// Inline function 'kotlin.collections.fold' call
|
|
458
458
|
var accumulator = frame;
|
|
459
|
-
var _iterator__ex2g4s = $this.
|
|
459
|
+
var _iterator__ex2g4s = $this.q3o().t();
|
|
460
460
|
while (_iterator__ex2g4s.u()) {
|
|
461
461
|
var element = _iterator__ex2g4s.v();
|
|
462
462
|
var current = accumulator;
|
|
463
|
-
accumulator = element.
|
|
463
|
+
accumulator = element.r3o(current);
|
|
464
464
|
}
|
|
465
465
|
return accumulator;
|
|
466
466
|
}
|
|
467
467
|
function processOutgoingExtensions($this, frame) {
|
|
468
468
|
// Inline function 'kotlin.collections.fold' call
|
|
469
469
|
var accumulator = frame;
|
|
470
|
-
var _iterator__ex2g4s = $this.
|
|
470
|
+
var _iterator__ex2g4s = $this.q3o().t();
|
|
471
471
|
while (_iterator__ex2g4s.u()) {
|
|
472
472
|
var element = _iterator__ex2g4s.v();
|
|
473
473
|
var current = accumulator;
|
|
474
|
-
accumulator = element.
|
|
474
|
+
accumulator = element.s3o(current);
|
|
475
475
|
}
|
|
476
476
|
return accumulator;
|
|
477
477
|
}
|
|
478
478
|
function Companion_1() {
|
|
479
479
|
Companion_instance_1 = this;
|
|
480
|
-
this.
|
|
480
|
+
this.d3o_1 = new Pong(new Int8Array(0), NonDisposableHandle_instance);
|
|
481
481
|
}
|
|
482
482
|
var Companion_instance_1;
|
|
483
483
|
function Companion_getInstance_1() {
|
|
@@ -486,128 +486,128 @@ function Companion_getInstance_1() {
|
|
|
486
486
|
return Companion_instance_1;
|
|
487
487
|
}
|
|
488
488
|
function DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
489
|
-
this.
|
|
490
|
-
this.
|
|
491
|
-
this.
|
|
489
|
+
this.b3p_1 = $incomingJob;
|
|
490
|
+
this.c3p_1 = $outgoingJob;
|
|
491
|
+
this.d3p_1 = this$0;
|
|
492
492
|
CoroutineImpl.call(this, resultContinuation);
|
|
493
493
|
}
|
|
494
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
495
|
-
var tmp = this.
|
|
496
|
-
tmp.
|
|
497
|
-
tmp.
|
|
498
|
-
return tmp.
|
|
494
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).w1o = function ($this$launch, $completion) {
|
|
495
|
+
var tmp = this.x1o($this$launch, $completion);
|
|
496
|
+
tmp.k9_1 = Unit_instance;
|
|
497
|
+
tmp.l9_1 = null;
|
|
498
|
+
return tmp.q9();
|
|
499
499
|
};
|
|
500
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
501
|
-
return this.
|
|
500
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).da = function (p1, $completion) {
|
|
501
|
+
return this.w1o((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
502
502
|
};
|
|
503
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
504
|
-
var suspendResult = this.
|
|
503
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).q9 = function () {
|
|
504
|
+
var suspendResult = this.k9_1;
|
|
505
505
|
$sm: do
|
|
506
506
|
try {
|
|
507
|
-
var tmp = this.
|
|
507
|
+
var tmp = this.i9_1;
|
|
508
508
|
switch (tmp) {
|
|
509
509
|
case 0:
|
|
510
|
-
this.
|
|
511
|
-
this.
|
|
512
|
-
suspendResult = this.
|
|
510
|
+
this.j9_1 = 3;
|
|
511
|
+
this.i9_1 = 1;
|
|
512
|
+
suspendResult = this.b3p_1.az(this);
|
|
513
513
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
514
514
|
return suspendResult;
|
|
515
515
|
}
|
|
516
516
|
|
|
517
517
|
continue $sm;
|
|
518
518
|
case 1:
|
|
519
|
-
this.
|
|
520
|
-
suspendResult = this.
|
|
519
|
+
this.i9_1 = 2;
|
|
520
|
+
suspendResult = this.c3p_1.az(this);
|
|
521
521
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
522
522
|
return suspendResult;
|
|
523
523
|
}
|
|
524
524
|
|
|
525
525
|
continue $sm;
|
|
526
526
|
case 2:
|
|
527
|
-
this.
|
|
527
|
+
this.d3p_1.t3n_1.ez();
|
|
528
528
|
return Unit_instance;
|
|
529
529
|
case 3:
|
|
530
|
-
throw this.
|
|
530
|
+
throw this.l9_1;
|
|
531
531
|
}
|
|
532
532
|
} catch ($p) {
|
|
533
533
|
var e = $p;
|
|
534
|
-
if (this.
|
|
534
|
+
if (this.j9_1 === 3) {
|
|
535
535
|
throw e;
|
|
536
536
|
} else {
|
|
537
|
-
this.
|
|
538
|
-
this.
|
|
537
|
+
this.i9_1 = this.j9_1;
|
|
538
|
+
this.l9_1 = e;
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
while (true);
|
|
542
542
|
};
|
|
543
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
544
|
-
var i = new DefaultWebSocketSessionImpl$start$slambda(this.
|
|
545
|
-
i.
|
|
543
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).x1o = function ($this$launch, completion) {
|
|
544
|
+
var i = new DefaultWebSocketSessionImpl$start$slambda(this.b3p_1, this.c3p_1, this.d3p_1, completion);
|
|
545
|
+
i.e3p_1 = $this$launch;
|
|
546
546
|
return i;
|
|
547
547
|
};
|
|
548
548
|
function DefaultWebSocketSessionImpl$start$slambda_0($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
549
549
|
var i = new DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation);
|
|
550
550
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
551
|
-
return i.
|
|
551
|
+
return i.w1o($this$launch, $completion);
|
|
552
552
|
}, 1);
|
|
553
553
|
}
|
|
554
554
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation) {
|
|
555
|
-
this.
|
|
556
|
-
this.
|
|
555
|
+
this.n3p_1 = this$0;
|
|
556
|
+
this.o3p_1 = $ponger;
|
|
557
557
|
CoroutineImpl.call(this, resultContinuation);
|
|
558
558
|
}
|
|
559
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
560
|
-
var tmp = this.
|
|
561
|
-
tmp.
|
|
562
|
-
tmp.
|
|
563
|
-
return tmp.
|
|
559
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).w1o = function ($this$launch, $completion) {
|
|
560
|
+
var tmp = this.x1o($this$launch, $completion);
|
|
561
|
+
tmp.k9_1 = Unit_instance;
|
|
562
|
+
tmp.l9_1 = null;
|
|
563
|
+
return tmp.q9();
|
|
564
564
|
};
|
|
565
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
566
|
-
return this.
|
|
565
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).da = function (p1, $completion) {
|
|
566
|
+
return this.w1o((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
567
567
|
};
|
|
568
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
569
|
-
var suspendResult = this.
|
|
568
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).q9 = function () {
|
|
569
|
+
var suspendResult = this.k9_1;
|
|
570
570
|
$sm: do
|
|
571
571
|
try {
|
|
572
|
-
var tmp = this.
|
|
572
|
+
var tmp = this.i9_1;
|
|
573
573
|
switch (tmp) {
|
|
574
574
|
case 0:
|
|
575
|
-
this.
|
|
576
|
-
this.
|
|
577
|
-
this.
|
|
578
|
-
this.
|
|
579
|
-
this.
|
|
580
|
-
this.
|
|
575
|
+
this.j9_1 = 39;
|
|
576
|
+
this.z3p_1 = null;
|
|
577
|
+
this.s3p_1 = null;
|
|
578
|
+
this.r3p_1 = false;
|
|
579
|
+
this.t3p_1 = Unit_instance;
|
|
580
|
+
this.i9_1 = 1;
|
|
581
581
|
continue $sm;
|
|
582
582
|
case 1:
|
|
583
|
-
this.
|
|
583
|
+
this.i9_1 = 2;
|
|
584
584
|
continue $sm;
|
|
585
585
|
case 2:
|
|
586
|
-
this.
|
|
587
|
-
this.
|
|
588
|
-
this.
|
|
589
|
-
this.
|
|
586
|
+
this.j9_1 = 33;
|
|
587
|
+
this.j9_1 = 32;
|
|
588
|
+
this.d3q_1 = this.n3p_1.q3n_1.n3m();
|
|
589
|
+
this.i9_1 = 3;
|
|
590
590
|
continue $sm;
|
|
591
591
|
case 3:
|
|
592
|
-
this.
|
|
593
|
-
this.
|
|
594
|
-
this.
|
|
592
|
+
this.w3p_1 = this.d3q_1;
|
|
593
|
+
this.v3p_1 = null;
|
|
594
|
+
this.i9_1 = 4;
|
|
595
595
|
continue $sm;
|
|
596
596
|
case 4:
|
|
597
|
-
this.
|
|
597
|
+
this.i9_1 = 5;
|
|
598
598
|
continue $sm;
|
|
599
599
|
case 5:
|
|
600
|
-
this.
|
|
600
|
+
this.i9_1 = 6;
|
|
601
601
|
continue $sm;
|
|
602
602
|
case 6:
|
|
603
|
-
this.
|
|
604
|
-
this.
|
|
605
|
-
this.
|
|
606
|
-
this.
|
|
603
|
+
this.j9_1 = 29;
|
|
604
|
+
this.j9_1 = 28;
|
|
605
|
+
this.c3q_1 = this.w3p_1.t();
|
|
606
|
+
this.i9_1 = 7;
|
|
607
607
|
continue $sm;
|
|
608
608
|
case 7:
|
|
609
|
-
this.
|
|
610
|
-
suspendResult = this.
|
|
609
|
+
this.i9_1 = 8;
|
|
610
|
+
suspendResult = this.c3q_1.v1e(this);
|
|
611
611
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
612
612
|
return suspendResult;
|
|
613
613
|
}
|
|
@@ -615,46 +615,46 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).o9 = function
|
|
|
615
615
|
continue $sm;
|
|
616
616
|
case 8:
|
|
617
617
|
if (!suspendResult) {
|
|
618
|
-
this.
|
|
618
|
+
this.i9_1 = 26;
|
|
619
619
|
continue $sm;
|
|
620
620
|
}
|
|
621
621
|
|
|
622
|
-
var e = this.
|
|
623
|
-
this.
|
|
624
|
-
this.
|
|
622
|
+
var e = this.c3q_1.v();
|
|
623
|
+
this.b3q_1 = e;
|
|
624
|
+
this.i9_1 = 9;
|
|
625
625
|
continue $sm;
|
|
626
626
|
case 9:
|
|
627
|
-
this.
|
|
627
|
+
this.a3q_1 = this.b3q_1;
|
|
628
628
|
var this_0 = get_LOGGER();
|
|
629
629
|
if (get_isTraceEnabled(this_0)) {
|
|
630
|
-
this_0.
|
|
630
|
+
this_0.c32('WebSocketSession(' + toString(this.p3p_1) + ') receiving frame ' + this.a3q_1.toString());
|
|
631
631
|
}
|
|
632
632
|
|
|
633
|
-
var tmp0_subject = this.
|
|
633
|
+
var tmp0_subject = this.a3q_1;
|
|
634
634
|
if (tmp0_subject instanceof Close) {
|
|
635
|
-
if (!this.
|
|
636
|
-
this.
|
|
637
|
-
var tmp_0 = this.
|
|
638
|
-
var tmp1_elvis_lhs = readReason(this.
|
|
639
|
-
suspendResult = tmp_0.
|
|
635
|
+
if (!this.n3p_1.o3m().x1e()) {
|
|
636
|
+
this.i9_1 = 18;
|
|
637
|
+
var tmp_0 = this.n3p_1.o3m();
|
|
638
|
+
var tmp1_elvis_lhs = readReason(this.a3q_1);
|
|
639
|
+
suspendResult = tmp_0.s1g(Close_init_$Create$(tmp1_elvis_lhs == null ? get_NORMAL_CLOSE() : tmp1_elvis_lhs), this);
|
|
640
640
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
641
641
|
return suspendResult;
|
|
642
642
|
}
|
|
643
643
|
continue $sm;
|
|
644
644
|
} else {
|
|
645
|
-
this.
|
|
645
|
+
this.i9_1 = 19;
|
|
646
646
|
continue $sm;
|
|
647
647
|
}
|
|
648
648
|
} else {
|
|
649
649
|
if (tmp0_subject instanceof Pong) {
|
|
650
|
-
var tmp2_safe_receiver = this.
|
|
650
|
+
var tmp2_safe_receiver = this.n3p_1.r3n_1.kotlinx$atomicfu$value;
|
|
651
651
|
if (tmp2_safe_receiver == null) {
|
|
652
|
-
this.
|
|
653
|
-
this.
|
|
652
|
+
this.y3p_1 = null;
|
|
653
|
+
this.i9_1 = 17;
|
|
654
654
|
continue $sm;
|
|
655
655
|
} else {
|
|
656
|
-
this.
|
|
657
|
-
suspendResult = tmp2_safe_receiver.
|
|
656
|
+
this.i9_1 = 16;
|
|
657
|
+
suspendResult = tmp2_safe_receiver.s1g(this.a3q_1, this);
|
|
658
658
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
659
659
|
return suspendResult;
|
|
660
660
|
}
|
|
@@ -662,15 +662,15 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).o9 = function
|
|
|
662
662
|
}
|
|
663
663
|
} else {
|
|
664
664
|
if (tmp0_subject instanceof Ping) {
|
|
665
|
-
this.
|
|
666
|
-
suspendResult = this.
|
|
665
|
+
this.i9_1 = 15;
|
|
666
|
+
suspendResult = this.o3p_1.s1g(this.a3q_1, this);
|
|
667
667
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
668
668
|
return suspendResult;
|
|
669
669
|
}
|
|
670
670
|
continue $sm;
|
|
671
671
|
} else {
|
|
672
|
-
this.
|
|
673
|
-
suspendResult = checkMaxFrameSize(this.
|
|
672
|
+
this.i9_1 = 10;
|
|
673
|
+
suspendResult = checkMaxFrameSize(this.n3p_1, this.s3p_1, this.a3q_1, this);
|
|
674
674
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
675
675
|
return suspendResult;
|
|
676
676
|
}
|
|
@@ -680,40 +680,40 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).o9 = function
|
|
|
680
680
|
}
|
|
681
681
|
|
|
682
682
|
case 10:
|
|
683
|
-
if (!this.
|
|
684
|
-
if (this.
|
|
685
|
-
this.
|
|
683
|
+
if (!this.a3q_1.d3m_1) {
|
|
684
|
+
if (this.z3p_1 == null) {
|
|
685
|
+
this.z3p_1 = this.a3q_1;
|
|
686
686
|
}
|
|
687
|
-
if (this.
|
|
688
|
-
this.
|
|
687
|
+
if (this.s3p_1 == null) {
|
|
688
|
+
this.s3p_1 = BytePacketBuilder();
|
|
689
689
|
}
|
|
690
|
-
writeFully(this.
|
|
691
|
-
this.
|
|
690
|
+
writeFully(this.s3p_1, this.a3q_1.f3m_1);
|
|
691
|
+
this.i9_1 = 21;
|
|
692
692
|
continue $sm;
|
|
693
693
|
} else {
|
|
694
|
-
this.
|
|
694
|
+
this.i9_1 = 11;
|
|
695
695
|
continue $sm;
|
|
696
696
|
}
|
|
697
697
|
|
|
698
698
|
case 11:
|
|
699
|
-
if (this.
|
|
700
|
-
this.
|
|
701
|
-
suspendResult = this.
|
|
699
|
+
if (this.z3p_1 == null) {
|
|
700
|
+
this.i9_1 = 14;
|
|
701
|
+
suspendResult = this.n3p_1.v3n_1.s1g(processIncomingExtensions(this.n3p_1, this.a3q_1), this);
|
|
702
702
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
703
703
|
return suspendResult;
|
|
704
704
|
}
|
|
705
705
|
continue $sm;
|
|
706
706
|
} else {
|
|
707
|
-
this.
|
|
707
|
+
this.i9_1 = 12;
|
|
708
708
|
continue $sm;
|
|
709
709
|
}
|
|
710
710
|
|
|
711
711
|
case 12:
|
|
712
|
-
writeFully(ensureNotNull(this.
|
|
713
|
-
var defragmented = Companion_getInstance_6().
|
|
714
|
-
this.
|
|
715
|
-
this.
|
|
716
|
-
suspendResult = this.
|
|
712
|
+
writeFully(ensureNotNull(this.s3p_1), this.a3q_1.f3m_1);
|
|
713
|
+
var defragmented = Companion_getInstance_6().f3q(true, this.z3p_1.e3m_1, readByteArray(build(this.s3p_1)), this.z3p_1.h3m_1, this.z3p_1.i3m_1, this.z3p_1.j3m_1);
|
|
714
|
+
this.z3p_1 = null;
|
|
715
|
+
this.i9_1 = 13;
|
|
716
|
+
suspendResult = this.n3p_1.v3n_1.s1g(processIncomingExtensions(this.n3p_1, defragmented), this);
|
|
717
717
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
718
718
|
return suspendResult;
|
|
719
719
|
}
|
|
@@ -721,314 +721,314 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).o9 = function
|
|
|
721
721
|
continue $sm;
|
|
722
722
|
case 13:
|
|
723
723
|
var tmp_1 = this;
|
|
724
|
-
tmp_1.
|
|
725
|
-
this.
|
|
724
|
+
tmp_1.x3p_1 = Unit_instance;
|
|
725
|
+
this.i9_1 = 20;
|
|
726
726
|
continue $sm;
|
|
727
727
|
case 14:
|
|
728
|
-
this.
|
|
728
|
+
this.i9_1 = 21;
|
|
729
729
|
continue $sm;
|
|
730
730
|
case 15:
|
|
731
731
|
var tmp_2 = this;
|
|
732
|
-
tmp_2.
|
|
733
|
-
this.
|
|
732
|
+
tmp_2.x3p_1 = Unit_instance;
|
|
733
|
+
this.i9_1 = 20;
|
|
734
734
|
continue $sm;
|
|
735
735
|
case 16:
|
|
736
736
|
var tmp_3 = this;
|
|
737
|
-
tmp_3.
|
|
738
|
-
this.
|
|
737
|
+
tmp_3.y3p_1 = Unit_instance;
|
|
738
|
+
this.i9_1 = 17;
|
|
739
739
|
continue $sm;
|
|
740
740
|
case 17:
|
|
741
|
-
this.
|
|
742
|
-
this.
|
|
741
|
+
this.x3p_1 = this.y3p_1;
|
|
742
|
+
this.i9_1 = 20;
|
|
743
743
|
continue $sm;
|
|
744
744
|
case 18:
|
|
745
|
-
this.
|
|
745
|
+
this.i9_1 = 19;
|
|
746
746
|
continue $sm;
|
|
747
747
|
case 19:
|
|
748
|
-
this.
|
|
749
|
-
this.
|
|
748
|
+
this.r3p_1 = true;
|
|
749
|
+
this.i9_1 = 22;
|
|
750
750
|
var tmp_4 = this;
|
|
751
751
|
continue $sm;
|
|
752
752
|
case 20:
|
|
753
753
|
if (false) {
|
|
754
|
-
this.
|
|
754
|
+
this.i9_1 = 9;
|
|
755
755
|
continue $sm;
|
|
756
756
|
}
|
|
757
757
|
|
|
758
|
-
this.
|
|
758
|
+
this.i9_1 = 21;
|
|
759
759
|
continue $sm;
|
|
760
760
|
case 21:
|
|
761
|
-
this.
|
|
761
|
+
this.i9_1 = 7;
|
|
762
762
|
continue $sm;
|
|
763
763
|
case 22:
|
|
764
|
-
this.
|
|
765
|
-
cancelConsumed(this.
|
|
766
|
-
this.
|
|
767
|
-
this.
|
|
764
|
+
this.j9_1 = 32;
|
|
765
|
+
cancelConsumed(this.w3p_1, this.v3p_1);
|
|
766
|
+
this.j9_1 = 39;
|
|
767
|
+
this.i9_1 = 23;
|
|
768
768
|
continue $sm;
|
|
769
769
|
case 23:
|
|
770
|
-
this.
|
|
771
|
-
this.
|
|
772
|
-
var tmp0_safe_receiver = this.
|
|
770
|
+
this.j9_1 = 39;
|
|
771
|
+
this.o3p_1.z1g();
|
|
772
|
+
var tmp0_safe_receiver = this.s3p_1;
|
|
773
773
|
if (tmp0_safe_receiver == null)
|
|
774
774
|
null;
|
|
775
775
|
else {
|
|
776
|
-
tmp0_safe_receiver.
|
|
776
|
+
tmp0_safe_receiver.j4();
|
|
777
777
|
}
|
|
778
778
|
|
|
779
|
-
this.
|
|
780
|
-
if (!this.
|
|
781
|
-
this.
|
|
782
|
-
suspendResult = close(this.
|
|
779
|
+
this.n3p_1.v3n_1.z1g();
|
|
780
|
+
if (!this.r3p_1) {
|
|
781
|
+
this.i9_1 = 24;
|
|
782
|
+
suspendResult = close(this.n3p_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
783
783
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
784
784
|
return suspendResult;
|
|
785
785
|
}
|
|
786
786
|
continue $sm;
|
|
787
787
|
} else {
|
|
788
|
-
this.
|
|
788
|
+
this.i9_1 = 25;
|
|
789
789
|
continue $sm;
|
|
790
790
|
}
|
|
791
791
|
|
|
792
792
|
case 24:
|
|
793
|
-
this.
|
|
793
|
+
this.i9_1 = 25;
|
|
794
794
|
continue $sm;
|
|
795
795
|
case 25:
|
|
796
796
|
var tmp_5 = this;
|
|
797
797
|
return Unit_instance;
|
|
798
798
|
case 26:
|
|
799
|
-
this.
|
|
799
|
+
this.i9_1 = 27;
|
|
800
800
|
var tmp_6 = this;
|
|
801
801
|
continue $sm;
|
|
802
802
|
case 27:
|
|
803
|
-
this.
|
|
804
|
-
cancelConsumed(this.
|
|
805
|
-
this.
|
|
803
|
+
this.j9_1 = 32;
|
|
804
|
+
cancelConsumed(this.w3p_1, this.v3p_1);
|
|
805
|
+
this.i9_1 = 31;
|
|
806
806
|
continue $sm;
|
|
807
807
|
case 28:
|
|
808
|
-
this.
|
|
809
|
-
var tmp_7 = this.
|
|
808
|
+
this.j9_1 = 29;
|
|
809
|
+
var tmp_7 = this.l9_1;
|
|
810
810
|
if (tmp_7 instanceof Error) {
|
|
811
|
-
var e_0 = this.
|
|
811
|
+
var e_0 = this.l9_1;
|
|
812
812
|
var tmp_8 = this;
|
|
813
|
-
this.
|
|
813
|
+
this.v3p_1 = e_0;
|
|
814
814
|
throw e_0;
|
|
815
815
|
} else {
|
|
816
|
-
throw this.
|
|
816
|
+
throw this.l9_1;
|
|
817
817
|
}
|
|
818
818
|
|
|
819
819
|
case 29:
|
|
820
|
-
this.
|
|
821
|
-
var t = this.
|
|
822
|
-
cancelConsumed(this.
|
|
820
|
+
this.j9_1 = 32;
|
|
821
|
+
var t = this.l9_1;
|
|
822
|
+
cancelConsumed(this.w3p_1, this.v3p_1);
|
|
823
823
|
throw t;
|
|
824
824
|
case 30:
|
|
825
|
-
this.
|
|
826
|
-
cancelConsumed(this.
|
|
825
|
+
this.j9_1 = 32;
|
|
826
|
+
cancelConsumed(this.w3p_1, this.v3p_1);
|
|
827
827
|
if (false) {
|
|
828
|
-
this.
|
|
828
|
+
this.i9_1 = 3;
|
|
829
829
|
continue $sm;
|
|
830
830
|
}
|
|
831
831
|
|
|
832
|
-
this.
|
|
832
|
+
this.i9_1 = 31;
|
|
833
833
|
continue $sm;
|
|
834
834
|
case 31:
|
|
835
|
-
this.
|
|
836
|
-
this.
|
|
837
|
-
this.
|
|
835
|
+
this.t3p_1 = Unit_instance;
|
|
836
|
+
this.j9_1 = 39;
|
|
837
|
+
this.i9_1 = 36;
|
|
838
838
|
continue $sm;
|
|
839
839
|
case 32:
|
|
840
|
-
this.
|
|
841
|
-
var tmp_9 = this.
|
|
840
|
+
this.j9_1 = 33;
|
|
841
|
+
var tmp_9 = this.l9_1;
|
|
842
842
|
if (tmp_9 instanceof ClosedSendChannelException) {
|
|
843
|
-
var _unused_var__etf5q3 = this.
|
|
843
|
+
var _unused_var__etf5q3 = this.l9_1;
|
|
844
844
|
var tmp_10 = this;
|
|
845
|
-
tmp_10.
|
|
846
|
-
this.
|
|
847
|
-
this.
|
|
845
|
+
tmp_10.t3p_1 = Unit_instance;
|
|
846
|
+
this.j9_1 = 39;
|
|
847
|
+
this.i9_1 = 36;
|
|
848
848
|
continue $sm;
|
|
849
849
|
} else {
|
|
850
|
-
var tmp_11 = this.
|
|
850
|
+
var tmp_11 = this.l9_1;
|
|
851
851
|
if (tmp_11 instanceof Error) {
|
|
852
|
-
var cause = this.
|
|
852
|
+
var cause = this.l9_1;
|
|
853
853
|
var tmp_12 = this;
|
|
854
|
-
this.
|
|
855
|
-
tmp_12.
|
|
856
|
-
this.
|
|
857
|
-
this.
|
|
854
|
+
this.o3p_1.z1g();
|
|
855
|
+
tmp_12.t3p_1 = this.n3p_1.v3n_1.x1g(cause);
|
|
856
|
+
this.j9_1 = 39;
|
|
857
|
+
this.i9_1 = 36;
|
|
858
858
|
continue $sm;
|
|
859
859
|
} else {
|
|
860
|
-
throw this.
|
|
860
|
+
throw this.l9_1;
|
|
861
861
|
}
|
|
862
862
|
}
|
|
863
863
|
|
|
864
864
|
case 33:
|
|
865
|
-
this.
|
|
866
|
-
this.
|
|
867
|
-
this.
|
|
868
|
-
var tmp0_safe_receiver_0 = this.
|
|
865
|
+
this.j9_1 = 39;
|
|
866
|
+
this.u3p_1 = this.l9_1;
|
|
867
|
+
this.o3p_1.z1g();
|
|
868
|
+
var tmp0_safe_receiver_0 = this.s3p_1;
|
|
869
869
|
if (tmp0_safe_receiver_0 == null)
|
|
870
870
|
null;
|
|
871
871
|
else {
|
|
872
|
-
tmp0_safe_receiver_0.
|
|
872
|
+
tmp0_safe_receiver_0.j4();
|
|
873
873
|
}
|
|
874
874
|
|
|
875
|
-
this.
|
|
876
|
-
if (!this.
|
|
877
|
-
this.
|
|
878
|
-
suspendResult = close(this.
|
|
875
|
+
this.n3p_1.v3n_1.z1g();
|
|
876
|
+
if (!this.r3p_1) {
|
|
877
|
+
this.i9_1 = 34;
|
|
878
|
+
suspendResult = close(this.n3p_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
879
879
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
880
880
|
return suspendResult;
|
|
881
881
|
}
|
|
882
882
|
continue $sm;
|
|
883
883
|
} else {
|
|
884
|
-
this.
|
|
884
|
+
this.i9_1 = 35;
|
|
885
885
|
continue $sm;
|
|
886
886
|
}
|
|
887
887
|
|
|
888
888
|
case 34:
|
|
889
|
-
this.
|
|
889
|
+
this.i9_1 = 35;
|
|
890
890
|
continue $sm;
|
|
891
891
|
case 35:
|
|
892
|
-
throw this.
|
|
892
|
+
throw this.u3p_1;
|
|
893
893
|
case 36:
|
|
894
|
-
this.
|
|
895
|
-
this.
|
|
896
|
-
this.
|
|
897
|
-
var tmp0_safe_receiver_1 = this.
|
|
894
|
+
this.q3p_1 = this.t3p_1;
|
|
895
|
+
this.j9_1 = 39;
|
|
896
|
+
this.o3p_1.z1g();
|
|
897
|
+
var tmp0_safe_receiver_1 = this.s3p_1;
|
|
898
898
|
if (tmp0_safe_receiver_1 == null)
|
|
899
899
|
null;
|
|
900
900
|
else {
|
|
901
|
-
tmp0_safe_receiver_1.
|
|
901
|
+
tmp0_safe_receiver_1.j4();
|
|
902
902
|
}
|
|
903
903
|
|
|
904
|
-
this.
|
|
905
|
-
if (!this.
|
|
906
|
-
this.
|
|
907
|
-
suspendResult = close(this.
|
|
904
|
+
this.n3p_1.v3n_1.z1g();
|
|
905
|
+
if (!this.r3p_1) {
|
|
906
|
+
this.i9_1 = 37;
|
|
907
|
+
suspendResult = close(this.n3p_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
908
908
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
909
909
|
return suspendResult;
|
|
910
910
|
}
|
|
911
911
|
continue $sm;
|
|
912
912
|
} else {
|
|
913
|
-
this.
|
|
913
|
+
this.i9_1 = 38;
|
|
914
914
|
continue $sm;
|
|
915
915
|
}
|
|
916
916
|
|
|
917
917
|
case 37:
|
|
918
|
-
this.
|
|
918
|
+
this.i9_1 = 38;
|
|
919
919
|
continue $sm;
|
|
920
920
|
case 38:
|
|
921
921
|
return Unit_instance;
|
|
922
922
|
case 39:
|
|
923
|
-
throw this.
|
|
923
|
+
throw this.l9_1;
|
|
924
924
|
}
|
|
925
925
|
} catch ($p) {
|
|
926
926
|
var e_1 = $p;
|
|
927
|
-
if (this.
|
|
927
|
+
if (this.j9_1 === 39) {
|
|
928
928
|
throw e_1;
|
|
929
929
|
} else {
|
|
930
|
-
this.
|
|
931
|
-
this.
|
|
930
|
+
this.i9_1 = this.j9_1;
|
|
931
|
+
this.l9_1 = e_1;
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
934
|
while (true);
|
|
935
935
|
};
|
|
936
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
937
|
-
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.
|
|
938
|
-
i.
|
|
936
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).x1o = function ($this$launch, completion) {
|
|
937
|
+
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.n3p_1, this.o3p_1, completion);
|
|
938
|
+
i.p3p_1 = $this$launch;
|
|
939
939
|
return i;
|
|
940
940
|
};
|
|
941
941
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0(this$0, $ponger, resultContinuation) {
|
|
942
942
|
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation);
|
|
943
943
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
944
|
-
return i.
|
|
944
|
+
return i.w1o($this$launch, $completion);
|
|
945
945
|
}, 1);
|
|
946
946
|
}
|
|
947
947
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation) {
|
|
948
|
-
this.
|
|
948
|
+
this.o3q_1 = this$0;
|
|
949
949
|
CoroutineImpl.call(this, resultContinuation);
|
|
950
950
|
}
|
|
951
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
952
|
-
var tmp = this.
|
|
953
|
-
tmp.
|
|
954
|
-
tmp.
|
|
955
|
-
return tmp.
|
|
951
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).w1o = function ($this$launch, $completion) {
|
|
952
|
+
var tmp = this.x1o($this$launch, $completion);
|
|
953
|
+
tmp.k9_1 = Unit_instance;
|
|
954
|
+
tmp.l9_1 = null;
|
|
955
|
+
return tmp.q9();
|
|
956
956
|
};
|
|
957
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
958
|
-
return this.
|
|
957
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).da = function (p1, $completion) {
|
|
958
|
+
return this.w1o((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
959
959
|
};
|
|
960
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
961
|
-
var suspendResult = this.
|
|
960
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).q9 = function () {
|
|
961
|
+
var suspendResult = this.k9_1;
|
|
962
962
|
$sm: do
|
|
963
963
|
try {
|
|
964
|
-
var tmp = this.
|
|
964
|
+
var tmp = this.i9_1;
|
|
965
965
|
switch (tmp) {
|
|
966
966
|
case 0:
|
|
967
|
-
this.
|
|
968
|
-
this.
|
|
967
|
+
this.j9_1 = 13;
|
|
968
|
+
this.i9_1 = 1;
|
|
969
969
|
continue $sm;
|
|
970
970
|
case 1:
|
|
971
|
-
this.
|
|
971
|
+
this.i9_1 = 2;
|
|
972
972
|
continue $sm;
|
|
973
973
|
case 2:
|
|
974
|
-
this.
|
|
975
|
-
this.
|
|
976
|
-
this.
|
|
977
|
-
suspendResult = outgoingProcessorLoop(this.
|
|
974
|
+
this.j9_1 = 9;
|
|
975
|
+
this.j9_1 = 4;
|
|
976
|
+
this.i9_1 = 3;
|
|
977
|
+
suspendResult = outgoingProcessorLoop(this.o3q_1, this);
|
|
978
978
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
979
979
|
return suspendResult;
|
|
980
980
|
}
|
|
981
981
|
|
|
982
982
|
continue $sm;
|
|
983
983
|
case 3:
|
|
984
|
-
this.
|
|
985
|
-
this.
|
|
984
|
+
this.j9_1 = 13;
|
|
985
|
+
this.i9_1 = 11;
|
|
986
986
|
continue $sm;
|
|
987
987
|
case 4:
|
|
988
|
-
this.
|
|
989
|
-
var tmp_0 = this.
|
|
988
|
+
this.j9_1 = 9;
|
|
989
|
+
var tmp_0 = this.l9_1;
|
|
990
990
|
if (tmp_0 instanceof ClosedSendChannelException) {
|
|
991
|
-
var _unused_var__etf5q3 = this.
|
|
992
|
-
this.
|
|
993
|
-
this.
|
|
991
|
+
var _unused_var__etf5q3 = this.l9_1;
|
|
992
|
+
this.j9_1 = 13;
|
|
993
|
+
this.i9_1 = 11;
|
|
994
994
|
continue $sm;
|
|
995
995
|
} else {
|
|
996
|
-
var tmp_1 = this.
|
|
996
|
+
var tmp_1 = this.l9_1;
|
|
997
997
|
if (tmp_1 instanceof ClosedReceiveChannelException) {
|
|
998
|
-
var _unused_var__etf5q3_0 = this.
|
|
999
|
-
this.
|
|
1000
|
-
this.
|
|
998
|
+
var _unused_var__etf5q3_0 = this.l9_1;
|
|
999
|
+
this.j9_1 = 13;
|
|
1000
|
+
this.i9_1 = 11;
|
|
1001
1001
|
continue $sm;
|
|
1002
1002
|
} else {
|
|
1003
|
-
var tmp_2 = this.
|
|
1003
|
+
var tmp_2 = this.l9_1;
|
|
1004
1004
|
if (tmp_2 instanceof CancellationException) {
|
|
1005
|
-
var _unused_var__etf5q3_1 = this.
|
|
1006
|
-
this.
|
|
1007
|
-
suspendResult = sendCloseSequence(this.
|
|
1005
|
+
var _unused_var__etf5q3_1 = this.l9_1;
|
|
1006
|
+
this.i9_1 = 5;
|
|
1007
|
+
suspendResult = sendCloseSequence(this.o3q_1, CloseReason_init_$Create$(Codes_NORMAL_getInstance(), ''), VOID, this);
|
|
1008
1008
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1009
1009
|
return suspendResult;
|
|
1010
1010
|
}
|
|
1011
1011
|
continue $sm;
|
|
1012
1012
|
} else {
|
|
1013
|
-
var tmp_3 = this.
|
|
1013
|
+
var tmp_3 = this.l9_1;
|
|
1014
1014
|
if (tmp_3 instanceof ChannelIOException) {
|
|
1015
|
-
var _unused_var__etf5q3_2 = this.
|
|
1016
|
-
this.
|
|
1017
|
-
this.
|
|
1015
|
+
var _unused_var__etf5q3_2 = this.l9_1;
|
|
1016
|
+
this.j9_1 = 13;
|
|
1017
|
+
this.i9_1 = 11;
|
|
1018
1018
|
continue $sm;
|
|
1019
1019
|
} else {
|
|
1020
|
-
var tmp_4 = this.
|
|
1020
|
+
var tmp_4 = this.l9_1;
|
|
1021
1021
|
if (tmp_4 instanceof Error) {
|
|
1022
|
-
var cause = this.
|
|
1023
|
-
this.
|
|
1024
|
-
this.
|
|
1025
|
-
suspendResult = closeExceptionally(this.
|
|
1022
|
+
var cause = this.l9_1;
|
|
1023
|
+
this.o3q_1.w3n_1.dz(CancellationException_init_$Create$('Failed to send frame', cause));
|
|
1024
|
+
this.i9_1 = 6;
|
|
1025
|
+
suspendResult = closeExceptionally(this.o3q_1.q3n_1, cause, this);
|
|
1026
1026
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1027
1027
|
return suspendResult;
|
|
1028
1028
|
}
|
|
1029
1029
|
continue $sm;
|
|
1030
1030
|
} else {
|
|
1031
|
-
throw this.
|
|
1031
|
+
throw this.l9_1;
|
|
1032
1032
|
}
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
@@ -1036,18 +1036,18 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).o9 = function
|
|
|
1036
1036
|
}
|
|
1037
1037
|
|
|
1038
1038
|
case 5:
|
|
1039
|
-
this.
|
|
1040
|
-
this.
|
|
1039
|
+
this.j9_1 = 13;
|
|
1040
|
+
this.i9_1 = 11;
|
|
1041
1041
|
continue $sm;
|
|
1042
1042
|
case 6:
|
|
1043
|
-
this.
|
|
1044
|
-
this.
|
|
1043
|
+
this.j9_1 = 13;
|
|
1044
|
+
this.i9_1 = 7;
|
|
1045
1045
|
continue $sm;
|
|
1046
1046
|
case 7:
|
|
1047
|
-
this.
|
|
1048
|
-
this.
|
|
1049
|
-
this.
|
|
1050
|
-
suspendResult = close(this.
|
|
1047
|
+
this.j9_1 = 13;
|
|
1048
|
+
this.o3q_1.w3n_1.b1h();
|
|
1049
|
+
this.i9_1 = 8;
|
|
1050
|
+
suspendResult = close(this.o3q_1.q3n_1, VOID, this);
|
|
1051
1051
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1052
1052
|
return suspendResult;
|
|
1053
1053
|
}
|
|
@@ -1056,23 +1056,23 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).o9 = function
|
|
|
1056
1056
|
case 8:
|
|
1057
1057
|
return Unit_instance;
|
|
1058
1058
|
case 9:
|
|
1059
|
-
this.
|
|
1060
|
-
this.
|
|
1061
|
-
this.
|
|
1062
|
-
this.
|
|
1063
|
-
suspendResult = close(this.
|
|
1059
|
+
this.j9_1 = 13;
|
|
1060
|
+
this.q3q_1 = this.l9_1;
|
|
1061
|
+
this.o3q_1.w3n_1.b1h();
|
|
1062
|
+
this.i9_1 = 10;
|
|
1063
|
+
suspendResult = close(this.o3q_1.q3n_1, VOID, this);
|
|
1064
1064
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1065
1065
|
return suspendResult;
|
|
1066
1066
|
}
|
|
1067
1067
|
|
|
1068
1068
|
continue $sm;
|
|
1069
1069
|
case 10:
|
|
1070
|
-
throw this.
|
|
1070
|
+
throw this.q3q_1;
|
|
1071
1071
|
case 11:
|
|
1072
|
-
this.
|
|
1073
|
-
this.
|
|
1074
|
-
this.
|
|
1075
|
-
suspendResult = close(this.
|
|
1072
|
+
this.j9_1 = 13;
|
|
1073
|
+
this.o3q_1.w3n_1.b1h();
|
|
1074
|
+
this.i9_1 = 12;
|
|
1075
|
+
suspendResult = close(this.o3q_1.q3n_1, VOID, this);
|
|
1076
1076
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1077
1077
|
return suspendResult;
|
|
1078
1078
|
}
|
|
@@ -1081,53 +1081,53 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).o9 = function
|
|
|
1081
1081
|
case 12:
|
|
1082
1082
|
return Unit_instance;
|
|
1083
1083
|
case 13:
|
|
1084
|
-
throw this.
|
|
1084
|
+
throw this.l9_1;
|
|
1085
1085
|
}
|
|
1086
1086
|
} catch ($p) {
|
|
1087
1087
|
var e = $p;
|
|
1088
|
-
if (this.
|
|
1088
|
+
if (this.j9_1 === 13) {
|
|
1089
1089
|
throw e;
|
|
1090
1090
|
} else {
|
|
1091
|
-
this.
|
|
1092
|
-
this.
|
|
1091
|
+
this.i9_1 = this.j9_1;
|
|
1092
|
+
this.l9_1 = e;
|
|
1093
1093
|
}
|
|
1094
1094
|
}
|
|
1095
1095
|
while (true);
|
|
1096
1096
|
};
|
|
1097
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
1098
|
-
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.
|
|
1099
|
-
i.
|
|
1097
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).x1o = function ($this$launch, completion) {
|
|
1098
|
+
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.o3q_1, completion);
|
|
1099
|
+
i.p3q_1 = $this$launch;
|
|
1100
1100
|
return i;
|
|
1101
1101
|
};
|
|
1102
1102
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0(this$0, resultContinuation) {
|
|
1103
1103
|
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation);
|
|
1104
1104
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
1105
|
-
return i.
|
|
1105
|
+
return i.w1o($this$launch, $completion);
|
|
1106
1106
|
}, 1);
|
|
1107
1107
|
}
|
|
1108
1108
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation) {
|
|
1109
|
-
this.
|
|
1109
|
+
this.z3q_1 = this$0;
|
|
1110
1110
|
CoroutineImpl.call(this, resultContinuation);
|
|
1111
1111
|
}
|
|
1112
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1113
|
-
var tmp = this.
|
|
1114
|
-
tmp.
|
|
1115
|
-
tmp.
|
|
1116
|
-
return tmp.
|
|
1112
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).b3r = function (it, $completion) {
|
|
1113
|
+
var tmp = this.c3r(it, $completion);
|
|
1114
|
+
tmp.k9_1 = Unit_instance;
|
|
1115
|
+
tmp.l9_1 = null;
|
|
1116
|
+
return tmp.q9();
|
|
1117
1117
|
};
|
|
1118
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1119
|
-
return this.
|
|
1118
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).da = function (p1, $completion) {
|
|
1119
|
+
return this.b3r(p1 instanceof CloseReason ? p1 : THROW_CCE(), $completion);
|
|
1120
1120
|
};
|
|
1121
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1122
|
-
var suspendResult = this.
|
|
1121
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).q9 = function () {
|
|
1122
|
+
var suspendResult = this.k9_1;
|
|
1123
1123
|
$sm: do
|
|
1124
1124
|
try {
|
|
1125
|
-
var tmp = this.
|
|
1125
|
+
var tmp = this.i9_1;
|
|
1126
1126
|
switch (tmp) {
|
|
1127
1127
|
case 0:
|
|
1128
|
-
this.
|
|
1129
|
-
this.
|
|
1130
|
-
suspendResult = sendCloseSequence(this.
|
|
1128
|
+
this.j9_1 = 2;
|
|
1129
|
+
this.i9_1 = 1;
|
|
1130
|
+
suspendResult = sendCloseSequence(this.z3q_1, this.a3r_1, IOException_init_$Create$('Ping timeout'), this);
|
|
1131
1131
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1132
1132
|
return suspendResult;
|
|
1133
1133
|
}
|
|
@@ -1136,48 +1136,48 @@ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).o9 = function ()
|
|
|
1136
1136
|
case 1:
|
|
1137
1137
|
return Unit_instance;
|
|
1138
1138
|
case 2:
|
|
1139
|
-
throw this.
|
|
1139
|
+
throw this.l9_1;
|
|
1140
1140
|
}
|
|
1141
1141
|
} catch ($p) {
|
|
1142
1142
|
var e = $p;
|
|
1143
|
-
if (this.
|
|
1143
|
+
if (this.j9_1 === 2) {
|
|
1144
1144
|
throw e;
|
|
1145
1145
|
} else {
|
|
1146
|
-
this.
|
|
1147
|
-
this.
|
|
1146
|
+
this.i9_1 = this.j9_1;
|
|
1147
|
+
this.l9_1 = e;
|
|
1148
1148
|
}
|
|
1149
1149
|
}
|
|
1150
1150
|
while (true);
|
|
1151
1151
|
};
|
|
1152
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1153
|
-
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.
|
|
1154
|
-
i.
|
|
1152
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).c3r = function (it, completion) {
|
|
1153
|
+
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.z3q_1, completion);
|
|
1154
|
+
i.a3r_1 = it;
|
|
1155
1155
|
return i;
|
|
1156
1156
|
};
|
|
1157
1157
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0(this$0, resultContinuation) {
|
|
1158
1158
|
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation);
|
|
1159
1159
|
return constructCallableReference(function (it, $completion) {
|
|
1160
|
-
return i.
|
|
1160
|
+
return i.b3r(it, $completion);
|
|
1161
1161
|
}, 1);
|
|
1162
1162
|
}
|
|
1163
1163
|
function $outgoingProcessorLoopCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1164
1164
|
CoroutineImpl.call(this, resultContinuation);
|
|
1165
|
-
this.
|
|
1165
|
+
this.b3n_1 = _this__u8e3s4;
|
|
1166
1166
|
}
|
|
1167
|
-
protoOf($outgoingProcessorLoopCOROUTINE$).
|
|
1168
|
-
var suspendResult = this.
|
|
1167
|
+
protoOf($outgoingProcessorLoopCOROUTINE$).q9 = function () {
|
|
1168
|
+
var suspendResult = this.k9_1;
|
|
1169
1169
|
$sm: do
|
|
1170
1170
|
try {
|
|
1171
|
-
var tmp = this.
|
|
1171
|
+
var tmp = this.i9_1;
|
|
1172
1172
|
switch (tmp) {
|
|
1173
1173
|
case 0:
|
|
1174
|
-
this.
|
|
1175
|
-
this.
|
|
1176
|
-
this.
|
|
1174
|
+
this.j9_1 = 7;
|
|
1175
|
+
this.d3n_1 = this.b3n_1.w3n_1.t();
|
|
1176
|
+
this.i9_1 = 1;
|
|
1177
1177
|
continue $sm;
|
|
1178
1178
|
case 1:
|
|
1179
|
-
this.
|
|
1180
|
-
suspendResult = this.
|
|
1179
|
+
this.i9_1 = 2;
|
|
1180
|
+
suspendResult = this.d3n_1.v1e(this);
|
|
1181
1181
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1182
1182
|
return suspendResult;
|
|
1183
1183
|
}
|
|
@@ -1185,19 +1185,19 @@ protoOf($outgoingProcessorLoopCOROUTINE$).o9 = function () {
|
|
|
1185
1185
|
continue $sm;
|
|
1186
1186
|
case 2:
|
|
1187
1187
|
if (!suspendResult) {
|
|
1188
|
-
this.
|
|
1188
|
+
this.i9_1 = 6;
|
|
1189
1189
|
continue $sm;
|
|
1190
1190
|
}
|
|
1191
1191
|
|
|
1192
|
-
var frame = this.
|
|
1192
|
+
var frame = this.d3n_1.v();
|
|
1193
1193
|
var this_0 = get_LOGGER();
|
|
1194
1194
|
if (get_isTraceEnabled(this_0)) {
|
|
1195
|
-
this_0.
|
|
1195
|
+
this_0.c32('Sending ' + frame.toString() + ' from session ' + toString(this.b3n_1));
|
|
1196
1196
|
}
|
|
1197
1197
|
|
|
1198
1198
|
if (frame instanceof Close) {
|
|
1199
|
-
this.
|
|
1200
|
-
suspendResult = sendCloseSequence(this.
|
|
1199
|
+
this.i9_1 = 3;
|
|
1200
|
+
suspendResult = sendCloseSequence(this.b3n_1, readReason(frame), VOID, this);
|
|
1201
1201
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1202
1202
|
return suspendResult;
|
|
1203
1203
|
}
|
|
@@ -1210,223 +1210,223 @@ protoOf($outgoingProcessorLoopCOROUTINE$).o9 = function () {
|
|
|
1210
1210
|
tmp_0 = frame instanceof Binary;
|
|
1211
1211
|
}
|
|
1212
1212
|
if (tmp_0) {
|
|
1213
|
-
this.
|
|
1214
|
-
this.
|
|
1213
|
+
this.c3n_1 = processOutgoingExtensions(this.b3n_1, frame);
|
|
1214
|
+
this.i9_1 = 4;
|
|
1215
1215
|
continue $sm;
|
|
1216
1216
|
} else {
|
|
1217
|
-
this.
|
|
1218
|
-
this.
|
|
1217
|
+
this.c3n_1 = frame;
|
|
1218
|
+
this.i9_1 = 4;
|
|
1219
1219
|
continue $sm;
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
1222
1222
|
|
|
1223
1223
|
case 3:
|
|
1224
|
-
this.
|
|
1224
|
+
this.i9_1 = 6;
|
|
1225
1225
|
var tmp_1 = this;
|
|
1226
1226
|
continue $sm;
|
|
1227
1227
|
case 4:
|
|
1228
|
-
var processedFrame = this.
|
|
1229
|
-
this.
|
|
1230
|
-
suspendResult = this.
|
|
1228
|
+
var processedFrame = this.c3n_1;
|
|
1229
|
+
this.i9_1 = 5;
|
|
1230
|
+
suspendResult = this.b3n_1.q3n_1.o3m().s1g(processedFrame, this);
|
|
1231
1231
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1232
1232
|
return suspendResult;
|
|
1233
1233
|
}
|
|
1234
1234
|
|
|
1235
1235
|
continue $sm;
|
|
1236
1236
|
case 5:
|
|
1237
|
-
this.
|
|
1237
|
+
this.i9_1 = 1;
|
|
1238
1238
|
continue $sm;
|
|
1239
1239
|
case 6:
|
|
1240
1240
|
return Unit_instance;
|
|
1241
1241
|
case 7:
|
|
1242
|
-
throw this.
|
|
1242
|
+
throw this.l9_1;
|
|
1243
1243
|
}
|
|
1244
1244
|
} catch ($p) {
|
|
1245
1245
|
var e = $p;
|
|
1246
|
-
if (this.
|
|
1246
|
+
if (this.j9_1 === 7) {
|
|
1247
1247
|
throw e;
|
|
1248
1248
|
} else {
|
|
1249
|
-
this.
|
|
1250
|
-
this.
|
|
1249
|
+
this.i9_1 = this.j9_1;
|
|
1250
|
+
this.l9_1 = e;
|
|
1251
1251
|
}
|
|
1252
1252
|
}
|
|
1253
1253
|
while (true);
|
|
1254
1254
|
};
|
|
1255
1255
|
function $sendCloseSequenceCOROUTINE$(_this__u8e3s4, reason, exception, resultContinuation) {
|
|
1256
1256
|
CoroutineImpl.call(this, resultContinuation);
|
|
1257
|
-
this.
|
|
1258
|
-
this.
|
|
1259
|
-
this.
|
|
1257
|
+
this.m3n_1 = _this__u8e3s4;
|
|
1258
|
+
this.n3n_1 = reason;
|
|
1259
|
+
this.o3n_1 = exception;
|
|
1260
1260
|
}
|
|
1261
|
-
protoOf($sendCloseSequenceCOROUTINE$).
|
|
1262
|
-
var suspendResult = this.
|
|
1261
|
+
protoOf($sendCloseSequenceCOROUTINE$).q9 = function () {
|
|
1262
|
+
var suspendResult = this.k9_1;
|
|
1263
1263
|
$sm: do
|
|
1264
1264
|
try {
|
|
1265
|
-
var tmp = this.
|
|
1265
|
+
var tmp = this.i9_1;
|
|
1266
1266
|
switch (tmp) {
|
|
1267
1267
|
case 0:
|
|
1268
|
-
this.
|
|
1269
|
-
if (!tryClose(this.
|
|
1268
|
+
this.j9_1 = 6;
|
|
1269
|
+
if (!tryClose(this.m3n_1))
|
|
1270
1270
|
return Unit_instance;
|
|
1271
1271
|
var this_0 = get_LOGGER();
|
|
1272
1272
|
if (get_isTraceEnabled(this_0)) {
|
|
1273
|
-
this_0.
|
|
1273
|
+
this_0.c32('Sending Close Sequence for session ' + toString(this.m3n_1) + ' with reason ' + toString_0(this.n3n_1) + ' and exception ' + toString_0(this.o3n_1));
|
|
1274
1274
|
}
|
|
1275
1275
|
|
|
1276
|
-
this.
|
|
1276
|
+
this.m3n_1.t3n_1.e16();
|
|
1277
1277
|
var tmp_0 = this;
|
|
1278
|
-
var tmp0_elvis_lhs = this.
|
|
1279
|
-
tmp_0.
|
|
1280
|
-
this.
|
|
1278
|
+
var tmp0_elvis_lhs = this.n3n_1;
|
|
1279
|
+
tmp_0.p3n_1 = tmp0_elvis_lhs == null ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : tmp0_elvis_lhs;
|
|
1280
|
+
this.i9_1 = 1;
|
|
1281
1281
|
continue $sm;
|
|
1282
1282
|
case 1:
|
|
1283
|
-
this.
|
|
1284
|
-
runOrCancelPinger(this.
|
|
1285
|
-
if (!(this.
|
|
1286
|
-
this.
|
|
1287
|
-
suspendResult = this.
|
|
1283
|
+
this.j9_1 = 5;
|
|
1284
|
+
runOrCancelPinger(this.m3n_1);
|
|
1285
|
+
if (!(this.p3n_1.w3l_1 === Codes_CLOSED_ABNORMALLY_getInstance().s3l_1)) {
|
|
1286
|
+
this.i9_1 = 2;
|
|
1287
|
+
suspendResult = this.m3n_1.q3n_1.o3m().s1g(Close_init_$Create$(this.p3n_1), this);
|
|
1288
1288
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1289
1289
|
return suspendResult;
|
|
1290
1290
|
}
|
|
1291
1291
|
continue $sm;
|
|
1292
1292
|
} else {
|
|
1293
|
-
this.
|
|
1293
|
+
this.i9_1 = 3;
|
|
1294
1294
|
continue $sm;
|
|
1295
1295
|
}
|
|
1296
1296
|
|
|
1297
1297
|
case 2:
|
|
1298
|
-
this.
|
|
1298
|
+
this.i9_1 = 3;
|
|
1299
1299
|
continue $sm;
|
|
1300
1300
|
case 3:
|
|
1301
|
-
this.
|
|
1302
|
-
this.
|
|
1301
|
+
this.j9_1 = 6;
|
|
1302
|
+
this.i9_1 = 4;
|
|
1303
1303
|
continue $sm;
|
|
1304
1304
|
case 4:
|
|
1305
|
-
this.
|
|
1306
|
-
this.
|
|
1307
|
-
if (!(this.
|
|
1308
|
-
this.
|
|
1309
|
-
this.
|
|
1305
|
+
this.j9_1 = 6;
|
|
1306
|
+
this.m3n_1.s3n_1.c16(this.p3n_1);
|
|
1307
|
+
if (!(this.o3n_1 == null)) {
|
|
1308
|
+
this.m3n_1.w3n_1.x1g(this.o3n_1);
|
|
1309
|
+
this.m3n_1.v3n_1.x1g(this.o3n_1);
|
|
1310
1310
|
}
|
|
1311
1311
|
|
|
1312
1312
|
return Unit_instance;
|
|
1313
1313
|
case 5:
|
|
1314
|
-
this.
|
|
1315
|
-
var t = this.
|
|
1316
|
-
this.
|
|
1317
|
-
if (!(this.
|
|
1318
|
-
this.
|
|
1319
|
-
this.
|
|
1314
|
+
this.j9_1 = 6;
|
|
1315
|
+
var t = this.l9_1;
|
|
1316
|
+
this.m3n_1.s3n_1.c16(this.p3n_1);
|
|
1317
|
+
if (!(this.o3n_1 == null)) {
|
|
1318
|
+
this.m3n_1.w3n_1.x1g(this.o3n_1);
|
|
1319
|
+
this.m3n_1.v3n_1.x1g(this.o3n_1);
|
|
1320
1320
|
}
|
|
1321
1321
|
|
|
1322
1322
|
throw t;
|
|
1323
1323
|
case 6:
|
|
1324
|
-
throw this.
|
|
1324
|
+
throw this.l9_1;
|
|
1325
1325
|
}
|
|
1326
1326
|
} catch ($p) {
|
|
1327
1327
|
var e = $p;
|
|
1328
|
-
if (this.
|
|
1328
|
+
if (this.j9_1 === 6) {
|
|
1329
1329
|
throw e;
|
|
1330
1330
|
} else {
|
|
1331
|
-
this.
|
|
1332
|
-
this.
|
|
1331
|
+
this.i9_1 = this.j9_1;
|
|
1332
|
+
this.l9_1 = e;
|
|
1333
1333
|
}
|
|
1334
1334
|
}
|
|
1335
1335
|
while (true);
|
|
1336
1336
|
};
|
|
1337
1337
|
function $checkMaxFrameSizeCOROUTINE$(_this__u8e3s4, packet, frame, resultContinuation) {
|
|
1338
1338
|
CoroutineImpl.call(this, resultContinuation);
|
|
1339
|
-
this.
|
|
1340
|
-
this.
|
|
1341
|
-
this.
|
|
1339
|
+
this.m3o_1 = _this__u8e3s4;
|
|
1340
|
+
this.n3o_1 = packet;
|
|
1341
|
+
this.o3o_1 = frame;
|
|
1342
1342
|
}
|
|
1343
|
-
protoOf($checkMaxFrameSizeCOROUTINE$).
|
|
1344
|
-
var suspendResult = this.
|
|
1343
|
+
protoOf($checkMaxFrameSizeCOROUTINE$).q9 = function () {
|
|
1344
|
+
var suspendResult = this.k9_1;
|
|
1345
1345
|
$sm: do
|
|
1346
1346
|
try {
|
|
1347
|
-
var tmp = this.
|
|
1347
|
+
var tmp = this.i9_1;
|
|
1348
1348
|
switch (tmp) {
|
|
1349
1349
|
case 0:
|
|
1350
|
-
this.
|
|
1350
|
+
this.j9_1 = 3;
|
|
1351
1351
|
var tmp_0 = this;
|
|
1352
|
-
var tmp_1 = this.
|
|
1353
|
-
var tmp0_safe_receiver = this.
|
|
1352
|
+
var tmp_1 = this.o3o_1.f3m_1.length;
|
|
1353
|
+
var tmp0_safe_receiver = this.n3o_1;
|
|
1354
1354
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_size(tmp0_safe_receiver);
|
|
1355
|
-
tmp_0.
|
|
1356
|
-
if (compare(fromInt(this.
|
|
1357
|
-
var tmp2_safe_receiver = this.
|
|
1355
|
+
tmp_0.p3o_1 = tmp_1 + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
1356
|
+
if (compare(fromInt(this.p3o_1), this.m3o_1.m3m()) > 0) {
|
|
1357
|
+
var tmp2_safe_receiver = this.n3o_1;
|
|
1358
1358
|
if (tmp2_safe_receiver == null)
|
|
1359
1359
|
null;
|
|
1360
1360
|
else {
|
|
1361
|
-
tmp2_safe_receiver.
|
|
1361
|
+
tmp2_safe_receiver.j4();
|
|
1362
1362
|
}
|
|
1363
|
-
this.
|
|
1364
|
-
suspendResult = close(this.
|
|
1363
|
+
this.i9_1 = 2;
|
|
1364
|
+
suspendResult = close(this.m3o_1, CloseReason_init_$Create$(Codes_TOO_BIG_getInstance(), 'Frame is too big: ' + this.p3o_1 + '. Max size is ' + this.m3o_1.m3m().toString()), this);
|
|
1365
1365
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1366
1366
|
return suspendResult;
|
|
1367
1367
|
}
|
|
1368
1368
|
continue $sm;
|
|
1369
1369
|
} else {
|
|
1370
|
-
this.
|
|
1370
|
+
this.i9_1 = 1;
|
|
1371
1371
|
continue $sm;
|
|
1372
1372
|
}
|
|
1373
1373
|
|
|
1374
1374
|
case 1:
|
|
1375
1375
|
return Unit_instance;
|
|
1376
1376
|
case 2:
|
|
1377
|
-
throw new FrameTooBigException(fromInt(this.
|
|
1377
|
+
throw new FrameTooBigException(fromInt(this.p3o_1));
|
|
1378
1378
|
case 3:
|
|
1379
|
-
throw this.
|
|
1379
|
+
throw this.l9_1;
|
|
1380
1380
|
}
|
|
1381
1381
|
} catch ($p) {
|
|
1382
1382
|
var e = $p;
|
|
1383
|
-
if (this.
|
|
1383
|
+
if (this.j9_1 === 3) {
|
|
1384
1384
|
throw e;
|
|
1385
1385
|
} else {
|
|
1386
|
-
this.
|
|
1387
|
-
this.
|
|
1386
|
+
this.i9_1 = this.j9_1;
|
|
1387
|
+
this.l9_1 = e;
|
|
1388
1388
|
}
|
|
1389
1389
|
}
|
|
1390
1390
|
while (true);
|
|
1391
1391
|
};
|
|
1392
1392
|
function DefaultWebSocketSessionImpl(raw, pingIntervalMillis, timeoutMillis, incomingFramesConfig, outgoingFramesConfig) {
|
|
1393
1393
|
Companion_getInstance_1();
|
|
1394
|
-
this.
|
|
1395
|
-
this.
|
|
1396
|
-
this.
|
|
1397
|
-
this.
|
|
1398
|
-
this.
|
|
1399
|
-
this.
|
|
1400
|
-
this.
|
|
1401
|
-
this.
|
|
1394
|
+
this.q3n_1 = raw;
|
|
1395
|
+
this.r3n_1 = atomic$ref$1(null);
|
|
1396
|
+
this.s3n_1 = CompletableDeferred();
|
|
1397
|
+
this.t3n_1 = Job();
|
|
1398
|
+
this.u3n_1 = this.q3n_1.tx().qk(Key_instance).sk(this.t3n_1).sk(new CoroutineName('ws-default'));
|
|
1399
|
+
this.v3n_1 = from(Factory_getInstance(), incomingFramesConfig);
|
|
1400
|
+
this.w3n_1 = from(Factory_getInstance(), outgoingFramesConfig);
|
|
1401
|
+
this.x3n_1 = atomic$boolean$1(false);
|
|
1402
1402
|
var tmp = this;
|
|
1403
1403
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1404
|
-
tmp.
|
|
1405
|
-
this.
|
|
1406
|
-
this.
|
|
1407
|
-
this.
|
|
1408
|
-
this.
|
|
1404
|
+
tmp.y3n_1 = ArrayList_init_$Create$();
|
|
1405
|
+
this.z3n_1 = atomic$boolean$1(false);
|
|
1406
|
+
this.a3o_1 = pingIntervalMillis;
|
|
1407
|
+
this.b3o_1 = timeoutMillis;
|
|
1408
|
+
this.c3o_1 = this.s3n_1;
|
|
1409
1409
|
}
|
|
1410
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1411
|
-
return this.
|
|
1410
|
+
protoOf(DefaultWebSocketSessionImpl).tx = function () {
|
|
1411
|
+
return this.u3n_1;
|
|
1412
1412
|
};
|
|
1413
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1414
|
-
return this.
|
|
1413
|
+
protoOf(DefaultWebSocketSessionImpl).n3m = function () {
|
|
1414
|
+
return this.v3n_1;
|
|
1415
1415
|
};
|
|
1416
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1417
|
-
return this.
|
|
1416
|
+
protoOf(DefaultWebSocketSessionImpl).o3m = function () {
|
|
1417
|
+
return this.w3n_1;
|
|
1418
1418
|
};
|
|
1419
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1420
|
-
return this.
|
|
1419
|
+
protoOf(DefaultWebSocketSessionImpl).q3o = function () {
|
|
1420
|
+
return this.y3n_1;
|
|
1421
1421
|
};
|
|
1422
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1423
|
-
this.
|
|
1422
|
+
protoOf(DefaultWebSocketSessionImpl).l3m = function (value) {
|
|
1423
|
+
this.q3n_1.l3m(value);
|
|
1424
1424
|
};
|
|
1425
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1426
|
-
return this.
|
|
1425
|
+
protoOf(DefaultWebSocketSessionImpl).m3m = function () {
|
|
1426
|
+
return this.q3n_1.m3m();
|
|
1427
1427
|
};
|
|
1428
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1429
|
-
if (!this.
|
|
1428
|
+
protoOf(DefaultWebSocketSessionImpl).k3m = function (negotiatedExtensions) {
|
|
1429
|
+
if (!this.z3n_1.atomicfu$compareAndSet(false, true)) {
|
|
1430
1430
|
// Inline function 'kotlin.error' call
|
|
1431
1431
|
var message = 'WebSocket session ' + toString(this) + ' is already started.';
|
|
1432
1432
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -1435,16 +1435,16 @@ protoOf(DefaultWebSocketSessionImpl).y3k = function (negotiatedExtensions) {
|
|
|
1435
1435
|
var this_0 = get_LOGGER();
|
|
1436
1436
|
if (get_isTraceEnabled(this_0)) {
|
|
1437
1437
|
var tmp$ret$2 = 'Starting default WebSocketSession(' + toString(this) + ') ' + ('with negotiated extensions: ' + joinToString(negotiatedExtensions));
|
|
1438
|
-
this_0.
|
|
1438
|
+
this_0.c32(tmp$ret$2);
|
|
1439
1439
|
}
|
|
1440
|
-
this.
|
|
1440
|
+
this.y3n_1.i1(negotiatedExtensions);
|
|
1441
1441
|
runOrCancelPinger(this);
|
|
1442
|
-
var incomingJob = runIncomingProcessor(this, ponger(this, this.
|
|
1442
|
+
var incomingJob = runIncomingProcessor(this, ponger(this, this.o3m()));
|
|
1443
1443
|
var outgoingJob = runOutgoingProcessor(this);
|
|
1444
1444
|
launch(this, VOID, VOID, DefaultWebSocketSessionImpl$start$slambda_0(incomingJob, outgoingJob, this, null));
|
|
1445
1445
|
};
|
|
1446
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1447
|
-
return this.
|
|
1446
|
+
protoOf(DefaultWebSocketSessionImpl).i1z = function ($completion) {
|
|
1447
|
+
return this.q3n_1.i1z($completion);
|
|
1448
1448
|
};
|
|
1449
1449
|
var properties_initialized_DefaultWebSocketSession_kt_6cjlhc;
|
|
1450
1450
|
function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
@@ -1466,20 +1466,20 @@ function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
|
1466
1466
|
}
|
|
1467
1467
|
}
|
|
1468
1468
|
function readReason(_this__u8e3s4) {
|
|
1469
|
-
if (_this__u8e3s4.
|
|
1469
|
+
if (_this__u8e3s4.f3m_1.length < 2) {
|
|
1470
1470
|
return null;
|
|
1471
1471
|
}
|
|
1472
1472
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1473
1473
|
var builder = new Buffer();
|
|
1474
|
-
writeFully(builder, _this__u8e3s4.
|
|
1474
|
+
writeFully(builder, _this__u8e3s4.f3m_1);
|
|
1475
1475
|
var packet = builder;
|
|
1476
|
-
var code = packet.
|
|
1476
|
+
var code = packet.vu();
|
|
1477
1477
|
var message = readText(packet);
|
|
1478
1478
|
return new CloseReason(code, message);
|
|
1479
1479
|
}
|
|
1480
1480
|
function NonDisposableHandle() {
|
|
1481
1481
|
}
|
|
1482
|
-
protoOf(NonDisposableHandle).
|
|
1482
|
+
protoOf(NonDisposableHandle).s10 = function () {
|
|
1483
1483
|
return Unit_instance;
|
|
1484
1484
|
};
|
|
1485
1485
|
protoOf(NonDisposableHandle).toString = function () {
|
|
@@ -1503,15 +1503,15 @@ function FrameTooBigException(frameSize, cause) {
|
|
|
1503
1503
|
cause = cause === VOID ? null : cause;
|
|
1504
1504
|
Exception_init_$Init$(cause, this);
|
|
1505
1505
|
captureStack(this, FrameTooBigException);
|
|
1506
|
-
this.
|
|
1506
|
+
this.d3r_1 = frameSize;
|
|
1507
1507
|
delete this.message;
|
|
1508
1508
|
}
|
|
1509
1509
|
protoOf(FrameTooBigException).e = function () {
|
|
1510
|
-
var sizeSuffix = compare(this.
|
|
1510
|
+
var sizeSuffix = compare(this.d3r_1, new Long(0, 0)) >= 0 ? ': ' + this.d3r_1.toString() : '';
|
|
1511
1511
|
return 'Frame is too big' + sizeSuffix;
|
|
1512
1512
|
};
|
|
1513
|
-
protoOf(FrameTooBigException).
|
|
1514
|
-
return new FrameTooBigException(this.
|
|
1513
|
+
protoOf(FrameTooBigException).n16 = function () {
|
|
1514
|
+
return new FrameTooBigException(this.d3r_1, this);
|
|
1515
1515
|
};
|
|
1516
1516
|
var FrameType_TEXT_instance;
|
|
1517
1517
|
var FrameType_BINARY_instance;
|
|
@@ -1535,10 +1535,10 @@ function Companion_2() {
|
|
|
1535
1535
|
tmp$ret$0 = maxElem;
|
|
1536
1536
|
break $l$block_0;
|
|
1537
1537
|
}
|
|
1538
|
-
var maxValue = maxElem.
|
|
1538
|
+
var maxValue = maxElem.c3m_1;
|
|
1539
1539
|
do {
|
|
1540
1540
|
var e = iterator.v();
|
|
1541
|
-
var v = e.
|
|
1541
|
+
var v = e.c3m_1;
|
|
1542
1542
|
if (compareTo(maxValue, v) < 0) {
|
|
1543
1543
|
maxElem = e;
|
|
1544
1544
|
maxValue = v;
|
|
@@ -1547,10 +1547,10 @@ function Companion_2() {
|
|
|
1547
1547
|
while (iterator.u());
|
|
1548
1548
|
tmp$ret$0 = maxElem;
|
|
1549
1549
|
}
|
|
1550
|
-
tmp.
|
|
1550
|
+
tmp.e3r_1 = ensureNotNull(tmp$ret$0).c3m_1;
|
|
1551
1551
|
var tmp_0 = this;
|
|
1552
1552
|
var tmp_1 = 0;
|
|
1553
|
-
var tmp_2 = this.
|
|
1553
|
+
var tmp_2 = this.e3r_1 + 1 | 0;
|
|
1554
1554
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1555
1555
|
var tmp_3 = Array(tmp_2);
|
|
1556
1556
|
while (tmp_1 < tmp_2) {
|
|
@@ -1564,7 +1564,7 @@ function Companion_2() {
|
|
|
1564
1564
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
1565
1565
|
while (_iterator__ex2g4s.u()) {
|
|
1566
1566
|
var element = _iterator__ex2g4s.v();
|
|
1567
|
-
if (element.
|
|
1567
|
+
if (element.c3m_1 === tmp_4) {
|
|
1568
1568
|
if (found) {
|
|
1569
1569
|
tmp$ret$5 = null;
|
|
1570
1570
|
break $l$block_2;
|
|
@@ -1582,7 +1582,7 @@ function Companion_2() {
|
|
|
1582
1582
|
tmp_3[tmp_4] = tmp$ret$5;
|
|
1583
1583
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1584
1584
|
}
|
|
1585
|
-
tmp_0.
|
|
1585
|
+
tmp_0.f3r_1 = tmp_3;
|
|
1586
1586
|
}
|
|
1587
1587
|
var Companion_instance_2;
|
|
1588
1588
|
function Companion_getInstance_2() {
|
|
@@ -1614,8 +1614,8 @@ function FrameType_initEntries() {
|
|
|
1614
1614
|
var $ENTRIES_0;
|
|
1615
1615
|
function FrameType(name, ordinal, controlFrame, opcode) {
|
|
1616
1616
|
Enum.call(this, name, ordinal);
|
|
1617
|
-
this.
|
|
1618
|
-
this.
|
|
1617
|
+
this.b3m_1 = controlFrame;
|
|
1618
|
+
this.c3m_1 = opcode;
|
|
1619
1619
|
}
|
|
1620
1620
|
function FrameType_TEXT_getInstance() {
|
|
1621
1621
|
FrameType_initEntries();
|
|
@@ -1658,55 +1658,55 @@ function pinger(_this__u8e3s4, outgoing, periodMillis, timeoutMillis, onTimeout)
|
|
|
1658
1658
|
_init_properties_PingPong_kt__9aqxey();
|
|
1659
1659
|
var actorJob = Job();
|
|
1660
1660
|
var channel = Channel(2147483647);
|
|
1661
|
-
var tmp = actorJob.
|
|
1661
|
+
var tmp = actorJob.sk(get_PingerCoroutineName());
|
|
1662
1662
|
launch(_this__u8e3s4, tmp, VOID, pinger$slambda_0(periodMillis, timeoutMillis, onTimeout, channel, outgoing, null));
|
|
1663
|
-
var tmp_0 = ensureNotNull(_this__u8e3s4.
|
|
1664
|
-
tmp_0.
|
|
1663
|
+
var tmp_0 = ensureNotNull(_this__u8e3s4.tx().v9(Key_instance));
|
|
1664
|
+
tmp_0.wy(pinger$lambda(actorJob));
|
|
1665
1665
|
return channel;
|
|
1666
1666
|
}
|
|
1667
1667
|
function ponger$slambda($channel, $outgoing, resultContinuation) {
|
|
1668
|
-
this.
|
|
1669
|
-
this.
|
|
1668
|
+
this.o3r_1 = $channel;
|
|
1669
|
+
this.p3r_1 = $outgoing;
|
|
1670
1670
|
CoroutineImpl.call(this, resultContinuation);
|
|
1671
1671
|
}
|
|
1672
|
-
protoOf(ponger$slambda).
|
|
1673
|
-
var tmp = this.
|
|
1674
|
-
tmp.
|
|
1675
|
-
tmp.
|
|
1676
|
-
return tmp.
|
|
1672
|
+
protoOf(ponger$slambda).w1o = function ($this$launch, $completion) {
|
|
1673
|
+
var tmp = this.x1o($this$launch, $completion);
|
|
1674
|
+
tmp.k9_1 = Unit_instance;
|
|
1675
|
+
tmp.l9_1 = null;
|
|
1676
|
+
return tmp.q9();
|
|
1677
1677
|
};
|
|
1678
|
-
protoOf(ponger$slambda).
|
|
1679
|
-
return this.
|
|
1678
|
+
protoOf(ponger$slambda).da = function (p1, $completion) {
|
|
1679
|
+
return this.w1o((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1680
1680
|
};
|
|
1681
|
-
protoOf(ponger$slambda).
|
|
1682
|
-
var suspendResult = this.
|
|
1681
|
+
protoOf(ponger$slambda).q9 = function () {
|
|
1682
|
+
var suspendResult = this.k9_1;
|
|
1683
1683
|
$sm: do
|
|
1684
1684
|
try {
|
|
1685
|
-
var tmp = this.
|
|
1685
|
+
var tmp = this.i9_1;
|
|
1686
1686
|
switch (tmp) {
|
|
1687
1687
|
case 0:
|
|
1688
|
-
this.
|
|
1689
|
-
this.
|
|
1690
|
-
this.
|
|
1691
|
-
this.
|
|
1688
|
+
this.j9_1 = 14;
|
|
1689
|
+
this.j9_1 = 13;
|
|
1690
|
+
this.u3r_1 = this.o3r_1;
|
|
1691
|
+
this.i9_1 = 1;
|
|
1692
1692
|
continue $sm;
|
|
1693
1693
|
case 1:
|
|
1694
|
-
this.
|
|
1695
|
-
this.
|
|
1696
|
-
this.
|
|
1694
|
+
this.s3r_1 = this.u3r_1;
|
|
1695
|
+
this.r3r_1 = null;
|
|
1696
|
+
this.i9_1 = 2;
|
|
1697
1697
|
continue $sm;
|
|
1698
1698
|
case 2:
|
|
1699
|
-
this.
|
|
1699
|
+
this.i9_1 = 3;
|
|
1700
1700
|
continue $sm;
|
|
1701
1701
|
case 3:
|
|
1702
|
-
this.
|
|
1703
|
-
this.
|
|
1704
|
-
this.
|
|
1705
|
-
this.
|
|
1702
|
+
this.j9_1 = 10;
|
|
1703
|
+
this.j9_1 = 9;
|
|
1704
|
+
this.t3r_1 = this.s3r_1.t();
|
|
1705
|
+
this.i9_1 = 4;
|
|
1706
1706
|
continue $sm;
|
|
1707
1707
|
case 4:
|
|
1708
|
-
this.
|
|
1709
|
-
suspendResult = this.
|
|
1708
|
+
this.i9_1 = 5;
|
|
1709
|
+
suspendResult = this.t3r_1.v1e(this);
|
|
1710
1710
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1711
1711
|
return suspendResult;
|
|
1712
1712
|
}
|
|
@@ -1714,316 +1714,316 @@ protoOf(ponger$slambda).o9 = function () {
|
|
|
1714
1714
|
continue $sm;
|
|
1715
1715
|
case 5:
|
|
1716
1716
|
if (!suspendResult) {
|
|
1717
|
-
this.
|
|
1717
|
+
this.i9_1 = 7;
|
|
1718
1718
|
continue $sm;
|
|
1719
1719
|
}
|
|
1720
1720
|
|
|
1721
|
-
var e = this.
|
|
1722
|
-
get_LOGGER().
|
|
1723
|
-
this.
|
|
1724
|
-
suspendResult = this.
|
|
1721
|
+
var e = this.t3r_1.v();
|
|
1722
|
+
get_LOGGER().c32('Received ping message, sending pong message');
|
|
1723
|
+
this.i9_1 = 6;
|
|
1724
|
+
suspendResult = this.p3r_1.s1g(new Pong(e.f3m_1), this);
|
|
1725
1725
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1726
1726
|
return suspendResult;
|
|
1727
1727
|
}
|
|
1728
1728
|
|
|
1729
1729
|
continue $sm;
|
|
1730
1730
|
case 6:
|
|
1731
|
-
this.
|
|
1731
|
+
this.i9_1 = 4;
|
|
1732
1732
|
continue $sm;
|
|
1733
1733
|
case 7:
|
|
1734
|
-
this.
|
|
1734
|
+
this.i9_1 = 8;
|
|
1735
1735
|
var tmp_0 = this;
|
|
1736
1736
|
continue $sm;
|
|
1737
1737
|
case 8:
|
|
1738
|
-
this.
|
|
1739
|
-
cancelConsumed(this.
|
|
1740
|
-
this.
|
|
1738
|
+
this.j9_1 = 13;
|
|
1739
|
+
cancelConsumed(this.s3r_1, this.r3r_1);
|
|
1740
|
+
this.i9_1 = 12;
|
|
1741
1741
|
continue $sm;
|
|
1742
1742
|
case 9:
|
|
1743
|
-
this.
|
|
1744
|
-
var tmp_1 = this.
|
|
1743
|
+
this.j9_1 = 10;
|
|
1744
|
+
var tmp_1 = this.l9_1;
|
|
1745
1745
|
if (tmp_1 instanceof Error) {
|
|
1746
|
-
var e_0 = this.
|
|
1746
|
+
var e_0 = this.l9_1;
|
|
1747
1747
|
var tmp_2 = this;
|
|
1748
|
-
this.
|
|
1748
|
+
this.r3r_1 = e_0;
|
|
1749
1749
|
throw e_0;
|
|
1750
1750
|
} else {
|
|
1751
|
-
throw this.
|
|
1751
|
+
throw this.l9_1;
|
|
1752
1752
|
}
|
|
1753
1753
|
|
|
1754
1754
|
case 10:
|
|
1755
|
-
this.
|
|
1756
|
-
var t = this.
|
|
1757
|
-
cancelConsumed(this.
|
|
1755
|
+
this.j9_1 = 13;
|
|
1756
|
+
var t = this.l9_1;
|
|
1757
|
+
cancelConsumed(this.s3r_1, this.r3r_1);
|
|
1758
1758
|
throw t;
|
|
1759
1759
|
case 11:
|
|
1760
|
-
this.
|
|
1761
|
-
cancelConsumed(this.
|
|
1760
|
+
this.j9_1 = 13;
|
|
1761
|
+
cancelConsumed(this.s3r_1, this.r3r_1);
|
|
1762
1762
|
if (false) {
|
|
1763
|
-
this.
|
|
1763
|
+
this.i9_1 = 1;
|
|
1764
1764
|
continue $sm;
|
|
1765
1765
|
}
|
|
1766
1766
|
|
|
1767
|
-
this.
|
|
1767
|
+
this.i9_1 = 12;
|
|
1768
1768
|
continue $sm;
|
|
1769
1769
|
case 12:
|
|
1770
|
-
this.
|
|
1771
|
-
this.
|
|
1770
|
+
this.j9_1 = 14;
|
|
1771
|
+
this.i9_1 = 15;
|
|
1772
1772
|
continue $sm;
|
|
1773
1773
|
case 13:
|
|
1774
|
-
this.
|
|
1775
|
-
var tmp_3 = this.
|
|
1774
|
+
this.j9_1 = 14;
|
|
1775
|
+
var tmp_3 = this.l9_1;
|
|
1776
1776
|
if (tmp_3 instanceof ClosedSendChannelException) {
|
|
1777
|
-
var _unused_var__etf5q3 = this.
|
|
1778
|
-
this.
|
|
1777
|
+
var _unused_var__etf5q3 = this.l9_1;
|
|
1778
|
+
this.i9_1 = 15;
|
|
1779
1779
|
continue $sm;
|
|
1780
1780
|
} else {
|
|
1781
|
-
throw this.
|
|
1781
|
+
throw this.l9_1;
|
|
1782
1782
|
}
|
|
1783
1783
|
|
|
1784
1784
|
case 14:
|
|
1785
|
-
throw this.
|
|
1785
|
+
throw this.l9_1;
|
|
1786
1786
|
case 15:
|
|
1787
|
-
this.
|
|
1787
|
+
this.j9_1 = 14;
|
|
1788
1788
|
return Unit_instance;
|
|
1789
1789
|
}
|
|
1790
1790
|
} catch ($p) {
|
|
1791
1791
|
var e_1 = $p;
|
|
1792
|
-
if (this.
|
|
1792
|
+
if (this.j9_1 === 14) {
|
|
1793
1793
|
throw e_1;
|
|
1794
1794
|
} else {
|
|
1795
|
-
this.
|
|
1796
|
-
this.
|
|
1795
|
+
this.i9_1 = this.j9_1;
|
|
1796
|
+
this.l9_1 = e_1;
|
|
1797
1797
|
}
|
|
1798
1798
|
}
|
|
1799
1799
|
while (true);
|
|
1800
1800
|
};
|
|
1801
|
-
protoOf(ponger$slambda).
|
|
1802
|
-
var i = new ponger$slambda(this.
|
|
1803
|
-
i.
|
|
1801
|
+
protoOf(ponger$slambda).x1o = function ($this$launch, completion) {
|
|
1802
|
+
var i = new ponger$slambda(this.o3r_1, this.p3r_1, completion);
|
|
1803
|
+
i.q3r_1 = $this$launch;
|
|
1804
1804
|
return i;
|
|
1805
1805
|
};
|
|
1806
1806
|
function ponger$slambda_0($channel, $outgoing, resultContinuation) {
|
|
1807
1807
|
var i = new ponger$slambda($channel, $outgoing, resultContinuation);
|
|
1808
1808
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
1809
|
-
return i.
|
|
1809
|
+
return i.w1o($this$launch, $completion);
|
|
1810
1810
|
}, 1);
|
|
1811
1811
|
}
|
|
1812
1812
|
function pinger$slambda$slambda($channel, resultContinuation) {
|
|
1813
|
-
this.
|
|
1813
|
+
this.d3s_1 = $channel;
|
|
1814
1814
|
CoroutineImpl.call(this, resultContinuation);
|
|
1815
1815
|
}
|
|
1816
|
-
protoOf(pinger$slambda$slambda).
|
|
1817
|
-
var tmp = this.
|
|
1818
|
-
tmp.
|
|
1819
|
-
tmp.
|
|
1820
|
-
return tmp.
|
|
1816
|
+
protoOf(pinger$slambda$slambda).w1o = function ($this$withTimeoutOrNull, $completion) {
|
|
1817
|
+
var tmp = this.x1o($this$withTimeoutOrNull, $completion);
|
|
1818
|
+
tmp.k9_1 = Unit_instance;
|
|
1819
|
+
tmp.l9_1 = null;
|
|
1820
|
+
return tmp.q9();
|
|
1821
1821
|
};
|
|
1822
|
-
protoOf(pinger$slambda$slambda).
|
|
1823
|
-
return this.
|
|
1822
|
+
protoOf(pinger$slambda$slambda).da = function (p1, $completion) {
|
|
1823
|
+
return this.w1o((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1824
1824
|
};
|
|
1825
|
-
protoOf(pinger$slambda$slambda).
|
|
1826
|
-
var suspendResult = this.
|
|
1825
|
+
protoOf(pinger$slambda$slambda).q9 = function () {
|
|
1826
|
+
var suspendResult = this.k9_1;
|
|
1827
1827
|
$sm: do
|
|
1828
1828
|
try {
|
|
1829
|
-
var tmp = this.
|
|
1829
|
+
var tmp = this.i9_1;
|
|
1830
1830
|
switch (tmp) {
|
|
1831
1831
|
case 0:
|
|
1832
|
-
this.
|
|
1833
|
-
this.
|
|
1832
|
+
this.j9_1 = 3;
|
|
1833
|
+
this.i9_1 = 1;
|
|
1834
1834
|
continue $sm;
|
|
1835
1835
|
case 1:
|
|
1836
1836
|
if (!true) {
|
|
1837
|
-
this.
|
|
1837
|
+
this.i9_1 = 4;
|
|
1838
1838
|
continue $sm;
|
|
1839
1839
|
}
|
|
1840
1840
|
|
|
1841
|
-
this.
|
|
1842
|
-
suspendResult = this.
|
|
1841
|
+
this.i9_1 = 2;
|
|
1842
|
+
suspendResult = this.d3s_1.v1g(this);
|
|
1843
1843
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1844
1844
|
return suspendResult;
|
|
1845
1845
|
}
|
|
1846
1846
|
|
|
1847
1847
|
continue $sm;
|
|
1848
1848
|
case 2:
|
|
1849
|
-
this.
|
|
1849
|
+
this.i9_1 = 1;
|
|
1850
1850
|
continue $sm;
|
|
1851
1851
|
case 3:
|
|
1852
|
-
throw this.
|
|
1852
|
+
throw this.l9_1;
|
|
1853
1853
|
case 4:
|
|
1854
1854
|
return Unit_instance;
|
|
1855
1855
|
}
|
|
1856
1856
|
} catch ($p) {
|
|
1857
1857
|
var e = $p;
|
|
1858
|
-
if (this.
|
|
1858
|
+
if (this.j9_1 === 3) {
|
|
1859
1859
|
throw e;
|
|
1860
1860
|
} else {
|
|
1861
|
-
this.
|
|
1862
|
-
this.
|
|
1861
|
+
this.i9_1 = this.j9_1;
|
|
1862
|
+
this.l9_1 = e;
|
|
1863
1863
|
}
|
|
1864
1864
|
}
|
|
1865
1865
|
while (true);
|
|
1866
1866
|
};
|
|
1867
|
-
protoOf(pinger$slambda$slambda).
|
|
1868
|
-
var i = new pinger$slambda$slambda(this.
|
|
1869
|
-
i.
|
|
1867
|
+
protoOf(pinger$slambda$slambda).x1o = function ($this$withTimeoutOrNull, completion) {
|
|
1868
|
+
var i = new pinger$slambda$slambda(this.d3s_1, completion);
|
|
1869
|
+
i.e3s_1 = $this$withTimeoutOrNull;
|
|
1870
1870
|
return i;
|
|
1871
1871
|
};
|
|
1872
1872
|
function pinger$slambda$slambda_0($channel, resultContinuation) {
|
|
1873
1873
|
var i = new pinger$slambda$slambda($channel, resultContinuation);
|
|
1874
1874
|
return constructCallableReference(function ($this$withTimeoutOrNull, $completion) {
|
|
1875
|
-
return i.
|
|
1875
|
+
return i.w1o($this$withTimeoutOrNull, $completion);
|
|
1876
1876
|
}, 1);
|
|
1877
1877
|
}
|
|
1878
1878
|
function pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1879
|
-
this.
|
|
1880
|
-
this.
|
|
1881
|
-
this.
|
|
1879
|
+
this.n3s_1 = $outgoing;
|
|
1880
|
+
this.o3s_1 = $pingMessage;
|
|
1881
|
+
this.p3s_1 = $channel;
|
|
1882
1882
|
CoroutineImpl.call(this, resultContinuation);
|
|
1883
1883
|
}
|
|
1884
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1885
|
-
var tmp = this.
|
|
1886
|
-
tmp.
|
|
1887
|
-
tmp.
|
|
1888
|
-
return tmp.
|
|
1884
|
+
protoOf(pinger$slambda$slambda_1).w1o = function ($this$withTimeoutOrNull, $completion) {
|
|
1885
|
+
var tmp = this.x1o($this$withTimeoutOrNull, $completion);
|
|
1886
|
+
tmp.k9_1 = Unit_instance;
|
|
1887
|
+
tmp.l9_1 = null;
|
|
1888
|
+
return tmp.q9();
|
|
1889
1889
|
};
|
|
1890
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1891
|
-
return this.
|
|
1890
|
+
protoOf(pinger$slambda$slambda_1).da = function (p1, $completion) {
|
|
1891
|
+
return this.w1o((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1892
1892
|
};
|
|
1893
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1894
|
-
var suspendResult = this.
|
|
1893
|
+
protoOf(pinger$slambda$slambda_1).q9 = function () {
|
|
1894
|
+
var suspendResult = this.k9_1;
|
|
1895
1895
|
$sm: do
|
|
1896
1896
|
try {
|
|
1897
|
-
var tmp = this.
|
|
1897
|
+
var tmp = this.i9_1;
|
|
1898
1898
|
switch (tmp) {
|
|
1899
1899
|
case 0:
|
|
1900
|
-
this.
|
|
1901
|
-
get_LOGGER().
|
|
1902
|
-
this.
|
|
1903
|
-
suspendResult = this.
|
|
1900
|
+
this.j9_1 = 6;
|
|
1901
|
+
get_LOGGER().c32('WebSocket Pinger: sending ping frame');
|
|
1902
|
+
this.i9_1 = 1;
|
|
1903
|
+
suspendResult = this.n3s_1.s1g(new Ping(toByteArray(this.o3s_1, Charsets_getInstance().l28_1)), this);
|
|
1904
1904
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1905
1905
|
return suspendResult;
|
|
1906
1906
|
}
|
|
1907
1907
|
|
|
1908
1908
|
continue $sm;
|
|
1909
1909
|
case 1:
|
|
1910
|
-
this.
|
|
1910
|
+
this.i9_1 = 2;
|
|
1911
1911
|
continue $sm;
|
|
1912
1912
|
case 2:
|
|
1913
1913
|
if (!true) {
|
|
1914
|
-
this.
|
|
1914
|
+
this.i9_1 = 5;
|
|
1915
1915
|
continue $sm;
|
|
1916
1916
|
}
|
|
1917
1917
|
|
|
1918
|
-
this.
|
|
1919
|
-
suspendResult = this.
|
|
1918
|
+
this.i9_1 = 3;
|
|
1919
|
+
suspendResult = this.p3s_1.v1g(this);
|
|
1920
1920
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1921
1921
|
return suspendResult;
|
|
1922
1922
|
}
|
|
1923
1923
|
|
|
1924
1924
|
continue $sm;
|
|
1925
1925
|
case 3:
|
|
1926
|
-
this.
|
|
1927
|
-
if (decodeToString(this.
|
|
1926
|
+
this.r3s_1 = suspendResult;
|
|
1927
|
+
if (decodeToString(this.r3s_1.f3m_1, 0, 0 + this.r3s_1.f3m_1.length | 0) === this.o3s_1) {
|
|
1928
1928
|
var this_0 = get_LOGGER();
|
|
1929
1929
|
if (get_isTraceEnabled(this_0)) {
|
|
1930
|
-
this_0.
|
|
1930
|
+
this_0.c32('WebSocket Pinger: received valid pong frame ' + this.r3s_1.toString());
|
|
1931
1931
|
}
|
|
1932
|
-
this.
|
|
1932
|
+
this.i9_1 = 5;
|
|
1933
1933
|
continue $sm;
|
|
1934
1934
|
} else {
|
|
1935
|
-
this.
|
|
1935
|
+
this.i9_1 = 4;
|
|
1936
1936
|
continue $sm;
|
|
1937
1937
|
}
|
|
1938
1938
|
|
|
1939
1939
|
case 4:
|
|
1940
1940
|
var this_1 = get_LOGGER();
|
|
1941
1941
|
if (get_isTraceEnabled(this_1)) {
|
|
1942
|
-
this_1.
|
|
1942
|
+
this_1.c32('WebSocket Pinger: received invalid pong frame ' + this.r3s_1.toString() + ', continue waiting');
|
|
1943
1943
|
}
|
|
1944
1944
|
|
|
1945
|
-
this.
|
|
1945
|
+
this.i9_1 = 2;
|
|
1946
1946
|
continue $sm;
|
|
1947
1947
|
case 5:
|
|
1948
1948
|
return Unit_instance;
|
|
1949
1949
|
case 6:
|
|
1950
|
-
throw this.
|
|
1950
|
+
throw this.l9_1;
|
|
1951
1951
|
}
|
|
1952
1952
|
} catch ($p) {
|
|
1953
1953
|
var e = $p;
|
|
1954
|
-
if (this.
|
|
1954
|
+
if (this.j9_1 === 6) {
|
|
1955
1955
|
throw e;
|
|
1956
1956
|
} else {
|
|
1957
|
-
this.
|
|
1958
|
-
this.
|
|
1957
|
+
this.i9_1 = this.j9_1;
|
|
1958
|
+
this.l9_1 = e;
|
|
1959
1959
|
}
|
|
1960
1960
|
}
|
|
1961
1961
|
while (true);
|
|
1962
1962
|
};
|
|
1963
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1964
|
-
var i = new pinger$slambda$slambda_1(this.
|
|
1965
|
-
i.
|
|
1963
|
+
protoOf(pinger$slambda$slambda_1).x1o = function ($this$withTimeoutOrNull, completion) {
|
|
1964
|
+
var i = new pinger$slambda$slambda_1(this.n3s_1, this.o3s_1, this.p3s_1, completion);
|
|
1965
|
+
i.q3s_1 = $this$withTimeoutOrNull;
|
|
1966
1966
|
return i;
|
|
1967
1967
|
};
|
|
1968
1968
|
function pinger$slambda$slambda_2($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1969
1969
|
var i = new pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation);
|
|
1970
1970
|
return constructCallableReference(function ($this$withTimeoutOrNull, $completion) {
|
|
1971
|
-
return i.
|
|
1971
|
+
return i.w1o($this$withTimeoutOrNull, $completion);
|
|
1972
1972
|
}, 1);
|
|
1973
1973
|
}
|
|
1974
1974
|
function pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
1975
|
-
this.
|
|
1976
|
-
this.
|
|
1977
|
-
this.
|
|
1978
|
-
this.
|
|
1979
|
-
this.
|
|
1975
|
+
this.a3t_1 = $periodMillis;
|
|
1976
|
+
this.b3t_1 = $timeoutMillis;
|
|
1977
|
+
this.c3t_1 = $onTimeout;
|
|
1978
|
+
this.d3t_1 = $channel;
|
|
1979
|
+
this.e3t_1 = $outgoing;
|
|
1980
1980
|
CoroutineImpl.call(this, resultContinuation);
|
|
1981
1981
|
}
|
|
1982
|
-
protoOf(pinger$slambda).
|
|
1983
|
-
var tmp = this.
|
|
1984
|
-
tmp.
|
|
1985
|
-
tmp.
|
|
1986
|
-
return tmp.
|
|
1982
|
+
protoOf(pinger$slambda).w1o = function ($this$launch, $completion) {
|
|
1983
|
+
var tmp = this.x1o($this$launch, $completion);
|
|
1984
|
+
tmp.k9_1 = Unit_instance;
|
|
1985
|
+
tmp.l9_1 = null;
|
|
1986
|
+
return tmp.q9();
|
|
1987
1987
|
};
|
|
1988
|
-
protoOf(pinger$slambda).
|
|
1989
|
-
return this.
|
|
1988
|
+
protoOf(pinger$slambda).da = function (p1, $completion) {
|
|
1989
|
+
return this.w1o((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1990
1990
|
};
|
|
1991
|
-
protoOf(pinger$slambda).
|
|
1992
|
-
var suspendResult = this.
|
|
1991
|
+
protoOf(pinger$slambda).q9 = function () {
|
|
1992
|
+
var suspendResult = this.k9_1;
|
|
1993
1993
|
$sm: do
|
|
1994
1994
|
try {
|
|
1995
|
-
var tmp = this.
|
|
1995
|
+
var tmp = this.i9_1;
|
|
1996
1996
|
switch (tmp) {
|
|
1997
1997
|
case 0:
|
|
1998
|
-
this.
|
|
1998
|
+
this.j9_1 = 8;
|
|
1999
1999
|
var this_0 = get_LOGGER();
|
|
2000
2000
|
if (get_isTraceEnabled(this_0)) {
|
|
2001
|
-
this_0.
|
|
2001
|
+
this_0.c32('Starting WebSocket pinger coroutine with period ' + this.a3t_1.toString() + ' ms and timeout ' + this.b3t_1.toString() + ' ms');
|
|
2002
2002
|
}
|
|
2003
2003
|
|
|
2004
|
-
this.
|
|
2005
|
-
this.
|
|
2006
|
-
this.
|
|
2007
|
-
this.
|
|
2004
|
+
this.h3t_1 = Random(getTimeMillis());
|
|
2005
|
+
this.g3t_1 = new Int8Array(32);
|
|
2006
|
+
this.j9_1 = 7;
|
|
2007
|
+
this.i9_1 = 1;
|
|
2008
2008
|
continue $sm;
|
|
2009
2009
|
case 1:
|
|
2010
2010
|
if (!true) {
|
|
2011
|
-
this.
|
|
2011
|
+
this.i9_1 = 6;
|
|
2012
2012
|
continue $sm;
|
|
2013
2013
|
}
|
|
2014
2014
|
|
|
2015
|
-
this.
|
|
2016
|
-
suspendResult = withTimeoutOrNull(this.
|
|
2015
|
+
this.i9_1 = 2;
|
|
2016
|
+
suspendResult = withTimeoutOrNull(this.a3t_1, pinger$slambda$slambda_0(this.d3t_1, null), this);
|
|
2017
2017
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2018
2018
|
return suspendResult;
|
|
2019
2019
|
}
|
|
2020
2020
|
|
|
2021
2021
|
continue $sm;
|
|
2022
2022
|
case 2:
|
|
2023
|
-
this.
|
|
2024
|
-
var pingMessage = '[ping ' + toHexString(this.
|
|
2025
|
-
this.
|
|
2026
|
-
suspendResult = withTimeoutOrNull(this.
|
|
2023
|
+
this.h3t_1.im(this.g3t_1);
|
|
2024
|
+
var pingMessage = '[ping ' + toHexString(this.g3t_1) + ' ping]';
|
|
2025
|
+
this.i9_1 = 3;
|
|
2026
|
+
suspendResult = withTimeoutOrNull(this.b3t_1, pinger$slambda$slambda_2(this.e3t_1, pingMessage, this.d3t_1, null), this);
|
|
2027
2027
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2028
2028
|
return suspendResult;
|
|
2029
2029
|
}
|
|
@@ -2032,91 +2032,91 @@ protoOf(pinger$slambda).o9 = function () {
|
|
|
2032
2032
|
case 3:
|
|
2033
2033
|
var rc = suspendResult;
|
|
2034
2034
|
if (rc == null) {
|
|
2035
|
-
get_LOGGER().
|
|
2036
|
-
this.
|
|
2037
|
-
suspendResult = this.
|
|
2035
|
+
get_LOGGER().c32('WebSocket pinger has timed out');
|
|
2036
|
+
this.i9_1 = 5;
|
|
2037
|
+
suspendResult = this.c3t_1(CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), 'Ping timeout'), this);
|
|
2038
2038
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2039
2039
|
return suspendResult;
|
|
2040
2040
|
}
|
|
2041
2041
|
continue $sm;
|
|
2042
2042
|
} else {
|
|
2043
|
-
this.
|
|
2043
|
+
this.i9_1 = 4;
|
|
2044
2044
|
continue $sm;
|
|
2045
2045
|
}
|
|
2046
2046
|
|
|
2047
2047
|
case 4:
|
|
2048
|
-
this.
|
|
2048
|
+
this.i9_1 = 1;
|
|
2049
2049
|
continue $sm;
|
|
2050
2050
|
case 5:
|
|
2051
|
-
this.
|
|
2051
|
+
this.i9_1 = 6;
|
|
2052
2052
|
continue $sm;
|
|
2053
2053
|
case 6:
|
|
2054
|
-
this.
|
|
2055
|
-
this.
|
|
2054
|
+
this.j9_1 = 8;
|
|
2055
|
+
this.i9_1 = 9;
|
|
2056
2056
|
continue $sm;
|
|
2057
2057
|
case 7:
|
|
2058
|
-
this.
|
|
2059
|
-
var tmp_0 = this.
|
|
2058
|
+
this.j9_1 = 8;
|
|
2059
|
+
var tmp_0 = this.l9_1;
|
|
2060
2060
|
if (tmp_0 instanceof CancellationException) {
|
|
2061
|
-
var ignore = this.
|
|
2062
|
-
this.
|
|
2061
|
+
var ignore = this.l9_1;
|
|
2062
|
+
this.i9_1 = 9;
|
|
2063
2063
|
continue $sm;
|
|
2064
2064
|
} else {
|
|
2065
|
-
var tmp_1 = this.
|
|
2065
|
+
var tmp_1 = this.l9_1;
|
|
2066
2066
|
if (tmp_1 instanceof ClosedReceiveChannelException) {
|
|
2067
|
-
var ignore_0 = this.
|
|
2068
|
-
this.
|
|
2067
|
+
var ignore_0 = this.l9_1;
|
|
2068
|
+
this.i9_1 = 9;
|
|
2069
2069
|
continue $sm;
|
|
2070
2070
|
} else {
|
|
2071
|
-
var tmp_2 = this.
|
|
2071
|
+
var tmp_2 = this.l9_1;
|
|
2072
2072
|
if (tmp_2 instanceof ClosedSendChannelException) {
|
|
2073
|
-
var ignore_1 = this.
|
|
2074
|
-
this.
|
|
2073
|
+
var ignore_1 = this.l9_1;
|
|
2074
|
+
this.i9_1 = 9;
|
|
2075
2075
|
continue $sm;
|
|
2076
2076
|
} else {
|
|
2077
|
-
var tmp_3 = this.
|
|
2077
|
+
var tmp_3 = this.l9_1;
|
|
2078
2078
|
if (tmp_3 instanceof ClosedByteChannelException) {
|
|
2079
|
-
var ignore_2 = this.
|
|
2080
|
-
this.
|
|
2079
|
+
var ignore_2 = this.l9_1;
|
|
2080
|
+
this.i9_1 = 9;
|
|
2081
2081
|
continue $sm;
|
|
2082
2082
|
} else {
|
|
2083
|
-
throw this.
|
|
2083
|
+
throw this.l9_1;
|
|
2084
2084
|
}
|
|
2085
2085
|
}
|
|
2086
2086
|
}
|
|
2087
2087
|
}
|
|
2088
2088
|
|
|
2089
2089
|
case 8:
|
|
2090
|
-
throw this.
|
|
2090
|
+
throw this.l9_1;
|
|
2091
2091
|
case 9:
|
|
2092
|
-
this.
|
|
2092
|
+
this.j9_1 = 8;
|
|
2093
2093
|
return Unit_instance;
|
|
2094
2094
|
}
|
|
2095
2095
|
} catch ($p) {
|
|
2096
2096
|
var e = $p;
|
|
2097
|
-
if (this.
|
|
2097
|
+
if (this.j9_1 === 8) {
|
|
2098
2098
|
throw e;
|
|
2099
2099
|
} else {
|
|
2100
|
-
this.
|
|
2101
|
-
this.
|
|
2100
|
+
this.i9_1 = this.j9_1;
|
|
2101
|
+
this.l9_1 = e;
|
|
2102
2102
|
}
|
|
2103
2103
|
}
|
|
2104
2104
|
while (true);
|
|
2105
2105
|
};
|
|
2106
|
-
protoOf(pinger$slambda).
|
|
2107
|
-
var i = new pinger$slambda(this.
|
|
2108
|
-
i.
|
|
2106
|
+
protoOf(pinger$slambda).x1o = function ($this$launch, completion) {
|
|
2107
|
+
var i = new pinger$slambda(this.a3t_1, this.b3t_1, this.c3t_1, this.d3t_1, this.e3t_1, completion);
|
|
2108
|
+
i.f3t_1 = $this$launch;
|
|
2109
2109
|
return i;
|
|
2110
2110
|
};
|
|
2111
2111
|
function pinger$slambda_0($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
2112
2112
|
var i = new pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation);
|
|
2113
2113
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
2114
|
-
return i.
|
|
2114
|
+
return i.w1o($this$launch, $completion);
|
|
2115
2115
|
}, 1);
|
|
2116
2116
|
}
|
|
2117
2117
|
function pinger$lambda($actorJob) {
|
|
2118
2118
|
return function (it) {
|
|
2119
|
-
$actorJob.
|
|
2119
|
+
$actorJob.ez();
|
|
2120
2120
|
return Unit_instance;
|
|
2121
2121
|
};
|
|
2122
2122
|
}
|
|
@@ -2133,9 +2133,9 @@ function Companion_3() {
|
|
|
2133
2133
|
var tmp = this;
|
|
2134
2134
|
// Inline function 'kotlin.apply' call
|
|
2135
2135
|
var this_0 = new WebSocketChannelsConfig();
|
|
2136
|
-
this_0.
|
|
2137
|
-
this_0.
|
|
2138
|
-
tmp.
|
|
2136
|
+
this_0.r3m_1 = this_0.i3t();
|
|
2137
|
+
this_0.s3m_1 = this_0.i3t();
|
|
2138
|
+
tmp.q3m_1 = this_0;
|
|
2139
2139
|
}
|
|
2140
2140
|
var Companion_instance_3;
|
|
2141
2141
|
function Companion_getInstance_3() {
|
|
@@ -2145,21 +2145,21 @@ function Companion_getInstance_3() {
|
|
|
2145
2145
|
}
|
|
2146
2146
|
function WebSocketChannelsConfig() {
|
|
2147
2147
|
Companion_getInstance_3();
|
|
2148
|
-
this.
|
|
2149
|
-
this.
|
|
2148
|
+
this.r3m_1 = Companion_getInstance_4().j3t_1;
|
|
2149
|
+
this.s3m_1 = Companion_getInstance_4().j3t_1;
|
|
2150
2150
|
}
|
|
2151
|
-
protoOf(WebSocketChannelsConfig).
|
|
2152
|
-
return Companion_getInstance_4().
|
|
2151
|
+
protoOf(WebSocketChannelsConfig).i3t = function () {
|
|
2152
|
+
return Companion_getInstance_4().j3t_1;
|
|
2153
2153
|
};
|
|
2154
2154
|
function from(_this__u8e3s4, config) {
|
|
2155
2155
|
// Inline function 'kotlin.with' call
|
|
2156
2156
|
var tmp;
|
|
2157
|
-
if (config.
|
|
2157
|
+
if (config.k3t_1 === 2147483647) {
|
|
2158
2158
|
tmp = Channel(2147483647);
|
|
2159
|
-
} else if (config.
|
|
2160
|
-
tmp = Channel(config.
|
|
2161
|
-
} else if (config.
|
|
2162
|
-
tmp = new BoundedChannel(config.
|
|
2159
|
+
} else if (config.l3t_1.equals(ChannelOverflow_SUSPEND_getInstance())) {
|
|
2160
|
+
tmp = Channel(config.k3t_1, BufferOverflow_SUSPEND_getInstance());
|
|
2161
|
+
} else if (config.l3t_1.equals(ChannelOverflow_CLOSE_getInstance())) {
|
|
2162
|
+
tmp = new BoundedChannel(config.k3t_1);
|
|
2163
2163
|
} else {
|
|
2164
2164
|
// Inline function 'kotlin.error' call
|
|
2165
2165
|
var message = 'Unsupported channel config.';
|
|
@@ -2169,7 +2169,7 @@ function from(_this__u8e3s4, config) {
|
|
|
2169
2169
|
}
|
|
2170
2170
|
function Companion_4() {
|
|
2171
2171
|
Companion_instance_4 = this;
|
|
2172
|
-
this.
|
|
2172
|
+
this.j3t_1 = new ChannelConfig(2147483647, ChannelOverflow_SUSPEND_getInstance());
|
|
2173
2173
|
}
|
|
2174
2174
|
var Companion_instance_4;
|
|
2175
2175
|
function Companion_getInstance_4() {
|
|
@@ -2179,11 +2179,11 @@ function Companion_getInstance_4() {
|
|
|
2179
2179
|
}
|
|
2180
2180
|
function ChannelConfig(capacity, onOverflow) {
|
|
2181
2181
|
Companion_getInstance_4();
|
|
2182
|
-
this.
|
|
2183
|
-
this.
|
|
2182
|
+
this.k3t_1 = capacity;
|
|
2183
|
+
this.l3t_1 = onOverflow;
|
|
2184
2184
|
}
|
|
2185
|
-
protoOf(ChannelConfig).
|
|
2186
|
-
return this.
|
|
2185
|
+
protoOf(ChannelConfig).m3t = function () {
|
|
2186
|
+
return this.l3t_1.equals(ChannelOverflow_SUSPEND_getInstance()) && !(this.k3t_1 === 2147483647);
|
|
2187
2187
|
};
|
|
2188
2188
|
var ChannelOverflow_SUSPEND_instance;
|
|
2189
2189
|
var ChannelOverflow_CLOSE_instance;
|
|
@@ -2207,14 +2207,14 @@ function BoundedChannel$Companion$createDelegate$lambda($channel) {
|
|
|
2207
2207
|
} else {
|
|
2208
2208
|
tmp_0 = $channel._v;
|
|
2209
2209
|
}
|
|
2210
|
-
if (!tmp_0.
|
|
2210
|
+
if (!tmp_0.x1e()) {
|
|
2211
2211
|
var tmp_1;
|
|
2212
2212
|
if ($channel._v == null) {
|
|
2213
2213
|
throwUninitializedPropertyAccessException('channel');
|
|
2214
2214
|
} else {
|
|
2215
2215
|
tmp_1 = $channel._v;
|
|
2216
2216
|
}
|
|
2217
|
-
tmp_1.
|
|
2217
|
+
tmp_1.x1g(new ChannelOverflowException('Channel overflowed'));
|
|
2218
2218
|
tmp = Unit_instance;
|
|
2219
2219
|
}
|
|
2220
2220
|
return Unit_instance;
|
|
@@ -2222,7 +2222,7 @@ function BoundedChannel$Companion$createDelegate$lambda($channel) {
|
|
|
2222
2222
|
}
|
|
2223
2223
|
function Companion_5() {
|
|
2224
2224
|
}
|
|
2225
|
-
protoOf(Companion_5).
|
|
2225
|
+
protoOf(Companion_5).n3t = function (capacity) {
|
|
2226
2226
|
var channel = {_v: null};
|
|
2227
2227
|
var tmp = BufferOverflow_DROP_OLDEST_getInstance();
|
|
2228
2228
|
// Inline function 'kotlin.also' call
|
|
@@ -2235,45 +2235,45 @@ function Companion_getInstance_5() {
|
|
|
2235
2235
|
return Companion_instance_5;
|
|
2236
2236
|
}
|
|
2237
2237
|
function BoundedChannel(capacity, delegate) {
|
|
2238
|
-
delegate = delegate === VOID ? Companion_instance_5.
|
|
2239
|
-
this.
|
|
2238
|
+
delegate = delegate === VOID ? Companion_instance_5.n3t(capacity) : delegate;
|
|
2239
|
+
this.o3t_1 = delegate;
|
|
2240
2240
|
}
|
|
2241
|
-
protoOf(BoundedChannel).
|
|
2242
|
-
var result = this.
|
|
2241
|
+
protoOf(BoundedChannel).p3t = function (element) {
|
|
2242
|
+
var result = this.o3t_1.t1g(element);
|
|
2243
2243
|
if (!_ChannelResult___get_isSuccess__impl__odq1z9(result) && !_ChannelResult___get_isClosed__impl__mg7kuu(result)) {
|
|
2244
|
-
this.
|
|
2244
|
+
this.x1g(new ChannelOverflowException('Channel overflowed'));
|
|
2245
2245
|
}
|
|
2246
2246
|
return result;
|
|
2247
2247
|
};
|
|
2248
|
-
protoOf(BoundedChannel).
|
|
2249
|
-
return this.
|
|
2248
|
+
protoOf(BoundedChannel).t1g = function (element) {
|
|
2249
|
+
return this.p3t(element);
|
|
2250
2250
|
};
|
|
2251
|
-
protoOf(BoundedChannel).
|
|
2252
|
-
return this.
|
|
2251
|
+
protoOf(BoundedChannel).q3t = function (element, $completion) {
|
|
2252
|
+
return this.o3t_1.s1g(element, $completion);
|
|
2253
2253
|
};
|
|
2254
|
-
protoOf(BoundedChannel).
|
|
2255
|
-
return this.
|
|
2254
|
+
protoOf(BoundedChannel).s1g = function (element, $completion) {
|
|
2255
|
+
return this.q3t(element, $completion);
|
|
2256
2256
|
};
|
|
2257
|
-
protoOf(BoundedChannel).
|
|
2258
|
-
return this.
|
|
2257
|
+
protoOf(BoundedChannel).x1g = function (cause) {
|
|
2258
|
+
return this.o3t_1.x1g(cause);
|
|
2259
2259
|
};
|
|
2260
|
-
protoOf(BoundedChannel).
|
|
2261
|
-
this.
|
|
2260
|
+
protoOf(BoundedChannel).c1h = function (handler) {
|
|
2261
|
+
this.o3t_1.c1h(handler);
|
|
2262
2262
|
};
|
|
2263
|
-
protoOf(BoundedChannel).
|
|
2264
|
-
return this.
|
|
2263
|
+
protoOf(BoundedChannel).x1e = function () {
|
|
2264
|
+
return this.o3t_1.x1e();
|
|
2265
2265
|
};
|
|
2266
|
-
protoOf(BoundedChannel).
|
|
2267
|
-
return this.
|
|
2266
|
+
protoOf(BoundedChannel).r3t = function ($completion) {
|
|
2267
|
+
return this.o3t_1.v1g($completion);
|
|
2268
2268
|
};
|
|
2269
|
-
protoOf(BoundedChannel).
|
|
2270
|
-
return this.
|
|
2269
|
+
protoOf(BoundedChannel).v1g = function ($completion) {
|
|
2270
|
+
return this.r3t($completion);
|
|
2271
2271
|
};
|
|
2272
2272
|
protoOf(BoundedChannel).t = function () {
|
|
2273
|
-
return this.
|
|
2273
|
+
return this.o3t_1.t();
|
|
2274
2274
|
};
|
|
2275
|
-
protoOf(BoundedChannel).
|
|
2276
|
-
this.
|
|
2275
|
+
protoOf(BoundedChannel).dz = function (cause) {
|
|
2276
|
+
this.o3t_1.dz(cause);
|
|
2277
2277
|
};
|
|
2278
2278
|
function ChannelOverflowException(message) {
|
|
2279
2279
|
RuntimeException_init_$Init$(message, this);
|
|
@@ -2292,16 +2292,16 @@ function WebSocketExtension() {
|
|
|
2292
2292
|
function WebSocketExtensionsConfig() {
|
|
2293
2293
|
var tmp = this;
|
|
2294
2294
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2295
|
-
tmp.
|
|
2295
|
+
tmp.u3t_1 = ArrayList_init_$Create$();
|
|
2296
2296
|
var tmp_0 = this;
|
|
2297
2297
|
// Inline function 'kotlin.arrayOf' call
|
|
2298
2298
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2299
2299
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2300
|
-
tmp_0.
|
|
2300
|
+
tmp_0.v3t_1 = [false, false, false];
|
|
2301
2301
|
}
|
|
2302
|
-
protoOf(WebSocketExtensionsConfig).
|
|
2302
|
+
protoOf(WebSocketExtensionsConfig).i2z = function () {
|
|
2303
2303
|
// Inline function 'kotlin.collections.map' call
|
|
2304
|
-
var this_0 = this.
|
|
2304
|
+
var this_0 = this.u3t_1;
|
|
2305
2305
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2306
2306
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2307
2307
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2313,14 +2313,14 @@ protoOf(WebSocketExtensionsConfig).w2x = function () {
|
|
|
2313
2313
|
return destination;
|
|
2314
2314
|
};
|
|
2315
2315
|
function parametersToString($this) {
|
|
2316
|
-
return $this.
|
|
2316
|
+
return $this.x3t_1.r() ? '' : '; ' + joinToString($this.x3t_1, ';');
|
|
2317
2317
|
}
|
|
2318
2318
|
function WebSocketExtensionHeader(name, parameters) {
|
|
2319
|
-
this.
|
|
2320
|
-
this.
|
|
2319
|
+
this.w3t_1 = name;
|
|
2320
|
+
this.x3t_1 = parameters;
|
|
2321
2321
|
}
|
|
2322
2322
|
protoOf(WebSocketExtensionHeader).toString = function () {
|
|
2323
|
-
return this.
|
|
2323
|
+
return this.w3t_1 + ' ' + parametersToString(this);
|
|
2324
2324
|
};
|
|
2325
2325
|
function parseWebSocketExtensions(value) {
|
|
2326
2326
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2356,9 +2356,9 @@ function WebSocketSession() {
|
|
|
2356
2356
|
function close(_this__u8e3s4, reason, $completion) {
|
|
2357
2357
|
reason = reason === VOID ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : reason;
|
|
2358
2358
|
var tmp = new $closeCOROUTINE$(_this__u8e3s4, reason, $completion);
|
|
2359
|
-
tmp.
|
|
2360
|
-
tmp.
|
|
2361
|
-
return tmp.
|
|
2359
|
+
tmp.k9_1 = Unit_instance;
|
|
2360
|
+
tmp.l9_1 = null;
|
|
2361
|
+
return tmp.q9();
|
|
2362
2362
|
}
|
|
2363
2363
|
function closeExceptionally(_this__u8e3s4, cause, $completion) {
|
|
2364
2364
|
var tmp;
|
|
@@ -2373,61 +2373,61 @@ function closeExceptionally(_this__u8e3s4, cause, $completion) {
|
|
|
2373
2373
|
}
|
|
2374
2374
|
function $closeCOROUTINE$(_this__u8e3s4, reason, resultContinuation) {
|
|
2375
2375
|
CoroutineImpl.call(this, resultContinuation);
|
|
2376
|
-
this.
|
|
2377
|
-
this.
|
|
2376
|
+
this.g3u_1 = _this__u8e3s4;
|
|
2377
|
+
this.h3u_1 = reason;
|
|
2378
2378
|
}
|
|
2379
|
-
protoOf($closeCOROUTINE$).
|
|
2380
|
-
var suspendResult = this.
|
|
2379
|
+
protoOf($closeCOROUTINE$).q9 = function () {
|
|
2380
|
+
var suspendResult = this.k9_1;
|
|
2381
2381
|
$sm: do
|
|
2382
2382
|
try {
|
|
2383
|
-
var tmp = this.
|
|
2383
|
+
var tmp = this.i9_1;
|
|
2384
2384
|
switch (tmp) {
|
|
2385
2385
|
case 0:
|
|
2386
|
-
this.
|
|
2387
|
-
this.
|
|
2388
|
-
this.
|
|
2389
|
-
suspendResult = this.
|
|
2386
|
+
this.j9_1 = 4;
|
|
2387
|
+
this.j9_1 = 3;
|
|
2388
|
+
this.i9_1 = 1;
|
|
2389
|
+
suspendResult = this.g3u_1.p3m(Close_init_$Create$(this.h3u_1), this);
|
|
2390
2390
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2391
2391
|
return suspendResult;
|
|
2392
2392
|
}
|
|
2393
2393
|
|
|
2394
2394
|
continue $sm;
|
|
2395
2395
|
case 1:
|
|
2396
|
-
this.
|
|
2397
|
-
suspendResult = this.
|
|
2396
|
+
this.i9_1 = 2;
|
|
2397
|
+
suspendResult = this.g3u_1.i1z(this);
|
|
2398
2398
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2399
2399
|
return suspendResult;
|
|
2400
2400
|
}
|
|
2401
2401
|
|
|
2402
2402
|
continue $sm;
|
|
2403
2403
|
case 2:
|
|
2404
|
-
this.
|
|
2405
|
-
this.
|
|
2404
|
+
this.j9_1 = 4;
|
|
2405
|
+
this.i9_1 = 5;
|
|
2406
2406
|
continue $sm;
|
|
2407
2407
|
case 3:
|
|
2408
|
-
this.
|
|
2409
|
-
var tmp_0 = this.
|
|
2408
|
+
this.j9_1 = 4;
|
|
2409
|
+
var tmp_0 = this.l9_1;
|
|
2410
2410
|
if (tmp_0 instanceof Error) {
|
|
2411
|
-
var _unused_var__etf5q3 = this.
|
|
2412
|
-
this.
|
|
2411
|
+
var _unused_var__etf5q3 = this.l9_1;
|
|
2412
|
+
this.i9_1 = 5;
|
|
2413
2413
|
continue $sm;
|
|
2414
2414
|
} else {
|
|
2415
|
-
throw this.
|
|
2415
|
+
throw this.l9_1;
|
|
2416
2416
|
}
|
|
2417
2417
|
|
|
2418
2418
|
case 4:
|
|
2419
|
-
throw this.
|
|
2419
|
+
throw this.l9_1;
|
|
2420
2420
|
case 5:
|
|
2421
|
-
this.
|
|
2421
|
+
this.j9_1 = 4;
|
|
2422
2422
|
return Unit_instance;
|
|
2423
2423
|
}
|
|
2424
2424
|
} catch ($p) {
|
|
2425
2425
|
var e = $p;
|
|
2426
|
-
if (this.
|
|
2426
|
+
if (this.j9_1 === 4) {
|
|
2427
2427
|
throw e;
|
|
2428
2428
|
} else {
|
|
2429
|
-
this.
|
|
2430
|
-
this.
|
|
2429
|
+
this.i9_1 = this.j9_1;
|
|
2430
|
+
this.l9_1 = e;
|
|
2431
2431
|
}
|
|
2432
2432
|
}
|
|
2433
2433
|
while (true);
|
|
@@ -2453,8 +2453,8 @@ function Text_init_$Create$(text) {
|
|
|
2453
2453
|
function Close_init_$Init$(reason, $this) {
|
|
2454
2454
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
2455
2455
|
var builder = new Buffer();
|
|
2456
|
-
builder.
|
|
2457
|
-
writeText(builder, reason.
|
|
2456
|
+
builder.dw(reason.w3l_1);
|
|
2457
|
+
writeText(builder, reason.x3l_1);
|
|
2458
2458
|
Close_init_$Init$_0(builder, $this);
|
|
2459
2459
|
return $this;
|
|
2460
2460
|
}
|
|
@@ -2466,7 +2466,7 @@ function Close_init_$Init$_0(packet, $this) {
|
|
|
2466
2466
|
return $this;
|
|
2467
2467
|
}
|
|
2468
2468
|
function Close_init_$Init$_1($this) {
|
|
2469
|
-
Close.call($this, Companion_getInstance_6().
|
|
2469
|
+
Close.call($this, Companion_getInstance_6().e3q_1);
|
|
2470
2470
|
return $this;
|
|
2471
2471
|
}
|
|
2472
2472
|
function Close_init_$Create$_0() {
|
|
@@ -2496,9 +2496,9 @@ function Pong(data, disposableHandle) {
|
|
|
2496
2496
|
}
|
|
2497
2497
|
function Companion_6() {
|
|
2498
2498
|
Companion_instance_6 = this;
|
|
2499
|
-
this.
|
|
2499
|
+
this.e3q_1 = new Int8Array(0);
|
|
2500
2500
|
}
|
|
2501
|
-
protoOf(Companion_6).
|
|
2501
|
+
protoOf(Companion_6).f3q = function (fin, frameType, data, rsv1, rsv2, rsv3) {
|
|
2502
2502
|
var tmp;
|
|
2503
2503
|
switch (frameType.a1_1) {
|
|
2504
2504
|
case 1:
|
|
@@ -2534,29 +2534,29 @@ function Frame(fin, frameType, data, disposableHandle, rsv1, rsv2, rsv3) {
|
|
|
2534
2534
|
rsv1 = rsv1 === VOID ? false : rsv1;
|
|
2535
2535
|
rsv2 = rsv2 === VOID ? false : rsv2;
|
|
2536
2536
|
rsv3 = rsv3 === VOID ? false : rsv3;
|
|
2537
|
-
this.
|
|
2538
|
-
this.
|
|
2539
|
-
this.
|
|
2540
|
-
this.
|
|
2541
|
-
this.
|
|
2542
|
-
this.
|
|
2543
|
-
this.
|
|
2537
|
+
this.d3m_1 = fin;
|
|
2538
|
+
this.e3m_1 = frameType;
|
|
2539
|
+
this.f3m_1 = data;
|
|
2540
|
+
this.g3m_1 = disposableHandle;
|
|
2541
|
+
this.h3m_1 = rsv1;
|
|
2542
|
+
this.i3m_1 = rsv2;
|
|
2543
|
+
this.j3m_1 = rsv3;
|
|
2544
2544
|
validateSize(this);
|
|
2545
2545
|
}
|
|
2546
2546
|
protoOf(Frame).toString = function () {
|
|
2547
|
-
return 'Frame ' + this.
|
|
2547
|
+
return 'Frame ' + this.e3m_1.toString() + ' (fin=' + this.d3m_1 + ', buffer len = ' + this.f3m_1.length + ')';
|
|
2548
2548
|
};
|
|
2549
2549
|
function get_OUTGOING_CHANNEL_CAPACITY() {
|
|
2550
2550
|
return OUTGOING_CHANNEL_CAPACITY;
|
|
2551
2551
|
}
|
|
2552
2552
|
var OUTGOING_CHANNEL_CAPACITY;
|
|
2553
2553
|
//region block: post-declaration
|
|
2554
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
2554
|
+
protoOf(DefaultWebSocketSessionImpl).p3m = send;
|
|
2555
2555
|
defineProp(protoOf(FrameTooBigException), 'message', function () {
|
|
2556
2556
|
return this.e();
|
|
2557
2557
|
});
|
|
2558
|
-
protoOf(BoundedChannel).
|
|
2559
|
-
protoOf(BoundedChannel).
|
|
2558
|
+
protoOf(BoundedChannel).z1g = close$default;
|
|
2559
|
+
protoOf(BoundedChannel).b1h = cancel$default;
|
|
2560
2560
|
//endregion
|
|
2561
2561
|
//region block: init
|
|
2562
2562
|
Companion_instance_0 = new Companion_0();
|