@dmarket/p2p-tracker-core 1.3.1-SNAPSHOT-development.231 → 1.3.1-SNAPSHOT-development.244
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/VERSION +5 -5
- package/dmarket-p2p-tracker-core-domain.mjs +1240 -1205
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +58 -58
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +8 -8
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +30 -30
- package/kotlinx-io-kotlinx-io-core.mjs +451 -451
- package/ktor-ktor-client-core.mjs +1861 -1861
- package/ktor-ktor-events.mjs +5 -5
- package/ktor-ktor-http-cio.mjs +313 -313
- package/ktor-ktor-http.mjs +786 -786
- package/ktor-ktor-io.mjs +603 -603
- package/ktor-ktor-utils.mjs +655 -655
- package/ktor-ktor-websockets.mjs +367 -367
- package/p2p-tracker-core.mjs +8505 -7763
- package/p2p-tracker-core.mjs.map +1 -1
- package/package.json +1 -1
package/ktor-ktor-websockets.mjs
CHANGED
|
@@ -81,8 +81,8 @@ import {
|
|
|
81
81
|
_ChannelResult___get_isClosed__impl__mg7kuu3a26on4apn4j4 as _ChannelResult___get_isClosed__impl__mg7kuu,
|
|
82
82
|
close$defaultlxi0kykibhye as close$default,
|
|
83
83
|
cancel$default2imfx8rp1ubvu as cancel$default,
|
|
84
|
-
ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
|
|
85
84
|
SendChannel38sllbxw662ws as SendChannel,
|
|
85
|
+
ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
|
|
86
86
|
} from './kotlinx-coroutines-core.mjs';
|
|
87
87
|
import {
|
|
88
88
|
get_isTraceEnabled82xibuu04nxp as get_isTraceEnabled,
|
|
@@ -119,7 +119,7 @@ initMetadataForClass(Codes, 'Codes', VOID, Enum);
|
|
|
119
119
|
initMetadataForCompanion(Companion_0);
|
|
120
120
|
initMetadataForClass(CloseReason, 'CloseReason');
|
|
121
121
|
function send(frame, $completion) {
|
|
122
|
-
return this.
|
|
122
|
+
return this.a4v().v28(frame, $completion);
|
|
123
123
|
}
|
|
124
124
|
initMetadataForInterface(WebSocketSession, 'WebSocketSession', VOID, VOID, [CoroutineScope], [1, 0]);
|
|
125
125
|
initMetadataForInterface(DefaultWebSocketSession, 'DefaultWebSocketSession', VOID, VOID, [WebSocketSession], [1, 0]);
|
|
@@ -146,7 +146,7 @@ initMetadataForCompanion(Companion_4);
|
|
|
146
146
|
initMetadataForClass(ChannelConfig, 'ChannelConfig');
|
|
147
147
|
initMetadataForClass(ChannelOverflow, 'ChannelOverflow', VOID, Enum);
|
|
148
148
|
initMetadataForCompanion(Companion_5);
|
|
149
|
-
initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [
|
|
149
|
+
initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [SendChannel, ReceiveChannel], [1, 0]);
|
|
150
150
|
initMetadataForClass(ChannelOverflowException, 'ChannelOverflowException', VOID, RuntimeException);
|
|
151
151
|
initMetadataForInterface(WebSocketExtension, 'WebSocketExtension');
|
|
152
152
|
initMetadataForClass(WebSocketExtensionsConfig, 'WebSocketExtensionsConfig', WebSocketExtensionsConfig);
|
|
@@ -183,14 +183,14 @@ function Companion() {
|
|
|
183
183
|
var _iterator__ex2g4s = this_0.t();
|
|
184
184
|
while (_iterator__ex2g4s.u()) {
|
|
185
185
|
var element = _iterator__ex2g4s.v();
|
|
186
|
-
var tmp$ret$2 = element.
|
|
186
|
+
var tmp$ret$2 = element.e4u_1;
|
|
187
187
|
destination.g3(tmp$ret$2, element);
|
|
188
188
|
}
|
|
189
|
-
tmp.
|
|
190
|
-
this.
|
|
189
|
+
tmp.f4u_1 = destination;
|
|
190
|
+
this.g4u_1 = Codes_INTERNAL_ERROR_getInstance();
|
|
191
191
|
}
|
|
192
|
-
protoOf(Companion).
|
|
193
|
-
return this.
|
|
192
|
+
protoOf(Companion).h4u = function (code) {
|
|
193
|
+
return this.f4u_1.x2(code);
|
|
194
194
|
};
|
|
195
195
|
var Companion_instance;
|
|
196
196
|
function Companion_getInstance() {
|
|
@@ -228,7 +228,7 @@ function Codes_initEntries() {
|
|
|
228
228
|
}
|
|
229
229
|
var $ENTRIES;
|
|
230
230
|
function CloseReason_init_$Init$(code, message, $this) {
|
|
231
|
-
CloseReason.call($this, code.
|
|
231
|
+
CloseReason.call($this, code.e4u_1, message);
|
|
232
232
|
return $this;
|
|
233
233
|
}
|
|
234
234
|
function CloseReason_init_$Create$(code, message) {
|
|
@@ -236,7 +236,7 @@ function CloseReason_init_$Create$(code, message) {
|
|
|
236
236
|
}
|
|
237
237
|
function Codes(name, ordinal, code) {
|
|
238
238
|
Enum.call(this, name, ordinal);
|
|
239
|
-
this.
|
|
239
|
+
this.e4u_1 = code;
|
|
240
240
|
}
|
|
241
241
|
function Companion_0() {
|
|
242
242
|
}
|
|
@@ -293,25 +293,25 @@ function Codes_TRY_AGAIN_LATER_getInstance() {
|
|
|
293
293
|
return Codes_TRY_AGAIN_LATER_instance;
|
|
294
294
|
}
|
|
295
295
|
function CloseReason(code, message) {
|
|
296
|
-
this.
|
|
297
|
-
this.
|
|
298
|
-
var size = utf8Size(this.
|
|
296
|
+
this.i4u_1 = code;
|
|
297
|
+
this.j4u_1 = message;
|
|
298
|
+
var size = utf8Size(this.j4u_1);
|
|
299
299
|
// Inline function 'kotlin.require' call
|
|
300
300
|
if (!(size <= 123)) {
|
|
301
301
|
var message_0 = 'Close reason message is too long: ' + size + ' bytes, but must not exceed ' + '123 bytes when UTF-8-encoded';
|
|
302
302
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
-
protoOf(CloseReason).
|
|
306
|
-
return Companion_getInstance().
|
|
305
|
+
protoOf(CloseReason).k4u = function () {
|
|
306
|
+
return Companion_getInstance().h4u(this.i4u_1);
|
|
307
307
|
};
|
|
308
308
|
protoOf(CloseReason).toString = function () {
|
|
309
|
-
var tmp0_elvis_lhs = this.
|
|
310
|
-
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.
|
|
309
|
+
var tmp0_elvis_lhs = this.k4u();
|
|
310
|
+
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.i4u_1 : tmp0_elvis_lhs) + ', message=' + this.j4u_1 + ')';
|
|
311
311
|
};
|
|
312
312
|
protoOf(CloseReason).hashCode = function () {
|
|
313
|
-
var result = this.
|
|
314
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
313
|
+
var result = this.i4u_1;
|
|
314
|
+
result = imul(result, 31) + getStringHashCode(this.j4u_1) | 0;
|
|
315
315
|
return result;
|
|
316
316
|
};
|
|
317
317
|
protoOf(CloseReason).equals = function (other) {
|
|
@@ -319,9 +319,9 @@ protoOf(CloseReason).equals = function (other) {
|
|
|
319
319
|
return true;
|
|
320
320
|
if (!(other instanceof CloseReason))
|
|
321
321
|
return false;
|
|
322
|
-
if (!(this.
|
|
322
|
+
if (!(this.i4u_1 === other.i4u_1))
|
|
323
323
|
return false;
|
|
324
|
-
if (!(this.
|
|
324
|
+
if (!(this.j4u_1 === other.j4u_1))
|
|
325
325
|
return false;
|
|
326
326
|
return true;
|
|
327
327
|
};
|
|
@@ -355,8 +355,8 @@ function utf8ByteCountAt(_this__u8e3s4, index) {
|
|
|
355
355
|
}
|
|
356
356
|
function validateSize(_this__u8e3s4) {
|
|
357
357
|
// Inline function 'kotlin.require' call
|
|
358
|
-
if (!(!_this__u8e3s4.
|
|
359
|
-
var message = 'Control frames must not exceed 125 bytes per RFC 6455, ' + ('but ' + _this__u8e3s4.
|
|
358
|
+
if (!(!_this__u8e3s4.q4u_1.n4u_1 || _this__u8e3s4.r4u_1.length <= 125)) {
|
|
359
|
+
var message = 'Control frames must not exceed 125 bytes per RFC 6455, ' + ('but ' + _this__u8e3s4.q4u_1.toString() + ' frame has ' + _this__u8e3s4.r4u_1.length + ' bytes');
|
|
360
360
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
361
361
|
}
|
|
362
362
|
}
|
|
@@ -386,14 +386,14 @@ function DefaultWebSocketSession() {
|
|
|
386
386
|
function DefaultWebSocketSession_0(session, pingIntervalMillis, timeoutMillis, channelsConfig) {
|
|
387
387
|
pingIntervalMillis = pingIntervalMillis === VOID ? new Long(0, 0) : pingIntervalMillis;
|
|
388
388
|
timeoutMillis = timeoutMillis === VOID ? new Long(15000, 0) : timeoutMillis;
|
|
389
|
-
channelsConfig = channelsConfig === VOID ? Companion_getInstance_3().
|
|
389
|
+
channelsConfig = channelsConfig === VOID ? Companion_getInstance_3().c4v_1 : channelsConfig;
|
|
390
390
|
_init_properties_DefaultWebSocketSession_kt__469s0y();
|
|
391
391
|
// Inline function 'kotlin.require' call
|
|
392
392
|
if (!!isInterface(session, DefaultWebSocketSession)) {
|
|
393
393
|
var message = 'Cannot wrap other DefaultWebSocketSession';
|
|
394
394
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
395
395
|
}
|
|
396
|
-
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.
|
|
396
|
+
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.d4v_1, channelsConfig.e4v_1);
|
|
397
397
|
}
|
|
398
398
|
function runIncomingProcessor($this, ponger) {
|
|
399
399
|
var tmp = get_IncomingProcessorCoroutineName().hk(Dispatchers_getInstance().q22_1);
|
|
@@ -418,32 +418,32 @@ function sendCloseSequence($this, reason, exception, $completion) {
|
|
|
418
418
|
return tmp.j9();
|
|
419
419
|
}
|
|
420
420
|
function tryClose($this) {
|
|
421
|
-
return $this.
|
|
421
|
+
return $this.j4w_1.atomicfu$compareAndSet(false, true);
|
|
422
422
|
}
|
|
423
423
|
function runOrCancelPinger($this) {
|
|
424
|
-
var interval = $this.
|
|
424
|
+
var interval = $this.m4w_1;
|
|
425
425
|
var tmp;
|
|
426
|
-
if ($this.
|
|
426
|
+
if ($this.j4w_1.kotlinx$atomicfu$value) {
|
|
427
427
|
tmp = null;
|
|
428
428
|
} else if (compare(interval, new Long(0, 0)) > 0) {
|
|
429
|
-
var tmp_0 = $this.
|
|
430
|
-
var tmp_1 = $this.
|
|
429
|
+
var tmp_0 = $this.c4w_1.a4v();
|
|
430
|
+
var tmp_1 = $this.n4w_1;
|
|
431
431
|
tmp = pinger($this, tmp_0, interval, tmp_1, DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0($this, null));
|
|
432
432
|
} else {
|
|
433
433
|
tmp = null;
|
|
434
434
|
}
|
|
435
435
|
var newPinger = tmp;
|
|
436
|
-
var tmp0_safe_receiver = $this.
|
|
436
|
+
var tmp0_safe_receiver = $this.d4w_1.atomicfu$getAndSet(newPinger);
|
|
437
437
|
if (tmp0_safe_receiver == null)
|
|
438
438
|
null;
|
|
439
439
|
else
|
|
440
440
|
tmp0_safe_receiver.c29();
|
|
441
|
-
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.w28(Companion_getInstance_1().
|
|
441
|
+
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.w28(Companion_getInstance_1().p4w_1));
|
|
442
442
|
if (tmp2_safe_receiver == null)
|
|
443
443
|
null;
|
|
444
444
|
else
|
|
445
445
|
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.g27_1);
|
|
446
|
-
if ($this.
|
|
446
|
+
if ($this.j4w_1.kotlinx$atomicfu$value && !(newPinger == null)) {
|
|
447
447
|
runOrCancelPinger($this);
|
|
448
448
|
}
|
|
449
449
|
}
|
|
@@ -456,28 +456,28 @@ function checkMaxFrameSize($this, packet, frame, $completion) {
|
|
|
456
456
|
function processIncomingExtensions($this, frame) {
|
|
457
457
|
// Inline function 'kotlin.collections.fold' call
|
|
458
458
|
var accumulator = frame;
|
|
459
|
-
var _iterator__ex2g4s = $this.
|
|
459
|
+
var _iterator__ex2g4s = $this.c4x().t();
|
|
460
460
|
while (_iterator__ex2g4s.u()) {
|
|
461
461
|
var element = _iterator__ex2g4s.v();
|
|
462
462
|
var current = accumulator;
|
|
463
|
-
accumulator = element.
|
|
463
|
+
accumulator = element.d4x(current);
|
|
464
464
|
}
|
|
465
465
|
return accumulator;
|
|
466
466
|
}
|
|
467
467
|
function processOutgoingExtensions($this, frame) {
|
|
468
468
|
// Inline function 'kotlin.collections.fold' call
|
|
469
469
|
var accumulator = frame;
|
|
470
|
-
var _iterator__ex2g4s = $this.
|
|
470
|
+
var _iterator__ex2g4s = $this.c4x().t();
|
|
471
471
|
while (_iterator__ex2g4s.u()) {
|
|
472
472
|
var element = _iterator__ex2g4s.v();
|
|
473
473
|
var current = accumulator;
|
|
474
|
-
accumulator = element.
|
|
474
|
+
accumulator = element.e4x(current);
|
|
475
475
|
}
|
|
476
476
|
return accumulator;
|
|
477
477
|
}
|
|
478
478
|
function Companion_1() {
|
|
479
479
|
Companion_instance_1 = this;
|
|
480
|
-
this.
|
|
480
|
+
this.p4w_1 = new Pong(new Int8Array(0), NonDisposableHandle_instance);
|
|
481
481
|
}
|
|
482
482
|
var Companion_instance_1;
|
|
483
483
|
function Companion_getInstance_1() {
|
|
@@ -486,19 +486,19 @@ function Companion_getInstance_1() {
|
|
|
486
486
|
return Companion_instance_1;
|
|
487
487
|
}
|
|
488
488
|
function DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
489
|
-
this.
|
|
490
|
-
this.
|
|
491
|
-
this.
|
|
489
|
+
this.n4x_1 = $incomingJob;
|
|
490
|
+
this.o4x_1 = $outgoingJob;
|
|
491
|
+
this.p4x_1 = this$0;
|
|
492
492
|
CoroutineImpl.call(this, resultContinuation);
|
|
493
493
|
}
|
|
494
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
495
|
-
var tmp = this.
|
|
494
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).a46 = function ($this$launch, $completion) {
|
|
495
|
+
var tmp = this.b46($this$launch, $completion);
|
|
496
496
|
tmp.d9_1 = Unit_instance;
|
|
497
497
|
tmp.e9_1 = null;
|
|
498
498
|
return tmp.j9();
|
|
499
499
|
};
|
|
500
500
|
protoOf(DefaultWebSocketSessionImpl$start$slambda).w9 = function (p1, $completion) {
|
|
501
|
-
return this.
|
|
501
|
+
return this.a46((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
502
502
|
};
|
|
503
503
|
protoOf(DefaultWebSocketSessionImpl$start$slambda).j9 = function () {
|
|
504
504
|
var suspendResult = this.d9_1;
|
|
@@ -509,7 +509,7 @@ protoOf(DefaultWebSocketSessionImpl$start$slambda).j9 = function () {
|
|
|
509
509
|
case 0:
|
|
510
510
|
this.c9_1 = 3;
|
|
511
511
|
this.b9_1 = 1;
|
|
512
|
-
suspendResult = this.
|
|
512
|
+
suspendResult = this.n4x_1.q1r(this);
|
|
513
513
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
514
514
|
return suspendResult;
|
|
515
515
|
}
|
|
@@ -517,14 +517,14 @@ protoOf(DefaultWebSocketSessionImpl$start$slambda).j9 = function () {
|
|
|
517
517
|
continue $sm;
|
|
518
518
|
case 1:
|
|
519
519
|
this.b9_1 = 2;
|
|
520
|
-
suspendResult = this.
|
|
520
|
+
suspendResult = this.o4x_1.q1r(this);
|
|
521
521
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
522
522
|
return suspendResult;
|
|
523
523
|
}
|
|
524
524
|
|
|
525
525
|
continue $sm;
|
|
526
526
|
case 2:
|
|
527
|
-
this.
|
|
527
|
+
this.p4x_1.f4w_1.u1r();
|
|
528
528
|
return Unit_instance;
|
|
529
529
|
case 3:
|
|
530
530
|
throw this.e9_1;
|
|
@@ -540,30 +540,30 @@ protoOf(DefaultWebSocketSessionImpl$start$slambda).j9 = function () {
|
|
|
540
540
|
}
|
|
541
541
|
while (true);
|
|
542
542
|
};
|
|
543
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
544
|
-
var i = new DefaultWebSocketSessionImpl$start$slambda(this.
|
|
545
|
-
i.
|
|
543
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).b46 = function ($this$launch, completion) {
|
|
544
|
+
var i = new DefaultWebSocketSessionImpl$start$slambda(this.n4x_1, this.o4x_1, this.p4x_1, completion);
|
|
545
|
+
i.q4x_1 = $this$launch;
|
|
546
546
|
return i;
|
|
547
547
|
};
|
|
548
548
|
function DefaultWebSocketSessionImpl$start$slambda_0($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
549
549
|
var i = new DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation);
|
|
550
550
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
551
|
-
return i.
|
|
551
|
+
return i.a46($this$launch, $completion);
|
|
552
552
|
}, 1);
|
|
553
553
|
}
|
|
554
554
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation) {
|
|
555
|
-
this.
|
|
556
|
-
this.
|
|
555
|
+
this.z4x_1 = this$0;
|
|
556
|
+
this.a4y_1 = $ponger;
|
|
557
557
|
CoroutineImpl.call(this, resultContinuation);
|
|
558
558
|
}
|
|
559
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
560
|
-
var tmp = this.
|
|
559
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).a46 = function ($this$launch, $completion) {
|
|
560
|
+
var tmp = this.b46($this$launch, $completion);
|
|
561
561
|
tmp.d9_1 = Unit_instance;
|
|
562
562
|
tmp.e9_1 = null;
|
|
563
563
|
return tmp.j9();
|
|
564
564
|
};
|
|
565
565
|
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).w9 = function (p1, $completion) {
|
|
566
|
-
return this.
|
|
566
|
+
return this.a46((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
567
567
|
};
|
|
568
568
|
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j9 = function () {
|
|
569
569
|
var suspendResult = this.d9_1;
|
|
@@ -573,10 +573,10 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j9 = function
|
|
|
573
573
|
switch (tmp) {
|
|
574
574
|
case 0:
|
|
575
575
|
this.c9_1 = 39;
|
|
576
|
-
this.
|
|
577
|
-
this.
|
|
578
|
-
this.
|
|
579
|
-
this.
|
|
576
|
+
this.l4y_1 = null;
|
|
577
|
+
this.e4y_1 = null;
|
|
578
|
+
this.d4y_1 = false;
|
|
579
|
+
this.f4y_1 = Unit_instance;
|
|
580
580
|
this.b9_1 = 1;
|
|
581
581
|
continue $sm;
|
|
582
582
|
case 1:
|
|
@@ -585,12 +585,12 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j9 = function
|
|
|
585
585
|
case 2:
|
|
586
586
|
this.c9_1 = 33;
|
|
587
587
|
this.c9_1 = 32;
|
|
588
|
-
this.
|
|
588
|
+
this.p4y_1 = this.z4x_1.c4w_1.z4u();
|
|
589
589
|
this.b9_1 = 3;
|
|
590
590
|
continue $sm;
|
|
591
591
|
case 3:
|
|
592
|
-
this.
|
|
593
|
-
this.
|
|
592
|
+
this.i4y_1 = this.p4y_1;
|
|
593
|
+
this.h4y_1 = null;
|
|
594
594
|
this.b9_1 = 4;
|
|
595
595
|
continue $sm;
|
|
596
596
|
case 4:
|
|
@@ -602,12 +602,12 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j9 = function
|
|
|
602
602
|
case 6:
|
|
603
603
|
this.c9_1 = 29;
|
|
604
604
|
this.c9_1 = 28;
|
|
605
|
-
this.
|
|
605
|
+
this.o4y_1 = this.i4y_1.t();
|
|
606
606
|
this.b9_1 = 7;
|
|
607
607
|
continue $sm;
|
|
608
608
|
case 7:
|
|
609
609
|
this.b9_1 = 8;
|
|
610
|
-
suspendResult = this.
|
|
610
|
+
suspendResult = this.o4y_1.y26(this);
|
|
611
611
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
612
612
|
return suspendResult;
|
|
613
613
|
}
|
|
@@ -619,23 +619,23 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j9 = function
|
|
|
619
619
|
continue $sm;
|
|
620
620
|
}
|
|
621
621
|
|
|
622
|
-
var e = this.
|
|
623
|
-
this.
|
|
622
|
+
var e = this.o4y_1.v();
|
|
623
|
+
this.n4y_1 = e;
|
|
624
624
|
this.b9_1 = 9;
|
|
625
625
|
continue $sm;
|
|
626
626
|
case 9:
|
|
627
|
-
this.
|
|
627
|
+
this.m4y_1 = this.n4y_1;
|
|
628
628
|
var this_0 = get_LOGGER();
|
|
629
629
|
if (get_isTraceEnabled(this_0)) {
|
|
630
|
-
this_0.
|
|
630
|
+
this_0.l4f('WebSocketSession(' + toString(this.b4y_1) + ') receiving frame ' + this.m4y_1.toString());
|
|
631
631
|
}
|
|
632
632
|
|
|
633
|
-
var tmp0_subject = this.
|
|
633
|
+
var tmp0_subject = this.m4y_1;
|
|
634
634
|
if (tmp0_subject instanceof Close) {
|
|
635
|
-
if (!this.
|
|
635
|
+
if (!this.z4x_1.a4v().a27()) {
|
|
636
636
|
this.b9_1 = 18;
|
|
637
|
-
var tmp_0 = this.
|
|
638
|
-
var tmp1_elvis_lhs = readReason(this.
|
|
637
|
+
var tmp_0 = this.z4x_1.a4v();
|
|
638
|
+
var tmp1_elvis_lhs = readReason(this.m4y_1);
|
|
639
639
|
suspendResult = tmp_0.v28(Close_init_$Create$(tmp1_elvis_lhs == null ? get_NORMAL_CLOSE() : tmp1_elvis_lhs), this);
|
|
640
640
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
641
641
|
return suspendResult;
|
|
@@ -647,14 +647,14 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j9 = function
|
|
|
647
647
|
}
|
|
648
648
|
} else {
|
|
649
649
|
if (tmp0_subject instanceof Pong) {
|
|
650
|
-
var tmp2_safe_receiver = this.
|
|
650
|
+
var tmp2_safe_receiver = this.z4x_1.d4w_1.kotlinx$atomicfu$value;
|
|
651
651
|
if (tmp2_safe_receiver == null) {
|
|
652
|
-
this.
|
|
652
|
+
this.k4y_1 = null;
|
|
653
653
|
this.b9_1 = 17;
|
|
654
654
|
continue $sm;
|
|
655
655
|
} else {
|
|
656
656
|
this.b9_1 = 16;
|
|
657
|
-
suspendResult = tmp2_safe_receiver.v28(this.
|
|
657
|
+
suspendResult = tmp2_safe_receiver.v28(this.m4y_1, this);
|
|
658
658
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
659
659
|
return suspendResult;
|
|
660
660
|
}
|
|
@@ -663,14 +663,14 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j9 = function
|
|
|
663
663
|
} else {
|
|
664
664
|
if (tmp0_subject instanceof Ping) {
|
|
665
665
|
this.b9_1 = 15;
|
|
666
|
-
suspendResult = this.
|
|
666
|
+
suspendResult = this.a4y_1.v28(this.m4y_1, this);
|
|
667
667
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
668
668
|
return suspendResult;
|
|
669
669
|
}
|
|
670
670
|
continue $sm;
|
|
671
671
|
} else {
|
|
672
672
|
this.b9_1 = 10;
|
|
673
|
-
suspendResult = checkMaxFrameSize(this.
|
|
673
|
+
suspendResult = checkMaxFrameSize(this.z4x_1, this.e4y_1, this.m4y_1, this);
|
|
674
674
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
675
675
|
return suspendResult;
|
|
676
676
|
}
|
|
@@ -680,14 +680,14 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j9 = function
|
|
|
680
680
|
}
|
|
681
681
|
|
|
682
682
|
case 10:
|
|
683
|
-
if (!this.
|
|
684
|
-
if (this.
|
|
685
|
-
this.
|
|
683
|
+
if (!this.m4y_1.p4u_1) {
|
|
684
|
+
if (this.l4y_1 == null) {
|
|
685
|
+
this.l4y_1 = this.m4y_1;
|
|
686
686
|
}
|
|
687
|
-
if (this.
|
|
688
|
-
this.
|
|
687
|
+
if (this.e4y_1 == null) {
|
|
688
|
+
this.e4y_1 = BytePacketBuilder();
|
|
689
689
|
}
|
|
690
|
-
writeFully(this.
|
|
690
|
+
writeFully(this.e4y_1, this.m4y_1.r4u_1);
|
|
691
691
|
this.b9_1 = 21;
|
|
692
692
|
continue $sm;
|
|
693
693
|
} else {
|
|
@@ -696,9 +696,9 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j9 = function
|
|
|
696
696
|
}
|
|
697
697
|
|
|
698
698
|
case 11:
|
|
699
|
-
if (this.
|
|
699
|
+
if (this.l4y_1 == null) {
|
|
700
700
|
this.b9_1 = 14;
|
|
701
|
-
suspendResult = this.
|
|
701
|
+
suspendResult = this.z4x_1.h4w_1.v28(processIncomingExtensions(this.z4x_1, this.m4y_1), this);
|
|
702
702
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
703
703
|
return suspendResult;
|
|
704
704
|
}
|
|
@@ -709,11 +709,11 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j9 = function
|
|
|
709
709
|
}
|
|
710
710
|
|
|
711
711
|
case 12:
|
|
712
|
-
writeFully(ensureNotNull(this.
|
|
713
|
-
var defragmented = Companion_getInstance_6().
|
|
714
|
-
this.
|
|
712
|
+
writeFully(ensureNotNull(this.e4y_1), this.m4y_1.r4u_1);
|
|
713
|
+
var defragmented = Companion_getInstance_6().r4y(true, this.l4y_1.q4u_1, readByteArray(build(this.e4y_1)), this.l4y_1.t4u_1, this.l4y_1.u4u_1, this.l4y_1.v4u_1);
|
|
714
|
+
this.l4y_1 = null;
|
|
715
715
|
this.b9_1 = 13;
|
|
716
|
-
suspendResult = this.
|
|
716
|
+
suspendResult = this.z4x_1.h4w_1.v28(processIncomingExtensions(this.z4x_1, defragmented), this);
|
|
717
717
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
718
718
|
return suspendResult;
|
|
719
719
|
}
|
|
@@ -721,7 +721,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j9 = function
|
|
|
721
721
|
continue $sm;
|
|
722
722
|
case 13:
|
|
723
723
|
var tmp_1 = this;
|
|
724
|
-
tmp_1.
|
|
724
|
+
tmp_1.j4y_1 = Unit_instance;
|
|
725
725
|
this.b9_1 = 20;
|
|
726
726
|
continue $sm;
|
|
727
727
|
case 14:
|
|
@@ -729,23 +729,23 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j9 = function
|
|
|
729
729
|
continue $sm;
|
|
730
730
|
case 15:
|
|
731
731
|
var tmp_2 = this;
|
|
732
|
-
tmp_2.
|
|
732
|
+
tmp_2.j4y_1 = Unit_instance;
|
|
733
733
|
this.b9_1 = 20;
|
|
734
734
|
continue $sm;
|
|
735
735
|
case 16:
|
|
736
736
|
var tmp_3 = this;
|
|
737
|
-
tmp_3.
|
|
737
|
+
tmp_3.k4y_1 = Unit_instance;
|
|
738
738
|
this.b9_1 = 17;
|
|
739
739
|
continue $sm;
|
|
740
740
|
case 17:
|
|
741
|
-
this.
|
|
741
|
+
this.j4y_1 = this.k4y_1;
|
|
742
742
|
this.b9_1 = 20;
|
|
743
743
|
continue $sm;
|
|
744
744
|
case 18:
|
|
745
745
|
this.b9_1 = 19;
|
|
746
746
|
continue $sm;
|
|
747
747
|
case 19:
|
|
748
|
-
this.
|
|
748
|
+
this.d4y_1 = true;
|
|
749
749
|
this.b9_1 = 22;
|
|
750
750
|
var tmp_4 = this;
|
|
751
751
|
continue $sm;
|
|
@@ -762,24 +762,24 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j9 = function
|
|
|
762
762
|
continue $sm;
|
|
763
763
|
case 22:
|
|
764
764
|
this.c9_1 = 32;
|
|
765
|
-
cancelConsumed(this.
|
|
765
|
+
cancelConsumed(this.i4y_1, this.h4y_1);
|
|
766
766
|
this.c9_1 = 39;
|
|
767
767
|
this.b9_1 = 23;
|
|
768
768
|
continue $sm;
|
|
769
769
|
case 23:
|
|
770
770
|
this.c9_1 = 39;
|
|
771
|
-
this.
|
|
772
|
-
var tmp0_safe_receiver = this.
|
|
771
|
+
this.a4y_1.c29();
|
|
772
|
+
var tmp0_safe_receiver = this.e4y_1;
|
|
773
773
|
if (tmp0_safe_receiver == null)
|
|
774
774
|
null;
|
|
775
775
|
else {
|
|
776
776
|
tmp0_safe_receiver.j4();
|
|
777
777
|
}
|
|
778
778
|
|
|
779
|
-
this.
|
|
780
|
-
if (!this.
|
|
779
|
+
this.z4x_1.h4w_1.c29();
|
|
780
|
+
if (!this.d4y_1) {
|
|
781
781
|
this.b9_1 = 24;
|
|
782
|
-
suspendResult = close(this.
|
|
782
|
+
suspendResult = close(this.z4x_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
783
783
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
784
784
|
return suspendResult;
|
|
785
785
|
}
|
|
@@ -801,7 +801,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j9 = function
|
|
|
801
801
|
continue $sm;
|
|
802
802
|
case 27:
|
|
803
803
|
this.c9_1 = 32;
|
|
804
|
-
cancelConsumed(this.
|
|
804
|
+
cancelConsumed(this.i4y_1, this.h4y_1);
|
|
805
805
|
this.b9_1 = 31;
|
|
806
806
|
continue $sm;
|
|
807
807
|
case 28:
|
|
@@ -810,7 +810,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j9 = function
|
|
|
810
810
|
if (tmp_7 instanceof Error) {
|
|
811
811
|
var e_0 = this.e9_1;
|
|
812
812
|
var tmp_8 = this;
|
|
813
|
-
this.
|
|
813
|
+
this.h4y_1 = e_0;
|
|
814
814
|
throw e_0;
|
|
815
815
|
} else {
|
|
816
816
|
throw this.e9_1;
|
|
@@ -819,11 +819,11 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j9 = function
|
|
|
819
819
|
case 29:
|
|
820
820
|
this.c9_1 = 32;
|
|
821
821
|
var t = this.e9_1;
|
|
822
|
-
cancelConsumed(this.
|
|
822
|
+
cancelConsumed(this.i4y_1, this.h4y_1);
|
|
823
823
|
throw t;
|
|
824
824
|
case 30:
|
|
825
825
|
this.c9_1 = 32;
|
|
826
|
-
cancelConsumed(this.
|
|
826
|
+
cancelConsumed(this.i4y_1, this.h4y_1);
|
|
827
827
|
if (false) {
|
|
828
828
|
this.b9_1 = 3;
|
|
829
829
|
continue $sm;
|
|
@@ -832,7 +832,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j9 = function
|
|
|
832
832
|
this.b9_1 = 31;
|
|
833
833
|
continue $sm;
|
|
834
834
|
case 31:
|
|
835
|
-
this.
|
|
835
|
+
this.f4y_1 = Unit_instance;
|
|
836
836
|
this.c9_1 = 39;
|
|
837
837
|
this.b9_1 = 36;
|
|
838
838
|
continue $sm;
|
|
@@ -842,7 +842,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j9 = function
|
|
|
842
842
|
if (tmp_9 instanceof ClosedSendChannelException) {
|
|
843
843
|
var _unused_var__etf5q3 = this.e9_1;
|
|
844
844
|
var tmp_10 = this;
|
|
845
|
-
tmp_10.
|
|
845
|
+
tmp_10.f4y_1 = Unit_instance;
|
|
846
846
|
this.c9_1 = 39;
|
|
847
847
|
this.b9_1 = 36;
|
|
848
848
|
continue $sm;
|
|
@@ -851,8 +851,8 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j9 = function
|
|
|
851
851
|
if (tmp_11 instanceof Error) {
|
|
852
852
|
var cause = this.e9_1;
|
|
853
853
|
var tmp_12 = this;
|
|
854
|
-
this.
|
|
855
|
-
tmp_12.
|
|
854
|
+
this.a4y_1.c29();
|
|
855
|
+
tmp_12.f4y_1 = this.z4x_1.h4w_1.a29(cause);
|
|
856
856
|
this.c9_1 = 39;
|
|
857
857
|
this.b9_1 = 36;
|
|
858
858
|
continue $sm;
|
|
@@ -863,19 +863,19 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j9 = function
|
|
|
863
863
|
|
|
864
864
|
case 33:
|
|
865
865
|
this.c9_1 = 39;
|
|
866
|
-
this.
|
|
867
|
-
this.
|
|
868
|
-
var tmp0_safe_receiver_0 = this.
|
|
866
|
+
this.g4y_1 = this.e9_1;
|
|
867
|
+
this.a4y_1.c29();
|
|
868
|
+
var tmp0_safe_receiver_0 = this.e4y_1;
|
|
869
869
|
if (tmp0_safe_receiver_0 == null)
|
|
870
870
|
null;
|
|
871
871
|
else {
|
|
872
872
|
tmp0_safe_receiver_0.j4();
|
|
873
873
|
}
|
|
874
874
|
|
|
875
|
-
this.
|
|
876
|
-
if (!this.
|
|
875
|
+
this.z4x_1.h4w_1.c29();
|
|
876
|
+
if (!this.d4y_1) {
|
|
877
877
|
this.b9_1 = 34;
|
|
878
|
-
suspendResult = close(this.
|
|
878
|
+
suspendResult = close(this.z4x_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
879
879
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
880
880
|
return suspendResult;
|
|
881
881
|
}
|
|
@@ -889,22 +889,22 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j9 = function
|
|
|
889
889
|
this.b9_1 = 35;
|
|
890
890
|
continue $sm;
|
|
891
891
|
case 35:
|
|
892
|
-
throw this.
|
|
892
|
+
throw this.g4y_1;
|
|
893
893
|
case 36:
|
|
894
|
-
this.
|
|
894
|
+
this.c4y_1 = this.f4y_1;
|
|
895
895
|
this.c9_1 = 39;
|
|
896
|
-
this.
|
|
897
|
-
var tmp0_safe_receiver_1 = this.
|
|
896
|
+
this.a4y_1.c29();
|
|
897
|
+
var tmp0_safe_receiver_1 = this.e4y_1;
|
|
898
898
|
if (tmp0_safe_receiver_1 == null)
|
|
899
899
|
null;
|
|
900
900
|
else {
|
|
901
901
|
tmp0_safe_receiver_1.j4();
|
|
902
902
|
}
|
|
903
903
|
|
|
904
|
-
this.
|
|
905
|
-
if (!this.
|
|
904
|
+
this.z4x_1.h4w_1.c29();
|
|
905
|
+
if (!this.d4y_1) {
|
|
906
906
|
this.b9_1 = 37;
|
|
907
|
-
suspendResult = close(this.
|
|
907
|
+
suspendResult = close(this.z4x_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
908
908
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
909
909
|
return suspendResult;
|
|
910
910
|
}
|
|
@@ -933,29 +933,29 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j9 = function
|
|
|
933
933
|
}
|
|
934
934
|
while (true);
|
|
935
935
|
};
|
|
936
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
937
|
-
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.
|
|
938
|
-
i.
|
|
936
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).b46 = function ($this$launch, completion) {
|
|
937
|
+
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.z4x_1, this.a4y_1, completion);
|
|
938
|
+
i.b4y_1 = $this$launch;
|
|
939
939
|
return i;
|
|
940
940
|
};
|
|
941
941
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0(this$0, $ponger, resultContinuation) {
|
|
942
942
|
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation);
|
|
943
943
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
944
|
-
return i.
|
|
944
|
+
return i.a46($this$launch, $completion);
|
|
945
945
|
}, 1);
|
|
946
946
|
}
|
|
947
947
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation) {
|
|
948
|
-
this.
|
|
948
|
+
this.a4z_1 = this$0;
|
|
949
949
|
CoroutineImpl.call(this, resultContinuation);
|
|
950
950
|
}
|
|
951
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
952
|
-
var tmp = this.
|
|
951
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).a46 = function ($this$launch, $completion) {
|
|
952
|
+
var tmp = this.b46($this$launch, $completion);
|
|
953
953
|
tmp.d9_1 = Unit_instance;
|
|
954
954
|
tmp.e9_1 = null;
|
|
955
955
|
return tmp.j9();
|
|
956
956
|
};
|
|
957
957
|
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).w9 = function (p1, $completion) {
|
|
958
|
-
return this.
|
|
958
|
+
return this.a46((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
959
959
|
};
|
|
960
960
|
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).j9 = function () {
|
|
961
961
|
var suspendResult = this.d9_1;
|
|
@@ -974,7 +974,7 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).j9 = function
|
|
|
974
974
|
this.c9_1 = 9;
|
|
975
975
|
this.c9_1 = 4;
|
|
976
976
|
this.b9_1 = 3;
|
|
977
|
-
suspendResult = outgoingProcessorLoop(this.
|
|
977
|
+
suspendResult = outgoingProcessorLoop(this.a4z_1, this);
|
|
978
978
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
979
979
|
return suspendResult;
|
|
980
980
|
}
|
|
@@ -1004,7 +1004,7 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).j9 = function
|
|
|
1004
1004
|
if (tmp_2 instanceof CancellationException) {
|
|
1005
1005
|
var _unused_var__etf5q3_1 = this.e9_1;
|
|
1006
1006
|
this.b9_1 = 5;
|
|
1007
|
-
suspendResult = sendCloseSequence(this.
|
|
1007
|
+
suspendResult = sendCloseSequence(this.a4z_1, CloseReason_init_$Create$(Codes_NORMAL_getInstance(), ''), VOID, this);
|
|
1008
1008
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1009
1009
|
return suspendResult;
|
|
1010
1010
|
}
|
|
@@ -1020,9 +1020,9 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).j9 = function
|
|
|
1020
1020
|
var tmp_4 = this.e9_1;
|
|
1021
1021
|
if (tmp_4 instanceof Error) {
|
|
1022
1022
|
var cause = this.e9_1;
|
|
1023
|
-
this.
|
|
1023
|
+
this.a4z_1.i4w_1.t1r(CancellationException_init_$Create$('Failed to send frame', cause));
|
|
1024
1024
|
this.b9_1 = 6;
|
|
1025
|
-
suspendResult = closeExceptionally(this.
|
|
1025
|
+
suspendResult = closeExceptionally(this.a4z_1.c4w_1, cause, this);
|
|
1026
1026
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1027
1027
|
return suspendResult;
|
|
1028
1028
|
}
|
|
@@ -1045,9 +1045,9 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).j9 = function
|
|
|
1045
1045
|
continue $sm;
|
|
1046
1046
|
case 7:
|
|
1047
1047
|
this.c9_1 = 13;
|
|
1048
|
-
this.
|
|
1048
|
+
this.a4z_1.i4w_1.e29();
|
|
1049
1049
|
this.b9_1 = 8;
|
|
1050
|
-
suspendResult = close(this.
|
|
1050
|
+
suspendResult = close(this.a4z_1.c4w_1, VOID, this);
|
|
1051
1051
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1052
1052
|
return suspendResult;
|
|
1053
1053
|
}
|
|
@@ -1057,22 +1057,22 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).j9 = function
|
|
|
1057
1057
|
return Unit_instance;
|
|
1058
1058
|
case 9:
|
|
1059
1059
|
this.c9_1 = 13;
|
|
1060
|
-
this.
|
|
1061
|
-
this.
|
|
1060
|
+
this.c4z_1 = this.e9_1;
|
|
1061
|
+
this.a4z_1.i4w_1.e29();
|
|
1062
1062
|
this.b9_1 = 10;
|
|
1063
|
-
suspendResult = close(this.
|
|
1063
|
+
suspendResult = close(this.a4z_1.c4w_1, VOID, this);
|
|
1064
1064
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1065
1065
|
return suspendResult;
|
|
1066
1066
|
}
|
|
1067
1067
|
|
|
1068
1068
|
continue $sm;
|
|
1069
1069
|
case 10:
|
|
1070
|
-
throw this.
|
|
1070
|
+
throw this.c4z_1;
|
|
1071
1071
|
case 11:
|
|
1072
1072
|
this.c9_1 = 13;
|
|
1073
|
-
this.
|
|
1073
|
+
this.a4z_1.i4w_1.e29();
|
|
1074
1074
|
this.b9_1 = 12;
|
|
1075
|
-
suspendResult = close(this.
|
|
1075
|
+
suspendResult = close(this.a4z_1.c4w_1, VOID, this);
|
|
1076
1076
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1077
1077
|
return suspendResult;
|
|
1078
1078
|
}
|
|
@@ -1094,29 +1094,29 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).j9 = function
|
|
|
1094
1094
|
}
|
|
1095
1095
|
while (true);
|
|
1096
1096
|
};
|
|
1097
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
1098
|
-
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.
|
|
1099
|
-
i.
|
|
1097
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).b46 = function ($this$launch, completion) {
|
|
1098
|
+
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.a4z_1, completion);
|
|
1099
|
+
i.b4z_1 = $this$launch;
|
|
1100
1100
|
return i;
|
|
1101
1101
|
};
|
|
1102
1102
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0(this$0, resultContinuation) {
|
|
1103
1103
|
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation);
|
|
1104
1104
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
1105
|
-
return i.
|
|
1105
|
+
return i.a46($this$launch, $completion);
|
|
1106
1106
|
}, 1);
|
|
1107
1107
|
}
|
|
1108
1108
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation) {
|
|
1109
|
-
this.
|
|
1109
|
+
this.l4z_1 = this$0;
|
|
1110
1110
|
CoroutineImpl.call(this, resultContinuation);
|
|
1111
1111
|
}
|
|
1112
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1113
|
-
var tmp = this.
|
|
1112
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).n4z = function (it, $completion) {
|
|
1113
|
+
var tmp = this.o4z(it, $completion);
|
|
1114
1114
|
tmp.d9_1 = Unit_instance;
|
|
1115
1115
|
tmp.e9_1 = null;
|
|
1116
1116
|
return tmp.j9();
|
|
1117
1117
|
};
|
|
1118
1118
|
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).w9 = function (p1, $completion) {
|
|
1119
|
-
return this.
|
|
1119
|
+
return this.n4z(p1 instanceof CloseReason ? p1 : THROW_CCE(), $completion);
|
|
1120
1120
|
};
|
|
1121
1121
|
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).j9 = function () {
|
|
1122
1122
|
var suspendResult = this.d9_1;
|
|
@@ -1127,7 +1127,7 @@ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).j9 = function ()
|
|
|
1127
1127
|
case 0:
|
|
1128
1128
|
this.c9_1 = 2;
|
|
1129
1129
|
this.b9_1 = 1;
|
|
1130
|
-
suspendResult = sendCloseSequence(this.
|
|
1130
|
+
suspendResult = sendCloseSequence(this.l4z_1, this.m4z_1, IOException_init_$Create$('Ping timeout'), this);
|
|
1131
1131
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1132
1132
|
return suspendResult;
|
|
1133
1133
|
}
|
|
@@ -1149,20 +1149,20 @@ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).j9 = function ()
|
|
|
1149
1149
|
}
|
|
1150
1150
|
while (true);
|
|
1151
1151
|
};
|
|
1152
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1153
|
-
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.
|
|
1154
|
-
i.
|
|
1152
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).o4z = function (it, completion) {
|
|
1153
|
+
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.l4z_1, completion);
|
|
1154
|
+
i.m4z_1 = it;
|
|
1155
1155
|
return i;
|
|
1156
1156
|
};
|
|
1157
1157
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0(this$0, resultContinuation) {
|
|
1158
1158
|
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation);
|
|
1159
1159
|
return constructCallableReference(function (it, $completion) {
|
|
1160
|
-
return i.
|
|
1160
|
+
return i.n4z(it, $completion);
|
|
1161
1161
|
}, 1);
|
|
1162
1162
|
}
|
|
1163
1163
|
function $outgoingProcessorLoopCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1164
1164
|
CoroutineImpl.call(this, resultContinuation);
|
|
1165
|
-
this.
|
|
1165
|
+
this.n4v_1 = _this__u8e3s4;
|
|
1166
1166
|
}
|
|
1167
1167
|
protoOf($outgoingProcessorLoopCOROUTINE$).j9 = function () {
|
|
1168
1168
|
var suspendResult = this.d9_1;
|
|
@@ -1172,12 +1172,12 @@ protoOf($outgoingProcessorLoopCOROUTINE$).j9 = function () {
|
|
|
1172
1172
|
switch (tmp) {
|
|
1173
1173
|
case 0:
|
|
1174
1174
|
this.c9_1 = 7;
|
|
1175
|
-
this.
|
|
1175
|
+
this.p4v_1 = this.n4v_1.i4w_1.t();
|
|
1176
1176
|
this.b9_1 = 1;
|
|
1177
1177
|
continue $sm;
|
|
1178
1178
|
case 1:
|
|
1179
1179
|
this.b9_1 = 2;
|
|
1180
|
-
suspendResult = this.
|
|
1180
|
+
suspendResult = this.p4v_1.y26(this);
|
|
1181
1181
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1182
1182
|
return suspendResult;
|
|
1183
1183
|
}
|
|
@@ -1189,15 +1189,15 @@ protoOf($outgoingProcessorLoopCOROUTINE$).j9 = function () {
|
|
|
1189
1189
|
continue $sm;
|
|
1190
1190
|
}
|
|
1191
1191
|
|
|
1192
|
-
var frame = this.
|
|
1192
|
+
var frame = this.p4v_1.v();
|
|
1193
1193
|
var this_0 = get_LOGGER();
|
|
1194
1194
|
if (get_isTraceEnabled(this_0)) {
|
|
1195
|
-
this_0.
|
|
1195
|
+
this_0.l4f('Sending ' + frame.toString() + ' from session ' + toString(this.n4v_1));
|
|
1196
1196
|
}
|
|
1197
1197
|
|
|
1198
1198
|
if (frame instanceof Close) {
|
|
1199
1199
|
this.b9_1 = 3;
|
|
1200
|
-
suspendResult = sendCloseSequence(this.
|
|
1200
|
+
suspendResult = sendCloseSequence(this.n4v_1, readReason(frame), VOID, this);
|
|
1201
1201
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1202
1202
|
return suspendResult;
|
|
1203
1203
|
}
|
|
@@ -1210,11 +1210,11 @@ protoOf($outgoingProcessorLoopCOROUTINE$).j9 = function () {
|
|
|
1210
1210
|
tmp_0 = frame instanceof Binary;
|
|
1211
1211
|
}
|
|
1212
1212
|
if (tmp_0) {
|
|
1213
|
-
this.
|
|
1213
|
+
this.o4v_1 = processOutgoingExtensions(this.n4v_1, frame);
|
|
1214
1214
|
this.b9_1 = 4;
|
|
1215
1215
|
continue $sm;
|
|
1216
1216
|
} else {
|
|
1217
|
-
this.
|
|
1217
|
+
this.o4v_1 = frame;
|
|
1218
1218
|
this.b9_1 = 4;
|
|
1219
1219
|
continue $sm;
|
|
1220
1220
|
}
|
|
@@ -1225,9 +1225,9 @@ protoOf($outgoingProcessorLoopCOROUTINE$).j9 = function () {
|
|
|
1225
1225
|
var tmp_1 = this;
|
|
1226
1226
|
continue $sm;
|
|
1227
1227
|
case 4:
|
|
1228
|
-
var processedFrame = this.
|
|
1228
|
+
var processedFrame = this.o4v_1;
|
|
1229
1229
|
this.b9_1 = 5;
|
|
1230
|
-
suspendResult = this.
|
|
1230
|
+
suspendResult = this.n4v_1.c4w_1.a4v().v28(processedFrame, this);
|
|
1231
1231
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1232
1232
|
return suspendResult;
|
|
1233
1233
|
}
|
|
@@ -1254,9 +1254,9 @@ protoOf($outgoingProcessorLoopCOROUTINE$).j9 = function () {
|
|
|
1254
1254
|
};
|
|
1255
1255
|
function $sendCloseSequenceCOROUTINE$(_this__u8e3s4, reason, exception, resultContinuation) {
|
|
1256
1256
|
CoroutineImpl.call(this, resultContinuation);
|
|
1257
|
-
this.
|
|
1258
|
-
this.
|
|
1259
|
-
this.
|
|
1257
|
+
this.y4v_1 = _this__u8e3s4;
|
|
1258
|
+
this.z4v_1 = reason;
|
|
1259
|
+
this.a4w_1 = exception;
|
|
1260
1260
|
}
|
|
1261
1261
|
protoOf($sendCloseSequenceCOROUTINE$).j9 = function () {
|
|
1262
1262
|
var suspendResult = this.d9_1;
|
|
@@ -1266,25 +1266,25 @@ protoOf($sendCloseSequenceCOROUTINE$).j9 = function () {
|
|
|
1266
1266
|
switch (tmp) {
|
|
1267
1267
|
case 0:
|
|
1268
1268
|
this.c9_1 = 6;
|
|
1269
|
-
if (!tryClose(this.
|
|
1269
|
+
if (!tryClose(this.y4v_1))
|
|
1270
1270
|
return Unit_instance;
|
|
1271
1271
|
var this_0 = get_LOGGER();
|
|
1272
1272
|
if (get_isTraceEnabled(this_0)) {
|
|
1273
|
-
this_0.
|
|
1273
|
+
this_0.l4f('Sending Close Sequence for session ' + toString(this.y4v_1) + ' with reason ' + toString_0(this.z4v_1) + ' and exception ' + toString_0(this.a4w_1));
|
|
1274
1274
|
}
|
|
1275
1275
|
|
|
1276
|
-
this.
|
|
1276
|
+
this.y4v_1.f4w_1.s1y();
|
|
1277
1277
|
var tmp_0 = this;
|
|
1278
|
-
var tmp0_elvis_lhs = this.
|
|
1279
|
-
tmp_0.
|
|
1278
|
+
var tmp0_elvis_lhs = this.z4v_1;
|
|
1279
|
+
tmp_0.b4w_1 = tmp0_elvis_lhs == null ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : tmp0_elvis_lhs;
|
|
1280
1280
|
this.b9_1 = 1;
|
|
1281
1281
|
continue $sm;
|
|
1282
1282
|
case 1:
|
|
1283
1283
|
this.c9_1 = 5;
|
|
1284
|
-
runOrCancelPinger(this.
|
|
1285
|
-
if (!(this.
|
|
1284
|
+
runOrCancelPinger(this.y4v_1);
|
|
1285
|
+
if (!(this.b4w_1.i4u_1 === Codes_CLOSED_ABNORMALLY_getInstance().e4u_1)) {
|
|
1286
1286
|
this.b9_1 = 2;
|
|
1287
|
-
suspendResult = this.
|
|
1287
|
+
suspendResult = this.y4v_1.c4w_1.a4v().v28(Close_init_$Create$(this.b4w_1), this);
|
|
1288
1288
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1289
1289
|
return suspendResult;
|
|
1290
1290
|
}
|
|
@@ -1303,20 +1303,20 @@ protoOf($sendCloseSequenceCOROUTINE$).j9 = function () {
|
|
|
1303
1303
|
continue $sm;
|
|
1304
1304
|
case 4:
|
|
1305
1305
|
this.c9_1 = 6;
|
|
1306
|
-
this.
|
|
1307
|
-
if (!(this.
|
|
1308
|
-
this.
|
|
1309
|
-
this.
|
|
1306
|
+
this.y4v_1.e4w_1.q1y(this.b4w_1);
|
|
1307
|
+
if (!(this.a4w_1 == null)) {
|
|
1308
|
+
this.y4v_1.i4w_1.a29(this.a4w_1);
|
|
1309
|
+
this.y4v_1.h4w_1.a29(this.a4w_1);
|
|
1310
1310
|
}
|
|
1311
1311
|
|
|
1312
1312
|
return Unit_instance;
|
|
1313
1313
|
case 5:
|
|
1314
1314
|
this.c9_1 = 6;
|
|
1315
1315
|
var t = this.e9_1;
|
|
1316
|
-
this.
|
|
1317
|
-
if (!(this.
|
|
1318
|
-
this.
|
|
1319
|
-
this.
|
|
1316
|
+
this.y4v_1.e4w_1.q1y(this.b4w_1);
|
|
1317
|
+
if (!(this.a4w_1 == null)) {
|
|
1318
|
+
this.y4v_1.i4w_1.a29(this.a4w_1);
|
|
1319
|
+
this.y4v_1.h4w_1.a29(this.a4w_1);
|
|
1320
1320
|
}
|
|
1321
1321
|
|
|
1322
1322
|
throw t;
|
|
@@ -1336,9 +1336,9 @@ protoOf($sendCloseSequenceCOROUTINE$).j9 = function () {
|
|
|
1336
1336
|
};
|
|
1337
1337
|
function $checkMaxFrameSizeCOROUTINE$(_this__u8e3s4, packet, frame, resultContinuation) {
|
|
1338
1338
|
CoroutineImpl.call(this, resultContinuation);
|
|
1339
|
-
this.
|
|
1340
|
-
this.
|
|
1341
|
-
this.
|
|
1339
|
+
this.y4w_1 = _this__u8e3s4;
|
|
1340
|
+
this.z4w_1 = packet;
|
|
1341
|
+
this.a4x_1 = frame;
|
|
1342
1342
|
}
|
|
1343
1343
|
protoOf($checkMaxFrameSizeCOROUTINE$).j9 = function () {
|
|
1344
1344
|
var suspendResult = this.d9_1;
|
|
@@ -1349,19 +1349,19 @@ protoOf($checkMaxFrameSizeCOROUTINE$).j9 = function () {
|
|
|
1349
1349
|
case 0:
|
|
1350
1350
|
this.c9_1 = 3;
|
|
1351
1351
|
var tmp_0 = this;
|
|
1352
|
-
var tmp_1 = this.
|
|
1353
|
-
var tmp0_safe_receiver = this.
|
|
1352
|
+
var tmp_1 = this.a4x_1.r4u_1.length;
|
|
1353
|
+
var tmp0_safe_receiver = this.z4w_1;
|
|
1354
1354
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_size(tmp0_safe_receiver);
|
|
1355
|
-
tmp_0.
|
|
1356
|
-
if (compare(fromInt(this.
|
|
1357
|
-
var tmp2_safe_receiver = this.
|
|
1355
|
+
tmp_0.b4x_1 = tmp_1 + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
1356
|
+
if (compare(fromInt(this.b4x_1), this.y4w_1.y4u()) > 0) {
|
|
1357
|
+
var tmp2_safe_receiver = this.z4w_1;
|
|
1358
1358
|
if (tmp2_safe_receiver == null)
|
|
1359
1359
|
null;
|
|
1360
1360
|
else {
|
|
1361
1361
|
tmp2_safe_receiver.j4();
|
|
1362
1362
|
}
|
|
1363
1363
|
this.b9_1 = 2;
|
|
1364
|
-
suspendResult = close(this.
|
|
1364
|
+
suspendResult = close(this.y4w_1, CloseReason_init_$Create$(Codes_TOO_BIG_getInstance(), 'Frame is too big: ' + this.b4x_1 + '. Max size is ' + this.y4w_1.y4u().toString()), this);
|
|
1365
1365
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1366
1366
|
return suspendResult;
|
|
1367
1367
|
}
|
|
@@ -1374,7 +1374,7 @@ protoOf($checkMaxFrameSizeCOROUTINE$).j9 = function () {
|
|
|
1374
1374
|
case 1:
|
|
1375
1375
|
return Unit_instance;
|
|
1376
1376
|
case 2:
|
|
1377
|
-
throw new FrameTooBigException(fromInt(this.
|
|
1377
|
+
throw new FrameTooBigException(fromInt(this.b4x_1));
|
|
1378
1378
|
case 3:
|
|
1379
1379
|
throw this.e9_1;
|
|
1380
1380
|
}
|
|
@@ -1391,42 +1391,42 @@ protoOf($checkMaxFrameSizeCOROUTINE$).j9 = function () {
|
|
|
1391
1391
|
};
|
|
1392
1392
|
function DefaultWebSocketSessionImpl(raw, pingIntervalMillis, timeoutMillis, incomingFramesConfig, outgoingFramesConfig) {
|
|
1393
1393
|
Companion_getInstance_1();
|
|
1394
|
-
this.
|
|
1395
|
-
this.
|
|
1396
|
-
this.
|
|
1397
|
-
this.
|
|
1398
|
-
this.
|
|
1399
|
-
this.
|
|
1400
|
-
this.
|
|
1401
|
-
this.
|
|
1394
|
+
this.c4w_1 = raw;
|
|
1395
|
+
this.d4w_1 = atomic$ref$1(null);
|
|
1396
|
+
this.e4w_1 = CompletableDeferred();
|
|
1397
|
+
this.f4w_1 = Job();
|
|
1398
|
+
this.g4w_1 = this.c4w_1.j1q().fk(Key_instance).hk(this.f4w_1).hk(new CoroutineName('ws-default'));
|
|
1399
|
+
this.h4w_1 = from(Factory_getInstance(), incomingFramesConfig);
|
|
1400
|
+
this.i4w_1 = from(Factory_getInstance(), outgoingFramesConfig);
|
|
1401
|
+
this.j4w_1 = atomic$boolean$1(false);
|
|
1402
1402
|
var tmp = this;
|
|
1403
1403
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1404
|
-
tmp.
|
|
1405
|
-
this.
|
|
1406
|
-
this.
|
|
1407
|
-
this.
|
|
1408
|
-
this.
|
|
1404
|
+
tmp.k4w_1 = ArrayList_init_$Create$();
|
|
1405
|
+
this.l4w_1 = atomic$boolean$1(false);
|
|
1406
|
+
this.m4w_1 = pingIntervalMillis;
|
|
1407
|
+
this.n4w_1 = timeoutMillis;
|
|
1408
|
+
this.o4w_1 = this.e4w_1;
|
|
1409
1409
|
}
|
|
1410
1410
|
protoOf(DefaultWebSocketSessionImpl).j1q = function () {
|
|
1411
|
-
return this.
|
|
1411
|
+
return this.g4w_1;
|
|
1412
1412
|
};
|
|
1413
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1414
|
-
return this.
|
|
1413
|
+
protoOf(DefaultWebSocketSessionImpl).z4u = function () {
|
|
1414
|
+
return this.h4w_1;
|
|
1415
1415
|
};
|
|
1416
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1417
|
-
return this.
|
|
1416
|
+
protoOf(DefaultWebSocketSessionImpl).a4v = function () {
|
|
1417
|
+
return this.i4w_1;
|
|
1418
1418
|
};
|
|
1419
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1420
|
-
return this.
|
|
1419
|
+
protoOf(DefaultWebSocketSessionImpl).c4x = function () {
|
|
1420
|
+
return this.k4w_1;
|
|
1421
1421
|
};
|
|
1422
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1423
|
-
this.
|
|
1422
|
+
protoOf(DefaultWebSocketSessionImpl).x4u = function (value) {
|
|
1423
|
+
this.c4w_1.x4u(value);
|
|
1424
1424
|
};
|
|
1425
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1426
|
-
return this.
|
|
1425
|
+
protoOf(DefaultWebSocketSessionImpl).y4u = function () {
|
|
1426
|
+
return this.c4w_1.y4u();
|
|
1427
1427
|
};
|
|
1428
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1429
|
-
if (!this.
|
|
1428
|
+
protoOf(DefaultWebSocketSessionImpl).w4u = function (negotiatedExtensions) {
|
|
1429
|
+
if (!this.l4w_1.atomicfu$compareAndSet(false, true)) {
|
|
1430
1430
|
// Inline function 'kotlin.error' call
|
|
1431
1431
|
var message = 'WebSocket session ' + toString(this) + ' is already started.';
|
|
1432
1432
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -1435,16 +1435,16 @@ protoOf(DefaultWebSocketSessionImpl).s4u = function (negotiatedExtensions) {
|
|
|
1435
1435
|
var this_0 = get_LOGGER();
|
|
1436
1436
|
if (get_isTraceEnabled(this_0)) {
|
|
1437
1437
|
var tmp$ret$2 = 'Starting default WebSocketSession(' + toString(this) + ') ' + ('with negotiated extensions: ' + joinToString(negotiatedExtensions));
|
|
1438
|
-
this_0.
|
|
1438
|
+
this_0.l4f(tmp$ret$2);
|
|
1439
1439
|
}
|
|
1440
|
-
this.
|
|
1440
|
+
this.k4w_1.j1(negotiatedExtensions);
|
|
1441
1441
|
runOrCancelPinger(this);
|
|
1442
|
-
var incomingJob = runIncomingProcessor(this, ponger(this, this.
|
|
1442
|
+
var incomingJob = runIncomingProcessor(this, ponger(this, this.a4v()));
|
|
1443
1443
|
var outgoingJob = runOutgoingProcessor(this);
|
|
1444
1444
|
launch(this, VOID, VOID, DefaultWebSocketSessionImpl$start$slambda_0(incomingJob, outgoingJob, this, null));
|
|
1445
1445
|
};
|
|
1446
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1447
|
-
return this.
|
|
1446
|
+
protoOf(DefaultWebSocketSessionImpl).u3x = function ($completion) {
|
|
1447
|
+
return this.c4w_1.u3x($completion);
|
|
1448
1448
|
};
|
|
1449
1449
|
var properties_initialized_DefaultWebSocketSession_kt_6cjlhc;
|
|
1450
1450
|
function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
@@ -1466,14 +1466,14 @@ function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
|
1466
1466
|
}
|
|
1467
1467
|
}
|
|
1468
1468
|
function readReason(_this__u8e3s4) {
|
|
1469
|
-
if (_this__u8e3s4.
|
|
1469
|
+
if (_this__u8e3s4.r4u_1.length < 2) {
|
|
1470
1470
|
return null;
|
|
1471
1471
|
}
|
|
1472
1472
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1473
1473
|
var builder = new Buffer();
|
|
1474
|
-
writeFully(builder, _this__u8e3s4.
|
|
1474
|
+
writeFully(builder, _this__u8e3s4.r4u_1);
|
|
1475
1475
|
var packet = builder;
|
|
1476
|
-
var code = packet.
|
|
1476
|
+
var code = packet.e3t();
|
|
1477
1477
|
var message = readText(packet);
|
|
1478
1478
|
return new CloseReason(code, message);
|
|
1479
1479
|
}
|
|
@@ -1503,15 +1503,15 @@ function FrameTooBigException(frameSize, cause) {
|
|
|
1503
1503
|
cause = cause === VOID ? null : cause;
|
|
1504
1504
|
Exception_init_$Init$(cause, this);
|
|
1505
1505
|
captureStack(this, FrameTooBigException);
|
|
1506
|
-
this.
|
|
1506
|
+
this.p4z_1 = frameSize;
|
|
1507
1507
|
delete this.message;
|
|
1508
1508
|
}
|
|
1509
1509
|
protoOf(FrameTooBigException).e = function () {
|
|
1510
|
-
var sizeSuffix = compare(this.
|
|
1510
|
+
var sizeSuffix = compare(this.p4z_1, new Long(0, 0)) >= 0 ? ': ' + this.p4z_1.toString() : '';
|
|
1511
1511
|
return 'Frame is too big' + sizeSuffix;
|
|
1512
1512
|
};
|
|
1513
1513
|
protoOf(FrameTooBigException).b1z = function () {
|
|
1514
|
-
return new FrameTooBigException(this.
|
|
1514
|
+
return new FrameTooBigException(this.p4z_1, this);
|
|
1515
1515
|
};
|
|
1516
1516
|
var FrameType_TEXT_instance;
|
|
1517
1517
|
var FrameType_BINARY_instance;
|
|
@@ -1535,10 +1535,10 @@ function Companion_2() {
|
|
|
1535
1535
|
tmp$ret$0 = maxElem;
|
|
1536
1536
|
break $l$block_0;
|
|
1537
1537
|
}
|
|
1538
|
-
var maxValue = maxElem.
|
|
1538
|
+
var maxValue = maxElem.o4u_1;
|
|
1539
1539
|
do {
|
|
1540
1540
|
var e = iterator.v();
|
|
1541
|
-
var v = e.
|
|
1541
|
+
var v = e.o4u_1;
|
|
1542
1542
|
if (compareTo(maxValue, v) < 0) {
|
|
1543
1543
|
maxElem = e;
|
|
1544
1544
|
maxValue = v;
|
|
@@ -1547,10 +1547,10 @@ function Companion_2() {
|
|
|
1547
1547
|
while (iterator.u());
|
|
1548
1548
|
tmp$ret$0 = maxElem;
|
|
1549
1549
|
}
|
|
1550
|
-
tmp.
|
|
1550
|
+
tmp.q4z_1 = ensureNotNull(tmp$ret$0).o4u_1;
|
|
1551
1551
|
var tmp_0 = this;
|
|
1552
1552
|
var tmp_1 = 0;
|
|
1553
|
-
var tmp_2 = this.
|
|
1553
|
+
var tmp_2 = this.q4z_1 + 1 | 0;
|
|
1554
1554
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1555
1555
|
var tmp_3 = Array(tmp_2);
|
|
1556
1556
|
while (tmp_1 < tmp_2) {
|
|
@@ -1564,7 +1564,7 @@ function Companion_2() {
|
|
|
1564
1564
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
1565
1565
|
while (_iterator__ex2g4s.u()) {
|
|
1566
1566
|
var element = _iterator__ex2g4s.v();
|
|
1567
|
-
if (element.
|
|
1567
|
+
if (element.o4u_1 === tmp_4) {
|
|
1568
1568
|
if (found) {
|
|
1569
1569
|
tmp$ret$5 = null;
|
|
1570
1570
|
break $l$block_2;
|
|
@@ -1582,7 +1582,7 @@ function Companion_2() {
|
|
|
1582
1582
|
tmp_3[tmp_4] = tmp$ret$5;
|
|
1583
1583
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1584
1584
|
}
|
|
1585
|
-
tmp_0.
|
|
1585
|
+
tmp_0.r4z_1 = tmp_3;
|
|
1586
1586
|
}
|
|
1587
1587
|
var Companion_instance_2;
|
|
1588
1588
|
function Companion_getInstance_2() {
|
|
@@ -1614,8 +1614,8 @@ function FrameType_initEntries() {
|
|
|
1614
1614
|
var $ENTRIES_0;
|
|
1615
1615
|
function FrameType(name, ordinal, controlFrame, opcode) {
|
|
1616
1616
|
Enum.call(this, name, ordinal);
|
|
1617
|
-
this.
|
|
1618
|
-
this.
|
|
1617
|
+
this.n4u_1 = controlFrame;
|
|
1618
|
+
this.o4u_1 = opcode;
|
|
1619
1619
|
}
|
|
1620
1620
|
function FrameType_TEXT_getInstance() {
|
|
1621
1621
|
FrameType_initEntries();
|
|
@@ -1665,18 +1665,18 @@ function pinger(_this__u8e3s4, outgoing, periodMillis, timeoutMillis, onTimeout)
|
|
|
1665
1665
|
return channel;
|
|
1666
1666
|
}
|
|
1667
1667
|
function ponger$slambda($channel, $outgoing, resultContinuation) {
|
|
1668
|
-
this.
|
|
1669
|
-
this.
|
|
1668
|
+
this.a50_1 = $channel;
|
|
1669
|
+
this.b50_1 = $outgoing;
|
|
1670
1670
|
CoroutineImpl.call(this, resultContinuation);
|
|
1671
1671
|
}
|
|
1672
|
-
protoOf(ponger$slambda).
|
|
1673
|
-
var tmp = this.
|
|
1672
|
+
protoOf(ponger$slambda).a46 = function ($this$launch, $completion) {
|
|
1673
|
+
var tmp = this.b46($this$launch, $completion);
|
|
1674
1674
|
tmp.d9_1 = Unit_instance;
|
|
1675
1675
|
tmp.e9_1 = null;
|
|
1676
1676
|
return tmp.j9();
|
|
1677
1677
|
};
|
|
1678
1678
|
protoOf(ponger$slambda).w9 = function (p1, $completion) {
|
|
1679
|
-
return this.
|
|
1679
|
+
return this.a46((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1680
1680
|
};
|
|
1681
1681
|
protoOf(ponger$slambda).j9 = function () {
|
|
1682
1682
|
var suspendResult = this.d9_1;
|
|
@@ -1687,12 +1687,12 @@ protoOf(ponger$slambda).j9 = function () {
|
|
|
1687
1687
|
case 0:
|
|
1688
1688
|
this.c9_1 = 14;
|
|
1689
1689
|
this.c9_1 = 13;
|
|
1690
|
-
this.
|
|
1690
|
+
this.g50_1 = this.a50_1;
|
|
1691
1691
|
this.b9_1 = 1;
|
|
1692
1692
|
continue $sm;
|
|
1693
1693
|
case 1:
|
|
1694
|
-
this.
|
|
1695
|
-
this.
|
|
1694
|
+
this.e50_1 = this.g50_1;
|
|
1695
|
+
this.d50_1 = null;
|
|
1696
1696
|
this.b9_1 = 2;
|
|
1697
1697
|
continue $sm;
|
|
1698
1698
|
case 2:
|
|
@@ -1701,12 +1701,12 @@ protoOf(ponger$slambda).j9 = function () {
|
|
|
1701
1701
|
case 3:
|
|
1702
1702
|
this.c9_1 = 10;
|
|
1703
1703
|
this.c9_1 = 9;
|
|
1704
|
-
this.
|
|
1704
|
+
this.f50_1 = this.e50_1.t();
|
|
1705
1705
|
this.b9_1 = 4;
|
|
1706
1706
|
continue $sm;
|
|
1707
1707
|
case 4:
|
|
1708
1708
|
this.b9_1 = 5;
|
|
1709
|
-
suspendResult = this.
|
|
1709
|
+
suspendResult = this.f50_1.y26(this);
|
|
1710
1710
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1711
1711
|
return suspendResult;
|
|
1712
1712
|
}
|
|
@@ -1718,10 +1718,10 @@ protoOf(ponger$slambda).j9 = function () {
|
|
|
1718
1718
|
continue $sm;
|
|
1719
1719
|
}
|
|
1720
1720
|
|
|
1721
|
-
var e = this.
|
|
1722
|
-
get_LOGGER().
|
|
1721
|
+
var e = this.f50_1.v();
|
|
1722
|
+
get_LOGGER().l4f('Received ping message, sending pong message');
|
|
1723
1723
|
this.b9_1 = 6;
|
|
1724
|
-
suspendResult = this.
|
|
1724
|
+
suspendResult = this.b50_1.v28(new Pong(e.r4u_1), this);
|
|
1725
1725
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1726
1726
|
return suspendResult;
|
|
1727
1727
|
}
|
|
@@ -1736,7 +1736,7 @@ protoOf(ponger$slambda).j9 = function () {
|
|
|
1736
1736
|
continue $sm;
|
|
1737
1737
|
case 8:
|
|
1738
1738
|
this.c9_1 = 13;
|
|
1739
|
-
cancelConsumed(this.
|
|
1739
|
+
cancelConsumed(this.e50_1, this.d50_1);
|
|
1740
1740
|
this.b9_1 = 12;
|
|
1741
1741
|
continue $sm;
|
|
1742
1742
|
case 9:
|
|
@@ -1745,7 +1745,7 @@ protoOf(ponger$slambda).j9 = function () {
|
|
|
1745
1745
|
if (tmp_1 instanceof Error) {
|
|
1746
1746
|
var e_0 = this.e9_1;
|
|
1747
1747
|
var tmp_2 = this;
|
|
1748
|
-
this.
|
|
1748
|
+
this.d50_1 = e_0;
|
|
1749
1749
|
throw e_0;
|
|
1750
1750
|
} else {
|
|
1751
1751
|
throw this.e9_1;
|
|
@@ -1754,11 +1754,11 @@ protoOf(ponger$slambda).j9 = function () {
|
|
|
1754
1754
|
case 10:
|
|
1755
1755
|
this.c9_1 = 13;
|
|
1756
1756
|
var t = this.e9_1;
|
|
1757
|
-
cancelConsumed(this.
|
|
1757
|
+
cancelConsumed(this.e50_1, this.d50_1);
|
|
1758
1758
|
throw t;
|
|
1759
1759
|
case 11:
|
|
1760
1760
|
this.c9_1 = 13;
|
|
1761
|
-
cancelConsumed(this.
|
|
1761
|
+
cancelConsumed(this.e50_1, this.d50_1);
|
|
1762
1762
|
if (false) {
|
|
1763
1763
|
this.b9_1 = 1;
|
|
1764
1764
|
continue $sm;
|
|
@@ -1798,29 +1798,29 @@ protoOf(ponger$slambda).j9 = function () {
|
|
|
1798
1798
|
}
|
|
1799
1799
|
while (true);
|
|
1800
1800
|
};
|
|
1801
|
-
protoOf(ponger$slambda).
|
|
1802
|
-
var i = new ponger$slambda(this.
|
|
1803
|
-
i.
|
|
1801
|
+
protoOf(ponger$slambda).b46 = function ($this$launch, completion) {
|
|
1802
|
+
var i = new ponger$slambda(this.a50_1, this.b50_1, completion);
|
|
1803
|
+
i.c50_1 = $this$launch;
|
|
1804
1804
|
return i;
|
|
1805
1805
|
};
|
|
1806
1806
|
function ponger$slambda_0($channel, $outgoing, resultContinuation) {
|
|
1807
1807
|
var i = new ponger$slambda($channel, $outgoing, resultContinuation);
|
|
1808
1808
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
1809
|
-
return i.
|
|
1809
|
+
return i.a46($this$launch, $completion);
|
|
1810
1810
|
}, 1);
|
|
1811
1811
|
}
|
|
1812
1812
|
function pinger$slambda$slambda($channel, resultContinuation) {
|
|
1813
|
-
this.
|
|
1813
|
+
this.p50_1 = $channel;
|
|
1814
1814
|
CoroutineImpl.call(this, resultContinuation);
|
|
1815
1815
|
}
|
|
1816
|
-
protoOf(pinger$slambda$slambda).
|
|
1817
|
-
var tmp = this.
|
|
1816
|
+
protoOf(pinger$slambda$slambda).a46 = function ($this$withTimeoutOrNull, $completion) {
|
|
1817
|
+
var tmp = this.b46($this$withTimeoutOrNull, $completion);
|
|
1818
1818
|
tmp.d9_1 = Unit_instance;
|
|
1819
1819
|
tmp.e9_1 = null;
|
|
1820
1820
|
return tmp.j9();
|
|
1821
1821
|
};
|
|
1822
1822
|
protoOf(pinger$slambda$slambda).w9 = function (p1, $completion) {
|
|
1823
|
-
return this.
|
|
1823
|
+
return this.a46((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1824
1824
|
};
|
|
1825
1825
|
protoOf(pinger$slambda$slambda).j9 = function () {
|
|
1826
1826
|
var suspendResult = this.d9_1;
|
|
@@ -1839,7 +1839,7 @@ protoOf(pinger$slambda$slambda).j9 = function () {
|
|
|
1839
1839
|
}
|
|
1840
1840
|
|
|
1841
1841
|
this.b9_1 = 2;
|
|
1842
|
-
suspendResult = this.
|
|
1842
|
+
suspendResult = this.p50_1.y28(this);
|
|
1843
1843
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1844
1844
|
return suspendResult;
|
|
1845
1845
|
}
|
|
@@ -1864,31 +1864,31 @@ protoOf(pinger$slambda$slambda).j9 = function () {
|
|
|
1864
1864
|
}
|
|
1865
1865
|
while (true);
|
|
1866
1866
|
};
|
|
1867
|
-
protoOf(pinger$slambda$slambda).
|
|
1868
|
-
var i = new pinger$slambda$slambda(this.
|
|
1869
|
-
i.
|
|
1867
|
+
protoOf(pinger$slambda$slambda).b46 = function ($this$withTimeoutOrNull, completion) {
|
|
1868
|
+
var i = new pinger$slambda$slambda(this.p50_1, completion);
|
|
1869
|
+
i.q50_1 = $this$withTimeoutOrNull;
|
|
1870
1870
|
return i;
|
|
1871
1871
|
};
|
|
1872
1872
|
function pinger$slambda$slambda_0($channel, resultContinuation) {
|
|
1873
1873
|
var i = new pinger$slambda$slambda($channel, resultContinuation);
|
|
1874
1874
|
return constructCallableReference(function ($this$withTimeoutOrNull, $completion) {
|
|
1875
|
-
return i.
|
|
1875
|
+
return i.a46($this$withTimeoutOrNull, $completion);
|
|
1876
1876
|
}, 1);
|
|
1877
1877
|
}
|
|
1878
1878
|
function pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1879
|
-
this.
|
|
1880
|
-
this.
|
|
1881
|
-
this.
|
|
1879
|
+
this.z50_1 = $outgoing;
|
|
1880
|
+
this.a51_1 = $pingMessage;
|
|
1881
|
+
this.b51_1 = $channel;
|
|
1882
1882
|
CoroutineImpl.call(this, resultContinuation);
|
|
1883
1883
|
}
|
|
1884
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1885
|
-
var tmp = this.
|
|
1884
|
+
protoOf(pinger$slambda$slambda_1).a46 = function ($this$withTimeoutOrNull, $completion) {
|
|
1885
|
+
var tmp = this.b46($this$withTimeoutOrNull, $completion);
|
|
1886
1886
|
tmp.d9_1 = Unit_instance;
|
|
1887
1887
|
tmp.e9_1 = null;
|
|
1888
1888
|
return tmp.j9();
|
|
1889
1889
|
};
|
|
1890
1890
|
protoOf(pinger$slambda$slambda_1).w9 = function (p1, $completion) {
|
|
1891
|
-
return this.
|
|
1891
|
+
return this.a46((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1892
1892
|
};
|
|
1893
1893
|
protoOf(pinger$slambda$slambda_1).j9 = function () {
|
|
1894
1894
|
var suspendResult = this.d9_1;
|
|
@@ -1898,9 +1898,9 @@ protoOf(pinger$slambda$slambda_1).j9 = function () {
|
|
|
1898
1898
|
switch (tmp) {
|
|
1899
1899
|
case 0:
|
|
1900
1900
|
this.c9_1 = 6;
|
|
1901
|
-
get_LOGGER().
|
|
1901
|
+
get_LOGGER().l4f('WebSocket Pinger: sending ping frame');
|
|
1902
1902
|
this.b9_1 = 1;
|
|
1903
|
-
suspendResult = this.
|
|
1903
|
+
suspendResult = this.z50_1.v28(new Ping(toByteArray(this.a51_1, Charsets_getInstance().a47_1)), this);
|
|
1904
1904
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1905
1905
|
return suspendResult;
|
|
1906
1906
|
}
|
|
@@ -1916,18 +1916,18 @@ protoOf(pinger$slambda$slambda_1).j9 = function () {
|
|
|
1916
1916
|
}
|
|
1917
1917
|
|
|
1918
1918
|
this.b9_1 = 3;
|
|
1919
|
-
suspendResult = this.
|
|
1919
|
+
suspendResult = this.b51_1.y28(this);
|
|
1920
1920
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1921
1921
|
return suspendResult;
|
|
1922
1922
|
}
|
|
1923
1923
|
|
|
1924
1924
|
continue $sm;
|
|
1925
1925
|
case 3:
|
|
1926
|
-
this.
|
|
1927
|
-
if (decodeToString(this.
|
|
1926
|
+
this.d51_1 = suspendResult;
|
|
1927
|
+
if (decodeToString(this.d51_1.r4u_1, 0, 0 + this.d51_1.r4u_1.length | 0) === this.a51_1) {
|
|
1928
1928
|
var this_0 = get_LOGGER();
|
|
1929
1929
|
if (get_isTraceEnabled(this_0)) {
|
|
1930
|
-
this_0.
|
|
1930
|
+
this_0.l4f('WebSocket Pinger: received valid pong frame ' + this.d51_1.toString());
|
|
1931
1931
|
}
|
|
1932
1932
|
this.b9_1 = 5;
|
|
1933
1933
|
continue $sm;
|
|
@@ -1939,7 +1939,7 @@ protoOf(pinger$slambda$slambda_1).j9 = function () {
|
|
|
1939
1939
|
case 4:
|
|
1940
1940
|
var this_1 = get_LOGGER();
|
|
1941
1941
|
if (get_isTraceEnabled(this_1)) {
|
|
1942
|
-
this_1.
|
|
1942
|
+
this_1.l4f('WebSocket Pinger: received invalid pong frame ' + this.d51_1.toString() + ', continue waiting');
|
|
1943
1943
|
}
|
|
1944
1944
|
|
|
1945
1945
|
this.b9_1 = 2;
|
|
@@ -1960,33 +1960,33 @@ protoOf(pinger$slambda$slambda_1).j9 = function () {
|
|
|
1960
1960
|
}
|
|
1961
1961
|
while (true);
|
|
1962
1962
|
};
|
|
1963
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1964
|
-
var i = new pinger$slambda$slambda_1(this.
|
|
1965
|
-
i.
|
|
1963
|
+
protoOf(pinger$slambda$slambda_1).b46 = function ($this$withTimeoutOrNull, completion) {
|
|
1964
|
+
var i = new pinger$slambda$slambda_1(this.z50_1, this.a51_1, this.b51_1, completion);
|
|
1965
|
+
i.c51_1 = $this$withTimeoutOrNull;
|
|
1966
1966
|
return i;
|
|
1967
1967
|
};
|
|
1968
1968
|
function pinger$slambda$slambda_2($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1969
1969
|
var i = new pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation);
|
|
1970
1970
|
return constructCallableReference(function ($this$withTimeoutOrNull, $completion) {
|
|
1971
|
-
return i.
|
|
1971
|
+
return i.a46($this$withTimeoutOrNull, $completion);
|
|
1972
1972
|
}, 1);
|
|
1973
1973
|
}
|
|
1974
1974
|
function pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
1975
|
-
this.
|
|
1976
|
-
this.
|
|
1977
|
-
this.
|
|
1978
|
-
this.
|
|
1979
|
-
this.
|
|
1975
|
+
this.m51_1 = $periodMillis;
|
|
1976
|
+
this.n51_1 = $timeoutMillis;
|
|
1977
|
+
this.o51_1 = $onTimeout;
|
|
1978
|
+
this.p51_1 = $channel;
|
|
1979
|
+
this.q51_1 = $outgoing;
|
|
1980
1980
|
CoroutineImpl.call(this, resultContinuation);
|
|
1981
1981
|
}
|
|
1982
|
-
protoOf(pinger$slambda).
|
|
1983
|
-
var tmp = this.
|
|
1982
|
+
protoOf(pinger$slambda).a46 = function ($this$launch, $completion) {
|
|
1983
|
+
var tmp = this.b46($this$launch, $completion);
|
|
1984
1984
|
tmp.d9_1 = Unit_instance;
|
|
1985
1985
|
tmp.e9_1 = null;
|
|
1986
1986
|
return tmp.j9();
|
|
1987
1987
|
};
|
|
1988
1988
|
protoOf(pinger$slambda).w9 = function (p1, $completion) {
|
|
1989
|
-
return this.
|
|
1989
|
+
return this.a46((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1990
1990
|
};
|
|
1991
1991
|
protoOf(pinger$slambda).j9 = function () {
|
|
1992
1992
|
var suspendResult = this.d9_1;
|
|
@@ -1998,11 +1998,11 @@ protoOf(pinger$slambda).j9 = function () {
|
|
|
1998
1998
|
this.c9_1 = 8;
|
|
1999
1999
|
var this_0 = get_LOGGER();
|
|
2000
2000
|
if (get_isTraceEnabled(this_0)) {
|
|
2001
|
-
this_0.
|
|
2001
|
+
this_0.l4f('Starting WebSocket pinger coroutine with period ' + this.m51_1.toString() + ' ms and timeout ' + this.n51_1.toString() + ' ms');
|
|
2002
2002
|
}
|
|
2003
2003
|
|
|
2004
|
-
this.
|
|
2005
|
-
this.
|
|
2004
|
+
this.t51_1 = Random(getTimeMillis());
|
|
2005
|
+
this.s51_1 = new Int8Array(32);
|
|
2006
2006
|
this.c9_1 = 7;
|
|
2007
2007
|
this.b9_1 = 1;
|
|
2008
2008
|
continue $sm;
|
|
@@ -2013,17 +2013,17 @@ protoOf(pinger$slambda).j9 = function () {
|
|
|
2013
2013
|
}
|
|
2014
2014
|
|
|
2015
2015
|
this.b9_1 = 2;
|
|
2016
|
-
suspendResult = withTimeoutOrNull(this.
|
|
2016
|
+
suspendResult = withTimeoutOrNull(this.m51_1, pinger$slambda$slambda_0(this.p51_1, null), this);
|
|
2017
2017
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2018
2018
|
return suspendResult;
|
|
2019
2019
|
}
|
|
2020
2020
|
|
|
2021
2021
|
continue $sm;
|
|
2022
2022
|
case 2:
|
|
2023
|
-
this.
|
|
2024
|
-
var pingMessage = '[ping ' + toHexString(this.
|
|
2023
|
+
this.t51_1.cm(this.s51_1);
|
|
2024
|
+
var pingMessage = '[ping ' + toHexString(this.s51_1) + ' ping]';
|
|
2025
2025
|
this.b9_1 = 3;
|
|
2026
|
-
suspendResult = withTimeoutOrNull(this.
|
|
2026
|
+
suspendResult = withTimeoutOrNull(this.n51_1, pinger$slambda$slambda_2(this.q51_1, pingMessage, this.p51_1, null), this);
|
|
2027
2027
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2028
2028
|
return suspendResult;
|
|
2029
2029
|
}
|
|
@@ -2032,9 +2032,9 @@ protoOf(pinger$slambda).j9 = function () {
|
|
|
2032
2032
|
case 3:
|
|
2033
2033
|
var rc = suspendResult;
|
|
2034
2034
|
if (rc == null) {
|
|
2035
|
-
get_LOGGER().
|
|
2035
|
+
get_LOGGER().l4f('WebSocket pinger has timed out');
|
|
2036
2036
|
this.b9_1 = 5;
|
|
2037
|
-
suspendResult = this.
|
|
2037
|
+
suspendResult = this.o51_1(CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), 'Ping timeout'), this);
|
|
2038
2038
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2039
2039
|
return suspendResult;
|
|
2040
2040
|
}
|
|
@@ -2103,15 +2103,15 @@ protoOf(pinger$slambda).j9 = function () {
|
|
|
2103
2103
|
}
|
|
2104
2104
|
while (true);
|
|
2105
2105
|
};
|
|
2106
|
-
protoOf(pinger$slambda).
|
|
2107
|
-
var i = new pinger$slambda(this.
|
|
2108
|
-
i.
|
|
2106
|
+
protoOf(pinger$slambda).b46 = function ($this$launch, completion) {
|
|
2107
|
+
var i = new pinger$slambda(this.m51_1, this.n51_1, this.o51_1, this.p51_1, this.q51_1, completion);
|
|
2108
|
+
i.r51_1 = $this$launch;
|
|
2109
2109
|
return i;
|
|
2110
2110
|
};
|
|
2111
2111
|
function pinger$slambda_0($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
2112
2112
|
var i = new pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation);
|
|
2113
2113
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
2114
|
-
return i.
|
|
2114
|
+
return i.a46($this$launch, $completion);
|
|
2115
2115
|
}, 1);
|
|
2116
2116
|
}
|
|
2117
2117
|
function pinger$lambda($actorJob) {
|
|
@@ -2133,9 +2133,9 @@ function Companion_3() {
|
|
|
2133
2133
|
var tmp = this;
|
|
2134
2134
|
// Inline function 'kotlin.apply' call
|
|
2135
2135
|
var this_0 = new WebSocketChannelsConfig();
|
|
2136
|
-
this_0.
|
|
2137
|
-
this_0.
|
|
2138
|
-
tmp.
|
|
2136
|
+
this_0.d4v_1 = this_0.u51();
|
|
2137
|
+
this_0.e4v_1 = this_0.u51();
|
|
2138
|
+
tmp.c4v_1 = this_0;
|
|
2139
2139
|
}
|
|
2140
2140
|
var Companion_instance_3;
|
|
2141
2141
|
function Companion_getInstance_3() {
|
|
@@ -2145,21 +2145,21 @@ function Companion_getInstance_3() {
|
|
|
2145
2145
|
}
|
|
2146
2146
|
function WebSocketChannelsConfig() {
|
|
2147
2147
|
Companion_getInstance_3();
|
|
2148
|
-
this.
|
|
2149
|
-
this.
|
|
2148
|
+
this.d4v_1 = Companion_getInstance_4().v51_1;
|
|
2149
|
+
this.e4v_1 = Companion_getInstance_4().v51_1;
|
|
2150
2150
|
}
|
|
2151
|
-
protoOf(WebSocketChannelsConfig).
|
|
2152
|
-
return Companion_getInstance_4().
|
|
2151
|
+
protoOf(WebSocketChannelsConfig).u51 = function () {
|
|
2152
|
+
return Companion_getInstance_4().v51_1;
|
|
2153
2153
|
};
|
|
2154
2154
|
function from(_this__u8e3s4, config) {
|
|
2155
2155
|
// Inline function 'kotlin.with' call
|
|
2156
2156
|
var tmp;
|
|
2157
|
-
if (config.
|
|
2157
|
+
if (config.w51_1 === 2147483647) {
|
|
2158
2158
|
tmp = Channel(2147483647);
|
|
2159
|
-
} else if (config.
|
|
2160
|
-
tmp = Channel(config.
|
|
2161
|
-
} else if (config.
|
|
2162
|
-
tmp = new BoundedChannel(config.
|
|
2159
|
+
} else if (config.x51_1.equals(ChannelOverflow_SUSPEND_getInstance())) {
|
|
2160
|
+
tmp = Channel(config.w51_1, BufferOverflow_SUSPEND_getInstance());
|
|
2161
|
+
} else if (config.x51_1.equals(ChannelOverflow_CLOSE_getInstance())) {
|
|
2162
|
+
tmp = new BoundedChannel(config.w51_1);
|
|
2163
2163
|
} else {
|
|
2164
2164
|
// Inline function 'kotlin.error' call
|
|
2165
2165
|
var message = 'Unsupported channel config.';
|
|
@@ -2169,7 +2169,7 @@ function from(_this__u8e3s4, config) {
|
|
|
2169
2169
|
}
|
|
2170
2170
|
function Companion_4() {
|
|
2171
2171
|
Companion_instance_4 = this;
|
|
2172
|
-
this.
|
|
2172
|
+
this.v51_1 = new ChannelConfig(2147483647, ChannelOverflow_SUSPEND_getInstance());
|
|
2173
2173
|
}
|
|
2174
2174
|
var Companion_instance_4;
|
|
2175
2175
|
function Companion_getInstance_4() {
|
|
@@ -2179,11 +2179,11 @@ function Companion_getInstance_4() {
|
|
|
2179
2179
|
}
|
|
2180
2180
|
function ChannelConfig(capacity, onOverflow) {
|
|
2181
2181
|
Companion_getInstance_4();
|
|
2182
|
-
this.
|
|
2183
|
-
this.
|
|
2182
|
+
this.w51_1 = capacity;
|
|
2183
|
+
this.x51_1 = onOverflow;
|
|
2184
2184
|
}
|
|
2185
|
-
protoOf(ChannelConfig).
|
|
2186
|
-
return this.
|
|
2185
|
+
protoOf(ChannelConfig).y51 = function () {
|
|
2186
|
+
return this.x51_1.equals(ChannelOverflow_SUSPEND_getInstance()) && !(this.w51_1 === 2147483647);
|
|
2187
2187
|
};
|
|
2188
2188
|
var ChannelOverflow_SUSPEND_instance;
|
|
2189
2189
|
var ChannelOverflow_CLOSE_instance;
|
|
@@ -2222,7 +2222,7 @@ function BoundedChannel$Companion$createDelegate$lambda($channel) {
|
|
|
2222
2222
|
}
|
|
2223
2223
|
function Companion_5() {
|
|
2224
2224
|
}
|
|
2225
|
-
protoOf(Companion_5).
|
|
2225
|
+
protoOf(Companion_5).z51 = function (capacity) {
|
|
2226
2226
|
var channel = {_v: null};
|
|
2227
2227
|
var tmp = BufferOverflow_DROP_OLDEST_getInstance();
|
|
2228
2228
|
// Inline function 'kotlin.also' call
|
|
@@ -2235,45 +2235,45 @@ function Companion_getInstance_5() {
|
|
|
2235
2235
|
return Companion_instance_5;
|
|
2236
2236
|
}
|
|
2237
2237
|
function BoundedChannel(capacity, delegate) {
|
|
2238
|
-
delegate = delegate === VOID ? Companion_instance_5.
|
|
2239
|
-
this.
|
|
2238
|
+
delegate = delegate === VOID ? Companion_instance_5.z51(capacity) : delegate;
|
|
2239
|
+
this.a52_1 = delegate;
|
|
2240
2240
|
}
|
|
2241
|
-
protoOf(BoundedChannel).
|
|
2242
|
-
var result = this.
|
|
2241
|
+
protoOf(BoundedChannel).b52 = function (element) {
|
|
2242
|
+
var result = this.a52_1.w28(element);
|
|
2243
2243
|
if (!_ChannelResult___get_isSuccess__impl__odq1z9(result) && !_ChannelResult___get_isClosed__impl__mg7kuu(result)) {
|
|
2244
2244
|
this.a29(new ChannelOverflowException('Channel overflowed'));
|
|
2245
2245
|
}
|
|
2246
2246
|
return result;
|
|
2247
2247
|
};
|
|
2248
2248
|
protoOf(BoundedChannel).w28 = function (element) {
|
|
2249
|
-
return this.
|
|
2249
|
+
return this.b52(element);
|
|
2250
2250
|
};
|
|
2251
|
-
protoOf(BoundedChannel).
|
|
2252
|
-
return this.
|
|
2251
|
+
protoOf(BoundedChannel).c52 = function (element, $completion) {
|
|
2252
|
+
return this.a52_1.v28(element, $completion);
|
|
2253
2253
|
};
|
|
2254
2254
|
protoOf(BoundedChannel).v28 = function (element, $completion) {
|
|
2255
|
-
return this.
|
|
2255
|
+
return this.c52(element, $completion);
|
|
2256
2256
|
};
|
|
2257
2257
|
protoOf(BoundedChannel).a29 = function (cause) {
|
|
2258
|
-
return this.
|
|
2258
|
+
return this.a52_1.a29(cause);
|
|
2259
2259
|
};
|
|
2260
2260
|
protoOf(BoundedChannel).f29 = function (handler) {
|
|
2261
|
-
this.
|
|
2261
|
+
this.a52_1.f29(handler);
|
|
2262
2262
|
};
|
|
2263
2263
|
protoOf(BoundedChannel).a27 = function () {
|
|
2264
|
-
return this.
|
|
2264
|
+
return this.a52_1.a27();
|
|
2265
2265
|
};
|
|
2266
|
-
protoOf(BoundedChannel).
|
|
2267
|
-
return this.
|
|
2266
|
+
protoOf(BoundedChannel).d52 = function ($completion) {
|
|
2267
|
+
return this.a52_1.y28($completion);
|
|
2268
2268
|
};
|
|
2269
2269
|
protoOf(BoundedChannel).y28 = function ($completion) {
|
|
2270
|
-
return this.
|
|
2270
|
+
return this.d52($completion);
|
|
2271
2271
|
};
|
|
2272
2272
|
protoOf(BoundedChannel).t = function () {
|
|
2273
|
-
return this.
|
|
2273
|
+
return this.a52_1.t();
|
|
2274
2274
|
};
|
|
2275
2275
|
protoOf(BoundedChannel).t1r = function (cause) {
|
|
2276
|
-
this.
|
|
2276
|
+
this.a52_1.t1r(cause);
|
|
2277
2277
|
};
|
|
2278
2278
|
function ChannelOverflowException(message) {
|
|
2279
2279
|
RuntimeException_init_$Init$(message, this);
|
|
@@ -2292,16 +2292,16 @@ function WebSocketExtension() {
|
|
|
2292
2292
|
function WebSocketExtensionsConfig() {
|
|
2293
2293
|
var tmp = this;
|
|
2294
2294
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2295
|
-
tmp.
|
|
2295
|
+
tmp.g52_1 = ArrayList_init_$Create$();
|
|
2296
2296
|
var tmp_0 = this;
|
|
2297
2297
|
// Inline function 'kotlin.arrayOf' call
|
|
2298
2298
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2299
2299
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2300
|
-
tmp_0.
|
|
2300
|
+
tmp_0.h52_1 = [false, false, false];
|
|
2301
2301
|
}
|
|
2302
|
-
protoOf(WebSocketExtensionsConfig).
|
|
2302
|
+
protoOf(WebSocketExtensionsConfig).s4c = function () {
|
|
2303
2303
|
// Inline function 'kotlin.collections.map' call
|
|
2304
|
-
var this_0 = this.
|
|
2304
|
+
var this_0 = this.g52_1;
|
|
2305
2305
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2306
2306
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2307
2307
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2313,14 +2313,14 @@ protoOf(WebSocketExtensionsConfig).o4c = function () {
|
|
|
2313
2313
|
return destination;
|
|
2314
2314
|
};
|
|
2315
2315
|
function parametersToString($this) {
|
|
2316
|
-
return $this.
|
|
2316
|
+
return $this.j52_1.r() ? '' : '; ' + joinToString($this.j52_1, ';');
|
|
2317
2317
|
}
|
|
2318
2318
|
function WebSocketExtensionHeader(name, parameters) {
|
|
2319
|
-
this.
|
|
2320
|
-
this.
|
|
2319
|
+
this.i52_1 = name;
|
|
2320
|
+
this.j52_1 = parameters;
|
|
2321
2321
|
}
|
|
2322
2322
|
protoOf(WebSocketExtensionHeader).toString = function () {
|
|
2323
|
-
return this.
|
|
2323
|
+
return this.i52_1 + ' ' + parametersToString(this);
|
|
2324
2324
|
};
|
|
2325
2325
|
function parseWebSocketExtensions(value) {
|
|
2326
2326
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2373,8 +2373,8 @@ function closeExceptionally(_this__u8e3s4, cause, $completion) {
|
|
|
2373
2373
|
}
|
|
2374
2374
|
function $closeCOROUTINE$(_this__u8e3s4, reason, resultContinuation) {
|
|
2375
2375
|
CoroutineImpl.call(this, resultContinuation);
|
|
2376
|
-
this.
|
|
2377
|
-
this.
|
|
2376
|
+
this.s52_1 = _this__u8e3s4;
|
|
2377
|
+
this.t52_1 = reason;
|
|
2378
2378
|
}
|
|
2379
2379
|
protoOf($closeCOROUTINE$).j9 = function () {
|
|
2380
2380
|
var suspendResult = this.d9_1;
|
|
@@ -2386,7 +2386,7 @@ protoOf($closeCOROUTINE$).j9 = function () {
|
|
|
2386
2386
|
this.c9_1 = 4;
|
|
2387
2387
|
this.c9_1 = 3;
|
|
2388
2388
|
this.b9_1 = 1;
|
|
2389
|
-
suspendResult = this.
|
|
2389
|
+
suspendResult = this.s52_1.b4v(Close_init_$Create$(this.t52_1), this);
|
|
2390
2390
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2391
2391
|
return suspendResult;
|
|
2392
2392
|
}
|
|
@@ -2394,7 +2394,7 @@ protoOf($closeCOROUTINE$).j9 = function () {
|
|
|
2394
2394
|
continue $sm;
|
|
2395
2395
|
case 1:
|
|
2396
2396
|
this.b9_1 = 2;
|
|
2397
|
-
suspendResult = this.
|
|
2397
|
+
suspendResult = this.s52_1.u3x(this);
|
|
2398
2398
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2399
2399
|
return suspendResult;
|
|
2400
2400
|
}
|
|
@@ -2453,8 +2453,8 @@ function Text_init_$Create$(text) {
|
|
|
2453
2453
|
function Close_init_$Init$(reason, $this) {
|
|
2454
2454
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
2455
2455
|
var builder = new Buffer();
|
|
2456
|
-
builder.
|
|
2457
|
-
writeText(builder, reason.
|
|
2456
|
+
builder.m3u(reason.i4u_1);
|
|
2457
|
+
writeText(builder, reason.j4u_1);
|
|
2458
2458
|
Close_init_$Init$_0(builder, $this);
|
|
2459
2459
|
return $this;
|
|
2460
2460
|
}
|
|
@@ -2466,7 +2466,7 @@ function Close_init_$Init$_0(packet, $this) {
|
|
|
2466
2466
|
return $this;
|
|
2467
2467
|
}
|
|
2468
2468
|
function Close_init_$Init$_1($this) {
|
|
2469
|
-
Close.call($this, Companion_getInstance_6().
|
|
2469
|
+
Close.call($this, Companion_getInstance_6().q4y_1);
|
|
2470
2470
|
return $this;
|
|
2471
2471
|
}
|
|
2472
2472
|
function Close_init_$Create$_0() {
|
|
@@ -2496,9 +2496,9 @@ function Pong(data, disposableHandle) {
|
|
|
2496
2496
|
}
|
|
2497
2497
|
function Companion_6() {
|
|
2498
2498
|
Companion_instance_6 = this;
|
|
2499
|
-
this.
|
|
2499
|
+
this.q4y_1 = new Int8Array(0);
|
|
2500
2500
|
}
|
|
2501
|
-
protoOf(Companion_6).
|
|
2501
|
+
protoOf(Companion_6).r4y = function (fin, frameType, data, rsv1, rsv2, rsv3) {
|
|
2502
2502
|
var tmp;
|
|
2503
2503
|
switch (frameType.a1_1) {
|
|
2504
2504
|
case 1:
|
|
@@ -2534,24 +2534,24 @@ function Frame(fin, frameType, data, disposableHandle, rsv1, rsv2, rsv3) {
|
|
|
2534
2534
|
rsv1 = rsv1 === VOID ? false : rsv1;
|
|
2535
2535
|
rsv2 = rsv2 === VOID ? false : rsv2;
|
|
2536
2536
|
rsv3 = rsv3 === VOID ? false : rsv3;
|
|
2537
|
-
this.
|
|
2538
|
-
this.
|
|
2539
|
-
this.
|
|
2540
|
-
this.
|
|
2541
|
-
this.
|
|
2542
|
-
this.
|
|
2543
|
-
this.
|
|
2537
|
+
this.p4u_1 = fin;
|
|
2538
|
+
this.q4u_1 = frameType;
|
|
2539
|
+
this.r4u_1 = data;
|
|
2540
|
+
this.s4u_1 = disposableHandle;
|
|
2541
|
+
this.t4u_1 = rsv1;
|
|
2542
|
+
this.u4u_1 = rsv2;
|
|
2543
|
+
this.v4u_1 = rsv3;
|
|
2544
2544
|
validateSize(this);
|
|
2545
2545
|
}
|
|
2546
2546
|
protoOf(Frame).toString = function () {
|
|
2547
|
-
return 'Frame ' + this.
|
|
2547
|
+
return 'Frame ' + this.q4u_1.toString() + ' (fin=' + this.p4u_1 + ', buffer len = ' + this.r4u_1.length + ')';
|
|
2548
2548
|
};
|
|
2549
2549
|
function get_OUTGOING_CHANNEL_CAPACITY() {
|
|
2550
2550
|
return OUTGOING_CHANNEL_CAPACITY;
|
|
2551
2551
|
}
|
|
2552
2552
|
var OUTGOING_CHANNEL_CAPACITY;
|
|
2553
2553
|
//region block: post-declaration
|
|
2554
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
2554
|
+
protoOf(DefaultWebSocketSessionImpl).b4v = send;
|
|
2555
2555
|
defineProp(protoOf(FrameTooBigException), 'message', function () {
|
|
2556
2556
|
return this.e();
|
|
2557
2557
|
});
|