@solibo/home-api 1.1.21 → 1.1.22
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/Kotlin-DateTime-library-kotlinx-datetime.mjs +713 -713
- package/kotlin-kotlin-stdlib.mjs +6 -6
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1842 -1798
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1333 -1333
- package/ktor-ktor-client-content-negotiation.mjs +125 -125
- package/ktor-ktor-client-core.mjs +1802 -1802
- package/ktor-ktor-events.mjs +5 -5
- package/ktor-ktor-http-cio.mjs +306 -306
- package/ktor-ktor-http.mjs +613 -613
- package/ktor-ktor-serialization-kotlinx-json.mjs +7 -7
- package/ktor-ktor-serialization-kotlinx.mjs +120 -120
- package/ktor-ktor-serialization.mjs +51 -51
- package/ktor-ktor-utils.mjs +494 -494
- package/ktor-ktor-websockets.mjs +324 -324
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.d.mts +181 -124
- package/solibo-sdk-sdk-home-api.mjs +48344 -47882
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
package/ktor-ktor-websockets.mjs
CHANGED
|
@@ -110,7 +110,7 @@ initMetadataForCompanion(Companion);
|
|
|
110
110
|
initMetadataForClass(Codes, 'Codes', VOID, Enum);
|
|
111
111
|
initMetadataForClass(CloseReason, 'CloseReason');
|
|
112
112
|
function send(frame, $completion) {
|
|
113
|
-
return this.
|
|
113
|
+
return this.g32().a19(frame, $completion);
|
|
114
114
|
}
|
|
115
115
|
initMetadataForInterface(WebSocketSession, 'WebSocketSession', VOID, VOID, [CoroutineScope], [1, 0]);
|
|
116
116
|
initMetadataForInterface(DefaultWebSocketSession, 'DefaultWebSocketSession', VOID, VOID, [WebSocketSession], [1, 0]);
|
|
@@ -174,14 +174,14 @@ function Companion() {
|
|
|
174
174
|
var _iterator__ex2g4s = this_0.t();
|
|
175
175
|
while (_iterator__ex2g4s.u()) {
|
|
176
176
|
var element = _iterator__ex2g4s.v();
|
|
177
|
-
var tmp$ret$0 = element.
|
|
177
|
+
var tmp$ret$0 = element.v31_1;
|
|
178
178
|
destination.s2(tmp$ret$0, element);
|
|
179
179
|
}
|
|
180
|
-
tmp.
|
|
181
|
-
this.
|
|
180
|
+
tmp.w31_1 = destination;
|
|
181
|
+
this.x31_1 = Codes_INTERNAL_ERROR_getInstance();
|
|
182
182
|
}
|
|
183
|
-
protoOf(Companion).
|
|
184
|
-
return this.
|
|
183
|
+
protoOf(Companion).y31 = function (code) {
|
|
184
|
+
return this.w31_1.z2(code);
|
|
185
185
|
};
|
|
186
186
|
var Companion_instance;
|
|
187
187
|
function Companion_getInstance() {
|
|
@@ -219,7 +219,7 @@ function Codes_initEntries() {
|
|
|
219
219
|
}
|
|
220
220
|
var $ENTRIES;
|
|
221
221
|
function CloseReason_init_$Init$(code, message, $this) {
|
|
222
|
-
CloseReason.call($this, code.
|
|
222
|
+
CloseReason.call($this, code.v31_1, message);
|
|
223
223
|
return $this;
|
|
224
224
|
}
|
|
225
225
|
function CloseReason_init_$Create$(code, message) {
|
|
@@ -227,7 +227,7 @@ function CloseReason_init_$Create$(code, message) {
|
|
|
227
227
|
}
|
|
228
228
|
function Codes(name, ordinal, code) {
|
|
229
229
|
Enum.call(this, name, ordinal);
|
|
230
|
-
this.
|
|
230
|
+
this.v31_1 = code;
|
|
231
231
|
}
|
|
232
232
|
function Codes_NORMAL_getInstance() {
|
|
233
233
|
Codes_initEntries();
|
|
@@ -278,19 +278,19 @@ function Codes_TRY_AGAIN_LATER_getInstance() {
|
|
|
278
278
|
return Codes_TRY_AGAIN_LATER_instance;
|
|
279
279
|
}
|
|
280
280
|
function CloseReason(code, message) {
|
|
281
|
-
this.
|
|
282
|
-
this.
|
|
281
|
+
this.z31_1 = code;
|
|
282
|
+
this.a32_1 = message;
|
|
283
283
|
}
|
|
284
|
-
protoOf(CloseReason).
|
|
285
|
-
return Companion_getInstance().
|
|
284
|
+
protoOf(CloseReason).b32 = function () {
|
|
285
|
+
return Companion_getInstance().y31(this.z31_1);
|
|
286
286
|
};
|
|
287
287
|
protoOf(CloseReason).toString = function () {
|
|
288
|
-
var tmp0_elvis_lhs = this.
|
|
289
|
-
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.
|
|
288
|
+
var tmp0_elvis_lhs = this.b32();
|
|
289
|
+
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.z31_1 : tmp0_elvis_lhs) + ', message=' + this.a32_1 + ')';
|
|
290
290
|
};
|
|
291
291
|
protoOf(CloseReason).hashCode = function () {
|
|
292
|
-
var result = this.
|
|
293
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
292
|
+
var result = this.z31_1;
|
|
293
|
+
result = imul(result, 31) + getStringHashCode(this.a32_1) | 0;
|
|
294
294
|
return result;
|
|
295
295
|
};
|
|
296
296
|
protoOf(CloseReason).equals = function (other) {
|
|
@@ -298,9 +298,9 @@ protoOf(CloseReason).equals = function (other) {
|
|
|
298
298
|
return true;
|
|
299
299
|
if (!(other instanceof CloseReason))
|
|
300
300
|
return false;
|
|
301
|
-
if (!(this.
|
|
301
|
+
if (!(this.z31_1 === other.z31_1))
|
|
302
302
|
return false;
|
|
303
|
-
if (!(this.
|
|
303
|
+
if (!(this.a32_1 === other.a32_1))
|
|
304
304
|
return false;
|
|
305
305
|
return true;
|
|
306
306
|
};
|
|
@@ -330,14 +330,14 @@ function DefaultWebSocketSession() {
|
|
|
330
330
|
function DefaultWebSocketSession_0(session, pingIntervalMillis, timeoutMillis, channelsConfig) {
|
|
331
331
|
pingIntervalMillis = pingIntervalMillis === VOID ? 0n : pingIntervalMillis;
|
|
332
332
|
timeoutMillis = timeoutMillis === VOID ? 15000n : timeoutMillis;
|
|
333
|
-
channelsConfig = channelsConfig === VOID ? Companion_getInstance_2().
|
|
333
|
+
channelsConfig = channelsConfig === VOID ? Companion_getInstance_2().i32_1 : channelsConfig;
|
|
334
334
|
_init_properties_DefaultWebSocketSession_kt__469s0y();
|
|
335
335
|
// Inline function 'kotlin.require' call
|
|
336
336
|
if (!!isInterface(session, DefaultWebSocketSession)) {
|
|
337
337
|
var message = 'Cannot wrap other DefaultWebSocketSession';
|
|
338
338
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
339
339
|
}
|
|
340
|
-
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.
|
|
340
|
+
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.j32_1, channelsConfig.k32_1);
|
|
341
341
|
}
|
|
342
342
|
function runIncomingProcessor($this, ponger) {
|
|
343
343
|
var tmp = get_IncomingProcessorCoroutineName().lf(Dispatchers_getInstance().s12_1);
|
|
@@ -365,32 +365,32 @@ function sendCloseSequence$default($this, reason, exception, $completion, $super
|
|
|
365
365
|
return sendCloseSequence($this, reason, exception, $completion);
|
|
366
366
|
}
|
|
367
367
|
function tryClose($this) {
|
|
368
|
-
return $this.
|
|
368
|
+
return $this.p33_1.atomicfu$compareAndSet(false, true);
|
|
369
369
|
}
|
|
370
370
|
function runOrCancelPinger($this) {
|
|
371
|
-
var interval = $this.
|
|
371
|
+
var interval = $this.s33_1;
|
|
372
372
|
var tmp;
|
|
373
|
-
if ($this.
|
|
373
|
+
if ($this.p33_1.kotlinx$atomicfu$value) {
|
|
374
374
|
tmp = null;
|
|
375
375
|
} else if (interval > 0n) {
|
|
376
|
-
var tmp_0 = $this.
|
|
377
|
-
var tmp_1 = $this.
|
|
376
|
+
var tmp_0 = $this.i33_1.g32();
|
|
377
|
+
var tmp_1 = $this.t33_1;
|
|
378
378
|
tmp = pinger($this, tmp_0, interval, tmp_1, DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0($this, null));
|
|
379
379
|
} else {
|
|
380
380
|
tmp = null;
|
|
381
381
|
}
|
|
382
382
|
var newPinger = tmp;
|
|
383
|
-
var tmp0_safe_receiver = $this.
|
|
383
|
+
var tmp0_safe_receiver = $this.j33_1.atomicfu$getAndSet(newPinger);
|
|
384
384
|
if (tmp0_safe_receiver == null)
|
|
385
385
|
null;
|
|
386
386
|
else
|
|
387
387
|
tmp0_safe_receiver.i19();
|
|
388
|
-
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.b19(Companion_getInstance_0().
|
|
388
|
+
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.b19(Companion_getInstance_0().v33_1));
|
|
389
389
|
if (tmp2_safe_receiver == null)
|
|
390
390
|
null;
|
|
391
391
|
else
|
|
392
392
|
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.l17_1);
|
|
393
|
-
if ($this.
|
|
393
|
+
if ($this.p33_1.kotlinx$atomicfu$value && !(newPinger == null)) {
|
|
394
394
|
runOrCancelPinger($this);
|
|
395
395
|
}
|
|
396
396
|
}
|
|
@@ -403,28 +403,28 @@ function checkMaxFrameSize($this, packet, frame, $completion) {
|
|
|
403
403
|
function processIncomingExtensions($this, frame) {
|
|
404
404
|
// Inline function 'kotlin.collections.fold' call
|
|
405
405
|
var accumulator = frame;
|
|
406
|
-
var _iterator__ex2g4s = $this.
|
|
406
|
+
var _iterator__ex2g4s = $this.i34().t();
|
|
407
407
|
while (_iterator__ex2g4s.u()) {
|
|
408
408
|
var element = _iterator__ex2g4s.v();
|
|
409
409
|
var current = accumulator;
|
|
410
|
-
accumulator = element.
|
|
410
|
+
accumulator = element.j34(current);
|
|
411
411
|
}
|
|
412
412
|
return accumulator;
|
|
413
413
|
}
|
|
414
414
|
function processOutgoingExtensions($this, frame) {
|
|
415
415
|
// Inline function 'kotlin.collections.fold' call
|
|
416
416
|
var accumulator = frame;
|
|
417
|
-
var _iterator__ex2g4s = $this.
|
|
417
|
+
var _iterator__ex2g4s = $this.i34().t();
|
|
418
418
|
while (_iterator__ex2g4s.u()) {
|
|
419
419
|
var element = _iterator__ex2g4s.v();
|
|
420
420
|
var current = accumulator;
|
|
421
|
-
accumulator = element.
|
|
421
|
+
accumulator = element.k34(current);
|
|
422
422
|
}
|
|
423
423
|
return accumulator;
|
|
424
424
|
}
|
|
425
425
|
function Companion_0() {
|
|
426
426
|
Companion_instance_0 = this;
|
|
427
|
-
this.
|
|
427
|
+
this.v33_1 = new Pong(new Int8Array(0), NonDisposableHandle_instance);
|
|
428
428
|
}
|
|
429
429
|
var Companion_instance_0;
|
|
430
430
|
function Companion_getInstance_0() {
|
|
@@ -433,9 +433,9 @@ function Companion_getInstance_0() {
|
|
|
433
433
|
return Companion_instance_0;
|
|
434
434
|
}
|
|
435
435
|
function DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
436
|
+
this.t34_1 = $incomingJob;
|
|
437
|
+
this.u34_1 = $outgoingJob;
|
|
438
|
+
this.v34_1 = this$0;
|
|
439
439
|
CoroutineImpl.call(this, resultContinuation);
|
|
440
440
|
}
|
|
441
441
|
protoOf(DefaultWebSocketSessionImpl$start$slambda).w1p = function ($this$launch, $completion) {
|
|
@@ -456,7 +456,7 @@ protoOf(DefaultWebSocketSessionImpl$start$slambda).r8 = function () {
|
|
|
456
456
|
case 0:
|
|
457
457
|
this.k8_1 = 3;
|
|
458
458
|
this.j8_1 = 1;
|
|
459
|
-
suspendResult = this.
|
|
459
|
+
suspendResult = this.t34_1.it(this);
|
|
460
460
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
461
461
|
return suspendResult;
|
|
462
462
|
}
|
|
@@ -464,14 +464,14 @@ protoOf(DefaultWebSocketSessionImpl$start$slambda).r8 = function () {
|
|
|
464
464
|
continue $sm;
|
|
465
465
|
case 1:
|
|
466
466
|
this.j8_1 = 2;
|
|
467
|
-
suspendResult = this.
|
|
467
|
+
suspendResult = this.u34_1.it(this);
|
|
468
468
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
469
469
|
return suspendResult;
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
continue $sm;
|
|
473
473
|
case 2:
|
|
474
|
-
this.
|
|
474
|
+
this.v34_1.l33_1.mt();
|
|
475
475
|
return Unit_instance;
|
|
476
476
|
case 3:
|
|
477
477
|
throw this.m8_1;
|
|
@@ -488,8 +488,8 @@ protoOf(DefaultWebSocketSessionImpl$start$slambda).r8 = function () {
|
|
|
488
488
|
while (true);
|
|
489
489
|
};
|
|
490
490
|
protoOf(DefaultWebSocketSessionImpl$start$slambda).x1p = function ($this$launch, completion) {
|
|
491
|
-
var i = new DefaultWebSocketSessionImpl$start$slambda(this.
|
|
492
|
-
i.
|
|
491
|
+
var i = new DefaultWebSocketSessionImpl$start$slambda(this.t34_1, this.u34_1, this.v34_1, completion);
|
|
492
|
+
i.w34_1 = $this$launch;
|
|
493
493
|
return i;
|
|
494
494
|
};
|
|
495
495
|
function DefaultWebSocketSessionImpl$start$slambda_0($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
@@ -501,8 +501,8 @@ function DefaultWebSocketSessionImpl$start$slambda_0($incomingJob, $outgoingJob,
|
|
|
501
501
|
return l;
|
|
502
502
|
}
|
|
503
503
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation) {
|
|
504
|
-
this.
|
|
505
|
-
this.
|
|
504
|
+
this.f35_1 = this$0;
|
|
505
|
+
this.g35_1 = $ponger;
|
|
506
506
|
CoroutineImpl.call(this, resultContinuation);
|
|
507
507
|
}
|
|
508
508
|
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).w1p = function ($this$launch, $completion) {
|
|
@@ -522,10 +522,10 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
522
522
|
switch (tmp) {
|
|
523
523
|
case 0:
|
|
524
524
|
this.k8_1 = 39;
|
|
525
|
-
this.
|
|
526
|
-
this.
|
|
527
|
-
this.
|
|
528
|
-
this.
|
|
525
|
+
this.r35_1 = null;
|
|
526
|
+
this.k35_1 = null;
|
|
527
|
+
this.j35_1 = false;
|
|
528
|
+
this.l35_1 = Unit_instance;
|
|
529
529
|
this.j8_1 = 1;
|
|
530
530
|
continue $sm;
|
|
531
531
|
case 1:
|
|
@@ -534,12 +534,12 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
534
534
|
case 2:
|
|
535
535
|
this.k8_1 = 33;
|
|
536
536
|
this.k8_1 = 32;
|
|
537
|
-
this.
|
|
537
|
+
this.v35_1 = this.f35_1.i33_1.f32();
|
|
538
538
|
this.j8_1 = 3;
|
|
539
539
|
continue $sm;
|
|
540
540
|
case 3:
|
|
541
|
-
this.
|
|
542
|
-
this.
|
|
541
|
+
this.o35_1 = this.v35_1;
|
|
542
|
+
this.n35_1 = null;
|
|
543
543
|
this.j8_1 = 4;
|
|
544
544
|
continue $sm;
|
|
545
545
|
case 4:
|
|
@@ -551,12 +551,12 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
551
551
|
case 6:
|
|
552
552
|
this.k8_1 = 29;
|
|
553
553
|
this.k8_1 = 28;
|
|
554
|
-
this.
|
|
554
|
+
this.u35_1 = this.o35_1.t();
|
|
555
555
|
this.j8_1 = 7;
|
|
556
556
|
continue $sm;
|
|
557
557
|
case 7:
|
|
558
558
|
this.j8_1 = 8;
|
|
559
|
-
suspendResult = this.
|
|
559
|
+
suspendResult = this.u35_1.d17(this);
|
|
560
560
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
561
561
|
return suspendResult;
|
|
562
562
|
}
|
|
@@ -568,23 +568,23 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
568
568
|
continue $sm;
|
|
569
569
|
}
|
|
570
570
|
|
|
571
|
-
var e = this.
|
|
572
|
-
this.
|
|
571
|
+
var e = this.u35_1.v();
|
|
572
|
+
this.t35_1 = e;
|
|
573
573
|
this.j8_1 = 9;
|
|
574
574
|
continue $sm;
|
|
575
575
|
case 9:
|
|
576
|
-
this.
|
|
576
|
+
this.s35_1 = this.t35_1;
|
|
577
577
|
var this_0 = get_LOGGER();
|
|
578
578
|
if (get_isTraceEnabled(this_0)) {
|
|
579
|
-
this_0.
|
|
579
|
+
this_0.v2i('WebSocketSession(' + toString(this.h35_1) + ') receiving frame ' + this.s35_1.toString());
|
|
580
580
|
}
|
|
581
581
|
|
|
582
|
-
var tmp0_subject = this.
|
|
582
|
+
var tmp0_subject = this.s35_1;
|
|
583
583
|
if (tmp0_subject instanceof Close) {
|
|
584
|
-
if (!this.
|
|
584
|
+
if (!this.f35_1.g32().f17()) {
|
|
585
585
|
this.j8_1 = 18;
|
|
586
|
-
var tmp_0 = this.
|
|
587
|
-
var tmp1_elvis_lhs = readReason(this.
|
|
586
|
+
var tmp_0 = this.f35_1.g32();
|
|
587
|
+
var tmp1_elvis_lhs = readReason(this.s35_1);
|
|
588
588
|
suspendResult = tmp_0.a19(Close_init_$Create$(tmp1_elvis_lhs == null ? get_NORMAL_CLOSE() : tmp1_elvis_lhs), this);
|
|
589
589
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
590
590
|
return suspendResult;
|
|
@@ -596,14 +596,14 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
596
596
|
}
|
|
597
597
|
} else {
|
|
598
598
|
if (tmp0_subject instanceof Pong) {
|
|
599
|
-
var tmp2_safe_receiver = this.
|
|
599
|
+
var tmp2_safe_receiver = this.f35_1.j33_1.kotlinx$atomicfu$value;
|
|
600
600
|
if (tmp2_safe_receiver == null) {
|
|
601
|
-
this.
|
|
601
|
+
this.q35_1 = null;
|
|
602
602
|
this.j8_1 = 17;
|
|
603
603
|
continue $sm;
|
|
604
604
|
} else {
|
|
605
605
|
this.j8_1 = 16;
|
|
606
|
-
suspendResult = tmp2_safe_receiver.a19(this.
|
|
606
|
+
suspendResult = tmp2_safe_receiver.a19(this.s35_1, this);
|
|
607
607
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
608
608
|
return suspendResult;
|
|
609
609
|
}
|
|
@@ -612,14 +612,14 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
612
612
|
} else {
|
|
613
613
|
if (tmp0_subject instanceof Ping) {
|
|
614
614
|
this.j8_1 = 15;
|
|
615
|
-
suspendResult = this.
|
|
615
|
+
suspendResult = this.g35_1.a19(this.s35_1, this);
|
|
616
616
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
617
617
|
return suspendResult;
|
|
618
618
|
}
|
|
619
619
|
continue $sm;
|
|
620
620
|
} else {
|
|
621
621
|
this.j8_1 = 10;
|
|
622
|
-
suspendResult = checkMaxFrameSize(this.
|
|
622
|
+
suspendResult = checkMaxFrameSize(this.f35_1, this.k35_1, this.s35_1, this);
|
|
623
623
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
624
624
|
return suspendResult;
|
|
625
625
|
}
|
|
@@ -629,14 +629,14 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
629
629
|
}
|
|
630
630
|
|
|
631
631
|
case 10:
|
|
632
|
-
if (!this.
|
|
633
|
-
if (this.
|
|
634
|
-
this.
|
|
632
|
+
if (!this.s35_1.w35_1) {
|
|
633
|
+
if (this.r35_1 == null) {
|
|
634
|
+
this.r35_1 = this.s35_1;
|
|
635
635
|
}
|
|
636
|
-
if (this.
|
|
637
|
-
this.
|
|
636
|
+
if (this.k35_1 == null) {
|
|
637
|
+
this.k35_1 = BytePacketBuilder();
|
|
638
638
|
}
|
|
639
|
-
writeFully(this.
|
|
639
|
+
writeFully(this.k35_1, this.s35_1.y35_1);
|
|
640
640
|
this.j8_1 = 21;
|
|
641
641
|
continue $sm;
|
|
642
642
|
} else {
|
|
@@ -645,9 +645,9 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
645
645
|
}
|
|
646
646
|
|
|
647
647
|
case 11:
|
|
648
|
-
if (this.
|
|
648
|
+
if (this.r35_1 == null) {
|
|
649
649
|
this.j8_1 = 14;
|
|
650
|
-
suspendResult = this.
|
|
650
|
+
suspendResult = this.f35_1.n33_1.a19(processIncomingExtensions(this.f35_1, this.s35_1), this);
|
|
651
651
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
652
652
|
return suspendResult;
|
|
653
653
|
}
|
|
@@ -658,11 +658,11 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
658
658
|
}
|
|
659
659
|
|
|
660
660
|
case 12:
|
|
661
|
-
writeFully(ensureNotNull(this.
|
|
662
|
-
var defragmented = Companion_getInstance_5().
|
|
663
|
-
this.
|
|
661
|
+
writeFully(ensureNotNull(this.k35_1), this.s35_1.y35_1);
|
|
662
|
+
var defragmented = Companion_getInstance_5().e36(true, this.r35_1.x35_1, readByteArray(build(this.k35_1)), this.r35_1.a36_1, this.r35_1.b36_1, this.r35_1.c36_1);
|
|
663
|
+
this.r35_1 = null;
|
|
664
664
|
this.j8_1 = 13;
|
|
665
|
-
suspendResult = this.
|
|
665
|
+
suspendResult = this.f35_1.n33_1.a19(processIncomingExtensions(this.f35_1, defragmented), this);
|
|
666
666
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
667
667
|
return suspendResult;
|
|
668
668
|
}
|
|
@@ -670,7 +670,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
670
670
|
continue $sm;
|
|
671
671
|
case 13:
|
|
672
672
|
var tmp_1 = this;
|
|
673
|
-
tmp_1.
|
|
673
|
+
tmp_1.p35_1 = Unit_instance;
|
|
674
674
|
this.j8_1 = 20;
|
|
675
675
|
continue $sm;
|
|
676
676
|
case 14:
|
|
@@ -678,23 +678,23 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
678
678
|
continue $sm;
|
|
679
679
|
case 15:
|
|
680
680
|
var tmp_2 = this;
|
|
681
|
-
tmp_2.
|
|
681
|
+
tmp_2.p35_1 = Unit_instance;
|
|
682
682
|
this.j8_1 = 20;
|
|
683
683
|
continue $sm;
|
|
684
684
|
case 16:
|
|
685
685
|
var tmp_3 = this;
|
|
686
|
-
tmp_3.
|
|
686
|
+
tmp_3.q35_1 = Unit_instance;
|
|
687
687
|
this.j8_1 = 17;
|
|
688
688
|
continue $sm;
|
|
689
689
|
case 17:
|
|
690
|
-
this.
|
|
690
|
+
this.p35_1 = this.q35_1;
|
|
691
691
|
this.j8_1 = 20;
|
|
692
692
|
continue $sm;
|
|
693
693
|
case 18:
|
|
694
694
|
this.j8_1 = 19;
|
|
695
695
|
continue $sm;
|
|
696
696
|
case 19:
|
|
697
|
-
this.
|
|
697
|
+
this.j35_1 = true;
|
|
698
698
|
this.j8_1 = 22;
|
|
699
699
|
var tmp_4 = this;
|
|
700
700
|
continue $sm;
|
|
@@ -711,24 +711,24 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
711
711
|
continue $sm;
|
|
712
712
|
case 22:
|
|
713
713
|
this.k8_1 = 32;
|
|
714
|
-
cancelConsumed(this.
|
|
714
|
+
cancelConsumed(this.o35_1, this.n35_1);
|
|
715
715
|
this.k8_1 = 39;
|
|
716
716
|
this.j8_1 = 23;
|
|
717
717
|
continue $sm;
|
|
718
718
|
case 23:
|
|
719
719
|
this.k8_1 = 39;
|
|
720
|
-
this.
|
|
721
|
-
var tmp0_safe_receiver = this.
|
|
720
|
+
this.g35_1.i19();
|
|
721
|
+
var tmp0_safe_receiver = this.k35_1;
|
|
722
722
|
if (tmp0_safe_receiver == null)
|
|
723
723
|
null;
|
|
724
724
|
else {
|
|
725
725
|
tmp0_safe_receiver.j4();
|
|
726
726
|
}
|
|
727
727
|
|
|
728
|
-
this.
|
|
729
|
-
if (!this.
|
|
728
|
+
this.f35_1.n33_1.i19();
|
|
729
|
+
if (!this.j35_1) {
|
|
730
730
|
this.j8_1 = 24;
|
|
731
|
-
suspendResult = close(this.
|
|
731
|
+
suspendResult = close(this.f35_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
732
732
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
733
733
|
return suspendResult;
|
|
734
734
|
}
|
|
@@ -750,7 +750,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
750
750
|
continue $sm;
|
|
751
751
|
case 27:
|
|
752
752
|
this.k8_1 = 32;
|
|
753
|
-
cancelConsumed(this.
|
|
753
|
+
cancelConsumed(this.o35_1, this.n35_1);
|
|
754
754
|
this.j8_1 = 31;
|
|
755
755
|
continue $sm;
|
|
756
756
|
case 28:
|
|
@@ -759,7 +759,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
759
759
|
if (tmp_7 instanceof Error) {
|
|
760
760
|
var e_0 = this.m8_1;
|
|
761
761
|
var tmp_8 = this;
|
|
762
|
-
this.
|
|
762
|
+
this.n35_1 = e_0;
|
|
763
763
|
throw e_0;
|
|
764
764
|
} else {
|
|
765
765
|
throw this.m8_1;
|
|
@@ -768,11 +768,11 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
768
768
|
case 29:
|
|
769
769
|
this.k8_1 = 32;
|
|
770
770
|
var t = this.m8_1;
|
|
771
|
-
cancelConsumed(this.
|
|
771
|
+
cancelConsumed(this.o35_1, this.n35_1);
|
|
772
772
|
throw t;
|
|
773
773
|
case 30:
|
|
774
774
|
this.k8_1 = 32;
|
|
775
|
-
cancelConsumed(this.
|
|
775
|
+
cancelConsumed(this.o35_1, this.n35_1);
|
|
776
776
|
if (false) {
|
|
777
777
|
this.j8_1 = 3;
|
|
778
778
|
continue $sm;
|
|
@@ -781,7 +781,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
781
781
|
this.j8_1 = 31;
|
|
782
782
|
continue $sm;
|
|
783
783
|
case 31:
|
|
784
|
-
this.
|
|
784
|
+
this.l35_1 = Unit_instance;
|
|
785
785
|
this.k8_1 = 39;
|
|
786
786
|
this.j8_1 = 36;
|
|
787
787
|
continue $sm;
|
|
@@ -791,7 +791,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
791
791
|
if (tmp_9 instanceof ClosedSendChannelException) {
|
|
792
792
|
var _unused_var__etf5q3 = this.m8_1;
|
|
793
793
|
var tmp_10 = this;
|
|
794
|
-
tmp_10.
|
|
794
|
+
tmp_10.l35_1 = Unit_instance;
|
|
795
795
|
this.k8_1 = 39;
|
|
796
796
|
this.j8_1 = 36;
|
|
797
797
|
continue $sm;
|
|
@@ -800,8 +800,8 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
800
800
|
if (tmp_11 instanceof Error) {
|
|
801
801
|
var cause = this.m8_1;
|
|
802
802
|
var tmp_12 = this;
|
|
803
|
-
this.
|
|
804
|
-
tmp_12.
|
|
803
|
+
this.g35_1.i19();
|
|
804
|
+
tmp_12.l35_1 = this.f35_1.n33_1.g19(cause);
|
|
805
805
|
this.k8_1 = 39;
|
|
806
806
|
this.j8_1 = 36;
|
|
807
807
|
continue $sm;
|
|
@@ -812,19 +812,19 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
812
812
|
|
|
813
813
|
case 33:
|
|
814
814
|
this.k8_1 = 39;
|
|
815
|
-
this.
|
|
816
|
-
this.
|
|
817
|
-
var tmp0_safe_receiver_0 = this.
|
|
815
|
+
this.m35_1 = this.m8_1;
|
|
816
|
+
this.g35_1.i19();
|
|
817
|
+
var tmp0_safe_receiver_0 = this.k35_1;
|
|
818
818
|
if (tmp0_safe_receiver_0 == null)
|
|
819
819
|
null;
|
|
820
820
|
else {
|
|
821
821
|
tmp0_safe_receiver_0.j4();
|
|
822
822
|
}
|
|
823
823
|
|
|
824
|
-
this.
|
|
825
|
-
if (!this.
|
|
824
|
+
this.f35_1.n33_1.i19();
|
|
825
|
+
if (!this.j35_1) {
|
|
826
826
|
this.j8_1 = 34;
|
|
827
|
-
suspendResult = close(this.
|
|
827
|
+
suspendResult = close(this.f35_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
828
828
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
829
829
|
return suspendResult;
|
|
830
830
|
}
|
|
@@ -838,22 +838,22 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
838
838
|
this.j8_1 = 35;
|
|
839
839
|
continue $sm;
|
|
840
840
|
case 35:
|
|
841
|
-
throw this.
|
|
841
|
+
throw this.m35_1;
|
|
842
842
|
case 36:
|
|
843
|
-
this.
|
|
843
|
+
this.i35_1 = this.l35_1;
|
|
844
844
|
this.k8_1 = 39;
|
|
845
|
-
this.
|
|
846
|
-
var tmp0_safe_receiver_1 = this.
|
|
845
|
+
this.g35_1.i19();
|
|
846
|
+
var tmp0_safe_receiver_1 = this.k35_1;
|
|
847
847
|
if (tmp0_safe_receiver_1 == null)
|
|
848
848
|
null;
|
|
849
849
|
else {
|
|
850
850
|
tmp0_safe_receiver_1.j4();
|
|
851
851
|
}
|
|
852
852
|
|
|
853
|
-
this.
|
|
854
|
-
if (!this.
|
|
853
|
+
this.f35_1.n33_1.i19();
|
|
854
|
+
if (!this.j35_1) {
|
|
855
855
|
this.j8_1 = 37;
|
|
856
|
-
suspendResult = close(this.
|
|
856
|
+
suspendResult = close(this.f35_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
857
857
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
858
858
|
return suspendResult;
|
|
859
859
|
}
|
|
@@ -883,8 +883,8 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
883
883
|
while (true);
|
|
884
884
|
};
|
|
885
885
|
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).x1p = function ($this$launch, completion) {
|
|
886
|
-
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.
|
|
887
|
-
i.
|
|
886
|
+
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.f35_1, this.g35_1, completion);
|
|
887
|
+
i.h35_1 = $this$launch;
|
|
888
888
|
return i;
|
|
889
889
|
};
|
|
890
890
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0(this$0, $ponger, resultContinuation) {
|
|
@@ -896,7 +896,7 @@ function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0(this$0, $pon
|
|
|
896
896
|
return l;
|
|
897
897
|
}
|
|
898
898
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation) {
|
|
899
|
-
this.
|
|
899
|
+
this.n36_1 = this$0;
|
|
900
900
|
CoroutineImpl.call(this, resultContinuation);
|
|
901
901
|
}
|
|
902
902
|
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).w1p = function ($this$launch, $completion) {
|
|
@@ -925,7 +925,7 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).r8 = function
|
|
|
925
925
|
this.k8_1 = 9;
|
|
926
926
|
this.k8_1 = 4;
|
|
927
927
|
this.j8_1 = 3;
|
|
928
|
-
suspendResult = outgoingProcessorLoop(this.
|
|
928
|
+
suspendResult = outgoingProcessorLoop(this.n36_1, this);
|
|
929
929
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
930
930
|
return suspendResult;
|
|
931
931
|
}
|
|
@@ -955,7 +955,7 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).r8 = function
|
|
|
955
955
|
if (tmp_2 instanceof CancellationException) {
|
|
956
956
|
var _unused_var__etf5q3_1 = this.m8_1;
|
|
957
957
|
this.j8_1 = 5;
|
|
958
|
-
suspendResult = sendCloseSequence$default(this.
|
|
958
|
+
suspendResult = sendCloseSequence$default(this.n36_1, CloseReason_init_$Create$(Codes_NORMAL_getInstance(), ''), VOID, this);
|
|
959
959
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
960
960
|
return suspendResult;
|
|
961
961
|
}
|
|
@@ -971,9 +971,9 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).r8 = function
|
|
|
971
971
|
var tmp_4 = this.m8_1;
|
|
972
972
|
if (tmp_4 instanceof Error) {
|
|
973
973
|
var cause = this.m8_1;
|
|
974
|
-
this.
|
|
974
|
+
this.n36_1.o33_1.lt(CancellationException_init_$Create$('Failed to send frame', cause));
|
|
975
975
|
this.j8_1 = 6;
|
|
976
|
-
suspendResult = closeExceptionally(this.
|
|
976
|
+
suspendResult = closeExceptionally(this.n36_1.i33_1, cause, this);
|
|
977
977
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
978
978
|
return suspendResult;
|
|
979
979
|
}
|
|
@@ -996,9 +996,9 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).r8 = function
|
|
|
996
996
|
continue $sm;
|
|
997
997
|
case 7:
|
|
998
998
|
this.k8_1 = 13;
|
|
999
|
-
this.
|
|
999
|
+
this.n36_1.o33_1.k19();
|
|
1000
1000
|
this.j8_1 = 8;
|
|
1001
|
-
suspendResult = close(this.
|
|
1001
|
+
suspendResult = close(this.n36_1.i33_1, VOID, this);
|
|
1002
1002
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1003
1003
|
return suspendResult;
|
|
1004
1004
|
}
|
|
@@ -1008,22 +1008,22 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).r8 = function
|
|
|
1008
1008
|
return Unit_instance;
|
|
1009
1009
|
case 9:
|
|
1010
1010
|
this.k8_1 = 13;
|
|
1011
|
-
this.
|
|
1012
|
-
this.
|
|
1011
|
+
this.p36_1 = this.m8_1;
|
|
1012
|
+
this.n36_1.o33_1.k19();
|
|
1013
1013
|
this.j8_1 = 10;
|
|
1014
|
-
suspendResult = close(this.
|
|
1014
|
+
suspendResult = close(this.n36_1.i33_1, VOID, this);
|
|
1015
1015
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1016
1016
|
return suspendResult;
|
|
1017
1017
|
}
|
|
1018
1018
|
|
|
1019
1019
|
continue $sm;
|
|
1020
1020
|
case 10:
|
|
1021
|
-
throw this.
|
|
1021
|
+
throw this.p36_1;
|
|
1022
1022
|
case 11:
|
|
1023
1023
|
this.k8_1 = 13;
|
|
1024
|
-
this.
|
|
1024
|
+
this.n36_1.o33_1.k19();
|
|
1025
1025
|
this.j8_1 = 12;
|
|
1026
|
-
suspendResult = close(this.
|
|
1026
|
+
suspendResult = close(this.n36_1.i33_1, VOID, this);
|
|
1027
1027
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1028
1028
|
return suspendResult;
|
|
1029
1029
|
}
|
|
@@ -1046,8 +1046,8 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).r8 = function
|
|
|
1046
1046
|
while (true);
|
|
1047
1047
|
};
|
|
1048
1048
|
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).x1p = function ($this$launch, completion) {
|
|
1049
|
-
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.
|
|
1050
|
-
i.
|
|
1049
|
+
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.n36_1, completion);
|
|
1050
|
+
i.o36_1 = $this$launch;
|
|
1051
1051
|
return i;
|
|
1052
1052
|
};
|
|
1053
1053
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0(this$0, resultContinuation) {
|
|
@@ -1059,17 +1059,17 @@ function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0(this$0, resu
|
|
|
1059
1059
|
return l;
|
|
1060
1060
|
}
|
|
1061
1061
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation) {
|
|
1062
|
-
this.
|
|
1062
|
+
this.y36_1 = this$0;
|
|
1063
1063
|
CoroutineImpl.call(this, resultContinuation);
|
|
1064
1064
|
}
|
|
1065
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1066
|
-
var tmp = this.
|
|
1065
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).a37 = function (it, $completion) {
|
|
1066
|
+
var tmp = this.b37(it, $completion);
|
|
1067
1067
|
tmp.l8_1 = Unit_instance;
|
|
1068
1068
|
tmp.m8_1 = null;
|
|
1069
1069
|
return tmp.r8();
|
|
1070
1070
|
};
|
|
1071
1071
|
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).d9 = function (p1, $completion) {
|
|
1072
|
-
return this.
|
|
1072
|
+
return this.a37(p1 instanceof CloseReason ? p1 : THROW_CCE(), $completion);
|
|
1073
1073
|
};
|
|
1074
1074
|
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).r8 = function () {
|
|
1075
1075
|
var suspendResult = this.l8_1;
|
|
@@ -1080,7 +1080,7 @@ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).r8 = function ()
|
|
|
1080
1080
|
case 0:
|
|
1081
1081
|
this.k8_1 = 2;
|
|
1082
1082
|
this.j8_1 = 1;
|
|
1083
|
-
suspendResult = sendCloseSequence(this.
|
|
1083
|
+
suspendResult = sendCloseSequence(this.y36_1, this.z36_1, IOException_init_$Create$('Ping timeout'), this);
|
|
1084
1084
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1085
1085
|
return suspendResult;
|
|
1086
1086
|
}
|
|
@@ -1102,22 +1102,22 @@ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).r8 = function ()
|
|
|
1102
1102
|
}
|
|
1103
1103
|
while (true);
|
|
1104
1104
|
};
|
|
1105
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1106
|
-
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.
|
|
1107
|
-
i.
|
|
1105
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).b37 = function (it, completion) {
|
|
1106
|
+
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.y36_1, completion);
|
|
1107
|
+
i.z36_1 = it;
|
|
1108
1108
|
return i;
|
|
1109
1109
|
};
|
|
1110
1110
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0(this$0, resultContinuation) {
|
|
1111
1111
|
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation);
|
|
1112
1112
|
var l = function (it, $completion) {
|
|
1113
|
-
return i.
|
|
1113
|
+
return i.a37(it, $completion);
|
|
1114
1114
|
};
|
|
1115
1115
|
l.$arity = 1;
|
|
1116
1116
|
return l;
|
|
1117
1117
|
}
|
|
1118
1118
|
function $outgoingProcessorLoopCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1119
1119
|
CoroutineImpl.call(this, resultContinuation);
|
|
1120
|
-
this.
|
|
1120
|
+
this.t32_1 = _this__u8e3s4;
|
|
1121
1121
|
}
|
|
1122
1122
|
protoOf($outgoingProcessorLoopCOROUTINE$).r8 = function () {
|
|
1123
1123
|
var suspendResult = this.l8_1;
|
|
@@ -1127,12 +1127,12 @@ protoOf($outgoingProcessorLoopCOROUTINE$).r8 = function () {
|
|
|
1127
1127
|
switch (tmp) {
|
|
1128
1128
|
case 0:
|
|
1129
1129
|
this.k8_1 = 7;
|
|
1130
|
-
this.
|
|
1130
|
+
this.v32_1 = this.t32_1.o33_1.t();
|
|
1131
1131
|
this.j8_1 = 1;
|
|
1132
1132
|
continue $sm;
|
|
1133
1133
|
case 1:
|
|
1134
1134
|
this.j8_1 = 2;
|
|
1135
|
-
suspendResult = this.
|
|
1135
|
+
suspendResult = this.v32_1.d17(this);
|
|
1136
1136
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1137
1137
|
return suspendResult;
|
|
1138
1138
|
}
|
|
@@ -1144,15 +1144,15 @@ protoOf($outgoingProcessorLoopCOROUTINE$).r8 = function () {
|
|
|
1144
1144
|
continue $sm;
|
|
1145
1145
|
}
|
|
1146
1146
|
|
|
1147
|
-
var frame = this.
|
|
1147
|
+
var frame = this.v32_1.v();
|
|
1148
1148
|
var this_0 = get_LOGGER();
|
|
1149
1149
|
if (get_isTraceEnabled(this_0)) {
|
|
1150
|
-
this_0.
|
|
1150
|
+
this_0.v2i('Sending ' + frame.toString() + ' from session ' + toString(this.t32_1));
|
|
1151
1151
|
}
|
|
1152
1152
|
|
|
1153
1153
|
if (frame instanceof Close) {
|
|
1154
1154
|
this.j8_1 = 3;
|
|
1155
|
-
suspendResult = sendCloseSequence$default(this.
|
|
1155
|
+
suspendResult = sendCloseSequence$default(this.t32_1, readReason(frame), VOID, this);
|
|
1156
1156
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1157
1157
|
return suspendResult;
|
|
1158
1158
|
}
|
|
@@ -1165,11 +1165,11 @@ protoOf($outgoingProcessorLoopCOROUTINE$).r8 = function () {
|
|
|
1165
1165
|
tmp_0 = frame instanceof Binary;
|
|
1166
1166
|
}
|
|
1167
1167
|
if (tmp_0) {
|
|
1168
|
-
this.
|
|
1168
|
+
this.u32_1 = processOutgoingExtensions(this.t32_1, frame);
|
|
1169
1169
|
this.j8_1 = 4;
|
|
1170
1170
|
continue $sm;
|
|
1171
1171
|
} else {
|
|
1172
|
-
this.
|
|
1172
|
+
this.u32_1 = frame;
|
|
1173
1173
|
this.j8_1 = 4;
|
|
1174
1174
|
continue $sm;
|
|
1175
1175
|
}
|
|
@@ -1180,9 +1180,9 @@ protoOf($outgoingProcessorLoopCOROUTINE$).r8 = function () {
|
|
|
1180
1180
|
var tmp_1 = this;
|
|
1181
1181
|
continue $sm;
|
|
1182
1182
|
case 4:
|
|
1183
|
-
var processedFrame = this.
|
|
1183
|
+
var processedFrame = this.u32_1;
|
|
1184
1184
|
this.j8_1 = 5;
|
|
1185
|
-
suspendResult = this.
|
|
1185
|
+
suspendResult = this.t32_1.i33_1.g32().a19(processedFrame, this);
|
|
1186
1186
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1187
1187
|
return suspendResult;
|
|
1188
1188
|
}
|
|
@@ -1209,9 +1209,9 @@ protoOf($outgoingProcessorLoopCOROUTINE$).r8 = function () {
|
|
|
1209
1209
|
};
|
|
1210
1210
|
function $sendCloseSequenceCOROUTINE$(_this__u8e3s4, reason, exception, resultContinuation) {
|
|
1211
1211
|
CoroutineImpl.call(this, resultContinuation);
|
|
1212
|
-
this.
|
|
1213
|
-
this.
|
|
1214
|
-
this.
|
|
1212
|
+
this.e33_1 = _this__u8e3s4;
|
|
1213
|
+
this.f33_1 = reason;
|
|
1214
|
+
this.g33_1 = exception;
|
|
1215
1215
|
}
|
|
1216
1216
|
protoOf($sendCloseSequenceCOROUTINE$).r8 = function () {
|
|
1217
1217
|
var suspendResult = this.l8_1;
|
|
@@ -1221,25 +1221,25 @@ protoOf($sendCloseSequenceCOROUTINE$).r8 = function () {
|
|
|
1221
1221
|
switch (tmp) {
|
|
1222
1222
|
case 0:
|
|
1223
1223
|
this.k8_1 = 6;
|
|
1224
|
-
if (!tryClose(this.
|
|
1224
|
+
if (!tryClose(this.e33_1))
|
|
1225
1225
|
return Unit_instance;
|
|
1226
1226
|
var this_0 = get_LOGGER();
|
|
1227
1227
|
if (get_isTraceEnabled(this_0)) {
|
|
1228
|
-
this_0.
|
|
1228
|
+
this_0.v2i('Sending Close Sequence for session ' + toString(this.e33_1) + ' with reason ' + toString_0(this.f33_1) + ' and exception ' + toString_0(this.g33_1));
|
|
1229
1229
|
}
|
|
1230
1230
|
|
|
1231
|
-
this.
|
|
1231
|
+
this.e33_1.l33_1.uy();
|
|
1232
1232
|
var tmp_0 = this;
|
|
1233
|
-
var tmp0_elvis_lhs = this.
|
|
1234
|
-
tmp_0.
|
|
1233
|
+
var tmp0_elvis_lhs = this.f33_1;
|
|
1234
|
+
tmp_0.h33_1 = tmp0_elvis_lhs == null ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : tmp0_elvis_lhs;
|
|
1235
1235
|
this.j8_1 = 1;
|
|
1236
1236
|
continue $sm;
|
|
1237
1237
|
case 1:
|
|
1238
1238
|
this.k8_1 = 5;
|
|
1239
|
-
runOrCancelPinger(this.
|
|
1240
|
-
if (!(this.
|
|
1239
|
+
runOrCancelPinger(this.e33_1);
|
|
1240
|
+
if (!(this.h33_1.z31_1 === Codes_CLOSED_ABNORMALLY_getInstance().v31_1)) {
|
|
1241
1241
|
this.j8_1 = 2;
|
|
1242
|
-
suspendResult = this.
|
|
1242
|
+
suspendResult = this.e33_1.i33_1.g32().a19(Close_init_$Create$(this.h33_1), this);
|
|
1243
1243
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1244
1244
|
return suspendResult;
|
|
1245
1245
|
}
|
|
@@ -1258,20 +1258,20 @@ protoOf($sendCloseSequenceCOROUTINE$).r8 = function () {
|
|
|
1258
1258
|
continue $sm;
|
|
1259
1259
|
case 4:
|
|
1260
1260
|
this.k8_1 = 6;
|
|
1261
|
-
this.
|
|
1262
|
-
if (!(this.
|
|
1263
|
-
this.
|
|
1264
|
-
this.
|
|
1261
|
+
this.e33_1.k33_1.sy(this.h33_1);
|
|
1262
|
+
if (!(this.g33_1 == null)) {
|
|
1263
|
+
this.e33_1.o33_1.g19(this.g33_1);
|
|
1264
|
+
this.e33_1.n33_1.g19(this.g33_1);
|
|
1265
1265
|
}
|
|
1266
1266
|
|
|
1267
1267
|
return Unit_instance;
|
|
1268
1268
|
case 5:
|
|
1269
1269
|
this.k8_1 = 6;
|
|
1270
1270
|
var t = this.m8_1;
|
|
1271
|
-
this.
|
|
1272
|
-
if (!(this.
|
|
1273
|
-
this.
|
|
1274
|
-
this.
|
|
1271
|
+
this.e33_1.k33_1.sy(this.h33_1);
|
|
1272
|
+
if (!(this.g33_1 == null)) {
|
|
1273
|
+
this.e33_1.o33_1.g19(this.g33_1);
|
|
1274
|
+
this.e33_1.n33_1.g19(this.g33_1);
|
|
1275
1275
|
}
|
|
1276
1276
|
|
|
1277
1277
|
throw t;
|
|
@@ -1291,9 +1291,9 @@ protoOf($sendCloseSequenceCOROUTINE$).r8 = function () {
|
|
|
1291
1291
|
};
|
|
1292
1292
|
function $checkMaxFrameSizeCOROUTINE$(_this__u8e3s4, packet, frame, resultContinuation) {
|
|
1293
1293
|
CoroutineImpl.call(this, resultContinuation);
|
|
1294
|
-
this.
|
|
1295
|
-
this.
|
|
1296
|
-
this.
|
|
1294
|
+
this.e34_1 = _this__u8e3s4;
|
|
1295
|
+
this.f34_1 = packet;
|
|
1296
|
+
this.g34_1 = frame;
|
|
1297
1297
|
}
|
|
1298
1298
|
protoOf($checkMaxFrameSizeCOROUTINE$).r8 = function () {
|
|
1299
1299
|
var suspendResult = this.l8_1;
|
|
@@ -1304,19 +1304,19 @@ protoOf($checkMaxFrameSizeCOROUTINE$).r8 = function () {
|
|
|
1304
1304
|
case 0:
|
|
1305
1305
|
this.k8_1 = 3;
|
|
1306
1306
|
var tmp_0 = this;
|
|
1307
|
-
var tmp_1 = this.
|
|
1308
|
-
var tmp0_safe_receiver = this.
|
|
1307
|
+
var tmp_1 = this.g34_1.y35_1.length;
|
|
1308
|
+
var tmp0_safe_receiver = this.f34_1;
|
|
1309
1309
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_size(tmp0_safe_receiver);
|
|
1310
|
-
tmp_0.
|
|
1311
|
-
if (fromInt(this.
|
|
1312
|
-
var tmp2_safe_receiver = this.
|
|
1310
|
+
tmp_0.h34_1 = tmp_1 + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
1311
|
+
if (fromInt(this.h34_1) > this.e34_1.e32()) {
|
|
1312
|
+
var tmp2_safe_receiver = this.f34_1;
|
|
1313
1313
|
if (tmp2_safe_receiver == null)
|
|
1314
1314
|
null;
|
|
1315
1315
|
else {
|
|
1316
1316
|
tmp2_safe_receiver.j4();
|
|
1317
1317
|
}
|
|
1318
1318
|
this.j8_1 = 2;
|
|
1319
|
-
suspendResult = close(this.
|
|
1319
|
+
suspendResult = close(this.e34_1, CloseReason_init_$Create$(Codes_TOO_BIG_getInstance(), 'Frame is too big: ' + this.h34_1 + '. Max size is ' + this.e34_1.e32().toString()), this);
|
|
1320
1320
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1321
1321
|
return suspendResult;
|
|
1322
1322
|
}
|
|
@@ -1329,7 +1329,7 @@ protoOf($checkMaxFrameSizeCOROUTINE$).r8 = function () {
|
|
|
1329
1329
|
case 1:
|
|
1330
1330
|
return Unit_instance;
|
|
1331
1331
|
case 2:
|
|
1332
|
-
throw new FrameTooBigException(fromInt(this.
|
|
1332
|
+
throw new FrameTooBigException(fromInt(this.h34_1));
|
|
1333
1333
|
case 3:
|
|
1334
1334
|
throw this.m8_1;
|
|
1335
1335
|
}
|
|
@@ -1346,42 +1346,42 @@ protoOf($checkMaxFrameSizeCOROUTINE$).r8 = function () {
|
|
|
1346
1346
|
};
|
|
1347
1347
|
function DefaultWebSocketSessionImpl(raw, pingIntervalMillis, timeoutMillis, incomingFramesConfig, outgoingFramesConfig) {
|
|
1348
1348
|
Companion_getInstance_0();
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1353
|
-
this.
|
|
1354
|
-
this.
|
|
1355
|
-
this.
|
|
1356
|
-
this.
|
|
1349
|
+
this.i33_1 = raw;
|
|
1350
|
+
this.j33_1 = atomic$ref$1(null);
|
|
1351
|
+
this.k33_1 = CompletableDeferred();
|
|
1352
|
+
this.l33_1 = Job();
|
|
1353
|
+
this.m33_1 = this.i33_1.cs().jf(Key_instance).lf(this.l33_1).lf(new CoroutineName('ws-default'));
|
|
1354
|
+
this.n33_1 = from(Factory_getInstance(), incomingFramesConfig);
|
|
1355
|
+
this.o33_1 = from(Factory_getInstance(), outgoingFramesConfig);
|
|
1356
|
+
this.p33_1 = atomic$boolean$1(false);
|
|
1357
1357
|
var tmp = this;
|
|
1358
1358
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1359
|
-
tmp.
|
|
1360
|
-
this.
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1363
|
-
this.
|
|
1359
|
+
tmp.q33_1 = ArrayList_init_$Create$();
|
|
1360
|
+
this.r33_1 = atomic$boolean$1(false);
|
|
1361
|
+
this.s33_1 = pingIntervalMillis;
|
|
1362
|
+
this.t33_1 = timeoutMillis;
|
|
1363
|
+
this.u33_1 = this.k33_1;
|
|
1364
1364
|
}
|
|
1365
1365
|
protoOf(DefaultWebSocketSessionImpl).cs = function () {
|
|
1366
|
-
return this.
|
|
1366
|
+
return this.m33_1;
|
|
1367
1367
|
};
|
|
1368
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1369
|
-
return this.
|
|
1368
|
+
protoOf(DefaultWebSocketSessionImpl).f32 = function () {
|
|
1369
|
+
return this.n33_1;
|
|
1370
1370
|
};
|
|
1371
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1372
|
-
return this.
|
|
1371
|
+
protoOf(DefaultWebSocketSessionImpl).g32 = function () {
|
|
1372
|
+
return this.o33_1;
|
|
1373
1373
|
};
|
|
1374
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1375
|
-
return this.
|
|
1374
|
+
protoOf(DefaultWebSocketSessionImpl).i34 = function () {
|
|
1375
|
+
return this.q33_1;
|
|
1376
1376
|
};
|
|
1377
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1378
|
-
this.
|
|
1377
|
+
protoOf(DefaultWebSocketSessionImpl).d32 = function (value) {
|
|
1378
|
+
this.i33_1.d32(value);
|
|
1379
1379
|
};
|
|
1380
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1381
|
-
return this.
|
|
1380
|
+
protoOf(DefaultWebSocketSessionImpl).e32 = function () {
|
|
1381
|
+
return this.i33_1.e32();
|
|
1382
1382
|
};
|
|
1383
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1384
|
-
if (!this.
|
|
1383
|
+
protoOf(DefaultWebSocketSessionImpl).c32 = function (negotiatedExtensions) {
|
|
1384
|
+
if (!this.r33_1.atomicfu$compareAndSet(false, true)) {
|
|
1385
1385
|
// Inline function 'kotlin.error' call
|
|
1386
1386
|
var message = 'WebSocket session ' + toString(this) + ' is already started.';
|
|
1387
1387
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -1390,16 +1390,16 @@ protoOf(DefaultWebSocketSessionImpl).y31 = function (negotiatedExtensions) {
|
|
|
1390
1390
|
var this_0 = get_LOGGER();
|
|
1391
1391
|
if (get_isTraceEnabled(this_0)) {
|
|
1392
1392
|
var tmp$ret$0 = 'Starting default WebSocketSession(' + toString(this) + ') ' + ('with negotiated extensions: ' + joinToString(negotiatedExtensions));
|
|
1393
|
-
this_0.
|
|
1393
|
+
this_0.v2i(tmp$ret$0);
|
|
1394
1394
|
}
|
|
1395
|
-
this.
|
|
1395
|
+
this.q33_1.j1(negotiatedExtensions);
|
|
1396
1396
|
runOrCancelPinger(this);
|
|
1397
|
-
var incomingJob = runIncomingProcessor(this, ponger(this, this.
|
|
1397
|
+
var incomingJob = runIncomingProcessor(this, ponger(this, this.g32()));
|
|
1398
1398
|
var outgoingJob = runOutgoingProcessor(this);
|
|
1399
1399
|
launch(this, VOID, VOID, DefaultWebSocketSessionImpl$start$slambda_0(incomingJob, outgoingJob, this, null));
|
|
1400
1400
|
};
|
|
1401
1401
|
protoOf(DefaultWebSocketSessionImpl).q1g = function ($completion) {
|
|
1402
|
-
return this.
|
|
1402
|
+
return this.i33_1.q1g($completion);
|
|
1403
1403
|
};
|
|
1404
1404
|
var properties_initialized_DefaultWebSocketSession_kt_6cjlhc;
|
|
1405
1405
|
function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
@@ -1421,12 +1421,12 @@ function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
|
1421
1421
|
}
|
|
1422
1422
|
}
|
|
1423
1423
|
function readReason(_this__u8e3s4) {
|
|
1424
|
-
if (_this__u8e3s4.
|
|
1424
|
+
if (_this__u8e3s4.y35_1.length < 2) {
|
|
1425
1425
|
return null;
|
|
1426
1426
|
}
|
|
1427
1427
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1428
1428
|
var builder = new Buffer();
|
|
1429
|
-
writeFully(builder, _this__u8e3s4.
|
|
1429
|
+
writeFully(builder, _this__u8e3s4.y35_1);
|
|
1430
1430
|
var packet = builder;
|
|
1431
1431
|
var code = packet.ep();
|
|
1432
1432
|
var message = readText(packet);
|
|
@@ -1457,15 +1457,15 @@ function NonDisposableHandle_getInstance() {
|
|
|
1457
1457
|
function FrameTooBigException(frameSize) {
|
|
1458
1458
|
Exception_init_$Init$(this);
|
|
1459
1459
|
captureStack(this, FrameTooBigException);
|
|
1460
|
-
this.
|
|
1460
|
+
this.c37_1 = frameSize;
|
|
1461
1461
|
delete this.message;
|
|
1462
1462
|
}
|
|
1463
1463
|
protoOf(FrameTooBigException).e = function () {
|
|
1464
|
-
return 'Frame is too big: ' + this.
|
|
1464
|
+
return 'Frame is too big: ' + this.c37_1.toString();
|
|
1465
1465
|
};
|
|
1466
1466
|
protoOf(FrameTooBigException).dz = function () {
|
|
1467
1467
|
// Inline function 'kotlin.also' call
|
|
1468
|
-
var this_0 = new FrameTooBigException(this.
|
|
1468
|
+
var this_0 = new FrameTooBigException(this.c37_1);
|
|
1469
1469
|
initCauseBridge(this_0, this);
|
|
1470
1470
|
return this_0;
|
|
1471
1471
|
};
|
|
@@ -1491,10 +1491,10 @@ function Companion_1() {
|
|
|
1491
1491
|
tmp$ret$0 = maxElem;
|
|
1492
1492
|
break $l$block_0;
|
|
1493
1493
|
}
|
|
1494
|
-
var maxValue = maxElem.
|
|
1494
|
+
var maxValue = maxElem.g37_1;
|
|
1495
1495
|
do {
|
|
1496
1496
|
var e = iterator.v();
|
|
1497
|
-
var v = e.
|
|
1497
|
+
var v = e.g37_1;
|
|
1498
1498
|
if (compareTo(maxValue, v) < 0) {
|
|
1499
1499
|
maxElem = e;
|
|
1500
1500
|
maxValue = v;
|
|
@@ -1503,10 +1503,10 @@ function Companion_1() {
|
|
|
1503
1503
|
while (iterator.u());
|
|
1504
1504
|
tmp$ret$0 = maxElem;
|
|
1505
1505
|
}
|
|
1506
|
-
tmp.
|
|
1506
|
+
tmp.h37_1 = ensureNotNull(tmp$ret$0).g37_1;
|
|
1507
1507
|
var tmp_0 = this;
|
|
1508
1508
|
var tmp_1 = 0;
|
|
1509
|
-
var tmp_2 = this.
|
|
1509
|
+
var tmp_2 = this.h37_1 + 1 | 0;
|
|
1510
1510
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1511
1511
|
var tmp_3 = Array(tmp_2);
|
|
1512
1512
|
while (tmp_1 < tmp_2) {
|
|
@@ -1520,7 +1520,7 @@ function Companion_1() {
|
|
|
1520
1520
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
1521
1521
|
while (_iterator__ex2g4s.u()) {
|
|
1522
1522
|
var element = _iterator__ex2g4s.v();
|
|
1523
|
-
if (element.
|
|
1523
|
+
if (element.g37_1 === tmp_4) {
|
|
1524
1524
|
if (found) {
|
|
1525
1525
|
tmp$ret$5 = null;
|
|
1526
1526
|
break $l$block_2;
|
|
@@ -1538,7 +1538,7 @@ function Companion_1() {
|
|
|
1538
1538
|
tmp_3[tmp_4] = tmp$ret$5;
|
|
1539
1539
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1540
1540
|
}
|
|
1541
|
-
tmp_0.
|
|
1541
|
+
tmp_0.i37_1 = tmp_3;
|
|
1542
1542
|
}
|
|
1543
1543
|
var Companion_instance_1;
|
|
1544
1544
|
function Companion_getInstance_1() {
|
|
@@ -1570,8 +1570,8 @@ function FrameType_initEntries() {
|
|
|
1570
1570
|
var $ENTRIES_0;
|
|
1571
1571
|
function FrameType(name, ordinal, controlFrame, opcode) {
|
|
1572
1572
|
Enum.call(this, name, ordinal);
|
|
1573
|
-
this.
|
|
1574
|
-
this.
|
|
1573
|
+
this.f37_1 = controlFrame;
|
|
1574
|
+
this.g37_1 = opcode;
|
|
1575
1575
|
}
|
|
1576
1576
|
function FrameType_TEXT_getInstance() {
|
|
1577
1577
|
FrameType_initEntries();
|
|
@@ -1621,8 +1621,8 @@ function pinger(_this__u8e3s4, outgoing, periodMillis, timeoutMillis, onTimeout)
|
|
|
1621
1621
|
return channel;
|
|
1622
1622
|
}
|
|
1623
1623
|
function ponger$slambda($channel, $outgoing, resultContinuation) {
|
|
1624
|
-
this.
|
|
1625
|
-
this.
|
|
1624
|
+
this.r37_1 = $channel;
|
|
1625
|
+
this.s37_1 = $outgoing;
|
|
1626
1626
|
CoroutineImpl.call(this, resultContinuation);
|
|
1627
1627
|
}
|
|
1628
1628
|
protoOf(ponger$slambda).w1p = function ($this$launch, $completion) {
|
|
@@ -1643,12 +1643,12 @@ protoOf(ponger$slambda).r8 = function () {
|
|
|
1643
1643
|
case 0:
|
|
1644
1644
|
this.k8_1 = 14;
|
|
1645
1645
|
this.k8_1 = 13;
|
|
1646
|
-
this.
|
|
1646
|
+
this.x37_1 = this.r37_1;
|
|
1647
1647
|
this.j8_1 = 1;
|
|
1648
1648
|
continue $sm;
|
|
1649
1649
|
case 1:
|
|
1650
|
-
this.
|
|
1651
|
-
this.
|
|
1650
|
+
this.v37_1 = this.x37_1;
|
|
1651
|
+
this.u37_1 = null;
|
|
1652
1652
|
this.j8_1 = 2;
|
|
1653
1653
|
continue $sm;
|
|
1654
1654
|
case 2:
|
|
@@ -1657,12 +1657,12 @@ protoOf(ponger$slambda).r8 = function () {
|
|
|
1657
1657
|
case 3:
|
|
1658
1658
|
this.k8_1 = 10;
|
|
1659
1659
|
this.k8_1 = 9;
|
|
1660
|
-
this.
|
|
1660
|
+
this.w37_1 = this.v37_1.t();
|
|
1661
1661
|
this.j8_1 = 4;
|
|
1662
1662
|
continue $sm;
|
|
1663
1663
|
case 4:
|
|
1664
1664
|
this.j8_1 = 5;
|
|
1665
|
-
suspendResult = this.
|
|
1665
|
+
suspendResult = this.w37_1.d17(this);
|
|
1666
1666
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1667
1667
|
return suspendResult;
|
|
1668
1668
|
}
|
|
@@ -1674,10 +1674,10 @@ protoOf(ponger$slambda).r8 = function () {
|
|
|
1674
1674
|
continue $sm;
|
|
1675
1675
|
}
|
|
1676
1676
|
|
|
1677
|
-
var e = this.
|
|
1678
|
-
get_LOGGER().
|
|
1677
|
+
var e = this.w37_1.v();
|
|
1678
|
+
get_LOGGER().v2i('Received ping message, sending pong message');
|
|
1679
1679
|
this.j8_1 = 6;
|
|
1680
|
-
suspendResult = this.
|
|
1680
|
+
suspendResult = this.s37_1.a19(new Pong(e.y35_1), this);
|
|
1681
1681
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1682
1682
|
return suspendResult;
|
|
1683
1683
|
}
|
|
@@ -1692,7 +1692,7 @@ protoOf(ponger$slambda).r8 = function () {
|
|
|
1692
1692
|
continue $sm;
|
|
1693
1693
|
case 8:
|
|
1694
1694
|
this.k8_1 = 13;
|
|
1695
|
-
cancelConsumed(this.
|
|
1695
|
+
cancelConsumed(this.v37_1, this.u37_1);
|
|
1696
1696
|
this.j8_1 = 12;
|
|
1697
1697
|
continue $sm;
|
|
1698
1698
|
case 9:
|
|
@@ -1701,7 +1701,7 @@ protoOf(ponger$slambda).r8 = function () {
|
|
|
1701
1701
|
if (tmp_1 instanceof Error) {
|
|
1702
1702
|
var e_0 = this.m8_1;
|
|
1703
1703
|
var tmp_2 = this;
|
|
1704
|
-
this.
|
|
1704
|
+
this.u37_1 = e_0;
|
|
1705
1705
|
throw e_0;
|
|
1706
1706
|
} else {
|
|
1707
1707
|
throw this.m8_1;
|
|
@@ -1710,11 +1710,11 @@ protoOf(ponger$slambda).r8 = function () {
|
|
|
1710
1710
|
case 10:
|
|
1711
1711
|
this.k8_1 = 13;
|
|
1712
1712
|
var t = this.m8_1;
|
|
1713
|
-
cancelConsumed(this.
|
|
1713
|
+
cancelConsumed(this.v37_1, this.u37_1);
|
|
1714
1714
|
throw t;
|
|
1715
1715
|
case 11:
|
|
1716
1716
|
this.k8_1 = 13;
|
|
1717
|
-
cancelConsumed(this.
|
|
1717
|
+
cancelConsumed(this.v37_1, this.u37_1);
|
|
1718
1718
|
if (false) {
|
|
1719
1719
|
this.j8_1 = 1;
|
|
1720
1720
|
continue $sm;
|
|
@@ -1755,8 +1755,8 @@ protoOf(ponger$slambda).r8 = function () {
|
|
|
1755
1755
|
while (true);
|
|
1756
1756
|
};
|
|
1757
1757
|
protoOf(ponger$slambda).x1p = function ($this$launch, completion) {
|
|
1758
|
-
var i = new ponger$slambda(this.
|
|
1759
|
-
i.
|
|
1758
|
+
var i = new ponger$slambda(this.r37_1, this.s37_1, completion);
|
|
1759
|
+
i.t37_1 = $this$launch;
|
|
1760
1760
|
return i;
|
|
1761
1761
|
};
|
|
1762
1762
|
function ponger$slambda_0($channel, $outgoing, resultContinuation) {
|
|
@@ -1768,7 +1768,7 @@ function ponger$slambda_0($channel, $outgoing, resultContinuation) {
|
|
|
1768
1768
|
return l;
|
|
1769
1769
|
}
|
|
1770
1770
|
function pinger$slambda$slambda($channel, resultContinuation) {
|
|
1771
|
-
this.
|
|
1771
|
+
this.g38_1 = $channel;
|
|
1772
1772
|
CoroutineImpl.call(this, resultContinuation);
|
|
1773
1773
|
}
|
|
1774
1774
|
protoOf(pinger$slambda$slambda).w1p = function ($this$withTimeoutOrNull, $completion) {
|
|
@@ -1797,7 +1797,7 @@ protoOf(pinger$slambda$slambda).r8 = function () {
|
|
|
1797
1797
|
}
|
|
1798
1798
|
|
|
1799
1799
|
this.j8_1 = 2;
|
|
1800
|
-
suspendResult = this.
|
|
1800
|
+
suspendResult = this.g38_1.e19(this);
|
|
1801
1801
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1802
1802
|
return suspendResult;
|
|
1803
1803
|
}
|
|
@@ -1823,8 +1823,8 @@ protoOf(pinger$slambda$slambda).r8 = function () {
|
|
|
1823
1823
|
while (true);
|
|
1824
1824
|
};
|
|
1825
1825
|
protoOf(pinger$slambda$slambda).x1p = function ($this$withTimeoutOrNull, completion) {
|
|
1826
|
-
var i = new pinger$slambda$slambda(this.
|
|
1827
|
-
i.
|
|
1826
|
+
var i = new pinger$slambda$slambda(this.g38_1, completion);
|
|
1827
|
+
i.h38_1 = $this$withTimeoutOrNull;
|
|
1828
1828
|
return i;
|
|
1829
1829
|
};
|
|
1830
1830
|
function pinger$slambda$slambda_0($channel, resultContinuation) {
|
|
@@ -1836,9 +1836,9 @@ function pinger$slambda$slambda_0($channel, resultContinuation) {
|
|
|
1836
1836
|
return l;
|
|
1837
1837
|
}
|
|
1838
1838
|
function pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1839
|
-
this.
|
|
1840
|
-
this.
|
|
1841
|
-
this.
|
|
1839
|
+
this.q38_1 = $outgoing;
|
|
1840
|
+
this.r38_1 = $pingMessage;
|
|
1841
|
+
this.s38_1 = $channel;
|
|
1842
1842
|
CoroutineImpl.call(this, resultContinuation);
|
|
1843
1843
|
}
|
|
1844
1844
|
protoOf(pinger$slambda$slambda_1).w1p = function ($this$withTimeoutOrNull, $completion) {
|
|
@@ -1858,9 +1858,9 @@ protoOf(pinger$slambda$slambda_1).r8 = function () {
|
|
|
1858
1858
|
switch (tmp) {
|
|
1859
1859
|
case 0:
|
|
1860
1860
|
this.k8_1 = 6;
|
|
1861
|
-
get_LOGGER().
|
|
1861
|
+
get_LOGGER().v2i('WebSocket Pinger: sending ping frame');
|
|
1862
1862
|
this.j8_1 = 1;
|
|
1863
|
-
suspendResult = this.
|
|
1863
|
+
suspendResult = this.q38_1.a19(new Ping(toByteArray(this.r38_1, Charsets_getInstance().x1q_1)), this);
|
|
1864
1864
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1865
1865
|
return suspendResult;
|
|
1866
1866
|
}
|
|
@@ -1876,16 +1876,16 @@ protoOf(pinger$slambda$slambda_1).r8 = function () {
|
|
|
1876
1876
|
}
|
|
1877
1877
|
|
|
1878
1878
|
this.j8_1 = 3;
|
|
1879
|
-
suspendResult = this.
|
|
1879
|
+
suspendResult = this.s38_1.e19(this);
|
|
1880
1880
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1881
1881
|
return suspendResult;
|
|
1882
1882
|
}
|
|
1883
1883
|
|
|
1884
1884
|
continue $sm;
|
|
1885
1885
|
case 3:
|
|
1886
|
-
this.
|
|
1887
|
-
if (decodeToString(this.
|
|
1888
|
-
get_LOGGER().
|
|
1886
|
+
this.u38_1 = suspendResult;
|
|
1887
|
+
if (decodeToString(this.u38_1.y35_1, 0, 0 + this.u38_1.y35_1.length | 0) === this.r38_1) {
|
|
1888
|
+
get_LOGGER().v2i('WebSocket Pinger: received valid pong frame ' + this.u38_1.toString());
|
|
1889
1889
|
this.j8_1 = 5;
|
|
1890
1890
|
continue $sm;
|
|
1891
1891
|
} else {
|
|
@@ -1894,7 +1894,7 @@ protoOf(pinger$slambda$slambda_1).r8 = function () {
|
|
|
1894
1894
|
}
|
|
1895
1895
|
|
|
1896
1896
|
case 4:
|
|
1897
|
-
get_LOGGER().
|
|
1897
|
+
get_LOGGER().v2i('WebSocket Pinger: received invalid pong frame ' + this.u38_1.toString() + ', continue waiting');
|
|
1898
1898
|
this.j8_1 = 2;
|
|
1899
1899
|
continue $sm;
|
|
1900
1900
|
case 5:
|
|
@@ -1914,8 +1914,8 @@ protoOf(pinger$slambda$slambda_1).r8 = function () {
|
|
|
1914
1914
|
while (true);
|
|
1915
1915
|
};
|
|
1916
1916
|
protoOf(pinger$slambda$slambda_1).x1p = function ($this$withTimeoutOrNull, completion) {
|
|
1917
|
-
var i = new pinger$slambda$slambda_1(this.
|
|
1918
|
-
i.
|
|
1917
|
+
var i = new pinger$slambda$slambda_1(this.q38_1, this.r38_1, this.s38_1, completion);
|
|
1918
|
+
i.t38_1 = $this$withTimeoutOrNull;
|
|
1919
1919
|
return i;
|
|
1920
1920
|
};
|
|
1921
1921
|
function pinger$slambda$slambda_2($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
@@ -1927,11 +1927,11 @@ function pinger$slambda$slambda_2($outgoing, $pingMessage, $channel, resultConti
|
|
|
1927
1927
|
return l;
|
|
1928
1928
|
}
|
|
1929
1929
|
function pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
1930
|
-
this.
|
|
1931
|
-
this.
|
|
1932
|
-
this.
|
|
1933
|
-
this.
|
|
1934
|
-
this.
|
|
1930
|
+
this.d39_1 = $periodMillis;
|
|
1931
|
+
this.e39_1 = $timeoutMillis;
|
|
1932
|
+
this.f39_1 = $onTimeout;
|
|
1933
|
+
this.g39_1 = $channel;
|
|
1934
|
+
this.h39_1 = $outgoing;
|
|
1935
1935
|
CoroutineImpl.call(this, resultContinuation);
|
|
1936
1936
|
}
|
|
1937
1937
|
protoOf(pinger$slambda).w1p = function ($this$launch, $completion) {
|
|
@@ -1951,9 +1951,9 @@ protoOf(pinger$slambda).r8 = function () {
|
|
|
1951
1951
|
switch (tmp) {
|
|
1952
1952
|
case 0:
|
|
1953
1953
|
this.k8_1 = 9;
|
|
1954
|
-
get_LOGGER().
|
|
1955
|
-
this.
|
|
1956
|
-
this.
|
|
1954
|
+
get_LOGGER().v2i('Starting WebSocket pinger coroutine with period ' + this.d39_1.toString() + ' ms and timeout ' + this.e39_1.toString() + ' ms');
|
|
1955
|
+
this.k39_1 = Random(getTimeMillis());
|
|
1956
|
+
this.j39_1 = new Int8Array(32);
|
|
1957
1957
|
this.k8_1 = 7;
|
|
1958
1958
|
this.j8_1 = 1;
|
|
1959
1959
|
continue $sm;
|
|
@@ -1964,17 +1964,17 @@ protoOf(pinger$slambda).r8 = function () {
|
|
|
1964
1964
|
}
|
|
1965
1965
|
|
|
1966
1966
|
this.j8_1 = 2;
|
|
1967
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1967
|
+
suspendResult = withTimeoutOrNull(this.d39_1, pinger$slambda$slambda_0(this.g39_1, null), this);
|
|
1968
1968
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1969
1969
|
return suspendResult;
|
|
1970
1970
|
}
|
|
1971
1971
|
|
|
1972
1972
|
continue $sm;
|
|
1973
1973
|
case 2:
|
|
1974
|
-
this.
|
|
1975
|
-
var pingMessage = '[ping ' + hex(this.
|
|
1974
|
+
this.k39_1.hh(this.j39_1);
|
|
1975
|
+
var pingMessage = '[ping ' + hex(this.j39_1) + ' ping]';
|
|
1976
1976
|
this.j8_1 = 3;
|
|
1977
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1977
|
+
suspendResult = withTimeoutOrNull(this.e39_1, pinger$slambda$slambda_2(this.h39_1, pingMessage, this.g39_1, null), this);
|
|
1978
1978
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1979
1979
|
return suspendResult;
|
|
1980
1980
|
}
|
|
@@ -1983,9 +1983,9 @@ protoOf(pinger$slambda).r8 = function () {
|
|
|
1983
1983
|
case 3:
|
|
1984
1984
|
var rc = suspendResult;
|
|
1985
1985
|
if (rc == null) {
|
|
1986
|
-
get_LOGGER().
|
|
1986
|
+
get_LOGGER().v2i('WebSocket pinger has timed out');
|
|
1987
1987
|
this.j8_1 = 5;
|
|
1988
|
-
suspendResult = this.
|
|
1988
|
+
suspendResult = this.f39_1(CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), 'Ping timeout'), this);
|
|
1989
1989
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1990
1990
|
return suspendResult;
|
|
1991
1991
|
}
|
|
@@ -2055,8 +2055,8 @@ protoOf(pinger$slambda).r8 = function () {
|
|
|
2055
2055
|
while (true);
|
|
2056
2056
|
};
|
|
2057
2057
|
protoOf(pinger$slambda).x1p = function ($this$launch, completion) {
|
|
2058
|
-
var i = new pinger$slambda(this.
|
|
2059
|
-
i.
|
|
2058
|
+
var i = new pinger$slambda(this.d39_1, this.e39_1, this.f39_1, this.g39_1, this.h39_1, completion);
|
|
2059
|
+
i.i39_1 = $this$launch;
|
|
2060
2060
|
return i;
|
|
2061
2061
|
};
|
|
2062
2062
|
function pinger$slambda_0($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
@@ -2086,9 +2086,9 @@ function Companion_2() {
|
|
|
2086
2086
|
var tmp = this;
|
|
2087
2087
|
// Inline function 'kotlin.apply' call
|
|
2088
2088
|
var this_0 = new WebSocketChannelsConfig();
|
|
2089
|
-
this_0.
|
|
2090
|
-
this_0.
|
|
2091
|
-
tmp.
|
|
2089
|
+
this_0.j32_1 = this_0.l39();
|
|
2090
|
+
this_0.k32_1 = this_0.l39();
|
|
2091
|
+
tmp.i32_1 = this_0;
|
|
2092
2092
|
}
|
|
2093
2093
|
var Companion_instance_2;
|
|
2094
2094
|
function Companion_getInstance_2() {
|
|
@@ -2098,21 +2098,21 @@ function Companion_getInstance_2() {
|
|
|
2098
2098
|
}
|
|
2099
2099
|
function WebSocketChannelsConfig() {
|
|
2100
2100
|
Companion_getInstance_2();
|
|
2101
|
-
this.
|
|
2102
|
-
this.
|
|
2101
|
+
this.j32_1 = Companion_getInstance_3().m39_1;
|
|
2102
|
+
this.k32_1 = Companion_getInstance_3().m39_1;
|
|
2103
2103
|
}
|
|
2104
|
-
protoOf(WebSocketChannelsConfig).
|
|
2105
|
-
return Companion_getInstance_3().
|
|
2104
|
+
protoOf(WebSocketChannelsConfig).l39 = function () {
|
|
2105
|
+
return Companion_getInstance_3().m39_1;
|
|
2106
2106
|
};
|
|
2107
2107
|
function from(_this__u8e3s4, config) {
|
|
2108
2108
|
// Inline function 'kotlin.with' call
|
|
2109
2109
|
var tmp;
|
|
2110
|
-
if (config.
|
|
2110
|
+
if (config.n39_1 === 2147483647) {
|
|
2111
2111
|
tmp = Channel(2147483647);
|
|
2112
|
-
} else if (config.
|
|
2113
|
-
tmp = Channel(config.
|
|
2114
|
-
} else if (config.
|
|
2115
|
-
tmp = new BoundedChannel(config.
|
|
2112
|
+
} else if (config.o39_1.equals(ChannelOverflow_SUSPEND_getInstance())) {
|
|
2113
|
+
tmp = Channel(config.n39_1, BufferOverflow_SUSPEND_getInstance());
|
|
2114
|
+
} else if (config.o39_1.equals(ChannelOverflow_CLOSE_getInstance())) {
|
|
2115
|
+
tmp = new BoundedChannel(config.n39_1);
|
|
2116
2116
|
} else {
|
|
2117
2117
|
var message = 'Unsupported channel config.';
|
|
2118
2118
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -2121,7 +2121,7 @@ function from(_this__u8e3s4, config) {
|
|
|
2121
2121
|
}
|
|
2122
2122
|
function Companion_3() {
|
|
2123
2123
|
Companion_instance_3 = this;
|
|
2124
|
-
this.
|
|
2124
|
+
this.m39_1 = new ChannelConfig(2147483647, ChannelOverflow_SUSPEND_getInstance());
|
|
2125
2125
|
}
|
|
2126
2126
|
var Companion_instance_3;
|
|
2127
2127
|
function Companion_getInstance_3() {
|
|
@@ -2131,11 +2131,11 @@ function Companion_getInstance_3() {
|
|
|
2131
2131
|
}
|
|
2132
2132
|
function ChannelConfig(capacity, onOverflow) {
|
|
2133
2133
|
Companion_getInstance_3();
|
|
2134
|
-
this.
|
|
2135
|
-
this.
|
|
2134
|
+
this.n39_1 = capacity;
|
|
2135
|
+
this.o39_1 = onOverflow;
|
|
2136
2136
|
}
|
|
2137
|
-
protoOf(ChannelConfig).
|
|
2138
|
-
return this.
|
|
2137
|
+
protoOf(ChannelConfig).p39 = function () {
|
|
2138
|
+
return this.o39_1.equals(ChannelOverflow_SUSPEND_getInstance()) && !(this.n39_1 === 2147483647);
|
|
2139
2139
|
};
|
|
2140
2140
|
var ChannelOverflow_SUSPEND_instance;
|
|
2141
2141
|
var ChannelOverflow_CLOSE_instance;
|
|
@@ -2174,7 +2174,7 @@ function BoundedChannel$Companion$createDelegate$lambda($channel) {
|
|
|
2174
2174
|
}
|
|
2175
2175
|
function Companion_4() {
|
|
2176
2176
|
}
|
|
2177
|
-
protoOf(Companion_4).
|
|
2177
|
+
protoOf(Companion_4).q39 = function (capacity) {
|
|
2178
2178
|
var channel = {_v: null};
|
|
2179
2179
|
var tmp = BufferOverflow_DROP_OLDEST_getInstance();
|
|
2180
2180
|
// Inline function 'kotlin.also' call
|
|
@@ -2187,42 +2187,42 @@ function Companion_getInstance_4() {
|
|
|
2187
2187
|
return Companion_instance_4;
|
|
2188
2188
|
}
|
|
2189
2189
|
function BoundedChannel(capacity, delegate) {
|
|
2190
|
-
delegate = delegate === VOID ? Companion_instance_4.
|
|
2191
|
-
this.
|
|
2190
|
+
delegate = delegate === VOID ? Companion_instance_4.q39(capacity) : delegate;
|
|
2191
|
+
this.r39_1 = delegate;
|
|
2192
2192
|
}
|
|
2193
|
-
protoOf(BoundedChannel).
|
|
2194
|
-
var result = this.
|
|
2193
|
+
protoOf(BoundedChannel).s39 = function (element) {
|
|
2194
|
+
var result = this.r39_1.b19(element);
|
|
2195
2195
|
if (!_ChannelResult___get_isSuccess__impl__odq1z9(result) && !_ChannelResult___get_isClosed__impl__mg7kuu(result)) {
|
|
2196
2196
|
this.g19(new ChannelOverflowException('Channel overflowed'));
|
|
2197
2197
|
}
|
|
2198
2198
|
return result;
|
|
2199
2199
|
};
|
|
2200
2200
|
protoOf(BoundedChannel).b19 = function (element) {
|
|
2201
|
-
return this.
|
|
2201
|
+
return this.s39((element == null ? true : !(element == null)) ? element : THROW_CCE());
|
|
2202
2202
|
};
|
|
2203
|
-
protoOf(BoundedChannel).
|
|
2204
|
-
return this.
|
|
2203
|
+
protoOf(BoundedChannel).t39 = function (element, $completion) {
|
|
2204
|
+
return this.r39_1.a19(element, $completion);
|
|
2205
2205
|
};
|
|
2206
2206
|
protoOf(BoundedChannel).a19 = function (element, $completion) {
|
|
2207
|
-
return this.
|
|
2207
|
+
return this.t39((element == null ? true : !(element == null)) ? element : THROW_CCE(), $completion);
|
|
2208
2208
|
};
|
|
2209
2209
|
protoOf(BoundedChannel).g19 = function (cause) {
|
|
2210
|
-
return this.
|
|
2210
|
+
return this.r39_1.g19(cause);
|
|
2211
2211
|
};
|
|
2212
2212
|
protoOf(BoundedChannel).f17 = function () {
|
|
2213
|
-
return this.
|
|
2213
|
+
return this.r39_1.f17();
|
|
2214
2214
|
};
|
|
2215
|
-
protoOf(BoundedChannel).
|
|
2216
|
-
return this.
|
|
2215
|
+
protoOf(BoundedChannel).u39 = function ($completion) {
|
|
2216
|
+
return this.r39_1.e19($completion);
|
|
2217
2217
|
};
|
|
2218
2218
|
protoOf(BoundedChannel).e19 = function ($completion) {
|
|
2219
|
-
return this.
|
|
2219
|
+
return this.u39($completion);
|
|
2220
2220
|
};
|
|
2221
2221
|
protoOf(BoundedChannel).t = function () {
|
|
2222
|
-
return this.
|
|
2222
|
+
return this.r39_1.t();
|
|
2223
2223
|
};
|
|
2224
2224
|
protoOf(BoundedChannel).lt = function (cause) {
|
|
2225
|
-
this.
|
|
2225
|
+
this.r39_1.lt(cause);
|
|
2226
2226
|
};
|
|
2227
2227
|
function ChannelOverflowException(message) {
|
|
2228
2228
|
RuntimeException_init_$Init$(message, this);
|
|
@@ -2241,16 +2241,16 @@ function WebSocketExtension() {
|
|
|
2241
2241
|
function WebSocketExtensionsConfig() {
|
|
2242
2242
|
var tmp = this;
|
|
2243
2243
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2244
|
-
tmp.
|
|
2244
|
+
tmp.x39_1 = ArrayList_init_$Create$();
|
|
2245
2245
|
var tmp_0 = this;
|
|
2246
2246
|
// Inline function 'kotlin.arrayOf' call
|
|
2247
2247
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2248
2248
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2249
|
-
tmp_0.
|
|
2249
|
+
tmp_0.y39_1 = [false, false, false];
|
|
2250
2250
|
}
|
|
2251
|
-
protoOf(WebSocketExtensionsConfig).
|
|
2251
|
+
protoOf(WebSocketExtensionsConfig).m2l = function () {
|
|
2252
2252
|
// Inline function 'kotlin.collections.map' call
|
|
2253
|
-
var this_0 = this.
|
|
2253
|
+
var this_0 = this.x39_1;
|
|
2254
2254
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2255
2255
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2256
2256
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2262,14 +2262,14 @@ protoOf(WebSocketExtensionsConfig).i2l = function () {
|
|
|
2262
2262
|
return destination;
|
|
2263
2263
|
};
|
|
2264
2264
|
function parametersToString($this) {
|
|
2265
|
-
return $this.
|
|
2265
|
+
return $this.a3a_1.r() ? '' : '; ' + joinToString($this.a3a_1, ';');
|
|
2266
2266
|
}
|
|
2267
2267
|
function WebSocketExtensionHeader(name, parameters) {
|
|
2268
|
-
this.
|
|
2269
|
-
this.
|
|
2268
|
+
this.z39_1 = name;
|
|
2269
|
+
this.a3a_1 = parameters;
|
|
2270
2270
|
}
|
|
2271
2271
|
protoOf(WebSocketExtensionHeader).toString = function () {
|
|
2272
|
-
return this.
|
|
2272
|
+
return this.z39_1 + ' ' + parametersToString(this);
|
|
2273
2273
|
};
|
|
2274
2274
|
function parseWebSocketExtensions(value) {
|
|
2275
2275
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2321,8 +2321,8 @@ function closeExceptionally(_this__u8e3s4, cause, $completion) {
|
|
|
2321
2321
|
}
|
|
2322
2322
|
function $closeCOROUTINE$(_this__u8e3s4, reason, resultContinuation) {
|
|
2323
2323
|
CoroutineImpl.call(this, resultContinuation);
|
|
2324
|
-
this.
|
|
2325
|
-
this.
|
|
2324
|
+
this.j3a_1 = _this__u8e3s4;
|
|
2325
|
+
this.k3a_1 = reason;
|
|
2326
2326
|
}
|
|
2327
2327
|
protoOf($closeCOROUTINE$).r8 = function () {
|
|
2328
2328
|
var suspendResult = this.l8_1;
|
|
@@ -2334,7 +2334,7 @@ protoOf($closeCOROUTINE$).r8 = function () {
|
|
|
2334
2334
|
this.k8_1 = 4;
|
|
2335
2335
|
this.k8_1 = 3;
|
|
2336
2336
|
this.j8_1 = 1;
|
|
2337
|
-
suspendResult = this.
|
|
2337
|
+
suspendResult = this.j3a_1.h32(Close_init_$Create$(this.k3a_1), this);
|
|
2338
2338
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2339
2339
|
return suspendResult;
|
|
2340
2340
|
}
|
|
@@ -2342,7 +2342,7 @@ protoOf($closeCOROUTINE$).r8 = function () {
|
|
|
2342
2342
|
continue $sm;
|
|
2343
2343
|
case 1:
|
|
2344
2344
|
this.j8_1 = 2;
|
|
2345
|
-
suspendResult = this.
|
|
2345
|
+
suspendResult = this.j3a_1.q1g(this);
|
|
2346
2346
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2347
2347
|
return suspendResult;
|
|
2348
2348
|
}
|
|
@@ -2401,8 +2401,8 @@ function Text_init_$Create$(text) {
|
|
|
2401
2401
|
function Close_init_$Init$(reason, $this) {
|
|
2402
2402
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
2403
2403
|
var builder = new Buffer();
|
|
2404
|
-
builder.mq(reason.
|
|
2405
|
-
writeText(builder, reason.
|
|
2404
|
+
builder.mq(reason.z31_1);
|
|
2405
|
+
writeText(builder, reason.a32_1);
|
|
2406
2406
|
Close_init_$Init$_0(builder, $this);
|
|
2407
2407
|
return $this;
|
|
2408
2408
|
}
|
|
@@ -2414,7 +2414,7 @@ function Close_init_$Init$_0(packet, $this) {
|
|
|
2414
2414
|
return $this;
|
|
2415
2415
|
}
|
|
2416
2416
|
function Close_init_$Init$_1($this) {
|
|
2417
|
-
Close.call($this, Companion_getInstance_5().
|
|
2417
|
+
Close.call($this, Companion_getInstance_5().d36_1);
|
|
2418
2418
|
return $this;
|
|
2419
2419
|
}
|
|
2420
2420
|
function Close_init_$Create$_0() {
|
|
@@ -2444,9 +2444,9 @@ function Pong(data, disposableHandle) {
|
|
|
2444
2444
|
}
|
|
2445
2445
|
function Companion_5() {
|
|
2446
2446
|
Companion_instance_5 = this;
|
|
2447
|
-
this.
|
|
2447
|
+
this.d36_1 = new Int8Array(0);
|
|
2448
2448
|
}
|
|
2449
|
-
protoOf(Companion_5).
|
|
2449
|
+
protoOf(Companion_5).e36 = function (fin, frameType, data, rsv1, rsv2, rsv3) {
|
|
2450
2450
|
var tmp;
|
|
2451
2451
|
switch (frameType.a1_1) {
|
|
2452
2452
|
case 1:
|
|
@@ -2482,23 +2482,23 @@ function Frame(fin, frameType, data, disposableHandle, rsv1, rsv2, rsv3) {
|
|
|
2482
2482
|
rsv1 = rsv1 === VOID ? false : rsv1;
|
|
2483
2483
|
rsv2 = rsv2 === VOID ? false : rsv2;
|
|
2484
2484
|
rsv3 = rsv3 === VOID ? false : rsv3;
|
|
2485
|
-
this.
|
|
2486
|
-
this.
|
|
2487
|
-
this.
|
|
2488
|
-
this.
|
|
2489
|
-
this.
|
|
2490
|
-
this.
|
|
2491
|
-
this.
|
|
2485
|
+
this.w35_1 = fin;
|
|
2486
|
+
this.x35_1 = frameType;
|
|
2487
|
+
this.y35_1 = data;
|
|
2488
|
+
this.z35_1 = disposableHandle;
|
|
2489
|
+
this.a36_1 = rsv1;
|
|
2490
|
+
this.b36_1 = rsv2;
|
|
2491
|
+
this.c36_1 = rsv3;
|
|
2492
2492
|
}
|
|
2493
2493
|
protoOf(Frame).toString = function () {
|
|
2494
|
-
return 'Frame ' + this.
|
|
2494
|
+
return 'Frame ' + this.x35_1.toString() + ' (fin=' + this.w35_1 + ', buffer len = ' + this.y35_1.length + ')';
|
|
2495
2495
|
};
|
|
2496
2496
|
function get_OUTGOING_CHANNEL_CAPACITY() {
|
|
2497
2497
|
return OUTGOING_CHANNEL_CAPACITY;
|
|
2498
2498
|
}
|
|
2499
2499
|
var OUTGOING_CHANNEL_CAPACITY;
|
|
2500
2500
|
//region block: post-declaration
|
|
2501
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
2501
|
+
protoOf(DefaultWebSocketSessionImpl).h32 = send;
|
|
2502
2502
|
defineProp(protoOf(FrameTooBigException), 'message', function () {
|
|
2503
2503
|
return this.e();
|
|
2504
2504
|
});
|