@solibo/solibo-sdk 1.0.34 → 1.0.35
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/KmLogging-logging.js +108 -108
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1426 -1426
- package/KotlinBigInteger-bignum.js +1115 -1115
- package/MultiplatformSettings-multiplatform-settings.js +17 -17
- package/Stately-stately-concurrency.js +5 -5
- package/cryptography-kotlin-cryptography-bigint.js +28 -28
- package/cryptography-kotlin-cryptography-core.js +47 -47
- package/cryptography-kotlin-cryptography-provider-base.js +8 -8
- package/cryptography-kotlin-cryptography-provider-webcrypto.js +136 -136
- package/cryptography-kotlin-cryptography-random.js +15 -15
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.js +118 -118
- package/cryptography-kotlin-cryptography-serialization-asn1.js +256 -256
- package/cryptography-kotlin-cryptography-serialization-pem.js +15 -15
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/kotlin-kotlin-stdlib.js +20 -20
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +13 -13
- package/kotlinx-coroutines-core.js +1819 -1819
- package/kotlinx-io-kotlinx-io-bytestring.js +32 -32
- package/kotlinx-io-kotlinx-io-core.js +451 -451
- package/kotlinx-serialization-kotlinx-serialization-json.js +1095 -1111
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-auth.js +258 -258
- package/ktor-ktor-client-content-negotiation.js +45 -45
- package/ktor-ktor-client-core.js +2687 -2687
- package/ktor-ktor-client-logging.js +621 -621
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http-cio.js +320 -320
- package/ktor-ktor-http.js +901 -901
- package/ktor-ktor-io.js +632 -632
- package/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/ktor-ktor-serialization-kotlinx.js +36 -36
- package/ktor-ktor-serialization.js +57 -57
- package/ktor-ktor-utils.js +671 -671
- package/ktor-ktor-websockets.js +383 -383
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.js +11791 -11474
- package/solibo-sdk-sdk-home-api.js.map +1 -1
- package/solibo-sdk-sdk.d.ts +18 -0
- package/solibo-sdk-sdk.js +1471 -1471
package/ktor-ktor-websockets.js
CHANGED
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
initMetadataForClass(Codes, 'Codes', VOID, Enum);
|
|
127
127
|
initMetadataForClass(CloseReason, 'CloseReason');
|
|
128
128
|
function send(frame, $completion) {
|
|
129
|
-
return this.
|
|
129
|
+
return this.p3x().u2d(frame, $completion);
|
|
130
130
|
}
|
|
131
131
|
initMetadataForInterface(WebSocketSession, 'WebSocketSession', VOID, VOID, [CoroutineScope], [1, 0]);
|
|
132
132
|
initMetadataForInterface(DefaultWebSocketSession, 'DefaultWebSocketSession', VOID, VOID, [WebSocketSession], [1, 0]);
|
|
@@ -190,14 +190,14 @@
|
|
|
190
190
|
var _iterator__ex2g4s = this_0.t();
|
|
191
191
|
while (_iterator__ex2g4s.u()) {
|
|
192
192
|
var element = _iterator__ex2g4s.v();
|
|
193
|
-
var tmp$ret$0 = element.
|
|
193
|
+
var tmp$ret$0 = element.e3x_1;
|
|
194
194
|
destination.c3(tmp$ret$0, element);
|
|
195
195
|
}
|
|
196
|
-
tmp.
|
|
197
|
-
this.
|
|
196
|
+
tmp.f3x_1 = destination;
|
|
197
|
+
this.g3x_1 = Codes_INTERNAL_ERROR_getInstance();
|
|
198
198
|
}
|
|
199
|
-
protoOf(Companion).
|
|
200
|
-
return this.
|
|
199
|
+
protoOf(Companion).h3x = function (code) {
|
|
200
|
+
return this.f3x_1.z2(code);
|
|
201
201
|
};
|
|
202
202
|
var Companion_instance;
|
|
203
203
|
function Companion_getInstance() {
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
}
|
|
236
236
|
var $ENTRIES;
|
|
237
237
|
function CloseReason_init_$Init$(code, message, $this) {
|
|
238
|
-
CloseReason.call($this, code.
|
|
238
|
+
CloseReason.call($this, code.e3x_1, message);
|
|
239
239
|
return $this;
|
|
240
240
|
}
|
|
241
241
|
function CloseReason_init_$Create$(code, message) {
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
}
|
|
244
244
|
function Codes(name, ordinal, code) {
|
|
245
245
|
Enum.call(this, name, ordinal);
|
|
246
|
-
this.
|
|
246
|
+
this.e3x_1 = code;
|
|
247
247
|
}
|
|
248
248
|
function Codes_NORMAL_getInstance() {
|
|
249
249
|
Codes_initEntries();
|
|
@@ -294,19 +294,19 @@
|
|
|
294
294
|
return Codes_TRY_AGAIN_LATER_instance;
|
|
295
295
|
}
|
|
296
296
|
function CloseReason(code, message) {
|
|
297
|
-
this.
|
|
298
|
-
this.
|
|
297
|
+
this.i3x_1 = code;
|
|
298
|
+
this.j3x_1 = message;
|
|
299
299
|
}
|
|
300
|
-
protoOf(CloseReason).
|
|
301
|
-
return Companion_getInstance().
|
|
300
|
+
protoOf(CloseReason).k3x = function () {
|
|
301
|
+
return Companion_getInstance().h3x(this.i3x_1);
|
|
302
302
|
};
|
|
303
303
|
protoOf(CloseReason).toString = function () {
|
|
304
|
-
var tmp0_elvis_lhs = this.
|
|
305
|
-
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.
|
|
304
|
+
var tmp0_elvis_lhs = this.k3x();
|
|
305
|
+
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.i3x_1 : tmp0_elvis_lhs) + ', message=' + this.j3x_1 + ')';
|
|
306
306
|
};
|
|
307
307
|
protoOf(CloseReason).hashCode = function () {
|
|
308
|
-
var result = this.
|
|
309
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
308
|
+
var result = this.i3x_1;
|
|
309
|
+
result = imul(result, 31) + getStringHashCode(this.j3x_1) | 0;
|
|
310
310
|
return result;
|
|
311
311
|
};
|
|
312
312
|
protoOf(CloseReason).equals = function (other) {
|
|
@@ -314,9 +314,9 @@
|
|
|
314
314
|
return true;
|
|
315
315
|
if (!(other instanceof CloseReason))
|
|
316
316
|
return false;
|
|
317
|
-
if (!(this.
|
|
317
|
+
if (!(this.i3x_1 === other.i3x_1))
|
|
318
318
|
return false;
|
|
319
|
-
if (!(this.
|
|
319
|
+
if (!(this.j3x_1 === other.j3x_1))
|
|
320
320
|
return false;
|
|
321
321
|
return true;
|
|
322
322
|
};
|
|
@@ -346,21 +346,21 @@
|
|
|
346
346
|
function DefaultWebSocketSession_0(session, pingIntervalMillis, timeoutMillis, channelsConfig) {
|
|
347
347
|
pingIntervalMillis = pingIntervalMillis === VOID ? 0n : pingIntervalMillis;
|
|
348
348
|
timeoutMillis = timeoutMillis === VOID ? 15000n : timeoutMillis;
|
|
349
|
-
channelsConfig = channelsConfig === VOID ? Companion_getInstance_2().
|
|
349
|
+
channelsConfig = channelsConfig === VOID ? Companion_getInstance_2().r3x_1 : channelsConfig;
|
|
350
350
|
_init_properties_DefaultWebSocketSession_kt__469s0y();
|
|
351
351
|
// Inline function 'kotlin.require' call
|
|
352
352
|
if (!!isInterface(session, DefaultWebSocketSession)) {
|
|
353
353
|
var message = 'Cannot wrap other DefaultWebSocketSession';
|
|
354
354
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
355
355
|
}
|
|
356
|
-
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.
|
|
356
|
+
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.s3x_1, channelsConfig.t3x_1);
|
|
357
357
|
}
|
|
358
358
|
function runIncomingProcessor($this, ponger) {
|
|
359
|
-
var tmp = get_IncomingProcessorCoroutineName().qj(Dispatchers_getInstance().
|
|
359
|
+
var tmp = get_IncomingProcessorCoroutineName().qj(Dispatchers_getInstance().p27_1);
|
|
360
360
|
return launch($this, tmp, VOID, DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0($this, ponger, null));
|
|
361
361
|
}
|
|
362
362
|
function runOutgoingProcessor($this) {
|
|
363
|
-
var tmp = get_OutgoingProcessorCoroutineName().qj(Dispatchers_getInstance().
|
|
363
|
+
var tmp = get_OutgoingProcessorCoroutineName().qj(Dispatchers_getInstance().p27_1);
|
|
364
364
|
var tmp_0 = CoroutineStart_UNDISPATCHED_getInstance();
|
|
365
365
|
return launch($this, tmp, tmp_0, DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0($this, null));
|
|
366
366
|
}
|
|
@@ -381,32 +381,32 @@
|
|
|
381
381
|
return sendCloseSequence($this, reason, exception, $completion);
|
|
382
382
|
}
|
|
383
383
|
function tryClose($this) {
|
|
384
|
-
return $this.
|
|
384
|
+
return $this.y3y_1.atomicfu$compareAndSet(false, true);
|
|
385
385
|
}
|
|
386
386
|
function runOrCancelPinger($this) {
|
|
387
|
-
var interval = $this.
|
|
387
|
+
var interval = $this.b3z_1;
|
|
388
388
|
var tmp;
|
|
389
|
-
if ($this.
|
|
389
|
+
if ($this.y3y_1.kotlinx$atomicfu$value) {
|
|
390
390
|
tmp = null;
|
|
391
391
|
} else if (interval > 0n) {
|
|
392
|
-
var tmp_0 = $this.
|
|
393
|
-
var tmp_1 = $this.
|
|
392
|
+
var tmp_0 = $this.r3y_1.p3x();
|
|
393
|
+
var tmp_1 = $this.c3z_1;
|
|
394
394
|
tmp = pinger($this, tmp_0, interval, tmp_1, DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0($this, null));
|
|
395
395
|
} else {
|
|
396
396
|
tmp = null;
|
|
397
397
|
}
|
|
398
398
|
var newPinger = tmp;
|
|
399
|
-
var tmp0_safe_receiver = $this.
|
|
399
|
+
var tmp0_safe_receiver = $this.s3y_1.atomicfu$getAndSet(newPinger);
|
|
400
400
|
if (tmp0_safe_receiver == null)
|
|
401
401
|
null;
|
|
402
402
|
else
|
|
403
|
-
tmp0_safe_receiver.
|
|
404
|
-
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.
|
|
403
|
+
tmp0_safe_receiver.c2e();
|
|
404
|
+
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.v2d(Companion_getInstance_0().e3z_1));
|
|
405
405
|
if (tmp2_safe_receiver == null)
|
|
406
406
|
null;
|
|
407
407
|
else
|
|
408
|
-
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.
|
|
409
|
-
if ($this.
|
|
408
|
+
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.f2c_1);
|
|
409
|
+
if ($this.y3y_1.kotlinx$atomicfu$value && !(newPinger == null)) {
|
|
410
410
|
runOrCancelPinger($this);
|
|
411
411
|
}
|
|
412
412
|
}
|
|
@@ -419,28 +419,28 @@
|
|
|
419
419
|
function processIncomingExtensions($this, frame) {
|
|
420
420
|
// Inline function 'kotlin.collections.fold' call
|
|
421
421
|
var accumulator = frame;
|
|
422
|
-
var _iterator__ex2g4s = $this.
|
|
422
|
+
var _iterator__ex2g4s = $this.r3z().t();
|
|
423
423
|
while (_iterator__ex2g4s.u()) {
|
|
424
424
|
var element = _iterator__ex2g4s.v();
|
|
425
425
|
var current = accumulator;
|
|
426
|
-
accumulator = element.
|
|
426
|
+
accumulator = element.s3z(current);
|
|
427
427
|
}
|
|
428
428
|
return accumulator;
|
|
429
429
|
}
|
|
430
430
|
function processOutgoingExtensions($this, frame) {
|
|
431
431
|
// Inline function 'kotlin.collections.fold' call
|
|
432
432
|
var accumulator = frame;
|
|
433
|
-
var _iterator__ex2g4s = $this.
|
|
433
|
+
var _iterator__ex2g4s = $this.r3z().t();
|
|
434
434
|
while (_iterator__ex2g4s.u()) {
|
|
435
435
|
var element = _iterator__ex2g4s.v();
|
|
436
436
|
var current = accumulator;
|
|
437
|
-
accumulator = element.
|
|
437
|
+
accumulator = element.t3z(current);
|
|
438
438
|
}
|
|
439
439
|
return accumulator;
|
|
440
440
|
}
|
|
441
441
|
function Companion_0() {
|
|
442
442
|
Companion_instance_0 = this;
|
|
443
|
-
this.
|
|
443
|
+
this.e3z_1 = new Pong(new Int8Array(0), NonDisposableHandle_instance);
|
|
444
444
|
}
|
|
445
445
|
var Companion_instance_0;
|
|
446
446
|
function Companion_getInstance_0() {
|
|
@@ -449,19 +449,19 @@
|
|
|
449
449
|
return Companion_instance_0;
|
|
450
450
|
}
|
|
451
451
|
function DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
452
|
-
this.
|
|
453
|
-
this.
|
|
454
|
-
this.
|
|
452
|
+
this.c40_1 = $incomingJob;
|
|
453
|
+
this.d40_1 = $outgoingJob;
|
|
454
|
+
this.e40_1 = this$0;
|
|
455
455
|
CoroutineImpl.call(this, resultContinuation);
|
|
456
456
|
}
|
|
457
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
458
|
-
var tmp = this.
|
|
457
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).d30 = function ($this$launch, $completion) {
|
|
458
|
+
var tmp = this.e30($this$launch, $completion);
|
|
459
459
|
tmp.k9_1 = Unit_instance;
|
|
460
460
|
tmp.l9_1 = null;
|
|
461
461
|
return tmp.q9();
|
|
462
462
|
};
|
|
463
463
|
protoOf(DefaultWebSocketSessionImpl$start$slambda).ca = function (p1, $completion) {
|
|
464
|
-
return this.
|
|
464
|
+
return this.d30((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
465
465
|
};
|
|
466
466
|
protoOf(DefaultWebSocketSessionImpl$start$slambda).q9 = function () {
|
|
467
467
|
var suspendResult = this.k9_1;
|
|
@@ -472,7 +472,7 @@
|
|
|
472
472
|
case 0:
|
|
473
473
|
this.j9_1 = 3;
|
|
474
474
|
this.i9_1 = 1;
|
|
475
|
-
suspendResult = this.
|
|
475
|
+
suspendResult = this.c40_1.q1w(this);
|
|
476
476
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
477
477
|
return suspendResult;
|
|
478
478
|
}
|
|
@@ -480,14 +480,14 @@
|
|
|
480
480
|
continue $sm;
|
|
481
481
|
case 1:
|
|
482
482
|
this.i9_1 = 2;
|
|
483
|
-
suspendResult = this.
|
|
483
|
+
suspendResult = this.d40_1.q1w(this);
|
|
484
484
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
485
485
|
return suspendResult;
|
|
486
486
|
}
|
|
487
487
|
|
|
488
488
|
continue $sm;
|
|
489
489
|
case 2:
|
|
490
|
-
this.
|
|
490
|
+
this.e40_1.u3y_1.u1w();
|
|
491
491
|
return Unit_instance;
|
|
492
492
|
case 3:
|
|
493
493
|
throw this.l9_1;
|
|
@@ -503,32 +503,32 @@
|
|
|
503
503
|
}
|
|
504
504
|
while (true);
|
|
505
505
|
};
|
|
506
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
507
|
-
var i = new DefaultWebSocketSessionImpl$start$slambda(this.
|
|
508
|
-
i.
|
|
506
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).e30 = function ($this$launch, completion) {
|
|
507
|
+
var i = new DefaultWebSocketSessionImpl$start$slambda(this.c40_1, this.d40_1, this.e40_1, completion);
|
|
508
|
+
i.f40_1 = $this$launch;
|
|
509
509
|
return i;
|
|
510
510
|
};
|
|
511
511
|
function DefaultWebSocketSessionImpl$start$slambda_0($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
512
512
|
var i = new DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation);
|
|
513
513
|
var l = function ($this$launch, $completion) {
|
|
514
|
-
return i.
|
|
514
|
+
return i.d30($this$launch, $completion);
|
|
515
515
|
};
|
|
516
516
|
l.$arity = 1;
|
|
517
517
|
return l;
|
|
518
518
|
}
|
|
519
519
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation) {
|
|
520
|
-
this.
|
|
521
|
-
this.
|
|
520
|
+
this.o40_1 = this$0;
|
|
521
|
+
this.p40_1 = $ponger;
|
|
522
522
|
CoroutineImpl.call(this, resultContinuation);
|
|
523
523
|
}
|
|
524
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
525
|
-
var tmp = this.
|
|
524
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d30 = function ($this$launch, $completion) {
|
|
525
|
+
var tmp = this.e30($this$launch, $completion);
|
|
526
526
|
tmp.k9_1 = Unit_instance;
|
|
527
527
|
tmp.l9_1 = null;
|
|
528
528
|
return tmp.q9();
|
|
529
529
|
};
|
|
530
530
|
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).ca = function (p1, $completion) {
|
|
531
|
-
return this.
|
|
531
|
+
return this.d30((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
532
532
|
};
|
|
533
533
|
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).q9 = function () {
|
|
534
534
|
var suspendResult = this.k9_1;
|
|
@@ -538,10 +538,10 @@
|
|
|
538
538
|
switch (tmp) {
|
|
539
539
|
case 0:
|
|
540
540
|
this.j9_1 = 39;
|
|
541
|
-
this.
|
|
542
|
-
this.
|
|
543
|
-
this.
|
|
544
|
-
this.
|
|
541
|
+
this.a41_1 = null;
|
|
542
|
+
this.t40_1 = null;
|
|
543
|
+
this.s40_1 = false;
|
|
544
|
+
this.u40_1 = Unit_instance;
|
|
545
545
|
this.i9_1 = 1;
|
|
546
546
|
continue $sm;
|
|
547
547
|
case 1:
|
|
@@ -550,12 +550,12 @@
|
|
|
550
550
|
case 2:
|
|
551
551
|
this.j9_1 = 33;
|
|
552
552
|
this.j9_1 = 32;
|
|
553
|
-
this.
|
|
553
|
+
this.e41_1 = this.o40_1.r3y_1.o3x();
|
|
554
554
|
this.i9_1 = 3;
|
|
555
555
|
continue $sm;
|
|
556
556
|
case 3:
|
|
557
|
-
this.
|
|
558
|
-
this.
|
|
557
|
+
this.x40_1 = this.e41_1;
|
|
558
|
+
this.w40_1 = null;
|
|
559
559
|
this.i9_1 = 4;
|
|
560
560
|
continue $sm;
|
|
561
561
|
case 4:
|
|
@@ -567,12 +567,12 @@
|
|
|
567
567
|
case 6:
|
|
568
568
|
this.j9_1 = 29;
|
|
569
569
|
this.j9_1 = 28;
|
|
570
|
-
this.
|
|
570
|
+
this.d41_1 = this.x40_1.t();
|
|
571
571
|
this.i9_1 = 7;
|
|
572
572
|
continue $sm;
|
|
573
573
|
case 7:
|
|
574
574
|
this.i9_1 = 8;
|
|
575
|
-
suspendResult = this.
|
|
575
|
+
suspendResult = this.d41_1.x2b(this);
|
|
576
576
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
577
577
|
return suspendResult;
|
|
578
578
|
}
|
|
@@ -584,24 +584,24 @@
|
|
|
584
584
|
continue $sm;
|
|
585
585
|
}
|
|
586
586
|
|
|
587
|
-
var e = this.
|
|
588
|
-
this.
|
|
587
|
+
var e = this.d41_1.v();
|
|
588
|
+
this.c41_1 = e;
|
|
589
589
|
this.i9_1 = 9;
|
|
590
590
|
continue $sm;
|
|
591
591
|
case 9:
|
|
592
|
-
this.
|
|
592
|
+
this.b41_1 = this.c41_1;
|
|
593
593
|
var this_0 = get_LOGGER();
|
|
594
594
|
if (get_isTraceEnabled(this_0)) {
|
|
595
|
-
this_0.
|
|
595
|
+
this_0.z3b('WebSocketSession(' + toString(this.q40_1) + ') receiving frame ' + this.b41_1.toString());
|
|
596
596
|
}
|
|
597
597
|
|
|
598
|
-
var tmp0_subject = this.
|
|
598
|
+
var tmp0_subject = this.b41_1;
|
|
599
599
|
if (tmp0_subject instanceof Close) {
|
|
600
|
-
if (!this.
|
|
600
|
+
if (!this.o40_1.p3x().z2b()) {
|
|
601
601
|
this.i9_1 = 18;
|
|
602
|
-
var tmp_0 = this.
|
|
603
|
-
var tmp1_elvis_lhs = readReason(this.
|
|
604
|
-
suspendResult = tmp_0.
|
|
602
|
+
var tmp_0 = this.o40_1.p3x();
|
|
603
|
+
var tmp1_elvis_lhs = readReason(this.b41_1);
|
|
604
|
+
suspendResult = tmp_0.u2d(Close_init_$Create$(tmp1_elvis_lhs == null ? get_NORMAL_CLOSE() : tmp1_elvis_lhs), this);
|
|
605
605
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
606
606
|
return suspendResult;
|
|
607
607
|
}
|
|
@@ -612,14 +612,14 @@
|
|
|
612
612
|
}
|
|
613
613
|
} else {
|
|
614
614
|
if (tmp0_subject instanceof Pong) {
|
|
615
|
-
var tmp2_safe_receiver = this.
|
|
615
|
+
var tmp2_safe_receiver = this.o40_1.s3y_1.kotlinx$atomicfu$value;
|
|
616
616
|
if (tmp2_safe_receiver == null) {
|
|
617
|
-
this.
|
|
617
|
+
this.z40_1 = null;
|
|
618
618
|
this.i9_1 = 17;
|
|
619
619
|
continue $sm;
|
|
620
620
|
} else {
|
|
621
621
|
this.i9_1 = 16;
|
|
622
|
-
suspendResult = tmp2_safe_receiver.
|
|
622
|
+
suspendResult = tmp2_safe_receiver.u2d(this.b41_1, this);
|
|
623
623
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
624
624
|
return suspendResult;
|
|
625
625
|
}
|
|
@@ -628,14 +628,14 @@
|
|
|
628
628
|
} else {
|
|
629
629
|
if (tmp0_subject instanceof Ping) {
|
|
630
630
|
this.i9_1 = 15;
|
|
631
|
-
suspendResult = this.
|
|
631
|
+
suspendResult = this.p40_1.u2d(this.b41_1, this);
|
|
632
632
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
633
633
|
return suspendResult;
|
|
634
634
|
}
|
|
635
635
|
continue $sm;
|
|
636
636
|
} else {
|
|
637
637
|
this.i9_1 = 10;
|
|
638
|
-
suspendResult = checkMaxFrameSize(this.
|
|
638
|
+
suspendResult = checkMaxFrameSize(this.o40_1, this.t40_1, this.b41_1, this);
|
|
639
639
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
640
640
|
return suspendResult;
|
|
641
641
|
}
|
|
@@ -645,14 +645,14 @@
|
|
|
645
645
|
}
|
|
646
646
|
|
|
647
647
|
case 10:
|
|
648
|
-
if (!this.
|
|
649
|
-
if (this.
|
|
650
|
-
this.
|
|
648
|
+
if (!this.b41_1.f41_1) {
|
|
649
|
+
if (this.a41_1 == null) {
|
|
650
|
+
this.a41_1 = this.b41_1;
|
|
651
651
|
}
|
|
652
|
-
if (this.
|
|
653
|
-
this.
|
|
652
|
+
if (this.t40_1 == null) {
|
|
653
|
+
this.t40_1 = BytePacketBuilder();
|
|
654
654
|
}
|
|
655
|
-
writeFully(this.
|
|
655
|
+
writeFully(this.t40_1, this.b41_1.h41_1);
|
|
656
656
|
this.i9_1 = 21;
|
|
657
657
|
continue $sm;
|
|
658
658
|
} else {
|
|
@@ -661,9 +661,9 @@
|
|
|
661
661
|
}
|
|
662
662
|
|
|
663
663
|
case 11:
|
|
664
|
-
if (this.
|
|
664
|
+
if (this.a41_1 == null) {
|
|
665
665
|
this.i9_1 = 14;
|
|
666
|
-
suspendResult = this.
|
|
666
|
+
suspendResult = this.o40_1.w3y_1.u2d(processIncomingExtensions(this.o40_1, this.b41_1), this);
|
|
667
667
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
668
668
|
return suspendResult;
|
|
669
669
|
}
|
|
@@ -674,11 +674,11 @@
|
|
|
674
674
|
}
|
|
675
675
|
|
|
676
676
|
case 12:
|
|
677
|
-
writeFully(ensureNotNull(this.
|
|
678
|
-
var defragmented = Companion_getInstance_5().
|
|
679
|
-
this.
|
|
677
|
+
writeFully(ensureNotNull(this.t40_1), this.b41_1.h41_1);
|
|
678
|
+
var defragmented = Companion_getInstance_5().n41(true, this.a41_1.g41_1, readByteArray(build(this.t40_1)), this.a41_1.j41_1, this.a41_1.k41_1, this.a41_1.l41_1);
|
|
679
|
+
this.a41_1 = null;
|
|
680
680
|
this.i9_1 = 13;
|
|
681
|
-
suspendResult = this.
|
|
681
|
+
suspendResult = this.o40_1.w3y_1.u2d(processIncomingExtensions(this.o40_1, defragmented), this);
|
|
682
682
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
683
683
|
return suspendResult;
|
|
684
684
|
}
|
|
@@ -686,7 +686,7 @@
|
|
|
686
686
|
continue $sm;
|
|
687
687
|
case 13:
|
|
688
688
|
var tmp_1 = this;
|
|
689
|
-
tmp_1.
|
|
689
|
+
tmp_1.y40_1 = Unit_instance;
|
|
690
690
|
this.i9_1 = 20;
|
|
691
691
|
continue $sm;
|
|
692
692
|
case 14:
|
|
@@ -694,23 +694,23 @@
|
|
|
694
694
|
continue $sm;
|
|
695
695
|
case 15:
|
|
696
696
|
var tmp_2 = this;
|
|
697
|
-
tmp_2.
|
|
697
|
+
tmp_2.y40_1 = Unit_instance;
|
|
698
698
|
this.i9_1 = 20;
|
|
699
699
|
continue $sm;
|
|
700
700
|
case 16:
|
|
701
701
|
var tmp_3 = this;
|
|
702
|
-
tmp_3.
|
|
702
|
+
tmp_3.z40_1 = Unit_instance;
|
|
703
703
|
this.i9_1 = 17;
|
|
704
704
|
continue $sm;
|
|
705
705
|
case 17:
|
|
706
|
-
this.
|
|
706
|
+
this.y40_1 = this.z40_1;
|
|
707
707
|
this.i9_1 = 20;
|
|
708
708
|
continue $sm;
|
|
709
709
|
case 18:
|
|
710
710
|
this.i9_1 = 19;
|
|
711
711
|
continue $sm;
|
|
712
712
|
case 19:
|
|
713
|
-
this.
|
|
713
|
+
this.s40_1 = true;
|
|
714
714
|
this.i9_1 = 22;
|
|
715
715
|
var tmp_4 = this;
|
|
716
716
|
continue $sm;
|
|
@@ -727,24 +727,24 @@
|
|
|
727
727
|
continue $sm;
|
|
728
728
|
case 22:
|
|
729
729
|
this.j9_1 = 32;
|
|
730
|
-
cancelConsumed(this.
|
|
730
|
+
cancelConsumed(this.x40_1, this.w40_1);
|
|
731
731
|
this.j9_1 = 39;
|
|
732
732
|
this.i9_1 = 23;
|
|
733
733
|
continue $sm;
|
|
734
734
|
case 23:
|
|
735
735
|
this.j9_1 = 39;
|
|
736
|
-
this.
|
|
737
|
-
var tmp0_safe_receiver = this.
|
|
736
|
+
this.p40_1.c2e();
|
|
737
|
+
var tmp0_safe_receiver = this.t40_1;
|
|
738
738
|
if (tmp0_safe_receiver == null)
|
|
739
739
|
null;
|
|
740
740
|
else {
|
|
741
741
|
tmp0_safe_receiver.t4();
|
|
742
742
|
}
|
|
743
743
|
|
|
744
|
-
this.
|
|
745
|
-
if (!this.
|
|
744
|
+
this.o40_1.w3y_1.c2e();
|
|
745
|
+
if (!this.s40_1) {
|
|
746
746
|
this.i9_1 = 24;
|
|
747
|
-
suspendResult = close(this.
|
|
747
|
+
suspendResult = close(this.o40_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
748
748
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
749
749
|
return suspendResult;
|
|
750
750
|
}
|
|
@@ -766,7 +766,7 @@
|
|
|
766
766
|
continue $sm;
|
|
767
767
|
case 27:
|
|
768
768
|
this.j9_1 = 32;
|
|
769
|
-
cancelConsumed(this.
|
|
769
|
+
cancelConsumed(this.x40_1, this.w40_1);
|
|
770
770
|
this.i9_1 = 31;
|
|
771
771
|
continue $sm;
|
|
772
772
|
case 28:
|
|
@@ -775,7 +775,7 @@
|
|
|
775
775
|
if (tmp_7 instanceof Error) {
|
|
776
776
|
var e_0 = this.l9_1;
|
|
777
777
|
var tmp_8 = this;
|
|
778
|
-
this.
|
|
778
|
+
this.w40_1 = e_0;
|
|
779
779
|
throw e_0;
|
|
780
780
|
} else {
|
|
781
781
|
throw this.l9_1;
|
|
@@ -784,11 +784,11 @@
|
|
|
784
784
|
case 29:
|
|
785
785
|
this.j9_1 = 32;
|
|
786
786
|
var t = this.l9_1;
|
|
787
|
-
cancelConsumed(this.
|
|
787
|
+
cancelConsumed(this.x40_1, this.w40_1);
|
|
788
788
|
throw t;
|
|
789
789
|
case 30:
|
|
790
790
|
this.j9_1 = 32;
|
|
791
|
-
cancelConsumed(this.
|
|
791
|
+
cancelConsumed(this.x40_1, this.w40_1);
|
|
792
792
|
if (false) {
|
|
793
793
|
this.i9_1 = 3;
|
|
794
794
|
continue $sm;
|
|
@@ -797,7 +797,7 @@
|
|
|
797
797
|
this.i9_1 = 31;
|
|
798
798
|
continue $sm;
|
|
799
799
|
case 31:
|
|
800
|
-
this.
|
|
800
|
+
this.u40_1 = Unit_instance;
|
|
801
801
|
this.j9_1 = 39;
|
|
802
802
|
this.i9_1 = 36;
|
|
803
803
|
continue $sm;
|
|
@@ -807,7 +807,7 @@
|
|
|
807
807
|
if (tmp_9 instanceof ClosedSendChannelException) {
|
|
808
808
|
var _unused_var__etf5q3 = this.l9_1;
|
|
809
809
|
var tmp_10 = this;
|
|
810
|
-
tmp_10.
|
|
810
|
+
tmp_10.u40_1 = Unit_instance;
|
|
811
811
|
this.j9_1 = 39;
|
|
812
812
|
this.i9_1 = 36;
|
|
813
813
|
continue $sm;
|
|
@@ -816,8 +816,8 @@
|
|
|
816
816
|
if (tmp_11 instanceof Error) {
|
|
817
817
|
var cause = this.l9_1;
|
|
818
818
|
var tmp_12 = this;
|
|
819
|
-
this.
|
|
820
|
-
tmp_12.
|
|
819
|
+
this.p40_1.c2e();
|
|
820
|
+
tmp_12.u40_1 = this.o40_1.w3y_1.a2e(cause);
|
|
821
821
|
this.j9_1 = 39;
|
|
822
822
|
this.i9_1 = 36;
|
|
823
823
|
continue $sm;
|
|
@@ -828,19 +828,19 @@
|
|
|
828
828
|
|
|
829
829
|
case 33:
|
|
830
830
|
this.j9_1 = 39;
|
|
831
|
-
this.
|
|
832
|
-
this.
|
|
833
|
-
var tmp0_safe_receiver_0 = this.
|
|
831
|
+
this.v40_1 = this.l9_1;
|
|
832
|
+
this.p40_1.c2e();
|
|
833
|
+
var tmp0_safe_receiver_0 = this.t40_1;
|
|
834
834
|
if (tmp0_safe_receiver_0 == null)
|
|
835
835
|
null;
|
|
836
836
|
else {
|
|
837
837
|
tmp0_safe_receiver_0.t4();
|
|
838
838
|
}
|
|
839
839
|
|
|
840
|
-
this.
|
|
841
|
-
if (!this.
|
|
840
|
+
this.o40_1.w3y_1.c2e();
|
|
841
|
+
if (!this.s40_1) {
|
|
842
842
|
this.i9_1 = 34;
|
|
843
|
-
suspendResult = close(this.
|
|
843
|
+
suspendResult = close(this.o40_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
844
844
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
845
845
|
return suspendResult;
|
|
846
846
|
}
|
|
@@ -854,22 +854,22 @@
|
|
|
854
854
|
this.i9_1 = 35;
|
|
855
855
|
continue $sm;
|
|
856
856
|
case 35:
|
|
857
|
-
throw this.
|
|
857
|
+
throw this.v40_1;
|
|
858
858
|
case 36:
|
|
859
|
-
this.
|
|
859
|
+
this.r40_1 = this.u40_1;
|
|
860
860
|
this.j9_1 = 39;
|
|
861
|
-
this.
|
|
862
|
-
var tmp0_safe_receiver_1 = this.
|
|
861
|
+
this.p40_1.c2e();
|
|
862
|
+
var tmp0_safe_receiver_1 = this.t40_1;
|
|
863
863
|
if (tmp0_safe_receiver_1 == null)
|
|
864
864
|
null;
|
|
865
865
|
else {
|
|
866
866
|
tmp0_safe_receiver_1.t4();
|
|
867
867
|
}
|
|
868
868
|
|
|
869
|
-
this.
|
|
870
|
-
if (!this.
|
|
869
|
+
this.o40_1.w3y_1.c2e();
|
|
870
|
+
if (!this.s40_1) {
|
|
871
871
|
this.i9_1 = 37;
|
|
872
|
-
suspendResult = close(this.
|
|
872
|
+
suspendResult = close(this.o40_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
873
873
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
874
874
|
return suspendResult;
|
|
875
875
|
}
|
|
@@ -898,31 +898,31 @@
|
|
|
898
898
|
}
|
|
899
899
|
while (true);
|
|
900
900
|
};
|
|
901
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
902
|
-
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.
|
|
903
|
-
i.
|
|
901
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).e30 = function ($this$launch, completion) {
|
|
902
|
+
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.o40_1, this.p40_1, completion);
|
|
903
|
+
i.q40_1 = $this$launch;
|
|
904
904
|
return i;
|
|
905
905
|
};
|
|
906
906
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0(this$0, $ponger, resultContinuation) {
|
|
907
907
|
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation);
|
|
908
908
|
var l = function ($this$launch, $completion) {
|
|
909
|
-
return i.
|
|
909
|
+
return i.d30($this$launch, $completion);
|
|
910
910
|
};
|
|
911
911
|
l.$arity = 1;
|
|
912
912
|
return l;
|
|
913
913
|
}
|
|
914
914
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation) {
|
|
915
|
-
this.
|
|
915
|
+
this.w41_1 = this$0;
|
|
916
916
|
CoroutineImpl.call(this, resultContinuation);
|
|
917
917
|
}
|
|
918
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
919
|
-
var tmp = this.
|
|
918
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).d30 = function ($this$launch, $completion) {
|
|
919
|
+
var tmp = this.e30($this$launch, $completion);
|
|
920
920
|
tmp.k9_1 = Unit_instance;
|
|
921
921
|
tmp.l9_1 = null;
|
|
922
922
|
return tmp.q9();
|
|
923
923
|
};
|
|
924
924
|
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).ca = function (p1, $completion) {
|
|
925
|
-
return this.
|
|
925
|
+
return this.d30((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
926
926
|
};
|
|
927
927
|
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).q9 = function () {
|
|
928
928
|
var suspendResult = this.k9_1;
|
|
@@ -941,7 +941,7 @@
|
|
|
941
941
|
this.j9_1 = 9;
|
|
942
942
|
this.j9_1 = 4;
|
|
943
943
|
this.i9_1 = 3;
|
|
944
|
-
suspendResult = outgoingProcessorLoop(this.
|
|
944
|
+
suspendResult = outgoingProcessorLoop(this.w41_1, this);
|
|
945
945
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
946
946
|
return suspendResult;
|
|
947
947
|
}
|
|
@@ -971,7 +971,7 @@
|
|
|
971
971
|
if (tmp_2 instanceof CancellationException) {
|
|
972
972
|
var _unused_var__etf5q3_1 = this.l9_1;
|
|
973
973
|
this.i9_1 = 5;
|
|
974
|
-
suspendResult = sendCloseSequence$default(this.
|
|
974
|
+
suspendResult = sendCloseSequence$default(this.w41_1, CloseReason_init_$Create$(Codes_NORMAL_getInstance(), ''), VOID, this);
|
|
975
975
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
976
976
|
return suspendResult;
|
|
977
977
|
}
|
|
@@ -987,9 +987,9 @@
|
|
|
987
987
|
var tmp_4 = this.l9_1;
|
|
988
988
|
if (tmp_4 instanceof Error) {
|
|
989
989
|
var cause = this.l9_1;
|
|
990
|
-
this.
|
|
990
|
+
this.w41_1.x3y_1.t1w(CancellationException_init_$Create$('Failed to send frame', cause));
|
|
991
991
|
this.i9_1 = 6;
|
|
992
|
-
suspendResult = closeExceptionally(this.
|
|
992
|
+
suspendResult = closeExceptionally(this.w41_1.r3y_1, cause, this);
|
|
993
993
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
994
994
|
return suspendResult;
|
|
995
995
|
}
|
|
@@ -1012,9 +1012,9 @@
|
|
|
1012
1012
|
continue $sm;
|
|
1013
1013
|
case 7:
|
|
1014
1014
|
this.j9_1 = 13;
|
|
1015
|
-
this.
|
|
1015
|
+
this.w41_1.x3y_1.e2e();
|
|
1016
1016
|
this.i9_1 = 8;
|
|
1017
|
-
suspendResult = close(this.
|
|
1017
|
+
suspendResult = close(this.w41_1.r3y_1, VOID, this);
|
|
1018
1018
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1019
1019
|
return suspendResult;
|
|
1020
1020
|
}
|
|
@@ -1024,22 +1024,22 @@
|
|
|
1024
1024
|
return Unit_instance;
|
|
1025
1025
|
case 9:
|
|
1026
1026
|
this.j9_1 = 13;
|
|
1027
|
-
this.
|
|
1028
|
-
this.
|
|
1027
|
+
this.y41_1 = this.l9_1;
|
|
1028
|
+
this.w41_1.x3y_1.e2e();
|
|
1029
1029
|
this.i9_1 = 10;
|
|
1030
|
-
suspendResult = close(this.
|
|
1030
|
+
suspendResult = close(this.w41_1.r3y_1, VOID, this);
|
|
1031
1031
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1032
1032
|
return suspendResult;
|
|
1033
1033
|
}
|
|
1034
1034
|
|
|
1035
1035
|
continue $sm;
|
|
1036
1036
|
case 10:
|
|
1037
|
-
throw this.
|
|
1037
|
+
throw this.y41_1;
|
|
1038
1038
|
case 11:
|
|
1039
1039
|
this.j9_1 = 13;
|
|
1040
|
-
this.
|
|
1040
|
+
this.w41_1.x3y_1.e2e();
|
|
1041
1041
|
this.i9_1 = 12;
|
|
1042
|
-
suspendResult = close(this.
|
|
1042
|
+
suspendResult = close(this.w41_1.r3y_1, VOID, this);
|
|
1043
1043
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1044
1044
|
return suspendResult;
|
|
1045
1045
|
}
|
|
@@ -1061,31 +1061,31 @@
|
|
|
1061
1061
|
}
|
|
1062
1062
|
while (true);
|
|
1063
1063
|
};
|
|
1064
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
1065
|
-
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.
|
|
1066
|
-
i.
|
|
1064
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).e30 = function ($this$launch, completion) {
|
|
1065
|
+
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.w41_1, completion);
|
|
1066
|
+
i.x41_1 = $this$launch;
|
|
1067
1067
|
return i;
|
|
1068
1068
|
};
|
|
1069
1069
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0(this$0, resultContinuation) {
|
|
1070
1070
|
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation);
|
|
1071
1071
|
var l = function ($this$launch, $completion) {
|
|
1072
|
-
return i.
|
|
1072
|
+
return i.d30($this$launch, $completion);
|
|
1073
1073
|
};
|
|
1074
1074
|
l.$arity = 1;
|
|
1075
1075
|
return l;
|
|
1076
1076
|
}
|
|
1077
1077
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation) {
|
|
1078
|
-
this.
|
|
1078
|
+
this.h42_1 = this$0;
|
|
1079
1079
|
CoroutineImpl.call(this, resultContinuation);
|
|
1080
1080
|
}
|
|
1081
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1082
|
-
var tmp = this.
|
|
1081
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).j42 = function (it, $completion) {
|
|
1082
|
+
var tmp = this.k42(it, $completion);
|
|
1083
1083
|
tmp.k9_1 = Unit_instance;
|
|
1084
1084
|
tmp.l9_1 = null;
|
|
1085
1085
|
return tmp.q9();
|
|
1086
1086
|
};
|
|
1087
1087
|
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).ca = function (p1, $completion) {
|
|
1088
|
-
return this.
|
|
1088
|
+
return this.j42(p1 instanceof CloseReason ? p1 : THROW_CCE(), $completion);
|
|
1089
1089
|
};
|
|
1090
1090
|
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).q9 = function () {
|
|
1091
1091
|
var suspendResult = this.k9_1;
|
|
@@ -1096,7 +1096,7 @@
|
|
|
1096
1096
|
case 0:
|
|
1097
1097
|
this.j9_1 = 2;
|
|
1098
1098
|
this.i9_1 = 1;
|
|
1099
|
-
suspendResult = sendCloseSequence(this.
|
|
1099
|
+
suspendResult = sendCloseSequence(this.h42_1, this.i42_1, IOException_init_$Create$('Ping timeout'), this);
|
|
1100
1100
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1101
1101
|
return suspendResult;
|
|
1102
1102
|
}
|
|
@@ -1118,22 +1118,22 @@
|
|
|
1118
1118
|
}
|
|
1119
1119
|
while (true);
|
|
1120
1120
|
};
|
|
1121
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1122
|
-
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.
|
|
1123
|
-
i.
|
|
1121
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).k42 = function (it, completion) {
|
|
1122
|
+
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.h42_1, completion);
|
|
1123
|
+
i.i42_1 = it;
|
|
1124
1124
|
return i;
|
|
1125
1125
|
};
|
|
1126
1126
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0(this$0, resultContinuation) {
|
|
1127
1127
|
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation);
|
|
1128
1128
|
var l = function (it, $completion) {
|
|
1129
|
-
return i.
|
|
1129
|
+
return i.j42(it, $completion);
|
|
1130
1130
|
};
|
|
1131
1131
|
l.$arity = 1;
|
|
1132
1132
|
return l;
|
|
1133
1133
|
}
|
|
1134
1134
|
function $outgoingProcessorLoopCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1135
1135
|
CoroutineImpl.call(this, resultContinuation);
|
|
1136
|
-
this.
|
|
1136
|
+
this.c3y_1 = _this__u8e3s4;
|
|
1137
1137
|
}
|
|
1138
1138
|
protoOf($outgoingProcessorLoopCOROUTINE$).q9 = function () {
|
|
1139
1139
|
var suspendResult = this.k9_1;
|
|
@@ -1143,12 +1143,12 @@
|
|
|
1143
1143
|
switch (tmp) {
|
|
1144
1144
|
case 0:
|
|
1145
1145
|
this.j9_1 = 7;
|
|
1146
|
-
this.
|
|
1146
|
+
this.e3y_1 = this.c3y_1.x3y_1.t();
|
|
1147
1147
|
this.i9_1 = 1;
|
|
1148
1148
|
continue $sm;
|
|
1149
1149
|
case 1:
|
|
1150
1150
|
this.i9_1 = 2;
|
|
1151
|
-
suspendResult = this.
|
|
1151
|
+
suspendResult = this.e3y_1.x2b(this);
|
|
1152
1152
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1153
1153
|
return suspendResult;
|
|
1154
1154
|
}
|
|
@@ -1160,15 +1160,15 @@
|
|
|
1160
1160
|
continue $sm;
|
|
1161
1161
|
}
|
|
1162
1162
|
|
|
1163
|
-
var frame = this.
|
|
1163
|
+
var frame = this.e3y_1.v();
|
|
1164
1164
|
var this_0 = get_LOGGER();
|
|
1165
1165
|
if (get_isTraceEnabled(this_0)) {
|
|
1166
|
-
this_0.
|
|
1166
|
+
this_0.z3b('Sending ' + frame.toString() + ' from session ' + toString(this.c3y_1));
|
|
1167
1167
|
}
|
|
1168
1168
|
|
|
1169
1169
|
if (frame instanceof Close) {
|
|
1170
1170
|
this.i9_1 = 3;
|
|
1171
|
-
suspendResult = sendCloseSequence$default(this.
|
|
1171
|
+
suspendResult = sendCloseSequence$default(this.c3y_1, readReason(frame), VOID, this);
|
|
1172
1172
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1173
1173
|
return suspendResult;
|
|
1174
1174
|
}
|
|
@@ -1181,11 +1181,11 @@
|
|
|
1181
1181
|
tmp_0 = frame instanceof Binary;
|
|
1182
1182
|
}
|
|
1183
1183
|
if (tmp_0) {
|
|
1184
|
-
this.
|
|
1184
|
+
this.d3y_1 = processOutgoingExtensions(this.c3y_1, frame);
|
|
1185
1185
|
this.i9_1 = 4;
|
|
1186
1186
|
continue $sm;
|
|
1187
1187
|
} else {
|
|
1188
|
-
this.
|
|
1188
|
+
this.d3y_1 = frame;
|
|
1189
1189
|
this.i9_1 = 4;
|
|
1190
1190
|
continue $sm;
|
|
1191
1191
|
}
|
|
@@ -1196,9 +1196,9 @@
|
|
|
1196
1196
|
var tmp_1 = this;
|
|
1197
1197
|
continue $sm;
|
|
1198
1198
|
case 4:
|
|
1199
|
-
var processedFrame = this.
|
|
1199
|
+
var processedFrame = this.d3y_1;
|
|
1200
1200
|
this.i9_1 = 5;
|
|
1201
|
-
suspendResult = this.
|
|
1201
|
+
suspendResult = this.c3y_1.r3y_1.p3x().u2d(processedFrame, this);
|
|
1202
1202
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1203
1203
|
return suspendResult;
|
|
1204
1204
|
}
|
|
@@ -1225,9 +1225,9 @@
|
|
|
1225
1225
|
};
|
|
1226
1226
|
function $sendCloseSequenceCOROUTINE$(_this__u8e3s4, reason, exception, resultContinuation) {
|
|
1227
1227
|
CoroutineImpl.call(this, resultContinuation);
|
|
1228
|
-
this.
|
|
1229
|
-
this.
|
|
1230
|
-
this.
|
|
1228
|
+
this.n3y_1 = _this__u8e3s4;
|
|
1229
|
+
this.o3y_1 = reason;
|
|
1230
|
+
this.p3y_1 = exception;
|
|
1231
1231
|
}
|
|
1232
1232
|
protoOf($sendCloseSequenceCOROUTINE$).q9 = function () {
|
|
1233
1233
|
var suspendResult = this.k9_1;
|
|
@@ -1237,25 +1237,25 @@
|
|
|
1237
1237
|
switch (tmp) {
|
|
1238
1238
|
case 0:
|
|
1239
1239
|
this.j9_1 = 6;
|
|
1240
|
-
if (!tryClose(this.
|
|
1240
|
+
if (!tryClose(this.n3y_1))
|
|
1241
1241
|
return Unit_instance;
|
|
1242
1242
|
var this_0 = get_LOGGER();
|
|
1243
1243
|
if (get_isTraceEnabled(this_0)) {
|
|
1244
|
-
this_0.
|
|
1244
|
+
this_0.z3b('Sending Close Sequence for session ' + toString(this.n3y_1) + ' with reason ' + toString_0(this.o3y_1) + ' and exception ' + toString_0(this.p3y_1));
|
|
1245
1245
|
}
|
|
1246
1246
|
|
|
1247
|
-
this.
|
|
1247
|
+
this.n3y_1.u3y_1.r23();
|
|
1248
1248
|
var tmp_0 = this;
|
|
1249
|
-
var tmp0_elvis_lhs = this.
|
|
1250
|
-
tmp_0.
|
|
1249
|
+
var tmp0_elvis_lhs = this.o3y_1;
|
|
1250
|
+
tmp_0.q3y_1 = tmp0_elvis_lhs == null ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : tmp0_elvis_lhs;
|
|
1251
1251
|
this.i9_1 = 1;
|
|
1252
1252
|
continue $sm;
|
|
1253
1253
|
case 1:
|
|
1254
1254
|
this.j9_1 = 5;
|
|
1255
|
-
runOrCancelPinger(this.
|
|
1256
|
-
if (!(this.
|
|
1255
|
+
runOrCancelPinger(this.n3y_1);
|
|
1256
|
+
if (!(this.q3y_1.i3x_1 === Codes_CLOSED_ABNORMALLY_getInstance().e3x_1)) {
|
|
1257
1257
|
this.i9_1 = 2;
|
|
1258
|
-
suspendResult = this.
|
|
1258
|
+
suspendResult = this.n3y_1.r3y_1.p3x().u2d(Close_init_$Create$(this.q3y_1), this);
|
|
1259
1259
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1260
1260
|
return suspendResult;
|
|
1261
1261
|
}
|
|
@@ -1274,20 +1274,20 @@
|
|
|
1274
1274
|
continue $sm;
|
|
1275
1275
|
case 4:
|
|
1276
1276
|
this.j9_1 = 6;
|
|
1277
|
-
this.
|
|
1278
|
-
if (!(this.
|
|
1279
|
-
this.
|
|
1280
|
-
this.
|
|
1277
|
+
this.n3y_1.t3y_1.p23(this.q3y_1);
|
|
1278
|
+
if (!(this.p3y_1 == null)) {
|
|
1279
|
+
this.n3y_1.x3y_1.a2e(this.p3y_1);
|
|
1280
|
+
this.n3y_1.w3y_1.a2e(this.p3y_1);
|
|
1281
1281
|
}
|
|
1282
1282
|
|
|
1283
1283
|
return Unit_instance;
|
|
1284
1284
|
case 5:
|
|
1285
1285
|
this.j9_1 = 6;
|
|
1286
1286
|
var t = this.l9_1;
|
|
1287
|
-
this.
|
|
1288
|
-
if (!(this.
|
|
1289
|
-
this.
|
|
1290
|
-
this.
|
|
1287
|
+
this.n3y_1.t3y_1.p23(this.q3y_1);
|
|
1288
|
+
if (!(this.p3y_1 == null)) {
|
|
1289
|
+
this.n3y_1.x3y_1.a2e(this.p3y_1);
|
|
1290
|
+
this.n3y_1.w3y_1.a2e(this.p3y_1);
|
|
1291
1291
|
}
|
|
1292
1292
|
|
|
1293
1293
|
throw t;
|
|
@@ -1307,9 +1307,9 @@
|
|
|
1307
1307
|
};
|
|
1308
1308
|
function $checkMaxFrameSizeCOROUTINE$(_this__u8e3s4, packet, frame, resultContinuation) {
|
|
1309
1309
|
CoroutineImpl.call(this, resultContinuation);
|
|
1310
|
-
this.
|
|
1311
|
-
this.
|
|
1312
|
-
this.
|
|
1310
|
+
this.n3z_1 = _this__u8e3s4;
|
|
1311
|
+
this.o3z_1 = packet;
|
|
1312
|
+
this.p3z_1 = frame;
|
|
1313
1313
|
}
|
|
1314
1314
|
protoOf($checkMaxFrameSizeCOROUTINE$).q9 = function () {
|
|
1315
1315
|
var suspendResult = this.k9_1;
|
|
@@ -1320,19 +1320,19 @@
|
|
|
1320
1320
|
case 0:
|
|
1321
1321
|
this.j9_1 = 3;
|
|
1322
1322
|
var tmp_0 = this;
|
|
1323
|
-
var tmp_1 = this.
|
|
1324
|
-
var tmp0_safe_receiver = this.
|
|
1323
|
+
var tmp_1 = this.p3z_1.h41_1.length;
|
|
1324
|
+
var tmp0_safe_receiver = this.o3z_1;
|
|
1325
1325
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_size(tmp0_safe_receiver);
|
|
1326
|
-
tmp_0.
|
|
1327
|
-
if (fromInt(this.
|
|
1328
|
-
var tmp2_safe_receiver = this.
|
|
1326
|
+
tmp_0.q3z_1 = tmp_1 + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
1327
|
+
if (fromInt(this.q3z_1) > this.n3z_1.n3x()) {
|
|
1328
|
+
var tmp2_safe_receiver = this.o3z_1;
|
|
1329
1329
|
if (tmp2_safe_receiver == null)
|
|
1330
1330
|
null;
|
|
1331
1331
|
else {
|
|
1332
1332
|
tmp2_safe_receiver.t4();
|
|
1333
1333
|
}
|
|
1334
1334
|
this.i9_1 = 2;
|
|
1335
|
-
suspendResult = close(this.
|
|
1335
|
+
suspendResult = close(this.n3z_1, CloseReason_init_$Create$(Codes_TOO_BIG_getInstance(), 'Frame is too big: ' + this.q3z_1 + '. Max size is ' + this.n3z_1.n3x().toString()), this);
|
|
1336
1336
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1337
1337
|
return suspendResult;
|
|
1338
1338
|
}
|
|
@@ -1345,7 +1345,7 @@
|
|
|
1345
1345
|
case 1:
|
|
1346
1346
|
return Unit_instance;
|
|
1347
1347
|
case 2:
|
|
1348
|
-
throw new FrameTooBigException(fromInt(this.
|
|
1348
|
+
throw new FrameTooBigException(fromInt(this.q3z_1));
|
|
1349
1349
|
case 3:
|
|
1350
1350
|
throw this.l9_1;
|
|
1351
1351
|
}
|
|
@@ -1362,42 +1362,42 @@
|
|
|
1362
1362
|
};
|
|
1363
1363
|
function DefaultWebSocketSessionImpl(raw, pingIntervalMillis, timeoutMillis, incomingFramesConfig, outgoingFramesConfig) {
|
|
1364
1364
|
Companion_getInstance_0();
|
|
1365
|
-
this.
|
|
1366
|
-
this.
|
|
1367
|
-
this.
|
|
1368
|
-
this.
|
|
1369
|
-
this.
|
|
1370
|
-
this.
|
|
1371
|
-
this.
|
|
1372
|
-
this.
|
|
1365
|
+
this.r3y_1 = raw;
|
|
1366
|
+
this.s3y_1 = atomic$ref$1(null);
|
|
1367
|
+
this.t3y_1 = CompletableDeferred();
|
|
1368
|
+
this.u3y_1 = Job();
|
|
1369
|
+
this.v3y_1 = this.r3y_1.k1v().oj(Key_instance).qj(this.u3y_1).qj(new CoroutineName('ws-default'));
|
|
1370
|
+
this.w3y_1 = from(Factory_getInstance(), incomingFramesConfig);
|
|
1371
|
+
this.x3y_1 = from(Factory_getInstance(), outgoingFramesConfig);
|
|
1372
|
+
this.y3y_1 = atomic$boolean$1(false);
|
|
1373
1373
|
var tmp = this;
|
|
1374
1374
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1375
|
-
tmp.
|
|
1376
|
-
this.
|
|
1377
|
-
this.
|
|
1378
|
-
this.
|
|
1379
|
-
this.
|
|
1375
|
+
tmp.z3y_1 = ArrayList_init_$Create$();
|
|
1376
|
+
this.a3z_1 = atomic$boolean$1(false);
|
|
1377
|
+
this.b3z_1 = pingIntervalMillis;
|
|
1378
|
+
this.c3z_1 = timeoutMillis;
|
|
1379
|
+
this.d3z_1 = this.t3y_1;
|
|
1380
1380
|
}
|
|
1381
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1382
|
-
return this.
|
|
1381
|
+
protoOf(DefaultWebSocketSessionImpl).k1v = function () {
|
|
1382
|
+
return this.v3y_1;
|
|
1383
1383
|
};
|
|
1384
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1385
|
-
return this.
|
|
1384
|
+
protoOf(DefaultWebSocketSessionImpl).o3x = function () {
|
|
1385
|
+
return this.w3y_1;
|
|
1386
1386
|
};
|
|
1387
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1388
|
-
return this.
|
|
1387
|
+
protoOf(DefaultWebSocketSessionImpl).p3x = function () {
|
|
1388
|
+
return this.x3y_1;
|
|
1389
1389
|
};
|
|
1390
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1391
|
-
return this.
|
|
1390
|
+
protoOf(DefaultWebSocketSessionImpl).r3z = function () {
|
|
1391
|
+
return this.z3y_1;
|
|
1392
1392
|
};
|
|
1393
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1394
|
-
this.
|
|
1393
|
+
protoOf(DefaultWebSocketSessionImpl).m3x = function (value) {
|
|
1394
|
+
this.r3y_1.m3x(value);
|
|
1395
1395
|
};
|
|
1396
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1397
|
-
return this.
|
|
1396
|
+
protoOf(DefaultWebSocketSessionImpl).n3x = function () {
|
|
1397
|
+
return this.r3y_1.n3x();
|
|
1398
1398
|
};
|
|
1399
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1400
|
-
if (!this.
|
|
1399
|
+
protoOf(DefaultWebSocketSessionImpl).l3x = function (negotiatedExtensions) {
|
|
1400
|
+
if (!this.a3z_1.atomicfu$compareAndSet(false, true)) {
|
|
1401
1401
|
// Inline function 'kotlin.error' call
|
|
1402
1402
|
var message = 'WebSocket session ' + toString(this) + ' is already started.';
|
|
1403
1403
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -1406,16 +1406,16 @@
|
|
|
1406
1406
|
var this_0 = get_LOGGER();
|
|
1407
1407
|
if (get_isTraceEnabled(this_0)) {
|
|
1408
1408
|
var tmp$ret$0 = 'Starting default WebSocketSession(' + toString(this) + ') ' + ('with negotiated extensions: ' + joinToString(negotiatedExtensions));
|
|
1409
|
-
this_0.
|
|
1409
|
+
this_0.z3b(tmp$ret$0);
|
|
1410
1410
|
}
|
|
1411
|
-
this.
|
|
1411
|
+
this.z3y_1.j1(negotiatedExtensions);
|
|
1412
1412
|
runOrCancelPinger(this);
|
|
1413
|
-
var incomingJob = runIncomingProcessor(this, ponger(this, this.
|
|
1413
|
+
var incomingJob = runIncomingProcessor(this, ponger(this, this.p3x()));
|
|
1414
1414
|
var outgoingJob = runOutgoingProcessor(this);
|
|
1415
1415
|
launch(this, VOID, VOID, DefaultWebSocketSessionImpl$start$slambda_0(incomingJob, outgoingJob, this, null));
|
|
1416
1416
|
};
|
|
1417
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1418
|
-
return this.
|
|
1417
|
+
protoOf(DefaultWebSocketSessionImpl).l2q = function ($completion) {
|
|
1418
|
+
return this.r3y_1.l2q($completion);
|
|
1419
1419
|
};
|
|
1420
1420
|
var properties_initialized_DefaultWebSocketSession_kt_6cjlhc;
|
|
1421
1421
|
function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
@@ -1437,20 +1437,20 @@
|
|
|
1437
1437
|
}
|
|
1438
1438
|
}
|
|
1439
1439
|
function readReason(_this__u8e3s4) {
|
|
1440
|
-
if (_this__u8e3s4.
|
|
1440
|
+
if (_this__u8e3s4.h41_1.length < 2) {
|
|
1441
1441
|
return null;
|
|
1442
1442
|
}
|
|
1443
1443
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1444
1444
|
var builder = new Buffer();
|
|
1445
|
-
writeFully(builder, _this__u8e3s4.
|
|
1445
|
+
writeFully(builder, _this__u8e3s4.h41_1);
|
|
1446
1446
|
var packet = builder;
|
|
1447
|
-
var code = packet.
|
|
1447
|
+
var code = packet.z2l();
|
|
1448
1448
|
var message = readText(packet);
|
|
1449
1449
|
return new CloseReason(code, message);
|
|
1450
1450
|
}
|
|
1451
1451
|
function NonDisposableHandle() {
|
|
1452
1452
|
}
|
|
1453
|
-
protoOf(NonDisposableHandle).
|
|
1453
|
+
protoOf(NonDisposableHandle).g1y = function () {
|
|
1454
1454
|
return Unit_instance;
|
|
1455
1455
|
};
|
|
1456
1456
|
protoOf(NonDisposableHandle).toString = function () {
|
|
@@ -1473,15 +1473,15 @@
|
|
|
1473
1473
|
function FrameTooBigException(frameSize) {
|
|
1474
1474
|
Exception_init_$Init$(this);
|
|
1475
1475
|
captureStack(this, FrameTooBigException);
|
|
1476
|
-
this.
|
|
1476
|
+
this.l42_1 = frameSize;
|
|
1477
1477
|
delete this.message;
|
|
1478
1478
|
}
|
|
1479
1479
|
protoOf(FrameTooBigException).e = function () {
|
|
1480
|
-
return 'Frame is too big: ' + this.
|
|
1480
|
+
return 'Frame is too big: ' + this.l42_1.toString();
|
|
1481
1481
|
};
|
|
1482
|
-
protoOf(FrameTooBigException).
|
|
1482
|
+
protoOf(FrameTooBigException).a24 = function () {
|
|
1483
1483
|
// Inline function 'kotlin.also' call
|
|
1484
|
-
var this_0 = new FrameTooBigException(this.
|
|
1484
|
+
var this_0 = new FrameTooBigException(this.l42_1);
|
|
1485
1485
|
initCauseBridge(this_0, this);
|
|
1486
1486
|
return this_0;
|
|
1487
1487
|
};
|
|
@@ -1507,10 +1507,10 @@
|
|
|
1507
1507
|
tmp$ret$0 = maxElem;
|
|
1508
1508
|
break $l$block_0;
|
|
1509
1509
|
}
|
|
1510
|
-
var maxValue = maxElem.
|
|
1510
|
+
var maxValue = maxElem.p42_1;
|
|
1511
1511
|
do {
|
|
1512
1512
|
var e = iterator.v();
|
|
1513
|
-
var v = e.
|
|
1513
|
+
var v = e.p42_1;
|
|
1514
1514
|
if (compareTo(maxValue, v) < 0) {
|
|
1515
1515
|
maxElem = e;
|
|
1516
1516
|
maxValue = v;
|
|
@@ -1519,10 +1519,10 @@
|
|
|
1519
1519
|
while (iterator.u());
|
|
1520
1520
|
tmp$ret$0 = maxElem;
|
|
1521
1521
|
}
|
|
1522
|
-
tmp.
|
|
1522
|
+
tmp.q42_1 = ensureNotNull(tmp$ret$0).p42_1;
|
|
1523
1523
|
var tmp_0 = this;
|
|
1524
1524
|
var tmp_1 = 0;
|
|
1525
|
-
var tmp_2 = this.
|
|
1525
|
+
var tmp_2 = this.q42_1 + 1 | 0;
|
|
1526
1526
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1527
1527
|
var tmp_3 = Array(tmp_2);
|
|
1528
1528
|
while (tmp_1 < tmp_2) {
|
|
@@ -1536,7 +1536,7 @@
|
|
|
1536
1536
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
1537
1537
|
while (_iterator__ex2g4s.u()) {
|
|
1538
1538
|
var element = _iterator__ex2g4s.v();
|
|
1539
|
-
if (element.
|
|
1539
|
+
if (element.p42_1 === tmp_4) {
|
|
1540
1540
|
if (found) {
|
|
1541
1541
|
tmp$ret$5 = null;
|
|
1542
1542
|
break $l$block_2;
|
|
@@ -1554,7 +1554,7 @@
|
|
|
1554
1554
|
tmp_3[tmp_4] = tmp$ret$5;
|
|
1555
1555
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1556
1556
|
}
|
|
1557
|
-
tmp_0.
|
|
1557
|
+
tmp_0.r42_1 = tmp_3;
|
|
1558
1558
|
}
|
|
1559
1559
|
var Companion_instance_1;
|
|
1560
1560
|
function Companion_getInstance_1() {
|
|
@@ -1586,8 +1586,8 @@
|
|
|
1586
1586
|
var $ENTRIES_0;
|
|
1587
1587
|
function FrameType(name, ordinal, controlFrame, opcode) {
|
|
1588
1588
|
Enum.call(this, name, ordinal);
|
|
1589
|
-
this.
|
|
1590
|
-
this.
|
|
1589
|
+
this.o42_1 = controlFrame;
|
|
1590
|
+
this.p42_1 = opcode;
|
|
1591
1591
|
}
|
|
1592
1592
|
function FrameType_TEXT_getInstance() {
|
|
1593
1593
|
FrameType_initEntries();
|
|
@@ -1632,23 +1632,23 @@
|
|
|
1632
1632
|
var channel = Channel(2147483647);
|
|
1633
1633
|
var tmp = actorJob.qj(get_PingerCoroutineName());
|
|
1634
1634
|
launch(_this__u8e3s4, tmp, VOID, pinger$slambda_0(periodMillis, timeoutMillis, onTimeout, channel, outgoing, null));
|
|
1635
|
-
var tmp_0 = ensureNotNull(_this__u8e3s4.
|
|
1636
|
-
tmp_0.
|
|
1635
|
+
var tmp_0 = ensureNotNull(_this__u8e3s4.k1v().v9(Key_instance));
|
|
1636
|
+
tmp_0.m1w(pinger$lambda(actorJob));
|
|
1637
1637
|
return channel;
|
|
1638
1638
|
}
|
|
1639
1639
|
function ponger$slambda($channel, $outgoing, resultContinuation) {
|
|
1640
|
-
this.
|
|
1641
|
-
this.
|
|
1640
|
+
this.a43_1 = $channel;
|
|
1641
|
+
this.b43_1 = $outgoing;
|
|
1642
1642
|
CoroutineImpl.call(this, resultContinuation);
|
|
1643
1643
|
}
|
|
1644
|
-
protoOf(ponger$slambda).
|
|
1645
|
-
var tmp = this.
|
|
1644
|
+
protoOf(ponger$slambda).d30 = function ($this$launch, $completion) {
|
|
1645
|
+
var tmp = this.e30($this$launch, $completion);
|
|
1646
1646
|
tmp.k9_1 = Unit_instance;
|
|
1647
1647
|
tmp.l9_1 = null;
|
|
1648
1648
|
return tmp.q9();
|
|
1649
1649
|
};
|
|
1650
1650
|
protoOf(ponger$slambda).ca = function (p1, $completion) {
|
|
1651
|
-
return this.
|
|
1651
|
+
return this.d30((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1652
1652
|
};
|
|
1653
1653
|
protoOf(ponger$slambda).q9 = function () {
|
|
1654
1654
|
var suspendResult = this.k9_1;
|
|
@@ -1659,12 +1659,12 @@
|
|
|
1659
1659
|
case 0:
|
|
1660
1660
|
this.j9_1 = 14;
|
|
1661
1661
|
this.j9_1 = 13;
|
|
1662
|
-
this.
|
|
1662
|
+
this.g43_1 = this.a43_1;
|
|
1663
1663
|
this.i9_1 = 1;
|
|
1664
1664
|
continue $sm;
|
|
1665
1665
|
case 1:
|
|
1666
|
-
this.
|
|
1667
|
-
this.
|
|
1666
|
+
this.e43_1 = this.g43_1;
|
|
1667
|
+
this.d43_1 = null;
|
|
1668
1668
|
this.i9_1 = 2;
|
|
1669
1669
|
continue $sm;
|
|
1670
1670
|
case 2:
|
|
@@ -1673,12 +1673,12 @@
|
|
|
1673
1673
|
case 3:
|
|
1674
1674
|
this.j9_1 = 10;
|
|
1675
1675
|
this.j9_1 = 9;
|
|
1676
|
-
this.
|
|
1676
|
+
this.f43_1 = this.e43_1.t();
|
|
1677
1677
|
this.i9_1 = 4;
|
|
1678
1678
|
continue $sm;
|
|
1679
1679
|
case 4:
|
|
1680
1680
|
this.i9_1 = 5;
|
|
1681
|
-
suspendResult = this.
|
|
1681
|
+
suspendResult = this.f43_1.x2b(this);
|
|
1682
1682
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1683
1683
|
return suspendResult;
|
|
1684
1684
|
}
|
|
@@ -1690,10 +1690,10 @@
|
|
|
1690
1690
|
continue $sm;
|
|
1691
1691
|
}
|
|
1692
1692
|
|
|
1693
|
-
var e = this.
|
|
1694
|
-
get_LOGGER().
|
|
1693
|
+
var e = this.f43_1.v();
|
|
1694
|
+
get_LOGGER().z3b('Received ping message, sending pong message');
|
|
1695
1695
|
this.i9_1 = 6;
|
|
1696
|
-
suspendResult = this.
|
|
1696
|
+
suspendResult = this.b43_1.u2d(new Pong(e.h41_1), this);
|
|
1697
1697
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1698
1698
|
return suspendResult;
|
|
1699
1699
|
}
|
|
@@ -1708,7 +1708,7 @@
|
|
|
1708
1708
|
continue $sm;
|
|
1709
1709
|
case 8:
|
|
1710
1710
|
this.j9_1 = 13;
|
|
1711
|
-
cancelConsumed(this.
|
|
1711
|
+
cancelConsumed(this.e43_1, this.d43_1);
|
|
1712
1712
|
this.i9_1 = 12;
|
|
1713
1713
|
continue $sm;
|
|
1714
1714
|
case 9:
|
|
@@ -1717,7 +1717,7 @@
|
|
|
1717
1717
|
if (tmp_1 instanceof Error) {
|
|
1718
1718
|
var e_0 = this.l9_1;
|
|
1719
1719
|
var tmp_2 = this;
|
|
1720
|
-
this.
|
|
1720
|
+
this.d43_1 = e_0;
|
|
1721
1721
|
throw e_0;
|
|
1722
1722
|
} else {
|
|
1723
1723
|
throw this.l9_1;
|
|
@@ -1726,11 +1726,11 @@
|
|
|
1726
1726
|
case 10:
|
|
1727
1727
|
this.j9_1 = 13;
|
|
1728
1728
|
var t = this.l9_1;
|
|
1729
|
-
cancelConsumed(this.
|
|
1729
|
+
cancelConsumed(this.e43_1, this.d43_1);
|
|
1730
1730
|
throw t;
|
|
1731
1731
|
case 11:
|
|
1732
1732
|
this.j9_1 = 13;
|
|
1733
|
-
cancelConsumed(this.
|
|
1733
|
+
cancelConsumed(this.e43_1, this.d43_1);
|
|
1734
1734
|
if (false) {
|
|
1735
1735
|
this.i9_1 = 1;
|
|
1736
1736
|
continue $sm;
|
|
@@ -1770,31 +1770,31 @@
|
|
|
1770
1770
|
}
|
|
1771
1771
|
while (true);
|
|
1772
1772
|
};
|
|
1773
|
-
protoOf(ponger$slambda).
|
|
1774
|
-
var i = new ponger$slambda(this.
|
|
1775
|
-
i.
|
|
1773
|
+
protoOf(ponger$slambda).e30 = function ($this$launch, completion) {
|
|
1774
|
+
var i = new ponger$slambda(this.a43_1, this.b43_1, completion);
|
|
1775
|
+
i.c43_1 = $this$launch;
|
|
1776
1776
|
return i;
|
|
1777
1777
|
};
|
|
1778
1778
|
function ponger$slambda_0($channel, $outgoing, resultContinuation) {
|
|
1779
1779
|
var i = new ponger$slambda($channel, $outgoing, resultContinuation);
|
|
1780
1780
|
var l = function ($this$launch, $completion) {
|
|
1781
|
-
return i.
|
|
1781
|
+
return i.d30($this$launch, $completion);
|
|
1782
1782
|
};
|
|
1783
1783
|
l.$arity = 1;
|
|
1784
1784
|
return l;
|
|
1785
1785
|
}
|
|
1786
1786
|
function pinger$slambda$slambda($channel, resultContinuation) {
|
|
1787
|
-
this.
|
|
1787
|
+
this.p43_1 = $channel;
|
|
1788
1788
|
CoroutineImpl.call(this, resultContinuation);
|
|
1789
1789
|
}
|
|
1790
|
-
protoOf(pinger$slambda$slambda).
|
|
1791
|
-
var tmp = this.
|
|
1790
|
+
protoOf(pinger$slambda$slambda).d30 = function ($this$withTimeoutOrNull, $completion) {
|
|
1791
|
+
var tmp = this.e30($this$withTimeoutOrNull, $completion);
|
|
1792
1792
|
tmp.k9_1 = Unit_instance;
|
|
1793
1793
|
tmp.l9_1 = null;
|
|
1794
1794
|
return tmp.q9();
|
|
1795
1795
|
};
|
|
1796
1796
|
protoOf(pinger$slambda$slambda).ca = function (p1, $completion) {
|
|
1797
|
-
return this.
|
|
1797
|
+
return this.d30((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1798
1798
|
};
|
|
1799
1799
|
protoOf(pinger$slambda$slambda).q9 = function () {
|
|
1800
1800
|
var suspendResult = this.k9_1;
|
|
@@ -1813,7 +1813,7 @@
|
|
|
1813
1813
|
}
|
|
1814
1814
|
|
|
1815
1815
|
this.i9_1 = 2;
|
|
1816
|
-
suspendResult = this.
|
|
1816
|
+
suspendResult = this.p43_1.y2d(this);
|
|
1817
1817
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1818
1818
|
return suspendResult;
|
|
1819
1819
|
}
|
|
@@ -1838,33 +1838,33 @@
|
|
|
1838
1838
|
}
|
|
1839
1839
|
while (true);
|
|
1840
1840
|
};
|
|
1841
|
-
protoOf(pinger$slambda$slambda).
|
|
1842
|
-
var i = new pinger$slambda$slambda(this.
|
|
1843
|
-
i.
|
|
1841
|
+
protoOf(pinger$slambda$slambda).e30 = function ($this$withTimeoutOrNull, completion) {
|
|
1842
|
+
var i = new pinger$slambda$slambda(this.p43_1, completion);
|
|
1843
|
+
i.q43_1 = $this$withTimeoutOrNull;
|
|
1844
1844
|
return i;
|
|
1845
1845
|
};
|
|
1846
1846
|
function pinger$slambda$slambda_0($channel, resultContinuation) {
|
|
1847
1847
|
var i = new pinger$slambda$slambda($channel, resultContinuation);
|
|
1848
1848
|
var l = function ($this$withTimeoutOrNull, $completion) {
|
|
1849
|
-
return i.
|
|
1849
|
+
return i.d30($this$withTimeoutOrNull, $completion);
|
|
1850
1850
|
};
|
|
1851
1851
|
l.$arity = 1;
|
|
1852
1852
|
return l;
|
|
1853
1853
|
}
|
|
1854
1854
|
function pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1855
|
-
this.
|
|
1856
|
-
this.
|
|
1857
|
-
this.
|
|
1855
|
+
this.z43_1 = $outgoing;
|
|
1856
|
+
this.a44_1 = $pingMessage;
|
|
1857
|
+
this.b44_1 = $channel;
|
|
1858
1858
|
CoroutineImpl.call(this, resultContinuation);
|
|
1859
1859
|
}
|
|
1860
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1861
|
-
var tmp = this.
|
|
1860
|
+
protoOf(pinger$slambda$slambda_1).d30 = function ($this$withTimeoutOrNull, $completion) {
|
|
1861
|
+
var tmp = this.e30($this$withTimeoutOrNull, $completion);
|
|
1862
1862
|
tmp.k9_1 = Unit_instance;
|
|
1863
1863
|
tmp.l9_1 = null;
|
|
1864
1864
|
return tmp.q9();
|
|
1865
1865
|
};
|
|
1866
1866
|
protoOf(pinger$slambda$slambda_1).ca = function (p1, $completion) {
|
|
1867
|
-
return this.
|
|
1867
|
+
return this.d30((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1868
1868
|
};
|
|
1869
1869
|
protoOf(pinger$slambda$slambda_1).q9 = function () {
|
|
1870
1870
|
var suspendResult = this.k9_1;
|
|
@@ -1874,9 +1874,9 @@
|
|
|
1874
1874
|
switch (tmp) {
|
|
1875
1875
|
case 0:
|
|
1876
1876
|
this.j9_1 = 6;
|
|
1877
|
-
get_LOGGER().
|
|
1877
|
+
get_LOGGER().z3b('WebSocket Pinger: sending ping frame');
|
|
1878
1878
|
this.i9_1 = 1;
|
|
1879
|
-
suspendResult = this.
|
|
1879
|
+
suspendResult = this.z43_1.u2d(new Ping(toByteArray(this.a44_1, Charsets_getInstance().e31_1)), this);
|
|
1880
1880
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1881
1881
|
return suspendResult;
|
|
1882
1882
|
}
|
|
@@ -1892,16 +1892,16 @@
|
|
|
1892
1892
|
}
|
|
1893
1893
|
|
|
1894
1894
|
this.i9_1 = 3;
|
|
1895
|
-
suspendResult = this.
|
|
1895
|
+
suspendResult = this.b44_1.y2d(this);
|
|
1896
1896
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1897
1897
|
return suspendResult;
|
|
1898
1898
|
}
|
|
1899
1899
|
|
|
1900
1900
|
continue $sm;
|
|
1901
1901
|
case 3:
|
|
1902
|
-
this.
|
|
1903
|
-
if (decodeToString(this.
|
|
1904
|
-
get_LOGGER().
|
|
1902
|
+
this.d44_1 = suspendResult;
|
|
1903
|
+
if (decodeToString(this.d44_1.h41_1, 0, 0 + this.d44_1.h41_1.length | 0) === this.a44_1) {
|
|
1904
|
+
get_LOGGER().z3b('WebSocket Pinger: received valid pong frame ' + this.d44_1.toString());
|
|
1905
1905
|
this.i9_1 = 5;
|
|
1906
1906
|
continue $sm;
|
|
1907
1907
|
} else {
|
|
@@ -1910,7 +1910,7 @@
|
|
|
1910
1910
|
}
|
|
1911
1911
|
|
|
1912
1912
|
case 4:
|
|
1913
|
-
get_LOGGER().
|
|
1913
|
+
get_LOGGER().z3b('WebSocket Pinger: received invalid pong frame ' + this.d44_1.toString() + ', continue waiting');
|
|
1914
1914
|
this.i9_1 = 2;
|
|
1915
1915
|
continue $sm;
|
|
1916
1916
|
case 5:
|
|
@@ -1929,35 +1929,35 @@
|
|
|
1929
1929
|
}
|
|
1930
1930
|
while (true);
|
|
1931
1931
|
};
|
|
1932
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1933
|
-
var i = new pinger$slambda$slambda_1(this.
|
|
1934
|
-
i.
|
|
1932
|
+
protoOf(pinger$slambda$slambda_1).e30 = function ($this$withTimeoutOrNull, completion) {
|
|
1933
|
+
var i = new pinger$slambda$slambda_1(this.z43_1, this.a44_1, this.b44_1, completion);
|
|
1934
|
+
i.c44_1 = $this$withTimeoutOrNull;
|
|
1935
1935
|
return i;
|
|
1936
1936
|
};
|
|
1937
1937
|
function pinger$slambda$slambda_2($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1938
1938
|
var i = new pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation);
|
|
1939
1939
|
var l = function ($this$withTimeoutOrNull, $completion) {
|
|
1940
|
-
return i.
|
|
1940
|
+
return i.d30($this$withTimeoutOrNull, $completion);
|
|
1941
1941
|
};
|
|
1942
1942
|
l.$arity = 1;
|
|
1943
1943
|
return l;
|
|
1944
1944
|
}
|
|
1945
1945
|
function pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
1946
|
-
this.
|
|
1947
|
-
this.
|
|
1948
|
-
this.
|
|
1949
|
-
this.
|
|
1950
|
-
this.
|
|
1946
|
+
this.m44_1 = $periodMillis;
|
|
1947
|
+
this.n44_1 = $timeoutMillis;
|
|
1948
|
+
this.o44_1 = $onTimeout;
|
|
1949
|
+
this.p44_1 = $channel;
|
|
1950
|
+
this.q44_1 = $outgoing;
|
|
1951
1951
|
CoroutineImpl.call(this, resultContinuation);
|
|
1952
1952
|
}
|
|
1953
|
-
protoOf(pinger$slambda).
|
|
1954
|
-
var tmp = this.
|
|
1953
|
+
protoOf(pinger$slambda).d30 = function ($this$launch, $completion) {
|
|
1954
|
+
var tmp = this.e30($this$launch, $completion);
|
|
1955
1955
|
tmp.k9_1 = Unit_instance;
|
|
1956
1956
|
tmp.l9_1 = null;
|
|
1957
1957
|
return tmp.q9();
|
|
1958
1958
|
};
|
|
1959
1959
|
protoOf(pinger$slambda).ca = function (p1, $completion) {
|
|
1960
|
-
return this.
|
|
1960
|
+
return this.d30((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1961
1961
|
};
|
|
1962
1962
|
protoOf(pinger$slambda).q9 = function () {
|
|
1963
1963
|
var suspendResult = this.k9_1;
|
|
@@ -1967,9 +1967,9 @@
|
|
|
1967
1967
|
switch (tmp) {
|
|
1968
1968
|
case 0:
|
|
1969
1969
|
this.j9_1 = 9;
|
|
1970
|
-
get_LOGGER().
|
|
1971
|
-
this.
|
|
1972
|
-
this.
|
|
1970
|
+
get_LOGGER().z3b('Starting WebSocket pinger coroutine with period ' + this.m44_1.toString() + ' ms and timeout ' + this.n44_1.toString() + ' ms');
|
|
1971
|
+
this.t44_1 = Random(getTimeMillis());
|
|
1972
|
+
this.s44_1 = new Int8Array(32);
|
|
1973
1973
|
this.j9_1 = 7;
|
|
1974
1974
|
this.i9_1 = 1;
|
|
1975
1975
|
continue $sm;
|
|
@@ -1980,17 +1980,17 @@
|
|
|
1980
1980
|
}
|
|
1981
1981
|
|
|
1982
1982
|
this.i9_1 = 2;
|
|
1983
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1983
|
+
suspendResult = withTimeoutOrNull(this.m44_1, pinger$slambda$slambda_0(this.p44_1, null), this);
|
|
1984
1984
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1985
1985
|
return suspendResult;
|
|
1986
1986
|
}
|
|
1987
1987
|
|
|
1988
1988
|
continue $sm;
|
|
1989
1989
|
case 2:
|
|
1990
|
-
this.
|
|
1991
|
-
var pingMessage = '[ping ' + hex(this.
|
|
1990
|
+
this.t44_1.ml(this.s44_1);
|
|
1991
|
+
var pingMessage = '[ping ' + hex(this.s44_1) + ' ping]';
|
|
1992
1992
|
this.i9_1 = 3;
|
|
1993
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1993
|
+
suspendResult = withTimeoutOrNull(this.n44_1, pinger$slambda$slambda_2(this.q44_1, pingMessage, this.p44_1, null), this);
|
|
1994
1994
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1995
1995
|
return suspendResult;
|
|
1996
1996
|
}
|
|
@@ -1999,9 +1999,9 @@
|
|
|
1999
1999
|
case 3:
|
|
2000
2000
|
var rc = suspendResult;
|
|
2001
2001
|
if (rc == null) {
|
|
2002
|
-
get_LOGGER().
|
|
2002
|
+
get_LOGGER().z3b('WebSocket pinger has timed out');
|
|
2003
2003
|
this.i9_1 = 5;
|
|
2004
|
-
suspendResult = this.
|
|
2004
|
+
suspendResult = this.o44_1(CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), 'Ping timeout'), this);
|
|
2005
2005
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2006
2006
|
return suspendResult;
|
|
2007
2007
|
}
|
|
@@ -2070,22 +2070,22 @@
|
|
|
2070
2070
|
}
|
|
2071
2071
|
while (true);
|
|
2072
2072
|
};
|
|
2073
|
-
protoOf(pinger$slambda).
|
|
2074
|
-
var i = new pinger$slambda(this.
|
|
2075
|
-
i.
|
|
2073
|
+
protoOf(pinger$slambda).e30 = function ($this$launch, completion) {
|
|
2074
|
+
var i = new pinger$slambda(this.m44_1, this.n44_1, this.o44_1, this.p44_1, this.q44_1, completion);
|
|
2075
|
+
i.r44_1 = $this$launch;
|
|
2076
2076
|
return i;
|
|
2077
2077
|
};
|
|
2078
2078
|
function pinger$slambda_0($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
2079
2079
|
var i = new pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation);
|
|
2080
2080
|
var l = function ($this$launch, $completion) {
|
|
2081
|
-
return i.
|
|
2081
|
+
return i.d30($this$launch, $completion);
|
|
2082
2082
|
};
|
|
2083
2083
|
l.$arity = 1;
|
|
2084
2084
|
return l;
|
|
2085
2085
|
}
|
|
2086
2086
|
function pinger$lambda($actorJob) {
|
|
2087
2087
|
return function (it) {
|
|
2088
|
-
$actorJob.
|
|
2088
|
+
$actorJob.u1w();
|
|
2089
2089
|
return Unit_instance;
|
|
2090
2090
|
};
|
|
2091
2091
|
}
|
|
@@ -2102,9 +2102,9 @@
|
|
|
2102
2102
|
var tmp = this;
|
|
2103
2103
|
// Inline function 'kotlin.apply' call
|
|
2104
2104
|
var this_0 = new WebSocketChannelsConfig();
|
|
2105
|
-
this_0.
|
|
2106
|
-
this_0.
|
|
2107
|
-
tmp.
|
|
2105
|
+
this_0.s3x_1 = this_0.u44();
|
|
2106
|
+
this_0.t3x_1 = this_0.u44();
|
|
2107
|
+
tmp.r3x_1 = this_0;
|
|
2108
2108
|
}
|
|
2109
2109
|
var Companion_instance_2;
|
|
2110
2110
|
function Companion_getInstance_2() {
|
|
@@ -2114,21 +2114,21 @@
|
|
|
2114
2114
|
}
|
|
2115
2115
|
function WebSocketChannelsConfig() {
|
|
2116
2116
|
Companion_getInstance_2();
|
|
2117
|
-
this.
|
|
2118
|
-
this.
|
|
2117
|
+
this.s3x_1 = Companion_getInstance_3().v44_1;
|
|
2118
|
+
this.t3x_1 = Companion_getInstance_3().v44_1;
|
|
2119
2119
|
}
|
|
2120
|
-
protoOf(WebSocketChannelsConfig).
|
|
2121
|
-
return Companion_getInstance_3().
|
|
2120
|
+
protoOf(WebSocketChannelsConfig).u44 = function () {
|
|
2121
|
+
return Companion_getInstance_3().v44_1;
|
|
2122
2122
|
};
|
|
2123
2123
|
function from(_this__u8e3s4, config) {
|
|
2124
2124
|
// Inline function 'kotlin.with' call
|
|
2125
2125
|
var tmp;
|
|
2126
|
-
if (config.
|
|
2126
|
+
if (config.w44_1 === 2147483647) {
|
|
2127
2127
|
tmp = Channel(2147483647);
|
|
2128
|
-
} else if (config.
|
|
2129
|
-
tmp = Channel(config.
|
|
2130
|
-
} else if (config.
|
|
2131
|
-
tmp = new BoundedChannel(config.
|
|
2128
|
+
} else if (config.x44_1.equals(ChannelOverflow_SUSPEND_getInstance())) {
|
|
2129
|
+
tmp = Channel(config.w44_1, BufferOverflow_SUSPEND_getInstance());
|
|
2130
|
+
} else if (config.x44_1.equals(ChannelOverflow_CLOSE_getInstance())) {
|
|
2131
|
+
tmp = new BoundedChannel(config.w44_1);
|
|
2132
2132
|
} else {
|
|
2133
2133
|
var message = 'Unsupported channel config.';
|
|
2134
2134
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -2137,7 +2137,7 @@
|
|
|
2137
2137
|
}
|
|
2138
2138
|
function Companion_3() {
|
|
2139
2139
|
Companion_instance_3 = this;
|
|
2140
|
-
this.
|
|
2140
|
+
this.v44_1 = new ChannelConfig(2147483647, ChannelOverflow_SUSPEND_getInstance());
|
|
2141
2141
|
}
|
|
2142
2142
|
var Companion_instance_3;
|
|
2143
2143
|
function Companion_getInstance_3() {
|
|
@@ -2147,11 +2147,11 @@
|
|
|
2147
2147
|
}
|
|
2148
2148
|
function ChannelConfig(capacity, onOverflow) {
|
|
2149
2149
|
Companion_getInstance_3();
|
|
2150
|
-
this.
|
|
2151
|
-
this.
|
|
2150
|
+
this.w44_1 = capacity;
|
|
2151
|
+
this.x44_1 = onOverflow;
|
|
2152
2152
|
}
|
|
2153
|
-
protoOf(ChannelConfig).
|
|
2154
|
-
return this.
|
|
2153
|
+
protoOf(ChannelConfig).y44 = function () {
|
|
2154
|
+
return this.x44_1.equals(ChannelOverflow_SUSPEND_getInstance()) && !(this.w44_1 === 2147483647);
|
|
2155
2155
|
};
|
|
2156
2156
|
var ChannelOverflow_SUSPEND_instance;
|
|
2157
2157
|
var ChannelOverflow_CLOSE_instance;
|
|
@@ -2175,14 +2175,14 @@
|
|
|
2175
2175
|
} else {
|
|
2176
2176
|
tmp_0 = $channel._v;
|
|
2177
2177
|
}
|
|
2178
|
-
if (!tmp_0.
|
|
2178
|
+
if (!tmp_0.z2b()) {
|
|
2179
2179
|
var tmp_1;
|
|
2180
2180
|
if ($channel._v == null) {
|
|
2181
2181
|
throwUninitializedPropertyAccessException('channel');
|
|
2182
2182
|
} else {
|
|
2183
2183
|
tmp_1 = $channel._v;
|
|
2184
2184
|
}
|
|
2185
|
-
tmp_1.
|
|
2185
|
+
tmp_1.a2e(new ChannelOverflowException('Channel overflowed'));
|
|
2186
2186
|
tmp = Unit_instance;
|
|
2187
2187
|
}
|
|
2188
2188
|
return Unit_instance;
|
|
@@ -2190,7 +2190,7 @@
|
|
|
2190
2190
|
}
|
|
2191
2191
|
function Companion_4() {
|
|
2192
2192
|
}
|
|
2193
|
-
protoOf(Companion_4).
|
|
2193
|
+
protoOf(Companion_4).z44 = function (capacity) {
|
|
2194
2194
|
var channel = {_v: null};
|
|
2195
2195
|
var tmp = BufferOverflow_DROP_OLDEST_getInstance();
|
|
2196
2196
|
// Inline function 'kotlin.also' call
|
|
@@ -2203,42 +2203,42 @@
|
|
|
2203
2203
|
return Companion_instance_4;
|
|
2204
2204
|
}
|
|
2205
2205
|
function BoundedChannel(capacity, delegate) {
|
|
2206
|
-
delegate = delegate === VOID ? Companion_instance_4.
|
|
2207
|
-
this.
|
|
2206
|
+
delegate = delegate === VOID ? Companion_instance_4.z44(capacity) : delegate;
|
|
2207
|
+
this.a45_1 = delegate;
|
|
2208
2208
|
}
|
|
2209
|
-
protoOf(BoundedChannel).
|
|
2210
|
-
var result = this.
|
|
2209
|
+
protoOf(BoundedChannel).b45 = function (element) {
|
|
2210
|
+
var result = this.a45_1.v2d(element);
|
|
2211
2211
|
if (!_ChannelResult___get_isSuccess__impl__odq1z9(result) && !_ChannelResult___get_isClosed__impl__mg7kuu(result)) {
|
|
2212
|
-
this.
|
|
2212
|
+
this.a2e(new ChannelOverflowException('Channel overflowed'));
|
|
2213
2213
|
}
|
|
2214
2214
|
return result;
|
|
2215
2215
|
};
|
|
2216
|
-
protoOf(BoundedChannel).
|
|
2217
|
-
return this.
|
|
2216
|
+
protoOf(BoundedChannel).v2d = function (element) {
|
|
2217
|
+
return this.b45((element == null ? true : !(element == null)) ? element : THROW_CCE());
|
|
2218
2218
|
};
|
|
2219
|
-
protoOf(BoundedChannel).
|
|
2220
|
-
return this.
|
|
2219
|
+
protoOf(BoundedChannel).c45 = function (element, $completion) {
|
|
2220
|
+
return this.a45_1.u2d(element, $completion);
|
|
2221
2221
|
};
|
|
2222
|
-
protoOf(BoundedChannel).
|
|
2223
|
-
return this.
|
|
2222
|
+
protoOf(BoundedChannel).u2d = function (element, $completion) {
|
|
2223
|
+
return this.c45((element == null ? true : !(element == null)) ? element : THROW_CCE(), $completion);
|
|
2224
2224
|
};
|
|
2225
|
-
protoOf(BoundedChannel).
|
|
2226
|
-
return this.
|
|
2225
|
+
protoOf(BoundedChannel).a2e = function (cause) {
|
|
2226
|
+
return this.a45_1.a2e(cause);
|
|
2227
2227
|
};
|
|
2228
|
-
protoOf(BoundedChannel).
|
|
2229
|
-
return this.
|
|
2228
|
+
protoOf(BoundedChannel).z2b = function () {
|
|
2229
|
+
return this.a45_1.z2b();
|
|
2230
2230
|
};
|
|
2231
|
-
protoOf(BoundedChannel).
|
|
2232
|
-
return this.
|
|
2231
|
+
protoOf(BoundedChannel).d45 = function ($completion) {
|
|
2232
|
+
return this.a45_1.y2d($completion);
|
|
2233
2233
|
};
|
|
2234
|
-
protoOf(BoundedChannel).
|
|
2235
|
-
return this.
|
|
2234
|
+
protoOf(BoundedChannel).y2d = function ($completion) {
|
|
2235
|
+
return this.d45($completion);
|
|
2236
2236
|
};
|
|
2237
2237
|
protoOf(BoundedChannel).t = function () {
|
|
2238
|
-
return this.
|
|
2238
|
+
return this.a45_1.t();
|
|
2239
2239
|
};
|
|
2240
|
-
protoOf(BoundedChannel).
|
|
2241
|
-
this.
|
|
2240
|
+
protoOf(BoundedChannel).t1w = function (cause) {
|
|
2241
|
+
this.a45_1.t1w(cause);
|
|
2242
2242
|
};
|
|
2243
2243
|
function ChannelOverflowException(message) {
|
|
2244
2244
|
RuntimeException_init_$Init$(message, this);
|
|
@@ -2257,16 +2257,16 @@
|
|
|
2257
2257
|
function WebSocketExtensionsConfig() {
|
|
2258
2258
|
var tmp = this;
|
|
2259
2259
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2260
|
-
tmp.
|
|
2260
|
+
tmp.g45_1 = ArrayList_init_$Create$();
|
|
2261
2261
|
var tmp_0 = this;
|
|
2262
2262
|
// Inline function 'kotlin.arrayOf' call
|
|
2263
2263
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2264
2264
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2265
|
-
tmp_0.
|
|
2265
|
+
tmp_0.h45_1 = [false, false, false];
|
|
2266
2266
|
}
|
|
2267
|
-
protoOf(WebSocketExtensionsConfig).
|
|
2267
|
+
protoOf(WebSocketExtensionsConfig).j1g = function () {
|
|
2268
2268
|
// Inline function 'kotlin.collections.map' call
|
|
2269
|
-
var this_0 = this.
|
|
2269
|
+
var this_0 = this.g45_1;
|
|
2270
2270
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2271
2271
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2272
2272
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2278,14 +2278,14 @@
|
|
|
2278
2278
|
return destination;
|
|
2279
2279
|
};
|
|
2280
2280
|
function parametersToString($this) {
|
|
2281
|
-
return $this.
|
|
2281
|
+
return $this.j45_1.r() ? '' : '; ' + joinToString($this.j45_1, ';');
|
|
2282
2282
|
}
|
|
2283
2283
|
function WebSocketExtensionHeader(name, parameters) {
|
|
2284
|
-
this.
|
|
2285
|
-
this.
|
|
2284
|
+
this.i45_1 = name;
|
|
2285
|
+
this.j45_1 = parameters;
|
|
2286
2286
|
}
|
|
2287
2287
|
protoOf(WebSocketExtensionHeader).toString = function () {
|
|
2288
|
-
return this.
|
|
2288
|
+
return this.i45_1 + ' ' + parametersToString(this);
|
|
2289
2289
|
};
|
|
2290
2290
|
function parseWebSocketExtensions(value) {
|
|
2291
2291
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2337,8 +2337,8 @@
|
|
|
2337
2337
|
}
|
|
2338
2338
|
function $closeCOROUTINE$(_this__u8e3s4, reason, resultContinuation) {
|
|
2339
2339
|
CoroutineImpl.call(this, resultContinuation);
|
|
2340
|
-
this.
|
|
2341
|
-
this.
|
|
2340
|
+
this.s45_1 = _this__u8e3s4;
|
|
2341
|
+
this.t45_1 = reason;
|
|
2342
2342
|
}
|
|
2343
2343
|
protoOf($closeCOROUTINE$).q9 = function () {
|
|
2344
2344
|
var suspendResult = this.k9_1;
|
|
@@ -2350,7 +2350,7 @@
|
|
|
2350
2350
|
this.j9_1 = 4;
|
|
2351
2351
|
this.j9_1 = 3;
|
|
2352
2352
|
this.i9_1 = 1;
|
|
2353
|
-
suspendResult = this.
|
|
2353
|
+
suspendResult = this.s45_1.q3x(Close_init_$Create$(this.t45_1), this);
|
|
2354
2354
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2355
2355
|
return suspendResult;
|
|
2356
2356
|
}
|
|
@@ -2358,7 +2358,7 @@
|
|
|
2358
2358
|
continue $sm;
|
|
2359
2359
|
case 1:
|
|
2360
2360
|
this.i9_1 = 2;
|
|
2361
|
-
suspendResult = this.
|
|
2361
|
+
suspendResult = this.s45_1.l2q(this);
|
|
2362
2362
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2363
2363
|
return suspendResult;
|
|
2364
2364
|
}
|
|
@@ -2417,8 +2417,8 @@
|
|
|
2417
2417
|
function Close_init_$Init$(reason, $this) {
|
|
2418
2418
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
2419
2419
|
var builder = new Buffer();
|
|
2420
|
-
builder.
|
|
2421
|
-
writeText(builder, reason.
|
|
2420
|
+
builder.h2n(reason.i3x_1);
|
|
2421
|
+
writeText(builder, reason.j3x_1);
|
|
2422
2422
|
Close_init_$Init$_0(builder, $this);
|
|
2423
2423
|
return $this;
|
|
2424
2424
|
}
|
|
@@ -2430,7 +2430,7 @@
|
|
|
2430
2430
|
return $this;
|
|
2431
2431
|
}
|
|
2432
2432
|
function Close_init_$Init$_1($this) {
|
|
2433
|
-
Close.call($this, Companion_getInstance_5().
|
|
2433
|
+
Close.call($this, Companion_getInstance_5().m41_1);
|
|
2434
2434
|
return $this;
|
|
2435
2435
|
}
|
|
2436
2436
|
function Close_init_$Create$_0() {
|
|
@@ -2460,9 +2460,9 @@
|
|
|
2460
2460
|
}
|
|
2461
2461
|
function Companion_5() {
|
|
2462
2462
|
Companion_instance_5 = this;
|
|
2463
|
-
this.
|
|
2463
|
+
this.m41_1 = new Int8Array(0);
|
|
2464
2464
|
}
|
|
2465
|
-
protoOf(Companion_5).
|
|
2465
|
+
protoOf(Companion_5).n41 = function (fin, frameType, data, rsv1, rsv2, rsv3) {
|
|
2466
2466
|
var tmp;
|
|
2467
2467
|
switch (frameType.a1_1) {
|
|
2468
2468
|
case 1:
|
|
@@ -2498,28 +2498,28 @@
|
|
|
2498
2498
|
rsv1 = rsv1 === VOID ? false : rsv1;
|
|
2499
2499
|
rsv2 = rsv2 === VOID ? false : rsv2;
|
|
2500
2500
|
rsv3 = rsv3 === VOID ? false : rsv3;
|
|
2501
|
-
this.
|
|
2502
|
-
this.
|
|
2503
|
-
this.
|
|
2504
|
-
this.
|
|
2505
|
-
this.
|
|
2506
|
-
this.
|
|
2507
|
-
this.
|
|
2501
|
+
this.f41_1 = fin;
|
|
2502
|
+
this.g41_1 = frameType;
|
|
2503
|
+
this.h41_1 = data;
|
|
2504
|
+
this.i41_1 = disposableHandle;
|
|
2505
|
+
this.j41_1 = rsv1;
|
|
2506
|
+
this.k41_1 = rsv2;
|
|
2507
|
+
this.l41_1 = rsv3;
|
|
2508
2508
|
}
|
|
2509
2509
|
protoOf(Frame).toString = function () {
|
|
2510
|
-
return 'Frame ' + this.
|
|
2510
|
+
return 'Frame ' + this.g41_1.toString() + ' (fin=' + this.f41_1 + ', buffer len = ' + this.h41_1.length + ')';
|
|
2511
2511
|
};
|
|
2512
2512
|
function get_OUTGOING_CHANNEL_CAPACITY() {
|
|
2513
2513
|
return OUTGOING_CHANNEL_CAPACITY;
|
|
2514
2514
|
}
|
|
2515
2515
|
var OUTGOING_CHANNEL_CAPACITY;
|
|
2516
2516
|
//region block: post-declaration
|
|
2517
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
2517
|
+
protoOf(DefaultWebSocketSessionImpl).q3x = send;
|
|
2518
2518
|
defineProp(protoOf(FrameTooBigException), 'message', function () {
|
|
2519
2519
|
return this.e();
|
|
2520
2520
|
});
|
|
2521
|
-
protoOf(BoundedChannel).
|
|
2522
|
-
protoOf(BoundedChannel).
|
|
2521
|
+
protoOf(BoundedChannel).c2e = close$default;
|
|
2522
|
+
protoOf(BoundedChannel).e2e = cancel$default;
|
|
2523
2523
|
//endregion
|
|
2524
2524
|
//region block: init
|
|
2525
2525
|
NonDisposableHandle_instance = new NonDisposableHandle();
|