@solibo/solibo-sdk 1.6.36 → 1.7.0
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.mjs +98 -98
- package/KotlinBigInteger-bignum.mjs +1127 -1127
- package/MultiplatformSettings-multiplatform-settings-test.mjs +18 -18
- package/MultiplatformSettings-multiplatform-settings.mjs +16 -16
- package/Stately-stately-concurrency.mjs +3 -3
- package/bitops-library-bits.mjs +200 -0
- package/bitops-library-bits.mjs.map +1 -0
- package/bitops-library-endian.mjs +109 -0
- package/bitops-library-endian.mjs.map +1 -0
- package/core-library-core.mjs +4 -0
- package/core-library-core.mjs.map +1 -0
- package/core-library-digest.mjs +223 -0
- package/core-library-digest.mjs.map +1 -0
- package/cryptography-kotlin-cryptography-bigint.mjs +28 -28
- package/cryptography-kotlin-cryptography-core.mjs +47 -47
- package/cryptography-kotlin-cryptography-provider-base.mjs +8 -8
- package/cryptography-kotlin-cryptography-provider-webcrypto.mjs +136 -136
- package/cryptography-kotlin-cryptography-random.mjs +15 -15
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.mjs +118 -118
- package/cryptography-kotlin-cryptography-serialization-asn1.mjs +250 -250
- package/cryptography-kotlin-cryptography-serialization-pem.mjs +15 -15
- package/error-library-error.mjs +91 -0
- package/error-library-error.mjs.map +1 -0
- package/hash-library-md.mjs +179 -0
- package/hash-library-md.mjs.map +1 -0
- package/kotlin-kotlin-stdlib.mjs +104 -17
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1072 -1072
- package/ktor-ktor-client-auth.mjs +245 -245
- package/ktor-ktor-client-content-negotiation.mjs +124 -124
- package/ktor-ktor-client-core.mjs +2663 -2613
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-client-encoding.mjs +120 -120
- package/ktor-ktor-client-logging.mjs +600 -600
- package/ktor-ktor-client-mock.mjs +48 -48
- package/ktor-ktor-http-cio.mjs +299 -299
- package/ktor-ktor-http.mjs +835 -808
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.mjs +6 -6
- package/ktor-ktor-serialization-kotlinx.mjs +110 -110
- package/ktor-ktor-serialization.mjs +50 -50
- package/ktor-ktor-websockets.mjs +321 -321
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.mjs +26397 -26393
- package/solibo-sdk-sdk.d.mts +81 -1
- package/solibo-sdk-sdk.mjs +5473 -3914
- package/solibo-sdk-sdk.mjs.map +1 -1
package/ktor-ktor-websockets.mjs
CHANGED
|
@@ -112,7 +112,7 @@ initMetadataForCompanion(Companion);
|
|
|
112
112
|
initMetadataForClass(Codes, 'Codes', VOID, Enum);
|
|
113
113
|
initMetadataForClass(CloseReason, 'CloseReason');
|
|
114
114
|
function send(frame, $completion) {
|
|
115
|
-
return this.
|
|
115
|
+
return this.q49().t2e(frame, $completion);
|
|
116
116
|
}
|
|
117
117
|
initMetadataForInterface(WebSocketSession, 'WebSocketSession', VOID, VOID, [CoroutineScope], [1, 0]);
|
|
118
118
|
initMetadataForInterface(DefaultWebSocketSession, 'DefaultWebSocketSession', VOID, VOID, [WebSocketSession], [1, 0]);
|
|
@@ -176,14 +176,14 @@ function Companion() {
|
|
|
176
176
|
var _iterator__ex2g4s = this_0.t();
|
|
177
177
|
while (_iterator__ex2g4s.u()) {
|
|
178
178
|
var element = _iterator__ex2g4s.v();
|
|
179
|
-
var tmp$ret$2 = element.
|
|
179
|
+
var tmp$ret$2 = element.f49_1;
|
|
180
180
|
destination.d3(tmp$ret$2, element);
|
|
181
181
|
}
|
|
182
|
-
tmp.
|
|
183
|
-
this.
|
|
182
|
+
tmp.g49_1 = destination;
|
|
183
|
+
this.h49_1 = Codes_INTERNAL_ERROR_getInstance();
|
|
184
184
|
}
|
|
185
|
-
protoOf(Companion).
|
|
186
|
-
return this.
|
|
185
|
+
protoOf(Companion).i49 = function (code) {
|
|
186
|
+
return this.g49_1.a3(code);
|
|
187
187
|
};
|
|
188
188
|
var Companion_instance;
|
|
189
189
|
function Companion_getInstance() {
|
|
@@ -221,7 +221,7 @@ function Codes_initEntries() {
|
|
|
221
221
|
}
|
|
222
222
|
var $ENTRIES;
|
|
223
223
|
function CloseReason_init_$Init$(code, message, $this) {
|
|
224
|
-
CloseReason.call($this, code.
|
|
224
|
+
CloseReason.call($this, code.f49_1, message);
|
|
225
225
|
return $this;
|
|
226
226
|
}
|
|
227
227
|
function CloseReason_init_$Create$(code, message) {
|
|
@@ -229,7 +229,7 @@ function CloseReason_init_$Create$(code, message) {
|
|
|
229
229
|
}
|
|
230
230
|
function Codes(name, ordinal, code) {
|
|
231
231
|
Enum.call(this, name, ordinal);
|
|
232
|
-
this.
|
|
232
|
+
this.f49_1 = code;
|
|
233
233
|
}
|
|
234
234
|
function Codes_NORMAL_getInstance() {
|
|
235
235
|
Codes_initEntries();
|
|
@@ -280,19 +280,19 @@ function Codes_TRY_AGAIN_LATER_getInstance() {
|
|
|
280
280
|
return Codes_TRY_AGAIN_LATER_instance;
|
|
281
281
|
}
|
|
282
282
|
function CloseReason(code, message) {
|
|
283
|
-
this.
|
|
284
|
-
this.
|
|
283
|
+
this.j49_1 = code;
|
|
284
|
+
this.k49_1 = message;
|
|
285
285
|
}
|
|
286
|
-
protoOf(CloseReason).
|
|
287
|
-
return Companion_getInstance().
|
|
286
|
+
protoOf(CloseReason).l49 = function () {
|
|
287
|
+
return Companion_getInstance().i49(this.j49_1);
|
|
288
288
|
};
|
|
289
289
|
protoOf(CloseReason).toString = function () {
|
|
290
|
-
var tmp0_elvis_lhs = this.
|
|
291
|
-
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.
|
|
290
|
+
var tmp0_elvis_lhs = this.l49();
|
|
291
|
+
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.j49_1 : tmp0_elvis_lhs) + ', message=' + this.k49_1 + ')';
|
|
292
292
|
};
|
|
293
293
|
protoOf(CloseReason).hashCode = function () {
|
|
294
|
-
var result = this.
|
|
295
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
294
|
+
var result = this.j49_1;
|
|
295
|
+
result = imul(result, 31) + getStringHashCode(this.k49_1) | 0;
|
|
296
296
|
return result;
|
|
297
297
|
};
|
|
298
298
|
protoOf(CloseReason).equals = function (other) {
|
|
@@ -300,9 +300,9 @@ protoOf(CloseReason).equals = function (other) {
|
|
|
300
300
|
return true;
|
|
301
301
|
if (!(other instanceof CloseReason))
|
|
302
302
|
return false;
|
|
303
|
-
if (!(this.
|
|
303
|
+
if (!(this.j49_1 === other.j49_1))
|
|
304
304
|
return false;
|
|
305
|
-
if (!(this.
|
|
305
|
+
if (!(this.k49_1 === other.k49_1))
|
|
306
306
|
return false;
|
|
307
307
|
return true;
|
|
308
308
|
};
|
|
@@ -332,14 +332,14 @@ function DefaultWebSocketSession() {
|
|
|
332
332
|
function DefaultWebSocketSession_0(session, pingIntervalMillis, timeoutMillis, channelsConfig) {
|
|
333
333
|
pingIntervalMillis = pingIntervalMillis === VOID ? 0n : pingIntervalMillis;
|
|
334
334
|
timeoutMillis = timeoutMillis === VOID ? 15000n : timeoutMillis;
|
|
335
|
-
channelsConfig = channelsConfig === VOID ? Companion_getInstance_2().
|
|
335
|
+
channelsConfig = channelsConfig === VOID ? Companion_getInstance_2().s49_1 : channelsConfig;
|
|
336
336
|
_init_properties_DefaultWebSocketSession_kt__469s0y();
|
|
337
337
|
// Inline function 'kotlin.require' call
|
|
338
338
|
if (!!isInterface(session, DefaultWebSocketSession)) {
|
|
339
339
|
var message = 'Cannot wrap other DefaultWebSocketSession';
|
|
340
340
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
341
341
|
}
|
|
342
|
-
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.
|
|
342
|
+
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.t49_1, channelsConfig.u49_1);
|
|
343
343
|
}
|
|
344
344
|
function runIncomingProcessor($this, ponger) {
|
|
345
345
|
var tmp = get_IncomingProcessorCoroutineName().yj(Dispatchers_getInstance().m28_1);
|
|
@@ -364,32 +364,32 @@ function sendCloseSequence($this, reason, exception, $completion) {
|
|
|
364
364
|
return tmp.u9();
|
|
365
365
|
}
|
|
366
366
|
function tryClose($this) {
|
|
367
|
-
return $this.
|
|
367
|
+
return $this.z4a_1.atomicfu$compareAndSet(false, true);
|
|
368
368
|
}
|
|
369
369
|
function runOrCancelPinger($this) {
|
|
370
|
-
var interval = $this.
|
|
370
|
+
var interval = $this.c4b_1;
|
|
371
371
|
var tmp;
|
|
372
|
-
if ($this.
|
|
372
|
+
if ($this.z4a_1.kotlinx$atomicfu$value) {
|
|
373
373
|
tmp = null;
|
|
374
374
|
} else if (interval > 0n) {
|
|
375
|
-
var tmp_0 = $this.
|
|
376
|
-
var tmp_1 = $this.
|
|
375
|
+
var tmp_0 = $this.s4a_1.q49();
|
|
376
|
+
var tmp_1 = $this.d4b_1;
|
|
377
377
|
tmp = pinger($this, tmp_0, interval, tmp_1, DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0($this, null));
|
|
378
378
|
} else {
|
|
379
379
|
tmp = null;
|
|
380
380
|
}
|
|
381
381
|
var newPinger = tmp;
|
|
382
|
-
var tmp0_safe_receiver = $this.
|
|
382
|
+
var tmp0_safe_receiver = $this.t4a_1.atomicfu$getAndSet(newPinger);
|
|
383
383
|
if (tmp0_safe_receiver == null)
|
|
384
384
|
null;
|
|
385
385
|
else
|
|
386
386
|
tmp0_safe_receiver.b2f();
|
|
387
|
-
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.u2e(Companion_getInstance_0().
|
|
387
|
+
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.u2e(Companion_getInstance_0().f4b_1));
|
|
388
388
|
if (tmp2_safe_receiver == null)
|
|
389
389
|
null;
|
|
390
390
|
else
|
|
391
391
|
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.e2d_1);
|
|
392
|
-
if ($this.
|
|
392
|
+
if ($this.z4a_1.kotlinx$atomicfu$value && !(newPinger == null)) {
|
|
393
393
|
runOrCancelPinger($this);
|
|
394
394
|
}
|
|
395
395
|
}
|
|
@@ -402,28 +402,28 @@ function checkMaxFrameSize($this, packet, frame, $completion) {
|
|
|
402
402
|
function processIncomingExtensions($this, frame) {
|
|
403
403
|
// Inline function 'kotlin.collections.fold' call
|
|
404
404
|
var accumulator = frame;
|
|
405
|
-
var _iterator__ex2g4s = $this.
|
|
405
|
+
var _iterator__ex2g4s = $this.s4b().t();
|
|
406
406
|
while (_iterator__ex2g4s.u()) {
|
|
407
407
|
var element = _iterator__ex2g4s.v();
|
|
408
408
|
var current = accumulator;
|
|
409
|
-
accumulator = element.
|
|
409
|
+
accumulator = element.t4b(current);
|
|
410
410
|
}
|
|
411
411
|
return accumulator;
|
|
412
412
|
}
|
|
413
413
|
function processOutgoingExtensions($this, frame) {
|
|
414
414
|
// Inline function 'kotlin.collections.fold' call
|
|
415
415
|
var accumulator = frame;
|
|
416
|
-
var _iterator__ex2g4s = $this.
|
|
416
|
+
var _iterator__ex2g4s = $this.s4b().t();
|
|
417
417
|
while (_iterator__ex2g4s.u()) {
|
|
418
418
|
var element = _iterator__ex2g4s.v();
|
|
419
419
|
var current = accumulator;
|
|
420
|
-
accumulator = element.
|
|
420
|
+
accumulator = element.u4b(current);
|
|
421
421
|
}
|
|
422
422
|
return accumulator;
|
|
423
423
|
}
|
|
424
424
|
function Companion_0() {
|
|
425
425
|
Companion_instance_0 = this;
|
|
426
|
-
this.
|
|
426
|
+
this.f4b_1 = new Pong(new Int8Array(0), NonDisposableHandle_instance);
|
|
427
427
|
}
|
|
428
428
|
var Companion_instance_0;
|
|
429
429
|
function Companion_getInstance_0() {
|
|
@@ -432,9 +432,9 @@ function Companion_getInstance_0() {
|
|
|
432
432
|
return Companion_instance_0;
|
|
433
433
|
}
|
|
434
434
|
function DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
435
|
-
this.
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
435
|
+
this.d4c_1 = $incomingJob;
|
|
436
|
+
this.e4c_1 = $outgoingJob;
|
|
437
|
+
this.f4c_1 = this$0;
|
|
438
438
|
CoroutineImpl.call(this, resultContinuation);
|
|
439
439
|
}
|
|
440
440
|
protoOf(DefaultWebSocketSessionImpl$start$slambda).b2m = function ($this$launch, $completion) {
|
|
@@ -455,7 +455,7 @@ protoOf(DefaultWebSocketSessionImpl$start$slambda).u9 = function () {
|
|
|
455
455
|
case 0:
|
|
456
456
|
this.n9_1 = 3;
|
|
457
457
|
this.m9_1 = 1;
|
|
458
|
-
suspendResult = this.
|
|
458
|
+
suspendResult = this.d4c_1.d1x(this);
|
|
459
459
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
460
460
|
return suspendResult;
|
|
461
461
|
}
|
|
@@ -463,14 +463,14 @@ protoOf(DefaultWebSocketSessionImpl$start$slambda).u9 = function () {
|
|
|
463
463
|
continue $sm;
|
|
464
464
|
case 1:
|
|
465
465
|
this.m9_1 = 2;
|
|
466
|
-
suspendResult = this.
|
|
466
|
+
suspendResult = this.e4c_1.d1x(this);
|
|
467
467
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
468
468
|
return suspendResult;
|
|
469
469
|
}
|
|
470
470
|
|
|
471
471
|
continue $sm;
|
|
472
472
|
case 2:
|
|
473
|
-
this.
|
|
473
|
+
this.f4c_1.v4a_1.i1x();
|
|
474
474
|
return Unit_instance;
|
|
475
475
|
case 3:
|
|
476
476
|
throw this.p9_1;
|
|
@@ -487,8 +487,8 @@ protoOf(DefaultWebSocketSessionImpl$start$slambda).u9 = function () {
|
|
|
487
487
|
while (true);
|
|
488
488
|
};
|
|
489
489
|
protoOf(DefaultWebSocketSessionImpl$start$slambda).c2m = function ($this$launch, completion) {
|
|
490
|
-
var i = new DefaultWebSocketSessionImpl$start$slambda(this.
|
|
491
|
-
i.
|
|
490
|
+
var i = new DefaultWebSocketSessionImpl$start$slambda(this.d4c_1, this.e4c_1, this.f4c_1, completion);
|
|
491
|
+
i.g4c_1 = $this$launch;
|
|
492
492
|
return i;
|
|
493
493
|
};
|
|
494
494
|
function DefaultWebSocketSessionImpl$start$slambda_0($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
@@ -500,8 +500,8 @@ function DefaultWebSocketSessionImpl$start$slambda_0($incomingJob, $outgoingJob,
|
|
|
500
500
|
return l;
|
|
501
501
|
}
|
|
502
502
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation) {
|
|
503
|
-
this.
|
|
504
|
-
this.
|
|
503
|
+
this.p4c_1 = this$0;
|
|
504
|
+
this.q4c_1 = $ponger;
|
|
505
505
|
CoroutineImpl.call(this, resultContinuation);
|
|
506
506
|
}
|
|
507
507
|
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).b2m = function ($this$launch, $completion) {
|
|
@@ -521,10 +521,10 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u9 = function
|
|
|
521
521
|
switch (tmp) {
|
|
522
522
|
case 0:
|
|
523
523
|
this.n9_1 = 39;
|
|
524
|
-
this.
|
|
525
|
-
this.
|
|
526
|
-
this.
|
|
527
|
-
this.
|
|
524
|
+
this.b4d_1 = null;
|
|
525
|
+
this.u4c_1 = null;
|
|
526
|
+
this.t4c_1 = false;
|
|
527
|
+
this.v4c_1 = Unit_instance;
|
|
528
528
|
this.m9_1 = 1;
|
|
529
529
|
continue $sm;
|
|
530
530
|
case 1:
|
|
@@ -533,12 +533,12 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u9 = function
|
|
|
533
533
|
case 2:
|
|
534
534
|
this.n9_1 = 33;
|
|
535
535
|
this.n9_1 = 32;
|
|
536
|
-
this.
|
|
536
|
+
this.f4d_1 = this.p4c_1.s4a_1.p49();
|
|
537
537
|
this.m9_1 = 3;
|
|
538
538
|
continue $sm;
|
|
539
539
|
case 3:
|
|
540
|
-
this.
|
|
541
|
-
this.
|
|
540
|
+
this.y4c_1 = this.f4d_1;
|
|
541
|
+
this.x4c_1 = null;
|
|
542
542
|
this.m9_1 = 4;
|
|
543
543
|
continue $sm;
|
|
544
544
|
case 4:
|
|
@@ -550,12 +550,12 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u9 = function
|
|
|
550
550
|
case 6:
|
|
551
551
|
this.n9_1 = 29;
|
|
552
552
|
this.n9_1 = 28;
|
|
553
|
-
this.
|
|
553
|
+
this.e4d_1 = this.y4c_1.t();
|
|
554
554
|
this.m9_1 = 7;
|
|
555
555
|
continue $sm;
|
|
556
556
|
case 7:
|
|
557
557
|
this.m9_1 = 8;
|
|
558
|
-
suspendResult = this.
|
|
558
|
+
suspendResult = this.e4d_1.w2c(this);
|
|
559
559
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
560
560
|
return suspendResult;
|
|
561
561
|
}
|
|
@@ -567,23 +567,23 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u9 = function
|
|
|
567
567
|
continue $sm;
|
|
568
568
|
}
|
|
569
569
|
|
|
570
|
-
var e = this.
|
|
571
|
-
this.
|
|
570
|
+
var e = this.e4d_1.v();
|
|
571
|
+
this.d4d_1 = e;
|
|
572
572
|
this.m9_1 = 9;
|
|
573
573
|
continue $sm;
|
|
574
574
|
case 9:
|
|
575
|
-
this.
|
|
575
|
+
this.c4d_1 = this.d4d_1;
|
|
576
576
|
var this_0 = get_LOGGER();
|
|
577
577
|
if (get_isTraceEnabled(this_0)) {
|
|
578
|
-
this_0.o3m('WebSocketSession(' + toString(this.
|
|
578
|
+
this_0.o3m('WebSocketSession(' + toString(this.r4c_1) + ') receiving frame ' + this.c4d_1.toString());
|
|
579
579
|
}
|
|
580
580
|
|
|
581
|
-
var tmp0_subject = this.
|
|
581
|
+
var tmp0_subject = this.c4d_1;
|
|
582
582
|
if (tmp0_subject instanceof Close) {
|
|
583
|
-
if (!this.
|
|
583
|
+
if (!this.p4c_1.q49().y2c()) {
|
|
584
584
|
this.m9_1 = 18;
|
|
585
|
-
var tmp_0 = this.
|
|
586
|
-
var tmp1_elvis_lhs = readReason(this.
|
|
585
|
+
var tmp_0 = this.p4c_1.q49();
|
|
586
|
+
var tmp1_elvis_lhs = readReason(this.c4d_1);
|
|
587
587
|
suspendResult = tmp_0.t2e(Close_init_$Create$(tmp1_elvis_lhs == null ? get_NORMAL_CLOSE() : tmp1_elvis_lhs), this);
|
|
588
588
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
589
589
|
return suspendResult;
|
|
@@ -595,14 +595,14 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u9 = function
|
|
|
595
595
|
}
|
|
596
596
|
} else {
|
|
597
597
|
if (tmp0_subject instanceof Pong) {
|
|
598
|
-
var tmp2_safe_receiver = this.
|
|
598
|
+
var tmp2_safe_receiver = this.p4c_1.t4a_1.kotlinx$atomicfu$value;
|
|
599
599
|
if (tmp2_safe_receiver == null) {
|
|
600
|
-
this.
|
|
600
|
+
this.a4d_1 = null;
|
|
601
601
|
this.m9_1 = 17;
|
|
602
602
|
continue $sm;
|
|
603
603
|
} else {
|
|
604
604
|
this.m9_1 = 16;
|
|
605
|
-
suspendResult = tmp2_safe_receiver.t2e(this.
|
|
605
|
+
suspendResult = tmp2_safe_receiver.t2e(this.c4d_1, this);
|
|
606
606
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
607
607
|
return suspendResult;
|
|
608
608
|
}
|
|
@@ -611,14 +611,14 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u9 = function
|
|
|
611
611
|
} else {
|
|
612
612
|
if (tmp0_subject instanceof Ping) {
|
|
613
613
|
this.m9_1 = 15;
|
|
614
|
-
suspendResult = this.
|
|
614
|
+
suspendResult = this.q4c_1.t2e(this.c4d_1, this);
|
|
615
615
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
616
616
|
return suspendResult;
|
|
617
617
|
}
|
|
618
618
|
continue $sm;
|
|
619
619
|
} else {
|
|
620
620
|
this.m9_1 = 10;
|
|
621
|
-
suspendResult = checkMaxFrameSize(this.
|
|
621
|
+
suspendResult = checkMaxFrameSize(this.p4c_1, this.u4c_1, this.c4d_1, this);
|
|
622
622
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
623
623
|
return suspendResult;
|
|
624
624
|
}
|
|
@@ -628,14 +628,14 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u9 = function
|
|
|
628
628
|
}
|
|
629
629
|
|
|
630
630
|
case 10:
|
|
631
|
-
if (!this.
|
|
632
|
-
if (this.
|
|
633
|
-
this.
|
|
631
|
+
if (!this.c4d_1.g4d_1) {
|
|
632
|
+
if (this.b4d_1 == null) {
|
|
633
|
+
this.b4d_1 = this.c4d_1;
|
|
634
634
|
}
|
|
635
|
-
if (this.
|
|
636
|
-
this.
|
|
635
|
+
if (this.u4c_1 == null) {
|
|
636
|
+
this.u4c_1 = BytePacketBuilder();
|
|
637
637
|
}
|
|
638
|
-
writeFully(this.
|
|
638
|
+
writeFully(this.u4c_1, this.c4d_1.i4d_1);
|
|
639
639
|
this.m9_1 = 21;
|
|
640
640
|
continue $sm;
|
|
641
641
|
} else {
|
|
@@ -644,9 +644,9 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u9 = function
|
|
|
644
644
|
}
|
|
645
645
|
|
|
646
646
|
case 11:
|
|
647
|
-
if (this.
|
|
647
|
+
if (this.b4d_1 == null) {
|
|
648
648
|
this.m9_1 = 14;
|
|
649
|
-
suspendResult = this.
|
|
649
|
+
suspendResult = this.p4c_1.x4a_1.t2e(processIncomingExtensions(this.p4c_1, this.c4d_1), this);
|
|
650
650
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
651
651
|
return suspendResult;
|
|
652
652
|
}
|
|
@@ -657,11 +657,11 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u9 = function
|
|
|
657
657
|
}
|
|
658
658
|
|
|
659
659
|
case 12:
|
|
660
|
-
writeFully(ensureNotNull(this.
|
|
661
|
-
var defragmented = Companion_getInstance_5().
|
|
662
|
-
this.
|
|
660
|
+
writeFully(ensureNotNull(this.u4c_1), this.c4d_1.i4d_1);
|
|
661
|
+
var defragmented = Companion_getInstance_5().o4d(true, this.b4d_1.h4d_1, readByteArray(build(this.u4c_1)), this.b4d_1.k4d_1, this.b4d_1.l4d_1, this.b4d_1.m4d_1);
|
|
662
|
+
this.b4d_1 = null;
|
|
663
663
|
this.m9_1 = 13;
|
|
664
|
-
suspendResult = this.
|
|
664
|
+
suspendResult = this.p4c_1.x4a_1.t2e(processIncomingExtensions(this.p4c_1, defragmented), this);
|
|
665
665
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
666
666
|
return suspendResult;
|
|
667
667
|
}
|
|
@@ -669,7 +669,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u9 = function
|
|
|
669
669
|
continue $sm;
|
|
670
670
|
case 13:
|
|
671
671
|
var tmp_1 = this;
|
|
672
|
-
tmp_1.
|
|
672
|
+
tmp_1.z4c_1 = Unit_instance;
|
|
673
673
|
this.m9_1 = 20;
|
|
674
674
|
continue $sm;
|
|
675
675
|
case 14:
|
|
@@ -677,23 +677,23 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u9 = function
|
|
|
677
677
|
continue $sm;
|
|
678
678
|
case 15:
|
|
679
679
|
var tmp_2 = this;
|
|
680
|
-
tmp_2.
|
|
680
|
+
tmp_2.z4c_1 = Unit_instance;
|
|
681
681
|
this.m9_1 = 20;
|
|
682
682
|
continue $sm;
|
|
683
683
|
case 16:
|
|
684
684
|
var tmp_3 = this;
|
|
685
|
-
tmp_3.
|
|
685
|
+
tmp_3.a4d_1 = Unit_instance;
|
|
686
686
|
this.m9_1 = 17;
|
|
687
687
|
continue $sm;
|
|
688
688
|
case 17:
|
|
689
|
-
this.
|
|
689
|
+
this.z4c_1 = this.a4d_1;
|
|
690
690
|
this.m9_1 = 20;
|
|
691
691
|
continue $sm;
|
|
692
692
|
case 18:
|
|
693
693
|
this.m9_1 = 19;
|
|
694
694
|
continue $sm;
|
|
695
695
|
case 19:
|
|
696
|
-
this.
|
|
696
|
+
this.t4c_1 = true;
|
|
697
697
|
this.m9_1 = 22;
|
|
698
698
|
var tmp_4 = this;
|
|
699
699
|
continue $sm;
|
|
@@ -710,24 +710,24 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u9 = function
|
|
|
710
710
|
continue $sm;
|
|
711
711
|
case 22:
|
|
712
712
|
this.n9_1 = 32;
|
|
713
|
-
cancelConsumed(this.
|
|
713
|
+
cancelConsumed(this.y4c_1, this.x4c_1);
|
|
714
714
|
this.n9_1 = 39;
|
|
715
715
|
this.m9_1 = 23;
|
|
716
716
|
continue $sm;
|
|
717
717
|
case 23:
|
|
718
718
|
this.n9_1 = 39;
|
|
719
|
-
this.
|
|
720
|
-
var tmp0_safe_receiver = this.
|
|
719
|
+
this.q4c_1.b2f();
|
|
720
|
+
var tmp0_safe_receiver = this.u4c_1;
|
|
721
721
|
if (tmp0_safe_receiver == null)
|
|
722
722
|
null;
|
|
723
723
|
else {
|
|
724
724
|
tmp0_safe_receiver.d5();
|
|
725
725
|
}
|
|
726
726
|
|
|
727
|
-
this.
|
|
728
|
-
if (!this.
|
|
727
|
+
this.p4c_1.x4a_1.b2f();
|
|
728
|
+
if (!this.t4c_1) {
|
|
729
729
|
this.m9_1 = 24;
|
|
730
|
-
suspendResult = close(this.
|
|
730
|
+
suspendResult = close(this.p4c_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
731
731
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
732
732
|
return suspendResult;
|
|
733
733
|
}
|
|
@@ -749,7 +749,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u9 = function
|
|
|
749
749
|
continue $sm;
|
|
750
750
|
case 27:
|
|
751
751
|
this.n9_1 = 32;
|
|
752
|
-
cancelConsumed(this.
|
|
752
|
+
cancelConsumed(this.y4c_1, this.x4c_1);
|
|
753
753
|
this.m9_1 = 31;
|
|
754
754
|
continue $sm;
|
|
755
755
|
case 28:
|
|
@@ -758,7 +758,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u9 = function
|
|
|
758
758
|
if (tmp_7 instanceof Error) {
|
|
759
759
|
var e_0 = this.p9_1;
|
|
760
760
|
var tmp_8 = this;
|
|
761
|
-
this.
|
|
761
|
+
this.x4c_1 = e_0;
|
|
762
762
|
throw e_0;
|
|
763
763
|
} else {
|
|
764
764
|
throw this.p9_1;
|
|
@@ -767,11 +767,11 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u9 = function
|
|
|
767
767
|
case 29:
|
|
768
768
|
this.n9_1 = 32;
|
|
769
769
|
var t = this.p9_1;
|
|
770
|
-
cancelConsumed(this.
|
|
770
|
+
cancelConsumed(this.y4c_1, this.x4c_1);
|
|
771
771
|
throw t;
|
|
772
772
|
case 30:
|
|
773
773
|
this.n9_1 = 32;
|
|
774
|
-
cancelConsumed(this.
|
|
774
|
+
cancelConsumed(this.y4c_1, this.x4c_1);
|
|
775
775
|
if (false) {
|
|
776
776
|
this.m9_1 = 3;
|
|
777
777
|
continue $sm;
|
|
@@ -780,7 +780,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u9 = function
|
|
|
780
780
|
this.m9_1 = 31;
|
|
781
781
|
continue $sm;
|
|
782
782
|
case 31:
|
|
783
|
-
this.
|
|
783
|
+
this.v4c_1 = Unit_instance;
|
|
784
784
|
this.n9_1 = 39;
|
|
785
785
|
this.m9_1 = 36;
|
|
786
786
|
continue $sm;
|
|
@@ -790,7 +790,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u9 = function
|
|
|
790
790
|
if (tmp_9 instanceof ClosedSendChannelException) {
|
|
791
791
|
var _unused_var__etf5q3 = this.p9_1;
|
|
792
792
|
var tmp_10 = this;
|
|
793
|
-
tmp_10.
|
|
793
|
+
tmp_10.v4c_1 = Unit_instance;
|
|
794
794
|
this.n9_1 = 39;
|
|
795
795
|
this.m9_1 = 36;
|
|
796
796
|
continue $sm;
|
|
@@ -799,8 +799,8 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u9 = function
|
|
|
799
799
|
if (tmp_11 instanceof Error) {
|
|
800
800
|
var cause = this.p9_1;
|
|
801
801
|
var tmp_12 = this;
|
|
802
|
-
this.
|
|
803
|
-
tmp_12.
|
|
802
|
+
this.q4c_1.b2f();
|
|
803
|
+
tmp_12.v4c_1 = this.p4c_1.x4a_1.z2e(cause);
|
|
804
804
|
this.n9_1 = 39;
|
|
805
805
|
this.m9_1 = 36;
|
|
806
806
|
continue $sm;
|
|
@@ -811,19 +811,19 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u9 = function
|
|
|
811
811
|
|
|
812
812
|
case 33:
|
|
813
813
|
this.n9_1 = 39;
|
|
814
|
-
this.
|
|
815
|
-
this.
|
|
816
|
-
var tmp0_safe_receiver_0 = this.
|
|
814
|
+
this.w4c_1 = this.p9_1;
|
|
815
|
+
this.q4c_1.b2f();
|
|
816
|
+
var tmp0_safe_receiver_0 = this.u4c_1;
|
|
817
817
|
if (tmp0_safe_receiver_0 == null)
|
|
818
818
|
null;
|
|
819
819
|
else {
|
|
820
820
|
tmp0_safe_receiver_0.d5();
|
|
821
821
|
}
|
|
822
822
|
|
|
823
|
-
this.
|
|
824
|
-
if (!this.
|
|
823
|
+
this.p4c_1.x4a_1.b2f();
|
|
824
|
+
if (!this.t4c_1) {
|
|
825
825
|
this.m9_1 = 34;
|
|
826
|
-
suspendResult = close(this.
|
|
826
|
+
suspendResult = close(this.p4c_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
827
827
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
828
828
|
return suspendResult;
|
|
829
829
|
}
|
|
@@ -837,22 +837,22 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u9 = function
|
|
|
837
837
|
this.m9_1 = 35;
|
|
838
838
|
continue $sm;
|
|
839
839
|
case 35:
|
|
840
|
-
throw this.
|
|
840
|
+
throw this.w4c_1;
|
|
841
841
|
case 36:
|
|
842
|
-
this.
|
|
842
|
+
this.s4c_1 = this.v4c_1;
|
|
843
843
|
this.n9_1 = 39;
|
|
844
|
-
this.
|
|
845
|
-
var tmp0_safe_receiver_1 = this.
|
|
844
|
+
this.q4c_1.b2f();
|
|
845
|
+
var tmp0_safe_receiver_1 = this.u4c_1;
|
|
846
846
|
if (tmp0_safe_receiver_1 == null)
|
|
847
847
|
null;
|
|
848
848
|
else {
|
|
849
849
|
tmp0_safe_receiver_1.d5();
|
|
850
850
|
}
|
|
851
851
|
|
|
852
|
-
this.
|
|
853
|
-
if (!this.
|
|
852
|
+
this.p4c_1.x4a_1.b2f();
|
|
853
|
+
if (!this.t4c_1) {
|
|
854
854
|
this.m9_1 = 37;
|
|
855
|
-
suspendResult = close(this.
|
|
855
|
+
suspendResult = close(this.p4c_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
856
856
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
857
857
|
return suspendResult;
|
|
858
858
|
}
|
|
@@ -882,8 +882,8 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u9 = function
|
|
|
882
882
|
while (true);
|
|
883
883
|
};
|
|
884
884
|
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).c2m = function ($this$launch, completion) {
|
|
885
|
-
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.
|
|
886
|
-
i.
|
|
885
|
+
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.p4c_1, this.q4c_1, completion);
|
|
886
|
+
i.r4c_1 = $this$launch;
|
|
887
887
|
return i;
|
|
888
888
|
};
|
|
889
889
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0(this$0, $ponger, resultContinuation) {
|
|
@@ -895,7 +895,7 @@ function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0(this$0, $pon
|
|
|
895
895
|
return l;
|
|
896
896
|
}
|
|
897
897
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation) {
|
|
898
|
-
this.
|
|
898
|
+
this.x4d_1 = this$0;
|
|
899
899
|
CoroutineImpl.call(this, resultContinuation);
|
|
900
900
|
}
|
|
901
901
|
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).b2m = function ($this$launch, $completion) {
|
|
@@ -924,7 +924,7 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).u9 = function
|
|
|
924
924
|
this.n9_1 = 9;
|
|
925
925
|
this.n9_1 = 4;
|
|
926
926
|
this.m9_1 = 3;
|
|
927
|
-
suspendResult = outgoingProcessorLoop(this.
|
|
927
|
+
suspendResult = outgoingProcessorLoop(this.x4d_1, this);
|
|
928
928
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
929
929
|
return suspendResult;
|
|
930
930
|
}
|
|
@@ -954,7 +954,7 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).u9 = function
|
|
|
954
954
|
if (tmp_2 instanceof CancellationException) {
|
|
955
955
|
var _unused_var__etf5q3_1 = this.p9_1;
|
|
956
956
|
this.m9_1 = 5;
|
|
957
|
-
suspendResult = sendCloseSequence(this.
|
|
957
|
+
suspendResult = sendCloseSequence(this.x4d_1, CloseReason_init_$Create$(Codes_NORMAL_getInstance(), ''), VOID, this);
|
|
958
958
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
959
959
|
return suspendResult;
|
|
960
960
|
}
|
|
@@ -970,9 +970,9 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).u9 = function
|
|
|
970
970
|
var tmp_4 = this.p9_1;
|
|
971
971
|
if (tmp_4 instanceof Error) {
|
|
972
972
|
var cause = this.p9_1;
|
|
973
|
-
this.
|
|
973
|
+
this.x4d_1.y4a_1.h1x(CancellationException_init_$Create$('Failed to send frame', cause));
|
|
974
974
|
this.m9_1 = 6;
|
|
975
|
-
suspendResult = closeExceptionally(this.
|
|
975
|
+
suspendResult = closeExceptionally(this.x4d_1.s4a_1, cause, this);
|
|
976
976
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
977
977
|
return suspendResult;
|
|
978
978
|
}
|
|
@@ -995,9 +995,9 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).u9 = function
|
|
|
995
995
|
continue $sm;
|
|
996
996
|
case 7:
|
|
997
997
|
this.n9_1 = 13;
|
|
998
|
-
this.
|
|
998
|
+
this.x4d_1.y4a_1.d2f();
|
|
999
999
|
this.m9_1 = 8;
|
|
1000
|
-
suspendResult = close(this.
|
|
1000
|
+
suspendResult = close(this.x4d_1.s4a_1, VOID, this);
|
|
1001
1001
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1002
1002
|
return suspendResult;
|
|
1003
1003
|
}
|
|
@@ -1007,22 +1007,22 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).u9 = function
|
|
|
1007
1007
|
return Unit_instance;
|
|
1008
1008
|
case 9:
|
|
1009
1009
|
this.n9_1 = 13;
|
|
1010
|
-
this.
|
|
1011
|
-
this.
|
|
1010
|
+
this.z4d_1 = this.p9_1;
|
|
1011
|
+
this.x4d_1.y4a_1.d2f();
|
|
1012
1012
|
this.m9_1 = 10;
|
|
1013
|
-
suspendResult = close(this.
|
|
1013
|
+
suspendResult = close(this.x4d_1.s4a_1, VOID, this);
|
|
1014
1014
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1015
1015
|
return suspendResult;
|
|
1016
1016
|
}
|
|
1017
1017
|
|
|
1018
1018
|
continue $sm;
|
|
1019
1019
|
case 10:
|
|
1020
|
-
throw this.
|
|
1020
|
+
throw this.z4d_1;
|
|
1021
1021
|
case 11:
|
|
1022
1022
|
this.n9_1 = 13;
|
|
1023
|
-
this.
|
|
1023
|
+
this.x4d_1.y4a_1.d2f();
|
|
1024
1024
|
this.m9_1 = 12;
|
|
1025
|
-
suspendResult = close(this.
|
|
1025
|
+
suspendResult = close(this.x4d_1.s4a_1, VOID, this);
|
|
1026
1026
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1027
1027
|
return suspendResult;
|
|
1028
1028
|
}
|
|
@@ -1045,8 +1045,8 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).u9 = function
|
|
|
1045
1045
|
while (true);
|
|
1046
1046
|
};
|
|
1047
1047
|
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).c2m = function ($this$launch, completion) {
|
|
1048
|
-
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.
|
|
1049
|
-
i.
|
|
1048
|
+
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.x4d_1, completion);
|
|
1049
|
+
i.y4d_1 = $this$launch;
|
|
1050
1050
|
return i;
|
|
1051
1051
|
};
|
|
1052
1052
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0(this$0, resultContinuation) {
|
|
@@ -1058,17 +1058,17 @@ function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0(this$0, resu
|
|
|
1058
1058
|
return l;
|
|
1059
1059
|
}
|
|
1060
1060
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation) {
|
|
1061
|
-
this.
|
|
1061
|
+
this.i4e_1 = this$0;
|
|
1062
1062
|
CoroutineImpl.call(this, resultContinuation);
|
|
1063
1063
|
}
|
|
1064
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1065
|
-
var tmp = this.
|
|
1064
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).k4e = function (it, $completion) {
|
|
1065
|
+
var tmp = this.l4e(it, $completion);
|
|
1066
1066
|
tmp.o9_1 = Unit_instance;
|
|
1067
1067
|
tmp.p9_1 = null;
|
|
1068
1068
|
return tmp.u9();
|
|
1069
1069
|
};
|
|
1070
1070
|
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).ga = function (p1, $completion) {
|
|
1071
|
-
return this.
|
|
1071
|
+
return this.k4e(p1 instanceof CloseReason ? p1 : THROW_CCE(), $completion);
|
|
1072
1072
|
};
|
|
1073
1073
|
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).u9 = function () {
|
|
1074
1074
|
var suspendResult = this.o9_1;
|
|
@@ -1079,7 +1079,7 @@ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).u9 = function ()
|
|
|
1079
1079
|
case 0:
|
|
1080
1080
|
this.n9_1 = 2;
|
|
1081
1081
|
this.m9_1 = 1;
|
|
1082
|
-
suspendResult = sendCloseSequence(this.
|
|
1082
|
+
suspendResult = sendCloseSequence(this.i4e_1, this.j4e_1, IOException_init_$Create$('Ping timeout'), this);
|
|
1083
1083
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1084
1084
|
return suspendResult;
|
|
1085
1085
|
}
|
|
@@ -1101,22 +1101,22 @@ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).u9 = function ()
|
|
|
1101
1101
|
}
|
|
1102
1102
|
while (true);
|
|
1103
1103
|
};
|
|
1104
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1105
|
-
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.
|
|
1106
|
-
i.
|
|
1104
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).l4e = function (it, completion) {
|
|
1105
|
+
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.i4e_1, completion);
|
|
1106
|
+
i.j4e_1 = it;
|
|
1107
1107
|
return i;
|
|
1108
1108
|
};
|
|
1109
1109
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0(this$0, resultContinuation) {
|
|
1110
1110
|
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation);
|
|
1111
1111
|
var l = function (it, $completion) {
|
|
1112
|
-
return i.
|
|
1112
|
+
return i.k4e(it, $completion);
|
|
1113
1113
|
};
|
|
1114
1114
|
l.$arity = 1;
|
|
1115
1115
|
return l;
|
|
1116
1116
|
}
|
|
1117
1117
|
function $outgoingProcessorLoopCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1118
1118
|
CoroutineImpl.call(this, resultContinuation);
|
|
1119
|
-
this.
|
|
1119
|
+
this.d4a_1 = _this__u8e3s4;
|
|
1120
1120
|
}
|
|
1121
1121
|
protoOf($outgoingProcessorLoopCOROUTINE$).u9 = function () {
|
|
1122
1122
|
var suspendResult = this.o9_1;
|
|
@@ -1126,12 +1126,12 @@ protoOf($outgoingProcessorLoopCOROUTINE$).u9 = function () {
|
|
|
1126
1126
|
switch (tmp) {
|
|
1127
1127
|
case 0:
|
|
1128
1128
|
this.n9_1 = 7;
|
|
1129
|
-
this.
|
|
1129
|
+
this.f4a_1 = this.d4a_1.y4a_1.t();
|
|
1130
1130
|
this.m9_1 = 1;
|
|
1131
1131
|
continue $sm;
|
|
1132
1132
|
case 1:
|
|
1133
1133
|
this.m9_1 = 2;
|
|
1134
|
-
suspendResult = this.
|
|
1134
|
+
suspendResult = this.f4a_1.w2c(this);
|
|
1135
1135
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1136
1136
|
return suspendResult;
|
|
1137
1137
|
}
|
|
@@ -1143,15 +1143,15 @@ protoOf($outgoingProcessorLoopCOROUTINE$).u9 = function () {
|
|
|
1143
1143
|
continue $sm;
|
|
1144
1144
|
}
|
|
1145
1145
|
|
|
1146
|
-
var frame = this.
|
|
1146
|
+
var frame = this.f4a_1.v();
|
|
1147
1147
|
var this_0 = get_LOGGER();
|
|
1148
1148
|
if (get_isTraceEnabled(this_0)) {
|
|
1149
|
-
this_0.o3m('Sending ' + frame.toString() + ' from session ' + toString(this.
|
|
1149
|
+
this_0.o3m('Sending ' + frame.toString() + ' from session ' + toString(this.d4a_1));
|
|
1150
1150
|
}
|
|
1151
1151
|
|
|
1152
1152
|
if (frame instanceof Close) {
|
|
1153
1153
|
this.m9_1 = 3;
|
|
1154
|
-
suspendResult = sendCloseSequence(this.
|
|
1154
|
+
suspendResult = sendCloseSequence(this.d4a_1, readReason(frame), VOID, this);
|
|
1155
1155
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1156
1156
|
return suspendResult;
|
|
1157
1157
|
}
|
|
@@ -1164,11 +1164,11 @@ protoOf($outgoingProcessorLoopCOROUTINE$).u9 = function () {
|
|
|
1164
1164
|
tmp_0 = frame instanceof Binary;
|
|
1165
1165
|
}
|
|
1166
1166
|
if (tmp_0) {
|
|
1167
|
-
this.
|
|
1167
|
+
this.e4a_1 = processOutgoingExtensions(this.d4a_1, frame);
|
|
1168
1168
|
this.m9_1 = 4;
|
|
1169
1169
|
continue $sm;
|
|
1170
1170
|
} else {
|
|
1171
|
-
this.
|
|
1171
|
+
this.e4a_1 = frame;
|
|
1172
1172
|
this.m9_1 = 4;
|
|
1173
1173
|
continue $sm;
|
|
1174
1174
|
}
|
|
@@ -1179,9 +1179,9 @@ protoOf($outgoingProcessorLoopCOROUTINE$).u9 = function () {
|
|
|
1179
1179
|
var tmp_1 = this;
|
|
1180
1180
|
continue $sm;
|
|
1181
1181
|
case 4:
|
|
1182
|
-
var processedFrame = this.
|
|
1182
|
+
var processedFrame = this.e4a_1;
|
|
1183
1183
|
this.m9_1 = 5;
|
|
1184
|
-
suspendResult = this.
|
|
1184
|
+
suspendResult = this.d4a_1.s4a_1.q49().t2e(processedFrame, this);
|
|
1185
1185
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1186
1186
|
return suspendResult;
|
|
1187
1187
|
}
|
|
@@ -1208,9 +1208,9 @@ protoOf($outgoingProcessorLoopCOROUTINE$).u9 = function () {
|
|
|
1208
1208
|
};
|
|
1209
1209
|
function $sendCloseSequenceCOROUTINE$(_this__u8e3s4, reason, exception, resultContinuation) {
|
|
1210
1210
|
CoroutineImpl.call(this, resultContinuation);
|
|
1211
|
-
this.
|
|
1212
|
-
this.
|
|
1213
|
-
this.
|
|
1211
|
+
this.o4a_1 = _this__u8e3s4;
|
|
1212
|
+
this.p4a_1 = reason;
|
|
1213
|
+
this.q4a_1 = exception;
|
|
1214
1214
|
}
|
|
1215
1215
|
protoOf($sendCloseSequenceCOROUTINE$).u9 = function () {
|
|
1216
1216
|
var suspendResult = this.o9_1;
|
|
@@ -1220,25 +1220,25 @@ protoOf($sendCloseSequenceCOROUTINE$).u9 = function () {
|
|
|
1220
1220
|
switch (tmp) {
|
|
1221
1221
|
case 0:
|
|
1222
1222
|
this.n9_1 = 6;
|
|
1223
|
-
if (!tryClose(this.
|
|
1223
|
+
if (!tryClose(this.o4a_1))
|
|
1224
1224
|
return Unit_instance;
|
|
1225
1225
|
var this_0 = get_LOGGER();
|
|
1226
1226
|
if (get_isTraceEnabled(this_0)) {
|
|
1227
|
-
this_0.o3m('Sending Close Sequence for session ' + toString(this.
|
|
1227
|
+
this_0.o3m('Sending Close Sequence for session ' + toString(this.o4a_1) + ' with reason ' + toString_0(this.p4a_1) + ' and exception ' + toString_0(this.q4a_1));
|
|
1228
1228
|
}
|
|
1229
1229
|
|
|
1230
|
-
this.
|
|
1230
|
+
this.o4a_1.v4a_1.f24();
|
|
1231
1231
|
var tmp_0 = this;
|
|
1232
|
-
var tmp0_elvis_lhs = this.
|
|
1233
|
-
tmp_0.
|
|
1232
|
+
var tmp0_elvis_lhs = this.p4a_1;
|
|
1233
|
+
tmp_0.r4a_1 = tmp0_elvis_lhs == null ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : tmp0_elvis_lhs;
|
|
1234
1234
|
this.m9_1 = 1;
|
|
1235
1235
|
continue $sm;
|
|
1236
1236
|
case 1:
|
|
1237
1237
|
this.n9_1 = 5;
|
|
1238
|
-
runOrCancelPinger(this.
|
|
1239
|
-
if (!(this.
|
|
1238
|
+
runOrCancelPinger(this.o4a_1);
|
|
1239
|
+
if (!(this.r4a_1.j49_1 === Codes_CLOSED_ABNORMALLY_getInstance().f49_1)) {
|
|
1240
1240
|
this.m9_1 = 2;
|
|
1241
|
-
suspendResult = this.
|
|
1241
|
+
suspendResult = this.o4a_1.s4a_1.q49().t2e(Close_init_$Create$(this.r4a_1), this);
|
|
1242
1242
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1243
1243
|
return suspendResult;
|
|
1244
1244
|
}
|
|
@@ -1257,20 +1257,20 @@ protoOf($sendCloseSequenceCOROUTINE$).u9 = function () {
|
|
|
1257
1257
|
continue $sm;
|
|
1258
1258
|
case 4:
|
|
1259
1259
|
this.n9_1 = 6;
|
|
1260
|
-
this.
|
|
1261
|
-
if (!(this.
|
|
1262
|
-
this.
|
|
1263
|
-
this.
|
|
1260
|
+
this.o4a_1.u4a_1.d24(this.r4a_1);
|
|
1261
|
+
if (!(this.q4a_1 == null)) {
|
|
1262
|
+
this.o4a_1.y4a_1.z2e(this.q4a_1);
|
|
1263
|
+
this.o4a_1.x4a_1.z2e(this.q4a_1);
|
|
1264
1264
|
}
|
|
1265
1265
|
|
|
1266
1266
|
return Unit_instance;
|
|
1267
1267
|
case 5:
|
|
1268
1268
|
this.n9_1 = 6;
|
|
1269
1269
|
var t = this.p9_1;
|
|
1270
|
-
this.
|
|
1271
|
-
if (!(this.
|
|
1272
|
-
this.
|
|
1273
|
-
this.
|
|
1270
|
+
this.o4a_1.u4a_1.d24(this.r4a_1);
|
|
1271
|
+
if (!(this.q4a_1 == null)) {
|
|
1272
|
+
this.o4a_1.y4a_1.z2e(this.q4a_1);
|
|
1273
|
+
this.o4a_1.x4a_1.z2e(this.q4a_1);
|
|
1274
1274
|
}
|
|
1275
1275
|
|
|
1276
1276
|
throw t;
|
|
@@ -1290,9 +1290,9 @@ protoOf($sendCloseSequenceCOROUTINE$).u9 = function () {
|
|
|
1290
1290
|
};
|
|
1291
1291
|
function $checkMaxFrameSizeCOROUTINE$(_this__u8e3s4, packet, frame, resultContinuation) {
|
|
1292
1292
|
CoroutineImpl.call(this, resultContinuation);
|
|
1293
|
-
this.
|
|
1294
|
-
this.
|
|
1295
|
-
this.
|
|
1293
|
+
this.o4b_1 = _this__u8e3s4;
|
|
1294
|
+
this.p4b_1 = packet;
|
|
1295
|
+
this.q4b_1 = frame;
|
|
1296
1296
|
}
|
|
1297
1297
|
protoOf($checkMaxFrameSizeCOROUTINE$).u9 = function () {
|
|
1298
1298
|
var suspendResult = this.o9_1;
|
|
@@ -1303,19 +1303,19 @@ protoOf($checkMaxFrameSizeCOROUTINE$).u9 = function () {
|
|
|
1303
1303
|
case 0:
|
|
1304
1304
|
this.n9_1 = 3;
|
|
1305
1305
|
var tmp_0 = this;
|
|
1306
|
-
var tmp_1 = this.
|
|
1307
|
-
var tmp0_safe_receiver = this.
|
|
1306
|
+
var tmp_1 = this.q4b_1.i4d_1.length;
|
|
1307
|
+
var tmp0_safe_receiver = this.p4b_1;
|
|
1308
1308
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_size(tmp0_safe_receiver);
|
|
1309
|
-
tmp_0.
|
|
1310
|
-
if (fromInt(this.
|
|
1311
|
-
var tmp2_safe_receiver = this.
|
|
1309
|
+
tmp_0.r4b_1 = tmp_1 + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
1310
|
+
if (fromInt(this.r4b_1) > this.o4b_1.o49()) {
|
|
1311
|
+
var tmp2_safe_receiver = this.p4b_1;
|
|
1312
1312
|
if (tmp2_safe_receiver == null)
|
|
1313
1313
|
null;
|
|
1314
1314
|
else {
|
|
1315
1315
|
tmp2_safe_receiver.d5();
|
|
1316
1316
|
}
|
|
1317
1317
|
this.m9_1 = 2;
|
|
1318
|
-
suspendResult = close(this.
|
|
1318
|
+
suspendResult = close(this.o4b_1, CloseReason_init_$Create$(Codes_TOO_BIG_getInstance(), 'Frame is too big: ' + this.r4b_1 + '. Max size is ' + this.o4b_1.o49().toString()), this);
|
|
1319
1319
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1320
1320
|
return suspendResult;
|
|
1321
1321
|
}
|
|
@@ -1328,7 +1328,7 @@ protoOf($checkMaxFrameSizeCOROUTINE$).u9 = function () {
|
|
|
1328
1328
|
case 1:
|
|
1329
1329
|
return Unit_instance;
|
|
1330
1330
|
case 2:
|
|
1331
|
-
throw new FrameTooBigException(fromInt(this.
|
|
1331
|
+
throw new FrameTooBigException(fromInt(this.r4b_1));
|
|
1332
1332
|
case 3:
|
|
1333
1333
|
throw this.p9_1;
|
|
1334
1334
|
}
|
|
@@ -1345,42 +1345,42 @@ protoOf($checkMaxFrameSizeCOROUTINE$).u9 = function () {
|
|
|
1345
1345
|
};
|
|
1346
1346
|
function DefaultWebSocketSessionImpl(raw, pingIntervalMillis, timeoutMillis, incomingFramesConfig, outgoingFramesConfig) {
|
|
1347
1347
|
Companion_getInstance_0();
|
|
1348
|
-
this.
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1353
|
-
this.
|
|
1354
|
-
this.
|
|
1355
|
-
this.
|
|
1348
|
+
this.s4a_1 = raw;
|
|
1349
|
+
this.t4a_1 = atomic$ref$1(null);
|
|
1350
|
+
this.u4a_1 = CompletableDeferred();
|
|
1351
|
+
this.v4a_1 = Job();
|
|
1352
|
+
this.w4a_1 = this.s4a_1.w1v().wj(Key_instance).yj(this.v4a_1).yj(new CoroutineName('ws-default'));
|
|
1353
|
+
this.x4a_1 = from(Factory_getInstance(), incomingFramesConfig);
|
|
1354
|
+
this.y4a_1 = from(Factory_getInstance(), outgoingFramesConfig);
|
|
1355
|
+
this.z4a_1 = atomic$boolean$1(false);
|
|
1356
1356
|
var tmp = this;
|
|
1357
1357
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1358
|
-
tmp.
|
|
1359
|
-
this.
|
|
1360
|
-
this.
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1358
|
+
tmp.a4b_1 = ArrayList_init_$Create$();
|
|
1359
|
+
this.b4b_1 = atomic$boolean$1(false);
|
|
1360
|
+
this.c4b_1 = pingIntervalMillis;
|
|
1361
|
+
this.d4b_1 = timeoutMillis;
|
|
1362
|
+
this.e4b_1 = this.u4a_1;
|
|
1363
1363
|
}
|
|
1364
1364
|
protoOf(DefaultWebSocketSessionImpl).w1v = function () {
|
|
1365
|
-
return this.
|
|
1365
|
+
return this.w4a_1;
|
|
1366
1366
|
};
|
|
1367
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1368
|
-
return this.
|
|
1367
|
+
protoOf(DefaultWebSocketSessionImpl).p49 = function () {
|
|
1368
|
+
return this.x4a_1;
|
|
1369
1369
|
};
|
|
1370
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1371
|
-
return this.
|
|
1370
|
+
protoOf(DefaultWebSocketSessionImpl).q49 = function () {
|
|
1371
|
+
return this.y4a_1;
|
|
1372
1372
|
};
|
|
1373
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1374
|
-
return this.
|
|
1373
|
+
protoOf(DefaultWebSocketSessionImpl).s4b = function () {
|
|
1374
|
+
return this.a4b_1;
|
|
1375
1375
|
};
|
|
1376
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1377
|
-
this.
|
|
1376
|
+
protoOf(DefaultWebSocketSessionImpl).n49 = function (value) {
|
|
1377
|
+
this.s4a_1.n49(value);
|
|
1378
1378
|
};
|
|
1379
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1380
|
-
return this.
|
|
1379
|
+
protoOf(DefaultWebSocketSessionImpl).o49 = function () {
|
|
1380
|
+
return this.s4a_1.o49();
|
|
1381
1381
|
};
|
|
1382
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1383
|
-
if (!this.
|
|
1382
|
+
protoOf(DefaultWebSocketSessionImpl).m49 = function (negotiatedExtensions) {
|
|
1383
|
+
if (!this.b4b_1.atomicfu$compareAndSet(false, true)) {
|
|
1384
1384
|
// Inline function 'kotlin.error' call
|
|
1385
1385
|
var message = 'WebSocket session ' + toString(this) + ' is already started.';
|
|
1386
1386
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -1391,14 +1391,14 @@ protoOf(DefaultWebSocketSessionImpl).x48 = function (negotiatedExtensions) {
|
|
|
1391
1391
|
var tmp$ret$2 = 'Starting default WebSocketSession(' + toString(this) + ') ' + ('with negotiated extensions: ' + joinToString(negotiatedExtensions));
|
|
1392
1392
|
this_0.o3m(tmp$ret$2);
|
|
1393
1393
|
}
|
|
1394
|
-
this.
|
|
1394
|
+
this.a4b_1.j1(negotiatedExtensions);
|
|
1395
1395
|
runOrCancelPinger(this);
|
|
1396
|
-
var incomingJob = runIncomingProcessor(this, ponger(this, this.
|
|
1396
|
+
var incomingJob = runIncomingProcessor(this, ponger(this, this.q49()));
|
|
1397
1397
|
var outgoingJob = runOutgoingProcessor(this);
|
|
1398
1398
|
launch(this, VOID, VOID, DefaultWebSocketSessionImpl$start$slambda_0(incomingJob, outgoingJob, this, null));
|
|
1399
1399
|
};
|
|
1400
1400
|
protoOf(DefaultWebSocketSessionImpl).d30 = function ($completion) {
|
|
1401
|
-
return this.
|
|
1401
|
+
return this.s4a_1.d30($completion);
|
|
1402
1402
|
};
|
|
1403
1403
|
var properties_initialized_DefaultWebSocketSession_kt_6cjlhc;
|
|
1404
1404
|
function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
@@ -1420,12 +1420,12 @@ function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
1422
|
function readReason(_this__u8e3s4) {
|
|
1423
|
-
if (_this__u8e3s4.
|
|
1423
|
+
if (_this__u8e3s4.i4d_1.length < 2) {
|
|
1424
1424
|
return null;
|
|
1425
1425
|
}
|
|
1426
1426
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1427
1427
|
var builder = new Buffer();
|
|
1428
|
-
writeFully(builder, _this__u8e3s4.
|
|
1428
|
+
writeFully(builder, _this__u8e3s4.i4d_1);
|
|
1429
1429
|
var packet = builder;
|
|
1430
1430
|
var code = packet.r2v();
|
|
1431
1431
|
var message = readText(packet);
|
|
@@ -1455,28 +1455,28 @@ function NonDisposableHandle_getInstance() {
|
|
|
1455
1455
|
}
|
|
1456
1456
|
function readText_0(_this__u8e3s4) {
|
|
1457
1457
|
// Inline function 'kotlin.require' call
|
|
1458
|
-
if (!_this__u8e3s4.
|
|
1458
|
+
if (!_this__u8e3s4.g4d_1) {
|
|
1459
1459
|
var message = 'Text could be only extracted from non-fragmented frame';
|
|
1460
1460
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1461
1461
|
}
|
|
1462
1462
|
var tmp = Charsets_getInstance().u3a_1.x3a();
|
|
1463
1463
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1464
1464
|
var builder = new Buffer();
|
|
1465
|
-
writeFully(builder, _this__u8e3s4.
|
|
1465
|
+
writeFully(builder, _this__u8e3s4.i4d_1);
|
|
1466
1466
|
return decode(tmp, builder);
|
|
1467
1467
|
}
|
|
1468
1468
|
function FrameTooBigException(frameSize) {
|
|
1469
1469
|
Exception_init_$Init$(this);
|
|
1470
1470
|
captureStack(this, FrameTooBigException);
|
|
1471
|
-
this.
|
|
1471
|
+
this.m4e_1 = frameSize;
|
|
1472
1472
|
delete this.message;
|
|
1473
1473
|
}
|
|
1474
1474
|
protoOf(FrameTooBigException).e = function () {
|
|
1475
|
-
return 'Frame is too big: ' + this.
|
|
1475
|
+
return 'Frame is too big: ' + this.m4e_1.toString();
|
|
1476
1476
|
};
|
|
1477
1477
|
protoOf(FrameTooBigException).o24 = function () {
|
|
1478
1478
|
// Inline function 'kotlin.also' call
|
|
1479
|
-
var this_0 = new FrameTooBigException(this.
|
|
1479
|
+
var this_0 = new FrameTooBigException(this.m4e_1);
|
|
1480
1480
|
initCauseBridge(this_0, this);
|
|
1481
1481
|
return this_0;
|
|
1482
1482
|
};
|
|
@@ -1502,10 +1502,10 @@ function Companion_1() {
|
|
|
1502
1502
|
tmp$ret$0 = maxElem;
|
|
1503
1503
|
break $l$block_0;
|
|
1504
1504
|
}
|
|
1505
|
-
var maxValue = maxElem.
|
|
1505
|
+
var maxValue = maxElem.q4e_1;
|
|
1506
1506
|
do {
|
|
1507
1507
|
var e = iterator.v();
|
|
1508
|
-
var v = e.
|
|
1508
|
+
var v = e.q4e_1;
|
|
1509
1509
|
if (compareTo(maxValue, v) < 0) {
|
|
1510
1510
|
maxElem = e;
|
|
1511
1511
|
maxValue = v;
|
|
@@ -1514,10 +1514,10 @@ function Companion_1() {
|
|
|
1514
1514
|
while (iterator.u());
|
|
1515
1515
|
tmp$ret$0 = maxElem;
|
|
1516
1516
|
}
|
|
1517
|
-
tmp.
|
|
1517
|
+
tmp.r4e_1 = ensureNotNull(tmp$ret$0).q4e_1;
|
|
1518
1518
|
var tmp_0 = this;
|
|
1519
1519
|
var tmp_1 = 0;
|
|
1520
|
-
var tmp_2 = this.
|
|
1520
|
+
var tmp_2 = this.r4e_1 + 1 | 0;
|
|
1521
1521
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1522
1522
|
var tmp_3 = Array(tmp_2);
|
|
1523
1523
|
while (tmp_1 < tmp_2) {
|
|
@@ -1531,7 +1531,7 @@ function Companion_1() {
|
|
|
1531
1531
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
1532
1532
|
while (_iterator__ex2g4s.u()) {
|
|
1533
1533
|
var element = _iterator__ex2g4s.v();
|
|
1534
|
-
if (element.
|
|
1534
|
+
if (element.q4e_1 === tmp_4) {
|
|
1535
1535
|
if (found) {
|
|
1536
1536
|
tmp$ret$5 = null;
|
|
1537
1537
|
break $l$block_2;
|
|
@@ -1549,7 +1549,7 @@ function Companion_1() {
|
|
|
1549
1549
|
tmp_3[tmp_4] = tmp$ret$5;
|
|
1550
1550
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1551
1551
|
}
|
|
1552
|
-
tmp_0.
|
|
1552
|
+
tmp_0.s4e_1 = tmp_3;
|
|
1553
1553
|
}
|
|
1554
1554
|
var Companion_instance_1;
|
|
1555
1555
|
function Companion_getInstance_1() {
|
|
@@ -1581,8 +1581,8 @@ function FrameType_initEntries() {
|
|
|
1581
1581
|
var $ENTRIES_0;
|
|
1582
1582
|
function FrameType(name, ordinal, controlFrame, opcode) {
|
|
1583
1583
|
Enum.call(this, name, ordinal);
|
|
1584
|
-
this.
|
|
1585
|
-
this.
|
|
1584
|
+
this.p4e_1 = controlFrame;
|
|
1585
|
+
this.q4e_1 = opcode;
|
|
1586
1586
|
}
|
|
1587
1587
|
function FrameType_TEXT_getInstance() {
|
|
1588
1588
|
FrameType_initEntries();
|
|
@@ -1632,8 +1632,8 @@ function pinger(_this__u8e3s4, outgoing, periodMillis, timeoutMillis, onTimeout)
|
|
|
1632
1632
|
return channel;
|
|
1633
1633
|
}
|
|
1634
1634
|
function ponger$slambda($channel, $outgoing, resultContinuation) {
|
|
1635
|
-
this.
|
|
1636
|
-
this.
|
|
1635
|
+
this.b4f_1 = $channel;
|
|
1636
|
+
this.c4f_1 = $outgoing;
|
|
1637
1637
|
CoroutineImpl.call(this, resultContinuation);
|
|
1638
1638
|
}
|
|
1639
1639
|
protoOf(ponger$slambda).b2m = function ($this$launch, $completion) {
|
|
@@ -1654,12 +1654,12 @@ protoOf(ponger$slambda).u9 = function () {
|
|
|
1654
1654
|
case 0:
|
|
1655
1655
|
this.n9_1 = 14;
|
|
1656
1656
|
this.n9_1 = 13;
|
|
1657
|
-
this.
|
|
1657
|
+
this.h4f_1 = this.b4f_1;
|
|
1658
1658
|
this.m9_1 = 1;
|
|
1659
1659
|
continue $sm;
|
|
1660
1660
|
case 1:
|
|
1661
|
-
this.
|
|
1662
|
-
this.
|
|
1661
|
+
this.f4f_1 = this.h4f_1;
|
|
1662
|
+
this.e4f_1 = null;
|
|
1663
1663
|
this.m9_1 = 2;
|
|
1664
1664
|
continue $sm;
|
|
1665
1665
|
case 2:
|
|
@@ -1668,12 +1668,12 @@ protoOf(ponger$slambda).u9 = function () {
|
|
|
1668
1668
|
case 3:
|
|
1669
1669
|
this.n9_1 = 10;
|
|
1670
1670
|
this.n9_1 = 9;
|
|
1671
|
-
this.
|
|
1671
|
+
this.g4f_1 = this.f4f_1.t();
|
|
1672
1672
|
this.m9_1 = 4;
|
|
1673
1673
|
continue $sm;
|
|
1674
1674
|
case 4:
|
|
1675
1675
|
this.m9_1 = 5;
|
|
1676
|
-
suspendResult = this.
|
|
1676
|
+
suspendResult = this.g4f_1.w2c(this);
|
|
1677
1677
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1678
1678
|
return suspendResult;
|
|
1679
1679
|
}
|
|
@@ -1685,10 +1685,10 @@ protoOf(ponger$slambda).u9 = function () {
|
|
|
1685
1685
|
continue $sm;
|
|
1686
1686
|
}
|
|
1687
1687
|
|
|
1688
|
-
var e = this.
|
|
1688
|
+
var e = this.g4f_1.v();
|
|
1689
1689
|
get_LOGGER().o3m('Received ping message, sending pong message');
|
|
1690
1690
|
this.m9_1 = 6;
|
|
1691
|
-
suspendResult = this.
|
|
1691
|
+
suspendResult = this.c4f_1.t2e(new Pong(e.i4d_1), this);
|
|
1692
1692
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1693
1693
|
return suspendResult;
|
|
1694
1694
|
}
|
|
@@ -1703,7 +1703,7 @@ protoOf(ponger$slambda).u9 = function () {
|
|
|
1703
1703
|
continue $sm;
|
|
1704
1704
|
case 8:
|
|
1705
1705
|
this.n9_1 = 13;
|
|
1706
|
-
cancelConsumed(this.
|
|
1706
|
+
cancelConsumed(this.f4f_1, this.e4f_1);
|
|
1707
1707
|
this.m9_1 = 12;
|
|
1708
1708
|
continue $sm;
|
|
1709
1709
|
case 9:
|
|
@@ -1712,7 +1712,7 @@ protoOf(ponger$slambda).u9 = function () {
|
|
|
1712
1712
|
if (tmp_1 instanceof Error) {
|
|
1713
1713
|
var e_0 = this.p9_1;
|
|
1714
1714
|
var tmp_2 = this;
|
|
1715
|
-
this.
|
|
1715
|
+
this.e4f_1 = e_0;
|
|
1716
1716
|
throw e_0;
|
|
1717
1717
|
} else {
|
|
1718
1718
|
throw this.p9_1;
|
|
@@ -1721,11 +1721,11 @@ protoOf(ponger$slambda).u9 = function () {
|
|
|
1721
1721
|
case 10:
|
|
1722
1722
|
this.n9_1 = 13;
|
|
1723
1723
|
var t = this.p9_1;
|
|
1724
|
-
cancelConsumed(this.
|
|
1724
|
+
cancelConsumed(this.f4f_1, this.e4f_1);
|
|
1725
1725
|
throw t;
|
|
1726
1726
|
case 11:
|
|
1727
1727
|
this.n9_1 = 13;
|
|
1728
|
-
cancelConsumed(this.
|
|
1728
|
+
cancelConsumed(this.f4f_1, this.e4f_1);
|
|
1729
1729
|
if (false) {
|
|
1730
1730
|
this.m9_1 = 1;
|
|
1731
1731
|
continue $sm;
|
|
@@ -1766,8 +1766,8 @@ protoOf(ponger$slambda).u9 = function () {
|
|
|
1766
1766
|
while (true);
|
|
1767
1767
|
};
|
|
1768
1768
|
protoOf(ponger$slambda).c2m = function ($this$launch, completion) {
|
|
1769
|
-
var i = new ponger$slambda(this.
|
|
1770
|
-
i.
|
|
1769
|
+
var i = new ponger$slambda(this.b4f_1, this.c4f_1, completion);
|
|
1770
|
+
i.d4f_1 = $this$launch;
|
|
1771
1771
|
return i;
|
|
1772
1772
|
};
|
|
1773
1773
|
function ponger$slambda_0($channel, $outgoing, resultContinuation) {
|
|
@@ -1779,7 +1779,7 @@ function ponger$slambda_0($channel, $outgoing, resultContinuation) {
|
|
|
1779
1779
|
return l;
|
|
1780
1780
|
}
|
|
1781
1781
|
function pinger$slambda$slambda($channel, resultContinuation) {
|
|
1782
|
-
this.
|
|
1782
|
+
this.q4f_1 = $channel;
|
|
1783
1783
|
CoroutineImpl.call(this, resultContinuation);
|
|
1784
1784
|
}
|
|
1785
1785
|
protoOf(pinger$slambda$slambda).b2m = function ($this$withTimeoutOrNull, $completion) {
|
|
@@ -1808,7 +1808,7 @@ protoOf(pinger$slambda$slambda).u9 = function () {
|
|
|
1808
1808
|
}
|
|
1809
1809
|
|
|
1810
1810
|
this.m9_1 = 2;
|
|
1811
|
-
suspendResult = this.
|
|
1811
|
+
suspendResult = this.q4f_1.x2e(this);
|
|
1812
1812
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1813
1813
|
return suspendResult;
|
|
1814
1814
|
}
|
|
@@ -1834,8 +1834,8 @@ protoOf(pinger$slambda$slambda).u9 = function () {
|
|
|
1834
1834
|
while (true);
|
|
1835
1835
|
};
|
|
1836
1836
|
protoOf(pinger$slambda$slambda).c2m = function ($this$withTimeoutOrNull, completion) {
|
|
1837
|
-
var i = new pinger$slambda$slambda(this.
|
|
1838
|
-
i.
|
|
1837
|
+
var i = new pinger$slambda$slambda(this.q4f_1, completion);
|
|
1838
|
+
i.r4f_1 = $this$withTimeoutOrNull;
|
|
1839
1839
|
return i;
|
|
1840
1840
|
};
|
|
1841
1841
|
function pinger$slambda$slambda_0($channel, resultContinuation) {
|
|
@@ -1847,9 +1847,9 @@ function pinger$slambda$slambda_0($channel, resultContinuation) {
|
|
|
1847
1847
|
return l;
|
|
1848
1848
|
}
|
|
1849
1849
|
function pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1850
|
-
this.
|
|
1851
|
-
this.
|
|
1852
|
-
this.
|
|
1850
|
+
this.a4g_1 = $outgoing;
|
|
1851
|
+
this.b4g_1 = $pingMessage;
|
|
1852
|
+
this.c4g_1 = $channel;
|
|
1853
1853
|
CoroutineImpl.call(this, resultContinuation);
|
|
1854
1854
|
}
|
|
1855
1855
|
protoOf(pinger$slambda$slambda_1).b2m = function ($this$withTimeoutOrNull, $completion) {
|
|
@@ -1871,7 +1871,7 @@ protoOf(pinger$slambda$slambda_1).u9 = function () {
|
|
|
1871
1871
|
this.n9_1 = 6;
|
|
1872
1872
|
get_LOGGER().o3m('WebSocket Pinger: sending ping frame');
|
|
1873
1873
|
this.m9_1 = 1;
|
|
1874
|
-
suspendResult = this.
|
|
1874
|
+
suspendResult = this.a4g_1.t2e(new Ping(toByteArray(this.b4g_1, Charsets_getInstance().v3a_1)), this);
|
|
1875
1875
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1876
1876
|
return suspendResult;
|
|
1877
1877
|
}
|
|
@@ -1887,16 +1887,16 @@ protoOf(pinger$slambda$slambda_1).u9 = function () {
|
|
|
1887
1887
|
}
|
|
1888
1888
|
|
|
1889
1889
|
this.m9_1 = 3;
|
|
1890
|
-
suspendResult = this.
|
|
1890
|
+
suspendResult = this.c4g_1.x2e(this);
|
|
1891
1891
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1892
1892
|
return suspendResult;
|
|
1893
1893
|
}
|
|
1894
1894
|
|
|
1895
1895
|
continue $sm;
|
|
1896
1896
|
case 3:
|
|
1897
|
-
this.
|
|
1898
|
-
if (decodeToString(this.
|
|
1899
|
-
get_LOGGER().o3m('WebSocket Pinger: received valid pong frame ' + this.
|
|
1897
|
+
this.e4g_1 = suspendResult;
|
|
1898
|
+
if (decodeToString(this.e4g_1.i4d_1, 0, 0 + this.e4g_1.i4d_1.length | 0) === this.b4g_1) {
|
|
1899
|
+
get_LOGGER().o3m('WebSocket Pinger: received valid pong frame ' + this.e4g_1.toString());
|
|
1900
1900
|
this.m9_1 = 5;
|
|
1901
1901
|
continue $sm;
|
|
1902
1902
|
} else {
|
|
@@ -1905,7 +1905,7 @@ protoOf(pinger$slambda$slambda_1).u9 = function () {
|
|
|
1905
1905
|
}
|
|
1906
1906
|
|
|
1907
1907
|
case 4:
|
|
1908
|
-
get_LOGGER().o3m('WebSocket Pinger: received invalid pong frame ' + this.
|
|
1908
|
+
get_LOGGER().o3m('WebSocket Pinger: received invalid pong frame ' + this.e4g_1.toString() + ', continue waiting');
|
|
1909
1909
|
this.m9_1 = 2;
|
|
1910
1910
|
continue $sm;
|
|
1911
1911
|
case 5:
|
|
@@ -1925,8 +1925,8 @@ protoOf(pinger$slambda$slambda_1).u9 = function () {
|
|
|
1925
1925
|
while (true);
|
|
1926
1926
|
};
|
|
1927
1927
|
protoOf(pinger$slambda$slambda_1).c2m = function ($this$withTimeoutOrNull, completion) {
|
|
1928
|
-
var i = new pinger$slambda$slambda_1(this.
|
|
1929
|
-
i.
|
|
1928
|
+
var i = new pinger$slambda$slambda_1(this.a4g_1, this.b4g_1, this.c4g_1, completion);
|
|
1929
|
+
i.d4g_1 = $this$withTimeoutOrNull;
|
|
1930
1930
|
return i;
|
|
1931
1931
|
};
|
|
1932
1932
|
function pinger$slambda$slambda_2($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
@@ -1938,11 +1938,11 @@ function pinger$slambda$slambda_2($outgoing, $pingMessage, $channel, resultConti
|
|
|
1938
1938
|
return l;
|
|
1939
1939
|
}
|
|
1940
1940
|
function pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
1941
|
-
this.
|
|
1942
|
-
this.
|
|
1943
|
-
this.
|
|
1944
|
-
this.
|
|
1945
|
-
this.
|
|
1941
|
+
this.n4g_1 = $periodMillis;
|
|
1942
|
+
this.o4g_1 = $timeoutMillis;
|
|
1943
|
+
this.p4g_1 = $onTimeout;
|
|
1944
|
+
this.q4g_1 = $channel;
|
|
1945
|
+
this.r4g_1 = $outgoing;
|
|
1946
1946
|
CoroutineImpl.call(this, resultContinuation);
|
|
1947
1947
|
}
|
|
1948
1948
|
protoOf(pinger$slambda).b2m = function ($this$launch, $completion) {
|
|
@@ -1962,9 +1962,9 @@ protoOf(pinger$slambda).u9 = function () {
|
|
|
1962
1962
|
switch (tmp) {
|
|
1963
1963
|
case 0:
|
|
1964
1964
|
this.n9_1 = 9;
|
|
1965
|
-
get_LOGGER().o3m('Starting WebSocket pinger coroutine with period ' + this.
|
|
1966
|
-
this.
|
|
1967
|
-
this.
|
|
1965
|
+
get_LOGGER().o3m('Starting WebSocket pinger coroutine with period ' + this.n4g_1.toString() + ' ms and timeout ' + this.o4g_1.toString() + ' ms');
|
|
1966
|
+
this.u4g_1 = Random(getTimeMillis());
|
|
1967
|
+
this.t4g_1 = new Int8Array(32);
|
|
1968
1968
|
this.n9_1 = 7;
|
|
1969
1969
|
this.m9_1 = 1;
|
|
1970
1970
|
continue $sm;
|
|
@@ -1975,17 +1975,17 @@ protoOf(pinger$slambda).u9 = function () {
|
|
|
1975
1975
|
}
|
|
1976
1976
|
|
|
1977
1977
|
this.m9_1 = 2;
|
|
1978
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1978
|
+
suspendResult = withTimeoutOrNull(this.n4g_1, pinger$slambda$slambda_0(this.q4g_1, null), this);
|
|
1979
1979
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1980
1980
|
return suspendResult;
|
|
1981
1981
|
}
|
|
1982
1982
|
|
|
1983
1983
|
continue $sm;
|
|
1984
1984
|
case 2:
|
|
1985
|
-
this.
|
|
1986
|
-
var pingMessage = '[ping ' + hex(this.
|
|
1985
|
+
this.u4g_1.vl(this.t4g_1);
|
|
1986
|
+
var pingMessage = '[ping ' + hex(this.t4g_1) + ' ping]';
|
|
1987
1987
|
this.m9_1 = 3;
|
|
1988
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1988
|
+
suspendResult = withTimeoutOrNull(this.o4g_1, pinger$slambda$slambda_2(this.r4g_1, pingMessage, this.q4g_1, null), this);
|
|
1989
1989
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1990
1990
|
return suspendResult;
|
|
1991
1991
|
}
|
|
@@ -1996,7 +1996,7 @@ protoOf(pinger$slambda).u9 = function () {
|
|
|
1996
1996
|
if (rc == null) {
|
|
1997
1997
|
get_LOGGER().o3m('WebSocket pinger has timed out');
|
|
1998
1998
|
this.m9_1 = 5;
|
|
1999
|
-
suspendResult = this.
|
|
1999
|
+
suspendResult = this.p4g_1(CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), 'Ping timeout'), this);
|
|
2000
2000
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2001
2001
|
return suspendResult;
|
|
2002
2002
|
}
|
|
@@ -2066,8 +2066,8 @@ protoOf(pinger$slambda).u9 = function () {
|
|
|
2066
2066
|
while (true);
|
|
2067
2067
|
};
|
|
2068
2068
|
protoOf(pinger$slambda).c2m = function ($this$launch, completion) {
|
|
2069
|
-
var i = new pinger$slambda(this.
|
|
2070
|
-
i.
|
|
2069
|
+
var i = new pinger$slambda(this.n4g_1, this.o4g_1, this.p4g_1, this.q4g_1, this.r4g_1, completion);
|
|
2070
|
+
i.s4g_1 = $this$launch;
|
|
2071
2071
|
return i;
|
|
2072
2072
|
};
|
|
2073
2073
|
function pinger$slambda_0($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
@@ -2097,9 +2097,9 @@ function Companion_2() {
|
|
|
2097
2097
|
var tmp = this;
|
|
2098
2098
|
// Inline function 'kotlin.apply' call
|
|
2099
2099
|
var this_0 = new WebSocketChannelsConfig();
|
|
2100
|
-
this_0.
|
|
2101
|
-
this_0.
|
|
2102
|
-
tmp.
|
|
2100
|
+
this_0.t49_1 = this_0.v4g();
|
|
2101
|
+
this_0.u49_1 = this_0.v4g();
|
|
2102
|
+
tmp.s49_1 = this_0;
|
|
2103
2103
|
}
|
|
2104
2104
|
var Companion_instance_2;
|
|
2105
2105
|
function Companion_getInstance_2() {
|
|
@@ -2109,21 +2109,21 @@ function Companion_getInstance_2() {
|
|
|
2109
2109
|
}
|
|
2110
2110
|
function WebSocketChannelsConfig() {
|
|
2111
2111
|
Companion_getInstance_2();
|
|
2112
|
-
this.
|
|
2113
|
-
this.
|
|
2112
|
+
this.t49_1 = Companion_getInstance_3().w4g_1;
|
|
2113
|
+
this.u49_1 = Companion_getInstance_3().w4g_1;
|
|
2114
2114
|
}
|
|
2115
|
-
protoOf(WebSocketChannelsConfig).
|
|
2116
|
-
return Companion_getInstance_3().
|
|
2115
|
+
protoOf(WebSocketChannelsConfig).v4g = function () {
|
|
2116
|
+
return Companion_getInstance_3().w4g_1;
|
|
2117
2117
|
};
|
|
2118
2118
|
function from(_this__u8e3s4, config) {
|
|
2119
2119
|
// Inline function 'kotlin.with' call
|
|
2120
2120
|
var tmp;
|
|
2121
|
-
if (config.
|
|
2121
|
+
if (config.x4g_1 === 2147483647) {
|
|
2122
2122
|
tmp = Channel(2147483647);
|
|
2123
|
-
} else if (config.
|
|
2124
|
-
tmp = Channel(config.
|
|
2125
|
-
} else if (config.
|
|
2126
|
-
tmp = new BoundedChannel(config.
|
|
2123
|
+
} else if (config.y4g_1.equals(ChannelOverflow_SUSPEND_getInstance())) {
|
|
2124
|
+
tmp = Channel(config.x4g_1, BufferOverflow_SUSPEND_getInstance());
|
|
2125
|
+
} else if (config.y4g_1.equals(ChannelOverflow_CLOSE_getInstance())) {
|
|
2126
|
+
tmp = new BoundedChannel(config.x4g_1);
|
|
2127
2127
|
} else {
|
|
2128
2128
|
// Inline function 'kotlin.error' call
|
|
2129
2129
|
var message = 'Unsupported channel config.';
|
|
@@ -2133,7 +2133,7 @@ function from(_this__u8e3s4, config) {
|
|
|
2133
2133
|
}
|
|
2134
2134
|
function Companion_3() {
|
|
2135
2135
|
Companion_instance_3 = this;
|
|
2136
|
-
this.
|
|
2136
|
+
this.w4g_1 = new ChannelConfig(2147483647, ChannelOverflow_SUSPEND_getInstance());
|
|
2137
2137
|
}
|
|
2138
2138
|
var Companion_instance_3;
|
|
2139
2139
|
function Companion_getInstance_3() {
|
|
@@ -2143,11 +2143,11 @@ function Companion_getInstance_3() {
|
|
|
2143
2143
|
}
|
|
2144
2144
|
function ChannelConfig(capacity, onOverflow) {
|
|
2145
2145
|
Companion_getInstance_3();
|
|
2146
|
-
this.
|
|
2147
|
-
this.
|
|
2146
|
+
this.x4g_1 = capacity;
|
|
2147
|
+
this.y4g_1 = onOverflow;
|
|
2148
2148
|
}
|
|
2149
|
-
protoOf(ChannelConfig).
|
|
2150
|
-
return this.
|
|
2149
|
+
protoOf(ChannelConfig).z4g = function () {
|
|
2150
|
+
return this.y4g_1.equals(ChannelOverflow_SUSPEND_getInstance()) && !(this.x4g_1 === 2147483647);
|
|
2151
2151
|
};
|
|
2152
2152
|
var ChannelOverflow_SUSPEND_instance;
|
|
2153
2153
|
var ChannelOverflow_CLOSE_instance;
|
|
@@ -2186,7 +2186,7 @@ function BoundedChannel$Companion$createDelegate$lambda($channel) {
|
|
|
2186
2186
|
}
|
|
2187
2187
|
function Companion_4() {
|
|
2188
2188
|
}
|
|
2189
|
-
protoOf(Companion_4).
|
|
2189
|
+
protoOf(Companion_4).a4h = function (capacity) {
|
|
2190
2190
|
var channel = {_v: null};
|
|
2191
2191
|
var tmp = BufferOverflow_DROP_OLDEST_getInstance();
|
|
2192
2192
|
// Inline function 'kotlin.also' call
|
|
@@ -2199,42 +2199,42 @@ function Companion_getInstance_4() {
|
|
|
2199
2199
|
return Companion_instance_4;
|
|
2200
2200
|
}
|
|
2201
2201
|
function BoundedChannel(capacity, delegate) {
|
|
2202
|
-
delegate = delegate === VOID ? Companion_instance_4.
|
|
2203
|
-
this.
|
|
2202
|
+
delegate = delegate === VOID ? Companion_instance_4.a4h(capacity) : delegate;
|
|
2203
|
+
this.b4h_1 = delegate;
|
|
2204
2204
|
}
|
|
2205
|
-
protoOf(BoundedChannel).
|
|
2206
|
-
var result = this.
|
|
2205
|
+
protoOf(BoundedChannel).c4h = function (element) {
|
|
2206
|
+
var result = this.b4h_1.u2e(element);
|
|
2207
2207
|
if (!_ChannelResult___get_isSuccess__impl__odq1z9(result) && !_ChannelResult___get_isClosed__impl__mg7kuu(result)) {
|
|
2208
2208
|
this.z2e(new ChannelOverflowException('Channel overflowed'));
|
|
2209
2209
|
}
|
|
2210
2210
|
return result;
|
|
2211
2211
|
};
|
|
2212
2212
|
protoOf(BoundedChannel).u2e = function (element) {
|
|
2213
|
-
return this.
|
|
2213
|
+
return this.c4h(element);
|
|
2214
2214
|
};
|
|
2215
|
-
protoOf(BoundedChannel).
|
|
2216
|
-
return this.
|
|
2215
|
+
protoOf(BoundedChannel).d4h = function (element, $completion) {
|
|
2216
|
+
return this.b4h_1.t2e(element, $completion);
|
|
2217
2217
|
};
|
|
2218
2218
|
protoOf(BoundedChannel).t2e = function (element, $completion) {
|
|
2219
|
-
return this.
|
|
2219
|
+
return this.d4h(element, $completion);
|
|
2220
2220
|
};
|
|
2221
2221
|
protoOf(BoundedChannel).z2e = function (cause) {
|
|
2222
|
-
return this.
|
|
2222
|
+
return this.b4h_1.z2e(cause);
|
|
2223
2223
|
};
|
|
2224
2224
|
protoOf(BoundedChannel).y2c = function () {
|
|
2225
|
-
return this.
|
|
2225
|
+
return this.b4h_1.y2c();
|
|
2226
2226
|
};
|
|
2227
|
-
protoOf(BoundedChannel).
|
|
2228
|
-
return this.
|
|
2227
|
+
protoOf(BoundedChannel).e4h = function ($completion) {
|
|
2228
|
+
return this.b4h_1.x2e($completion);
|
|
2229
2229
|
};
|
|
2230
2230
|
protoOf(BoundedChannel).x2e = function ($completion) {
|
|
2231
|
-
return this.
|
|
2231
|
+
return this.e4h($completion);
|
|
2232
2232
|
};
|
|
2233
2233
|
protoOf(BoundedChannel).t = function () {
|
|
2234
|
-
return this.
|
|
2234
|
+
return this.b4h_1.t();
|
|
2235
2235
|
};
|
|
2236
2236
|
protoOf(BoundedChannel).h1x = function (cause) {
|
|
2237
|
-
this.
|
|
2237
|
+
this.b4h_1.h1x(cause);
|
|
2238
2238
|
};
|
|
2239
2239
|
function ChannelOverflowException(message) {
|
|
2240
2240
|
RuntimeException_init_$Init$(message, this);
|
|
@@ -2253,16 +2253,16 @@ function WebSocketExtension() {
|
|
|
2253
2253
|
function WebSocketExtensionsConfig() {
|
|
2254
2254
|
var tmp = this;
|
|
2255
2255
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2256
|
-
tmp.
|
|
2256
|
+
tmp.h4h_1 = ArrayList_init_$Create$();
|
|
2257
2257
|
var tmp_0 = this;
|
|
2258
2258
|
// Inline function 'kotlin.arrayOf' call
|
|
2259
2259
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2260
2260
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2261
|
-
tmp_0.
|
|
2261
|
+
tmp_0.i4h_1 = [false, false, false];
|
|
2262
2262
|
}
|
|
2263
2263
|
protoOf(WebSocketExtensionsConfig).v1g = function () {
|
|
2264
2264
|
// Inline function 'kotlin.collections.map' call
|
|
2265
|
-
var this_0 = this.
|
|
2265
|
+
var this_0 = this.h4h_1;
|
|
2266
2266
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2267
2267
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2268
2268
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2274,14 +2274,14 @@ protoOf(WebSocketExtensionsConfig).v1g = function () {
|
|
|
2274
2274
|
return destination;
|
|
2275
2275
|
};
|
|
2276
2276
|
function parametersToString($this) {
|
|
2277
|
-
return $this.
|
|
2277
|
+
return $this.k4h_1.r() ? '' : '; ' + joinToString($this.k4h_1, ';');
|
|
2278
2278
|
}
|
|
2279
2279
|
function WebSocketExtensionHeader(name, parameters) {
|
|
2280
|
-
this.
|
|
2281
|
-
this.
|
|
2280
|
+
this.j4h_1 = name;
|
|
2281
|
+
this.k4h_1 = parameters;
|
|
2282
2282
|
}
|
|
2283
2283
|
protoOf(WebSocketExtensionHeader).toString = function () {
|
|
2284
|
-
return this.
|
|
2284
|
+
return this.j4h_1 + ' ' + parametersToString(this);
|
|
2285
2285
|
};
|
|
2286
2286
|
function parseWebSocketExtensions(value) {
|
|
2287
2287
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2333,8 +2333,8 @@ function closeExceptionally(_this__u8e3s4, cause, $completion) {
|
|
|
2333
2333
|
}
|
|
2334
2334
|
function $closeCOROUTINE$(_this__u8e3s4, reason, resultContinuation) {
|
|
2335
2335
|
CoroutineImpl.call(this, resultContinuation);
|
|
2336
|
-
this.
|
|
2337
|
-
this.
|
|
2336
|
+
this.t4h_1 = _this__u8e3s4;
|
|
2337
|
+
this.u4h_1 = reason;
|
|
2338
2338
|
}
|
|
2339
2339
|
protoOf($closeCOROUTINE$).u9 = function () {
|
|
2340
2340
|
var suspendResult = this.o9_1;
|
|
@@ -2346,7 +2346,7 @@ protoOf($closeCOROUTINE$).u9 = function () {
|
|
|
2346
2346
|
this.n9_1 = 4;
|
|
2347
2347
|
this.n9_1 = 3;
|
|
2348
2348
|
this.m9_1 = 1;
|
|
2349
|
-
suspendResult = this.
|
|
2349
|
+
suspendResult = this.t4h_1.r49(Close_init_$Create$(this.u4h_1), this);
|
|
2350
2350
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2351
2351
|
return suspendResult;
|
|
2352
2352
|
}
|
|
@@ -2354,7 +2354,7 @@ protoOf($closeCOROUTINE$).u9 = function () {
|
|
|
2354
2354
|
continue $sm;
|
|
2355
2355
|
case 1:
|
|
2356
2356
|
this.m9_1 = 2;
|
|
2357
|
-
suspendResult = this.
|
|
2357
|
+
suspendResult = this.t4h_1.d30(this);
|
|
2358
2358
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2359
2359
|
return suspendResult;
|
|
2360
2360
|
}
|
|
@@ -2413,8 +2413,8 @@ function Text_init_$Create$(text) {
|
|
|
2413
2413
|
function Close_init_$Init$(reason, $this) {
|
|
2414
2414
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
2415
2415
|
var builder = new Buffer();
|
|
2416
|
-
builder.z2w(reason.
|
|
2417
|
-
writeText(builder, reason.
|
|
2416
|
+
builder.z2w(reason.j49_1);
|
|
2417
|
+
writeText(builder, reason.k49_1);
|
|
2418
2418
|
Close_init_$Init$_0(builder, $this);
|
|
2419
2419
|
return $this;
|
|
2420
2420
|
}
|
|
@@ -2426,7 +2426,7 @@ function Close_init_$Init$_0(packet, $this) {
|
|
|
2426
2426
|
return $this;
|
|
2427
2427
|
}
|
|
2428
2428
|
function Close_init_$Init$_1($this) {
|
|
2429
|
-
Close.call($this, Companion_getInstance_5().
|
|
2429
|
+
Close.call($this, Companion_getInstance_5().n4d_1);
|
|
2430
2430
|
return $this;
|
|
2431
2431
|
}
|
|
2432
2432
|
function Close_init_$Create$_0() {
|
|
@@ -2456,9 +2456,9 @@ function Pong(data, disposableHandle) {
|
|
|
2456
2456
|
}
|
|
2457
2457
|
function Companion_5() {
|
|
2458
2458
|
Companion_instance_5 = this;
|
|
2459
|
-
this.
|
|
2459
|
+
this.n4d_1 = new Int8Array(0);
|
|
2460
2460
|
}
|
|
2461
|
-
protoOf(Companion_5).
|
|
2461
|
+
protoOf(Companion_5).o4d = function (fin, frameType, data, rsv1, rsv2, rsv3) {
|
|
2462
2462
|
var tmp;
|
|
2463
2463
|
switch (frameType.a1_1) {
|
|
2464
2464
|
case 1:
|
|
@@ -2494,23 +2494,23 @@ function Frame(fin, frameType, data, disposableHandle, rsv1, rsv2, rsv3) {
|
|
|
2494
2494
|
rsv1 = rsv1 === VOID ? false : rsv1;
|
|
2495
2495
|
rsv2 = rsv2 === VOID ? false : rsv2;
|
|
2496
2496
|
rsv3 = rsv3 === VOID ? false : rsv3;
|
|
2497
|
-
this.
|
|
2498
|
-
this.
|
|
2499
|
-
this.
|
|
2500
|
-
this.
|
|
2501
|
-
this.
|
|
2502
|
-
this.
|
|
2503
|
-
this.
|
|
2497
|
+
this.g4d_1 = fin;
|
|
2498
|
+
this.h4d_1 = frameType;
|
|
2499
|
+
this.i4d_1 = data;
|
|
2500
|
+
this.j4d_1 = disposableHandle;
|
|
2501
|
+
this.k4d_1 = rsv1;
|
|
2502
|
+
this.l4d_1 = rsv2;
|
|
2503
|
+
this.m4d_1 = rsv3;
|
|
2504
2504
|
}
|
|
2505
2505
|
protoOf(Frame).toString = function () {
|
|
2506
|
-
return 'Frame ' + this.
|
|
2506
|
+
return 'Frame ' + this.h4d_1.toString() + ' (fin=' + this.g4d_1 + ', buffer len = ' + this.i4d_1.length + ')';
|
|
2507
2507
|
};
|
|
2508
2508
|
function get_OUTGOING_CHANNEL_CAPACITY() {
|
|
2509
2509
|
return OUTGOING_CHANNEL_CAPACITY;
|
|
2510
2510
|
}
|
|
2511
2511
|
var OUTGOING_CHANNEL_CAPACITY;
|
|
2512
2512
|
//region block: post-declaration
|
|
2513
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
2513
|
+
protoOf(DefaultWebSocketSessionImpl).r49 = send;
|
|
2514
2514
|
defineProp(protoOf(FrameTooBigException), 'message', function () {
|
|
2515
2515
|
return this.e();
|
|
2516
2516
|
});
|