@dmarket/p2p-tracker-core 1.0.2-beta → 1.0.4-SNAPSHOT.37
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 +4 -0
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
- package/VERSION +5 -5
- package/dmarket-p2p-tracker-core-domain.mjs +3575 -3575
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +2260 -2222
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-atomicfu.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +2492 -2492
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +32 -32
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +454 -454
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1935 -1935
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1510 -1510
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/ktor-ktor-client-core.mjs +3341 -3227
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-events.mjs +6 -6
- package/ktor-ktor-events.mjs.map +1 -1
- package/ktor-ktor-http-cio.mjs +484 -484
- package/ktor-ktor-http-cio.mjs.map +1 -1
- package/ktor-ktor-http.mjs +1067 -1010
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +1060 -1111
- package/ktor-ktor-io.mjs.map +1 -1
- package/ktor-ktor-openapi-schema.mjs +4 -0
- package/ktor-ktor-openapi-schema.mjs.map +1 -0
- package/ktor-ktor-utils.mjs +790 -751
- package/ktor-ktor-utils.mjs.map +1 -1
- package/ktor-ktor-websockets.mjs +761 -750
- package/ktor-ktor-websockets.mjs.map +1 -1
- package/p2p-tracker-core.d.mts +2 -2
- package/p2p-tracker-core.mjs +11449 -11319
- package/p2p-tracker-core.mjs.map +1 -1
- package/package.json +1 -1
- package/pkg/client_wasm.js +11 -3
- package/pkg/client_wasm_bg.wasm +0 -0
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.p4g().l25(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.
|
|
187
|
-
destination.
|
|
186
|
+
var tmp$ret$2 = element.t4f_1;
|
|
187
|
+
destination.c3(tmp$ret$2, element);
|
|
188
188
|
}
|
|
189
|
-
tmp.
|
|
190
|
-
this.
|
|
189
|
+
tmp.u4f_1 = destination;
|
|
190
|
+
this.v4f_1 = Codes_INTERNAL_ERROR_getInstance();
|
|
191
191
|
}
|
|
192
|
-
protoOf(Companion).
|
|
193
|
-
return this.
|
|
192
|
+
protoOf(Companion).w4f = function (code) {
|
|
193
|
+
return this.u4f_1.t2(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.t4f_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.t4f_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.x4f_1 = code;
|
|
297
|
+
this.y4f_1 = message;
|
|
298
|
+
var size = utf8Size(this.y4f_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).z4f = function () {
|
|
306
|
+
return Companion_getInstance().w4f(this.x4f_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.z4f();
|
|
310
|
+
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.x4f_1 : tmp0_elvis_lhs) + ', message=' + this.y4f_1 + ')';
|
|
311
311
|
};
|
|
312
312
|
protoOf(CloseReason).hashCode = function () {
|
|
313
|
-
var result = this.
|
|
314
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
313
|
+
var result = this.x4f_1;
|
|
314
|
+
result = imul(result, 31) + getStringHashCode(this.y4f_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.x4f_1 === other.x4f_1))
|
|
323
323
|
return false;
|
|
324
|
-
if (!(this.
|
|
324
|
+
if (!(this.y4f_1 === other.y4f_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.c4g_1
|
|
359
|
-
var message = 'Control frames must not exceed 125 bytes per RFC 6455, ' + ('but ' + _this__u8e3s4.
|
|
358
|
+
if (!(!_this__u8e3s4.f4g_1.c4g_1 || _this__u8e3s4.g4g_1.length <= 125)) {
|
|
359
|
+
var message = 'Control frames must not exceed 125 bytes per RFC 6455, ' + ('but ' + _this__u8e3s4.f4g_1.toString() + ' frame has ' + _this__u8e3s4.g4g_1.length + ' bytes');
|
|
360
360
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
361
361
|
}
|
|
362
362
|
}
|
|
@@ -386,98 +386,98 @@ function DefaultWebSocketSession() {
|
|
|
386
386
|
function DefaultWebSocketSession_0(session, pingIntervalMillis, timeoutMillis, channelsConfig) {
|
|
387
387
|
pingIntervalMillis = pingIntervalMillis === VOID ? new Long(0, 0) : pingIntervalMillis;
|
|
388
388
|
timeoutMillis = timeoutMillis === VOID ? new Long(15000, 0) : timeoutMillis;
|
|
389
|
-
channelsConfig = channelsConfig === VOID ? Companion_getInstance_3().
|
|
389
|
+
channelsConfig = channelsConfig === VOID ? Companion_getInstance_3().r4g_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.s4g_1, channelsConfig.t4g_1);
|
|
397
397
|
}
|
|
398
398
|
function runIncomingProcessor($this, ponger) {
|
|
399
|
-
var tmp = get_IncomingProcessorCoroutineName().
|
|
399
|
+
var tmp = get_IncomingProcessorCoroutineName().xh(Dispatchers_getInstance().g1z_1);
|
|
400
400
|
return launch($this, tmp, VOID, DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0($this, ponger, null));
|
|
401
401
|
}
|
|
402
402
|
function runOutgoingProcessor($this) {
|
|
403
|
-
var tmp = get_OutgoingProcessorCoroutineName().
|
|
403
|
+
var tmp = get_OutgoingProcessorCoroutineName().xh(Dispatchers_getInstance().g1z_1);
|
|
404
404
|
var tmp_0 = CoroutineStart_UNDISPATCHED_getInstance();
|
|
405
405
|
return launch($this, tmp, tmp_0, DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0($this, null));
|
|
406
406
|
}
|
|
407
407
|
function outgoingProcessorLoop($this, $completion) {
|
|
408
408
|
var tmp = new $outgoingProcessorLoopCOROUTINE$($this, $completion);
|
|
409
|
-
tmp.
|
|
410
|
-
tmp.
|
|
411
|
-
return tmp.
|
|
409
|
+
tmp.y8_1 = Unit_instance;
|
|
410
|
+
tmp.z8_1 = null;
|
|
411
|
+
return tmp.e9();
|
|
412
412
|
}
|
|
413
413
|
function sendCloseSequence($this, reason, exception, $completion) {
|
|
414
414
|
exception = exception === VOID ? null : exception;
|
|
415
415
|
var tmp = new $sendCloseSequenceCOROUTINE$($this, reason, exception, $completion);
|
|
416
|
-
tmp.
|
|
417
|
-
tmp.
|
|
418
|
-
return tmp.
|
|
416
|
+
tmp.y8_1 = Unit_instance;
|
|
417
|
+
tmp.z8_1 = null;
|
|
418
|
+
return tmp.e9();
|
|
419
419
|
}
|
|
420
420
|
function tryClose($this) {
|
|
421
|
-
return $this.
|
|
421
|
+
return $this.y4h_1.atomicfu$compareAndSet(false, true);
|
|
422
422
|
}
|
|
423
423
|
function runOrCancelPinger($this) {
|
|
424
|
-
var interval = $this.
|
|
424
|
+
var interval = $this.b4i_1;
|
|
425
425
|
var tmp;
|
|
426
|
-
if ($this.
|
|
426
|
+
if ($this.y4h_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.r4h_1.p4g();
|
|
430
|
+
var tmp_1 = $this.c4i_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.s4h_1.atomicfu$getAndSet(newPinger);
|
|
437
437
|
if (tmp0_safe_receiver == null)
|
|
438
438
|
null;
|
|
439
439
|
else
|
|
440
|
-
tmp0_safe_receiver.
|
|
441
|
-
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.
|
|
440
|
+
tmp0_safe_receiver.s25();
|
|
441
|
+
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.m25(Companion_getInstance_1().e4i_1));
|
|
442
442
|
if (tmp2_safe_receiver == null)
|
|
443
443
|
null;
|
|
444
444
|
else
|
|
445
|
-
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.
|
|
446
|
-
if ($this.
|
|
445
|
+
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.w23_1);
|
|
446
|
+
if ($this.y4h_1.kotlinx$atomicfu$value && !(newPinger == null)) {
|
|
447
447
|
runOrCancelPinger($this);
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
function checkMaxFrameSize($this, packet, frame, $completion) {
|
|
451
451
|
var tmp = new $checkMaxFrameSizeCOROUTINE$($this, packet, frame, $completion);
|
|
452
|
-
tmp.
|
|
453
|
-
tmp.
|
|
454
|
-
return tmp.
|
|
452
|
+
tmp.y8_1 = Unit_instance;
|
|
453
|
+
tmp.z8_1 = null;
|
|
454
|
+
return tmp.e9();
|
|
455
455
|
}
|
|
456
456
|
function processIncomingExtensions($this, frame) {
|
|
457
457
|
// Inline function 'kotlin.collections.fold' call
|
|
458
458
|
var accumulator = frame;
|
|
459
|
-
var _iterator__ex2g4s = $this.
|
|
459
|
+
var _iterator__ex2g4s = $this.r4i().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.s4i(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.r4i().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.t4i(current);
|
|
475
475
|
}
|
|
476
476
|
return accumulator;
|
|
477
477
|
}
|
|
478
478
|
function Companion_1() {
|
|
479
479
|
Companion_instance_1 = this;
|
|
480
|
-
this.
|
|
480
|
+
this.e4i_1 = new Pong(new Int8Array(0), NonDisposableHandle_instance);
|
|
481
481
|
}
|
|
482
482
|
var Companion_instance_1;
|
|
483
483
|
function Companion_getInstance_1() {
|
|
@@ -486,128 +486,128 @@ function Companion_getInstance_1() {
|
|
|
486
486
|
return Companion_instance_1;
|
|
487
487
|
}
|
|
488
488
|
function DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
489
|
-
this.
|
|
490
|
-
this.
|
|
491
|
-
this.
|
|
489
|
+
this.c4j_1 = $incomingJob;
|
|
490
|
+
this.d4j_1 = $outgoingJob;
|
|
491
|
+
this.e4j_1 = this$0;
|
|
492
492
|
CoroutineImpl.call(this, resultContinuation);
|
|
493
493
|
}
|
|
494
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
495
|
-
var tmp = this.
|
|
496
|
-
tmp.
|
|
497
|
-
tmp.
|
|
498
|
-
return tmp.
|
|
494
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).g3t = function ($this$launch, $completion) {
|
|
495
|
+
var tmp = this.h3t($this$launch, $completion);
|
|
496
|
+
tmp.y8_1 = Unit_instance;
|
|
497
|
+
tmp.z8_1 = null;
|
|
498
|
+
return tmp.e9();
|
|
499
499
|
};
|
|
500
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
501
|
-
return this.
|
|
500
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).r9 = function (p1, $completion) {
|
|
501
|
+
return this.g3t((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
502
502
|
};
|
|
503
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
504
|
-
var suspendResult = this.
|
|
503
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).e9 = function () {
|
|
504
|
+
var suspendResult = this.y8_1;
|
|
505
505
|
$sm: do
|
|
506
506
|
try {
|
|
507
|
-
var tmp = this.
|
|
507
|
+
var tmp = this.w8_1;
|
|
508
508
|
switch (tmp) {
|
|
509
509
|
case 0:
|
|
510
|
-
this.
|
|
511
|
-
this.
|
|
512
|
-
suspendResult = this.
|
|
510
|
+
this.x8_1 = 3;
|
|
511
|
+
this.w8_1 = 1;
|
|
512
|
+
suspendResult = this.c4j_1.g1o(this);
|
|
513
513
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
514
514
|
return suspendResult;
|
|
515
515
|
}
|
|
516
516
|
|
|
517
517
|
continue $sm;
|
|
518
518
|
case 1:
|
|
519
|
-
this.
|
|
520
|
-
suspendResult = this.
|
|
519
|
+
this.w8_1 = 2;
|
|
520
|
+
suspendResult = this.d4j_1.g1o(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.e4j_1.u4h_1.k1o();
|
|
528
528
|
return Unit_instance;
|
|
529
529
|
case 3:
|
|
530
|
-
throw this.
|
|
530
|
+
throw this.z8_1;
|
|
531
531
|
}
|
|
532
532
|
} catch ($p) {
|
|
533
533
|
var e = $p;
|
|
534
|
-
if (this.
|
|
534
|
+
if (this.x8_1 === 3) {
|
|
535
535
|
throw e;
|
|
536
536
|
} else {
|
|
537
|
-
this.
|
|
538
|
-
this.
|
|
537
|
+
this.w8_1 = this.x8_1;
|
|
538
|
+
this.z8_1 = e;
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
while (true);
|
|
542
542
|
};
|
|
543
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
544
|
-
var i = new DefaultWebSocketSessionImpl$start$slambda(this.
|
|
545
|
-
i.
|
|
543
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).h3t = function ($this$launch, completion) {
|
|
544
|
+
var i = new DefaultWebSocketSessionImpl$start$slambda(this.c4j_1, this.d4j_1, this.e4j_1, completion);
|
|
545
|
+
i.f4j_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.g3t($this$launch, $completion);
|
|
552
552
|
}, 1);
|
|
553
553
|
}
|
|
554
554
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation) {
|
|
555
|
-
this.
|
|
556
|
-
this.
|
|
555
|
+
this.o4j_1 = this$0;
|
|
556
|
+
this.p4j_1 = $ponger;
|
|
557
557
|
CoroutineImpl.call(this, resultContinuation);
|
|
558
558
|
}
|
|
559
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
560
|
-
var tmp = this.
|
|
561
|
-
tmp.
|
|
562
|
-
tmp.
|
|
563
|
-
return tmp.
|
|
559
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).g3t = function ($this$launch, $completion) {
|
|
560
|
+
var tmp = this.h3t($this$launch, $completion);
|
|
561
|
+
tmp.y8_1 = Unit_instance;
|
|
562
|
+
tmp.z8_1 = null;
|
|
563
|
+
return tmp.e9();
|
|
564
564
|
};
|
|
565
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
566
|
-
return this.
|
|
565
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r9 = function (p1, $completion) {
|
|
566
|
+
return this.g3t((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
567
567
|
};
|
|
568
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
569
|
-
var suspendResult = this.
|
|
568
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).e9 = function () {
|
|
569
|
+
var suspendResult = this.y8_1;
|
|
570
570
|
$sm: do
|
|
571
571
|
try {
|
|
572
|
-
var tmp = this.
|
|
572
|
+
var tmp = this.w8_1;
|
|
573
573
|
switch (tmp) {
|
|
574
574
|
case 0:
|
|
575
|
-
this.
|
|
576
|
-
this.
|
|
577
|
-
this.
|
|
578
|
-
this.
|
|
579
|
-
this.
|
|
580
|
-
this.
|
|
575
|
+
this.x8_1 = 39;
|
|
576
|
+
this.a4k_1 = null;
|
|
577
|
+
this.t4j_1 = null;
|
|
578
|
+
this.s4j_1 = false;
|
|
579
|
+
this.u4j_1 = Unit_instance;
|
|
580
|
+
this.w8_1 = 1;
|
|
581
581
|
continue $sm;
|
|
582
582
|
case 1:
|
|
583
|
-
this.
|
|
583
|
+
this.w8_1 = 2;
|
|
584
584
|
continue $sm;
|
|
585
585
|
case 2:
|
|
586
|
-
this.
|
|
587
|
-
this.
|
|
588
|
-
this.
|
|
589
|
-
this.
|
|
586
|
+
this.x8_1 = 33;
|
|
587
|
+
this.x8_1 = 32;
|
|
588
|
+
this.e4k_1 = this.o4j_1.r4h_1.o4g();
|
|
589
|
+
this.w8_1 = 3;
|
|
590
590
|
continue $sm;
|
|
591
591
|
case 3:
|
|
592
|
-
this.
|
|
593
|
-
this.
|
|
594
|
-
this.
|
|
592
|
+
this.x4j_1 = this.e4k_1;
|
|
593
|
+
this.w4j_1 = null;
|
|
594
|
+
this.w8_1 = 4;
|
|
595
595
|
continue $sm;
|
|
596
596
|
case 4:
|
|
597
|
-
this.
|
|
597
|
+
this.w8_1 = 5;
|
|
598
598
|
continue $sm;
|
|
599
599
|
case 5:
|
|
600
|
-
this.
|
|
600
|
+
this.w8_1 = 6;
|
|
601
601
|
continue $sm;
|
|
602
602
|
case 6:
|
|
603
|
-
this.
|
|
604
|
-
this.
|
|
605
|
-
this.
|
|
606
|
-
this.
|
|
603
|
+
this.x8_1 = 29;
|
|
604
|
+
this.x8_1 = 28;
|
|
605
|
+
this.d4k_1 = this.x4j_1.t();
|
|
606
|
+
this.w8_1 = 7;
|
|
607
607
|
continue $sm;
|
|
608
608
|
case 7:
|
|
609
|
-
this.
|
|
610
|
-
suspendResult = this.
|
|
609
|
+
this.w8_1 = 8;
|
|
610
|
+
suspendResult = this.d4k_1.o23(this);
|
|
611
611
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
612
612
|
return suspendResult;
|
|
613
613
|
}
|
|
@@ -615,46 +615,46 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
615
615
|
continue $sm;
|
|
616
616
|
case 8:
|
|
617
617
|
if (!suspendResult) {
|
|
618
|
-
this.
|
|
618
|
+
this.w8_1 = 26;
|
|
619
619
|
continue $sm;
|
|
620
620
|
}
|
|
621
621
|
|
|
622
|
-
var e = this.
|
|
623
|
-
this.
|
|
624
|
-
this.
|
|
622
|
+
var e = this.d4k_1.v();
|
|
623
|
+
this.c4k_1 = e;
|
|
624
|
+
this.w8_1 = 9;
|
|
625
625
|
continue $sm;
|
|
626
626
|
case 9:
|
|
627
|
-
this.
|
|
627
|
+
this.b4k_1 = this.c4k_1;
|
|
628
628
|
var this_0 = get_LOGGER();
|
|
629
629
|
if (get_isTraceEnabled(this_0)) {
|
|
630
|
-
this_0.
|
|
630
|
+
this_0.a42('WebSocketSession(' + toString(this.q4j_1) + ') receiving frame ' + this.b4k_1.toString());
|
|
631
631
|
}
|
|
632
632
|
|
|
633
|
-
var tmp0_subject = this.
|
|
633
|
+
var tmp0_subject = this.b4k_1;
|
|
634
634
|
if (tmp0_subject instanceof Close) {
|
|
635
|
-
if (!this.
|
|
636
|
-
this.
|
|
637
|
-
var tmp_0 = this.
|
|
638
|
-
var tmp1_elvis_lhs = readReason(this.
|
|
639
|
-
suspendResult = tmp_0.
|
|
635
|
+
if (!this.o4j_1.p4g().q23()) {
|
|
636
|
+
this.w8_1 = 18;
|
|
637
|
+
var tmp_0 = this.o4j_1.p4g();
|
|
638
|
+
var tmp1_elvis_lhs = readReason(this.b4k_1);
|
|
639
|
+
suspendResult = tmp_0.l25(Close_init_$Create$(tmp1_elvis_lhs == null ? get_NORMAL_CLOSE() : tmp1_elvis_lhs), this);
|
|
640
640
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
641
641
|
return suspendResult;
|
|
642
642
|
}
|
|
643
643
|
continue $sm;
|
|
644
644
|
} else {
|
|
645
|
-
this.
|
|
645
|
+
this.w8_1 = 19;
|
|
646
646
|
continue $sm;
|
|
647
647
|
}
|
|
648
648
|
} else {
|
|
649
649
|
if (tmp0_subject instanceof Pong) {
|
|
650
|
-
var tmp2_safe_receiver = this.
|
|
650
|
+
var tmp2_safe_receiver = this.o4j_1.s4h_1.kotlinx$atomicfu$value;
|
|
651
651
|
if (tmp2_safe_receiver == null) {
|
|
652
|
-
this.
|
|
653
|
-
this.
|
|
652
|
+
this.z4j_1 = null;
|
|
653
|
+
this.w8_1 = 17;
|
|
654
654
|
continue $sm;
|
|
655
655
|
} else {
|
|
656
|
-
this.
|
|
657
|
-
suspendResult = tmp2_safe_receiver.
|
|
656
|
+
this.w8_1 = 16;
|
|
657
|
+
suspendResult = tmp2_safe_receiver.l25(this.b4k_1, this);
|
|
658
658
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
659
659
|
return suspendResult;
|
|
660
660
|
}
|
|
@@ -662,15 +662,15 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
662
662
|
}
|
|
663
663
|
} else {
|
|
664
664
|
if (tmp0_subject instanceof Ping) {
|
|
665
|
-
this.
|
|
666
|
-
suspendResult = this.
|
|
665
|
+
this.w8_1 = 15;
|
|
666
|
+
suspendResult = this.p4j_1.l25(this.b4k_1, this);
|
|
667
667
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
668
668
|
return suspendResult;
|
|
669
669
|
}
|
|
670
670
|
continue $sm;
|
|
671
671
|
} else {
|
|
672
|
-
this.
|
|
673
|
-
suspendResult = checkMaxFrameSize(this.
|
|
672
|
+
this.w8_1 = 10;
|
|
673
|
+
suspendResult = checkMaxFrameSize(this.o4j_1, this.t4j_1, this.b4k_1, this);
|
|
674
674
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
675
675
|
return suspendResult;
|
|
676
676
|
}
|
|
@@ -680,40 +680,40 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
680
680
|
}
|
|
681
681
|
|
|
682
682
|
case 10:
|
|
683
|
-
if (!this.
|
|
684
|
-
if (this.
|
|
685
|
-
this.
|
|
683
|
+
if (!this.b4k_1.e4g_1) {
|
|
684
|
+
if (this.a4k_1 == null) {
|
|
685
|
+
this.a4k_1 = this.b4k_1;
|
|
686
686
|
}
|
|
687
|
-
if (this.
|
|
688
|
-
this.
|
|
687
|
+
if (this.t4j_1 == null) {
|
|
688
|
+
this.t4j_1 = BytePacketBuilder();
|
|
689
689
|
}
|
|
690
|
-
writeFully(this.
|
|
691
|
-
this.
|
|
690
|
+
writeFully(this.t4j_1, this.b4k_1.g4g_1);
|
|
691
|
+
this.w8_1 = 21;
|
|
692
692
|
continue $sm;
|
|
693
693
|
} else {
|
|
694
|
-
this.
|
|
694
|
+
this.w8_1 = 11;
|
|
695
695
|
continue $sm;
|
|
696
696
|
}
|
|
697
697
|
|
|
698
698
|
case 11:
|
|
699
|
-
if (this.
|
|
700
|
-
this.
|
|
701
|
-
suspendResult = this.
|
|
699
|
+
if (this.a4k_1 == null) {
|
|
700
|
+
this.w8_1 = 14;
|
|
701
|
+
suspendResult = this.o4j_1.w4h_1.l25(processIncomingExtensions(this.o4j_1, this.b4k_1), this);
|
|
702
702
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
703
703
|
return suspendResult;
|
|
704
704
|
}
|
|
705
705
|
continue $sm;
|
|
706
706
|
} else {
|
|
707
|
-
this.
|
|
707
|
+
this.w8_1 = 12;
|
|
708
708
|
continue $sm;
|
|
709
709
|
}
|
|
710
710
|
|
|
711
711
|
case 12:
|
|
712
|
-
writeFully(ensureNotNull(this.
|
|
713
|
-
var defragmented = Companion_getInstance_6().
|
|
714
|
-
this.
|
|
715
|
-
this.
|
|
716
|
-
suspendResult = this.
|
|
712
|
+
writeFully(ensureNotNull(this.t4j_1), this.b4k_1.g4g_1);
|
|
713
|
+
var defragmented = Companion_getInstance_6().g4k(true, this.a4k_1.f4g_1, readByteArray(build(this.t4j_1)), this.a4k_1.i4g_1, this.a4k_1.j4g_1, this.a4k_1.k4g_1);
|
|
714
|
+
this.a4k_1 = null;
|
|
715
|
+
this.w8_1 = 13;
|
|
716
|
+
suspendResult = this.o4j_1.w4h_1.l25(processIncomingExtensions(this.o4j_1, defragmented), this);
|
|
717
717
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
718
718
|
return suspendResult;
|
|
719
719
|
}
|
|
@@ -721,314 +721,314 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
721
721
|
continue $sm;
|
|
722
722
|
case 13:
|
|
723
723
|
var tmp_1 = this;
|
|
724
|
-
tmp_1.
|
|
725
|
-
this.
|
|
724
|
+
tmp_1.y4j_1 = Unit_instance;
|
|
725
|
+
this.w8_1 = 20;
|
|
726
726
|
continue $sm;
|
|
727
727
|
case 14:
|
|
728
|
-
this.
|
|
728
|
+
this.w8_1 = 21;
|
|
729
729
|
continue $sm;
|
|
730
730
|
case 15:
|
|
731
731
|
var tmp_2 = this;
|
|
732
|
-
tmp_2.
|
|
733
|
-
this.
|
|
732
|
+
tmp_2.y4j_1 = Unit_instance;
|
|
733
|
+
this.w8_1 = 20;
|
|
734
734
|
continue $sm;
|
|
735
735
|
case 16:
|
|
736
736
|
var tmp_3 = this;
|
|
737
|
-
tmp_3.
|
|
738
|
-
this.
|
|
737
|
+
tmp_3.z4j_1 = Unit_instance;
|
|
738
|
+
this.w8_1 = 17;
|
|
739
739
|
continue $sm;
|
|
740
740
|
case 17:
|
|
741
|
-
this.
|
|
742
|
-
this.
|
|
741
|
+
this.y4j_1 = this.z4j_1;
|
|
742
|
+
this.w8_1 = 20;
|
|
743
743
|
continue $sm;
|
|
744
744
|
case 18:
|
|
745
|
-
this.
|
|
745
|
+
this.w8_1 = 19;
|
|
746
746
|
continue $sm;
|
|
747
747
|
case 19:
|
|
748
|
-
this.
|
|
749
|
-
this.
|
|
748
|
+
this.s4j_1 = true;
|
|
749
|
+
this.w8_1 = 22;
|
|
750
750
|
var tmp_4 = this;
|
|
751
751
|
continue $sm;
|
|
752
752
|
case 20:
|
|
753
753
|
if (false) {
|
|
754
|
-
this.
|
|
754
|
+
this.w8_1 = 9;
|
|
755
755
|
continue $sm;
|
|
756
756
|
}
|
|
757
757
|
|
|
758
|
-
this.
|
|
758
|
+
this.w8_1 = 21;
|
|
759
759
|
continue $sm;
|
|
760
760
|
case 21:
|
|
761
|
-
this.
|
|
761
|
+
this.w8_1 = 7;
|
|
762
762
|
continue $sm;
|
|
763
763
|
case 22:
|
|
764
|
-
this.
|
|
765
|
-
cancelConsumed(this.
|
|
766
|
-
this.
|
|
767
|
-
this.
|
|
764
|
+
this.x8_1 = 32;
|
|
765
|
+
cancelConsumed(this.x4j_1, this.w4j_1);
|
|
766
|
+
this.x8_1 = 39;
|
|
767
|
+
this.w8_1 = 23;
|
|
768
768
|
continue $sm;
|
|
769
769
|
case 23:
|
|
770
|
-
this.
|
|
771
|
-
this.
|
|
772
|
-
var tmp0_safe_receiver = this.
|
|
770
|
+
this.x8_1 = 39;
|
|
771
|
+
this.p4j_1.s25();
|
|
772
|
+
var tmp0_safe_receiver = this.t4j_1;
|
|
773
773
|
if (tmp0_safe_receiver == null)
|
|
774
774
|
null;
|
|
775
775
|
else {
|
|
776
|
-
tmp0_safe_receiver.
|
|
776
|
+
tmp0_safe_receiver.e4();
|
|
777
777
|
}
|
|
778
778
|
|
|
779
|
-
this.
|
|
780
|
-
if (!this.
|
|
781
|
-
this.
|
|
782
|
-
suspendResult = close(this.
|
|
779
|
+
this.o4j_1.w4h_1.s25();
|
|
780
|
+
if (!this.s4j_1) {
|
|
781
|
+
this.w8_1 = 24;
|
|
782
|
+
suspendResult = close(this.o4j_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
783
783
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
784
784
|
return suspendResult;
|
|
785
785
|
}
|
|
786
786
|
continue $sm;
|
|
787
787
|
} else {
|
|
788
|
-
this.
|
|
788
|
+
this.w8_1 = 25;
|
|
789
789
|
continue $sm;
|
|
790
790
|
}
|
|
791
791
|
|
|
792
792
|
case 24:
|
|
793
|
-
this.
|
|
793
|
+
this.w8_1 = 25;
|
|
794
794
|
continue $sm;
|
|
795
795
|
case 25:
|
|
796
796
|
var tmp_5 = this;
|
|
797
797
|
return Unit_instance;
|
|
798
798
|
case 26:
|
|
799
|
-
this.
|
|
799
|
+
this.w8_1 = 27;
|
|
800
800
|
var tmp_6 = this;
|
|
801
801
|
continue $sm;
|
|
802
802
|
case 27:
|
|
803
|
-
this.
|
|
804
|
-
cancelConsumed(this.
|
|
805
|
-
this.
|
|
803
|
+
this.x8_1 = 32;
|
|
804
|
+
cancelConsumed(this.x4j_1, this.w4j_1);
|
|
805
|
+
this.w8_1 = 31;
|
|
806
806
|
continue $sm;
|
|
807
807
|
case 28:
|
|
808
|
-
this.
|
|
809
|
-
var tmp_7 = this.
|
|
808
|
+
this.x8_1 = 29;
|
|
809
|
+
var tmp_7 = this.z8_1;
|
|
810
810
|
if (tmp_7 instanceof Error) {
|
|
811
|
-
var e_0 = this.
|
|
811
|
+
var e_0 = this.z8_1;
|
|
812
812
|
var tmp_8 = this;
|
|
813
|
-
this.
|
|
813
|
+
this.w4j_1 = e_0;
|
|
814
814
|
throw e_0;
|
|
815
815
|
} else {
|
|
816
|
-
throw this.
|
|
816
|
+
throw this.z8_1;
|
|
817
817
|
}
|
|
818
818
|
|
|
819
819
|
case 29:
|
|
820
|
-
this.
|
|
821
|
-
var t = this.
|
|
822
|
-
cancelConsumed(this.
|
|
820
|
+
this.x8_1 = 32;
|
|
821
|
+
var t = this.z8_1;
|
|
822
|
+
cancelConsumed(this.x4j_1, this.w4j_1);
|
|
823
823
|
throw t;
|
|
824
824
|
case 30:
|
|
825
|
-
this.
|
|
826
|
-
cancelConsumed(this.
|
|
825
|
+
this.x8_1 = 32;
|
|
826
|
+
cancelConsumed(this.x4j_1, this.w4j_1);
|
|
827
827
|
if (false) {
|
|
828
|
-
this.
|
|
828
|
+
this.w8_1 = 3;
|
|
829
829
|
continue $sm;
|
|
830
830
|
}
|
|
831
831
|
|
|
832
|
-
this.
|
|
832
|
+
this.w8_1 = 31;
|
|
833
833
|
continue $sm;
|
|
834
834
|
case 31:
|
|
835
|
-
this.
|
|
836
|
-
this.
|
|
837
|
-
this.
|
|
835
|
+
this.u4j_1 = Unit_instance;
|
|
836
|
+
this.x8_1 = 39;
|
|
837
|
+
this.w8_1 = 36;
|
|
838
838
|
continue $sm;
|
|
839
839
|
case 32:
|
|
840
|
-
this.
|
|
841
|
-
var tmp_9 = this.
|
|
840
|
+
this.x8_1 = 33;
|
|
841
|
+
var tmp_9 = this.z8_1;
|
|
842
842
|
if (tmp_9 instanceof ClosedSendChannelException) {
|
|
843
|
-
var _unused_var__etf5q3 = this.
|
|
843
|
+
var _unused_var__etf5q3 = this.z8_1;
|
|
844
844
|
var tmp_10 = this;
|
|
845
|
-
tmp_10.
|
|
846
|
-
this.
|
|
847
|
-
this.
|
|
845
|
+
tmp_10.u4j_1 = Unit_instance;
|
|
846
|
+
this.x8_1 = 39;
|
|
847
|
+
this.w8_1 = 36;
|
|
848
848
|
continue $sm;
|
|
849
849
|
} else {
|
|
850
|
-
var tmp_11 = this.
|
|
850
|
+
var tmp_11 = this.z8_1;
|
|
851
851
|
if (tmp_11 instanceof Error) {
|
|
852
|
-
var cause = this.
|
|
852
|
+
var cause = this.z8_1;
|
|
853
853
|
var tmp_12 = this;
|
|
854
|
-
this.
|
|
855
|
-
tmp_12.
|
|
856
|
-
this.
|
|
857
|
-
this.
|
|
854
|
+
this.p4j_1.s25();
|
|
855
|
+
tmp_12.u4j_1 = this.o4j_1.w4h_1.q25(cause);
|
|
856
|
+
this.x8_1 = 39;
|
|
857
|
+
this.w8_1 = 36;
|
|
858
858
|
continue $sm;
|
|
859
859
|
} else {
|
|
860
|
-
throw this.
|
|
860
|
+
throw this.z8_1;
|
|
861
861
|
}
|
|
862
862
|
}
|
|
863
863
|
|
|
864
864
|
case 33:
|
|
865
|
-
this.
|
|
866
|
-
this.
|
|
867
|
-
this.
|
|
868
|
-
var tmp0_safe_receiver_0 = this.
|
|
865
|
+
this.x8_1 = 39;
|
|
866
|
+
this.v4j_1 = this.z8_1;
|
|
867
|
+
this.p4j_1.s25();
|
|
868
|
+
var tmp0_safe_receiver_0 = this.t4j_1;
|
|
869
869
|
if (tmp0_safe_receiver_0 == null)
|
|
870
870
|
null;
|
|
871
871
|
else {
|
|
872
|
-
tmp0_safe_receiver_0.
|
|
872
|
+
tmp0_safe_receiver_0.e4();
|
|
873
873
|
}
|
|
874
874
|
|
|
875
|
-
this.
|
|
876
|
-
if (!this.
|
|
877
|
-
this.
|
|
878
|
-
suspendResult = close(this.
|
|
875
|
+
this.o4j_1.w4h_1.s25();
|
|
876
|
+
if (!this.s4j_1) {
|
|
877
|
+
this.w8_1 = 34;
|
|
878
|
+
suspendResult = close(this.o4j_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
879
879
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
880
880
|
return suspendResult;
|
|
881
881
|
}
|
|
882
882
|
continue $sm;
|
|
883
883
|
} else {
|
|
884
|
-
this.
|
|
884
|
+
this.w8_1 = 35;
|
|
885
885
|
continue $sm;
|
|
886
886
|
}
|
|
887
887
|
|
|
888
888
|
case 34:
|
|
889
|
-
this.
|
|
889
|
+
this.w8_1 = 35;
|
|
890
890
|
continue $sm;
|
|
891
891
|
case 35:
|
|
892
|
-
throw this.
|
|
892
|
+
throw this.v4j_1;
|
|
893
893
|
case 36:
|
|
894
|
-
this.
|
|
895
|
-
this.
|
|
896
|
-
this.
|
|
897
|
-
var tmp0_safe_receiver_1 = this.
|
|
894
|
+
this.r4j_1 = this.u4j_1;
|
|
895
|
+
this.x8_1 = 39;
|
|
896
|
+
this.p4j_1.s25();
|
|
897
|
+
var tmp0_safe_receiver_1 = this.t4j_1;
|
|
898
898
|
if (tmp0_safe_receiver_1 == null)
|
|
899
899
|
null;
|
|
900
900
|
else {
|
|
901
|
-
tmp0_safe_receiver_1.
|
|
901
|
+
tmp0_safe_receiver_1.e4();
|
|
902
902
|
}
|
|
903
903
|
|
|
904
|
-
this.
|
|
905
|
-
if (!this.
|
|
906
|
-
this.
|
|
907
|
-
suspendResult = close(this.
|
|
904
|
+
this.o4j_1.w4h_1.s25();
|
|
905
|
+
if (!this.s4j_1) {
|
|
906
|
+
this.w8_1 = 37;
|
|
907
|
+
suspendResult = close(this.o4j_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
908
908
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
909
909
|
return suspendResult;
|
|
910
910
|
}
|
|
911
911
|
continue $sm;
|
|
912
912
|
} else {
|
|
913
|
-
this.
|
|
913
|
+
this.w8_1 = 38;
|
|
914
914
|
continue $sm;
|
|
915
915
|
}
|
|
916
916
|
|
|
917
917
|
case 37:
|
|
918
|
-
this.
|
|
918
|
+
this.w8_1 = 38;
|
|
919
919
|
continue $sm;
|
|
920
920
|
case 38:
|
|
921
921
|
return Unit_instance;
|
|
922
922
|
case 39:
|
|
923
|
-
throw this.
|
|
923
|
+
throw this.z8_1;
|
|
924
924
|
}
|
|
925
925
|
} catch ($p) {
|
|
926
926
|
var e_1 = $p;
|
|
927
|
-
if (this.
|
|
927
|
+
if (this.x8_1 === 39) {
|
|
928
928
|
throw e_1;
|
|
929
929
|
} else {
|
|
930
|
-
this.
|
|
931
|
-
this.
|
|
930
|
+
this.w8_1 = this.x8_1;
|
|
931
|
+
this.z8_1 = e_1;
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
934
|
while (true);
|
|
935
935
|
};
|
|
936
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
937
|
-
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.
|
|
938
|
-
i.
|
|
936
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).h3t = function ($this$launch, completion) {
|
|
937
|
+
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.o4j_1, this.p4j_1, completion);
|
|
938
|
+
i.q4j_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.g3t($this$launch, $completion);
|
|
945
945
|
}, 1);
|
|
946
946
|
}
|
|
947
947
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation) {
|
|
948
|
-
this.
|
|
948
|
+
this.p4k_1 = this$0;
|
|
949
949
|
CoroutineImpl.call(this, resultContinuation);
|
|
950
950
|
}
|
|
951
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
952
|
-
var tmp = this.
|
|
953
|
-
tmp.
|
|
954
|
-
tmp.
|
|
955
|
-
return tmp.
|
|
951
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).g3t = function ($this$launch, $completion) {
|
|
952
|
+
var tmp = this.h3t($this$launch, $completion);
|
|
953
|
+
tmp.y8_1 = Unit_instance;
|
|
954
|
+
tmp.z8_1 = null;
|
|
955
|
+
return tmp.e9();
|
|
956
956
|
};
|
|
957
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
958
|
-
return this.
|
|
957
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).r9 = function (p1, $completion) {
|
|
958
|
+
return this.g3t((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
959
959
|
};
|
|
960
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
961
|
-
var suspendResult = this.
|
|
960
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).e9 = function () {
|
|
961
|
+
var suspendResult = this.y8_1;
|
|
962
962
|
$sm: do
|
|
963
963
|
try {
|
|
964
|
-
var tmp = this.
|
|
964
|
+
var tmp = this.w8_1;
|
|
965
965
|
switch (tmp) {
|
|
966
966
|
case 0:
|
|
967
|
-
this.
|
|
968
|
-
this.
|
|
967
|
+
this.x8_1 = 13;
|
|
968
|
+
this.w8_1 = 1;
|
|
969
969
|
continue $sm;
|
|
970
970
|
case 1:
|
|
971
|
-
this.
|
|
971
|
+
this.w8_1 = 2;
|
|
972
972
|
continue $sm;
|
|
973
973
|
case 2:
|
|
974
|
-
this.
|
|
975
|
-
this.
|
|
976
|
-
this.
|
|
977
|
-
suspendResult = outgoingProcessorLoop(this.
|
|
974
|
+
this.x8_1 = 9;
|
|
975
|
+
this.x8_1 = 4;
|
|
976
|
+
this.w8_1 = 3;
|
|
977
|
+
suspendResult = outgoingProcessorLoop(this.p4k_1, this);
|
|
978
978
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
979
979
|
return suspendResult;
|
|
980
980
|
}
|
|
981
981
|
|
|
982
982
|
continue $sm;
|
|
983
983
|
case 3:
|
|
984
|
-
this.
|
|
985
|
-
this.
|
|
984
|
+
this.x8_1 = 13;
|
|
985
|
+
this.w8_1 = 11;
|
|
986
986
|
continue $sm;
|
|
987
987
|
case 4:
|
|
988
|
-
this.
|
|
989
|
-
var tmp_0 = this.
|
|
988
|
+
this.x8_1 = 9;
|
|
989
|
+
var tmp_0 = this.z8_1;
|
|
990
990
|
if (tmp_0 instanceof ClosedSendChannelException) {
|
|
991
|
-
var _unused_var__etf5q3 = this.
|
|
992
|
-
this.
|
|
993
|
-
this.
|
|
991
|
+
var _unused_var__etf5q3 = this.z8_1;
|
|
992
|
+
this.x8_1 = 13;
|
|
993
|
+
this.w8_1 = 11;
|
|
994
994
|
continue $sm;
|
|
995
995
|
} else {
|
|
996
|
-
var tmp_1 = this.
|
|
996
|
+
var tmp_1 = this.z8_1;
|
|
997
997
|
if (tmp_1 instanceof ClosedReceiveChannelException) {
|
|
998
|
-
var _unused_var__etf5q3_0 = this.
|
|
999
|
-
this.
|
|
1000
|
-
this.
|
|
998
|
+
var _unused_var__etf5q3_0 = this.z8_1;
|
|
999
|
+
this.x8_1 = 13;
|
|
1000
|
+
this.w8_1 = 11;
|
|
1001
1001
|
continue $sm;
|
|
1002
1002
|
} else {
|
|
1003
|
-
var tmp_2 = this.
|
|
1003
|
+
var tmp_2 = this.z8_1;
|
|
1004
1004
|
if (tmp_2 instanceof CancellationException) {
|
|
1005
|
-
var _unused_var__etf5q3_1 = this.
|
|
1006
|
-
this.
|
|
1007
|
-
suspendResult = sendCloseSequence(this.
|
|
1005
|
+
var _unused_var__etf5q3_1 = this.z8_1;
|
|
1006
|
+
this.w8_1 = 5;
|
|
1007
|
+
suspendResult = sendCloseSequence(this.p4k_1, CloseReason_init_$Create$(Codes_NORMAL_getInstance(), ''), VOID, this);
|
|
1008
1008
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1009
1009
|
return suspendResult;
|
|
1010
1010
|
}
|
|
1011
1011
|
continue $sm;
|
|
1012
1012
|
} else {
|
|
1013
|
-
var tmp_3 = this.
|
|
1013
|
+
var tmp_3 = this.z8_1;
|
|
1014
1014
|
if (tmp_3 instanceof ChannelIOException) {
|
|
1015
|
-
var _unused_var__etf5q3_2 = this.
|
|
1016
|
-
this.
|
|
1017
|
-
this.
|
|
1015
|
+
var _unused_var__etf5q3_2 = this.z8_1;
|
|
1016
|
+
this.x8_1 = 13;
|
|
1017
|
+
this.w8_1 = 11;
|
|
1018
1018
|
continue $sm;
|
|
1019
1019
|
} else {
|
|
1020
|
-
var tmp_4 = this.
|
|
1020
|
+
var tmp_4 = this.z8_1;
|
|
1021
1021
|
if (tmp_4 instanceof Error) {
|
|
1022
|
-
var cause = this.
|
|
1023
|
-
this.
|
|
1024
|
-
this.
|
|
1025
|
-
suspendResult = closeExceptionally(this.
|
|
1022
|
+
var cause = this.z8_1;
|
|
1023
|
+
this.p4k_1.x4h_1.j1o(CancellationException_init_$Create$('Failed to send frame', cause));
|
|
1024
|
+
this.w8_1 = 6;
|
|
1025
|
+
suspendResult = closeExceptionally(this.p4k_1.r4h_1, cause, this);
|
|
1026
1026
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1027
1027
|
return suspendResult;
|
|
1028
1028
|
}
|
|
1029
1029
|
continue $sm;
|
|
1030
1030
|
} else {
|
|
1031
|
-
throw this.
|
|
1031
|
+
throw this.z8_1;
|
|
1032
1032
|
}
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
@@ -1036,18 +1036,18 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).d9 = function
|
|
|
1036
1036
|
}
|
|
1037
1037
|
|
|
1038
1038
|
case 5:
|
|
1039
|
-
this.
|
|
1040
|
-
this.
|
|
1039
|
+
this.x8_1 = 13;
|
|
1040
|
+
this.w8_1 = 11;
|
|
1041
1041
|
continue $sm;
|
|
1042
1042
|
case 6:
|
|
1043
|
-
this.
|
|
1044
|
-
this.
|
|
1043
|
+
this.x8_1 = 13;
|
|
1044
|
+
this.w8_1 = 7;
|
|
1045
1045
|
continue $sm;
|
|
1046
1046
|
case 7:
|
|
1047
|
-
this.
|
|
1048
|
-
this.
|
|
1049
|
-
this.
|
|
1050
|
-
suspendResult = close(this.
|
|
1047
|
+
this.x8_1 = 13;
|
|
1048
|
+
this.p4k_1.x4h_1.u25();
|
|
1049
|
+
this.w8_1 = 8;
|
|
1050
|
+
suspendResult = close(this.p4k_1.r4h_1, VOID, this);
|
|
1051
1051
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1052
1052
|
return suspendResult;
|
|
1053
1053
|
}
|
|
@@ -1056,23 +1056,23 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).d9 = function
|
|
|
1056
1056
|
case 8:
|
|
1057
1057
|
return Unit_instance;
|
|
1058
1058
|
case 9:
|
|
1059
|
-
this.
|
|
1060
|
-
this.
|
|
1061
|
-
this.
|
|
1062
|
-
this.
|
|
1063
|
-
suspendResult = close(this.
|
|
1059
|
+
this.x8_1 = 13;
|
|
1060
|
+
this.r4k_1 = this.z8_1;
|
|
1061
|
+
this.p4k_1.x4h_1.u25();
|
|
1062
|
+
this.w8_1 = 10;
|
|
1063
|
+
suspendResult = close(this.p4k_1.r4h_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.r4k_1;
|
|
1071
1071
|
case 11:
|
|
1072
|
-
this.
|
|
1073
|
-
this.
|
|
1074
|
-
this.
|
|
1075
|
-
suspendResult = close(this.
|
|
1072
|
+
this.x8_1 = 13;
|
|
1073
|
+
this.p4k_1.x4h_1.u25();
|
|
1074
|
+
this.w8_1 = 12;
|
|
1075
|
+
suspendResult = close(this.p4k_1.r4h_1, VOID, this);
|
|
1076
1076
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1077
1077
|
return suspendResult;
|
|
1078
1078
|
}
|
|
@@ -1081,53 +1081,53 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).d9 = function
|
|
|
1081
1081
|
case 12:
|
|
1082
1082
|
return Unit_instance;
|
|
1083
1083
|
case 13:
|
|
1084
|
-
throw this.
|
|
1084
|
+
throw this.z8_1;
|
|
1085
1085
|
}
|
|
1086
1086
|
} catch ($p) {
|
|
1087
1087
|
var e = $p;
|
|
1088
|
-
if (this.
|
|
1088
|
+
if (this.x8_1 === 13) {
|
|
1089
1089
|
throw e;
|
|
1090
1090
|
} else {
|
|
1091
|
-
this.
|
|
1092
|
-
this.
|
|
1091
|
+
this.w8_1 = this.x8_1;
|
|
1092
|
+
this.z8_1 = e;
|
|
1093
1093
|
}
|
|
1094
1094
|
}
|
|
1095
1095
|
while (true);
|
|
1096
1096
|
};
|
|
1097
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
1098
|
-
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.
|
|
1099
|
-
i.
|
|
1097
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).h3t = function ($this$launch, completion) {
|
|
1098
|
+
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.p4k_1, completion);
|
|
1099
|
+
i.q4k_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.g3t($this$launch, $completion);
|
|
1106
1106
|
}, 1);
|
|
1107
1107
|
}
|
|
1108
1108
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation) {
|
|
1109
|
-
this.
|
|
1109
|
+
this.a4l_1 = this$0;
|
|
1110
1110
|
CoroutineImpl.call(this, resultContinuation);
|
|
1111
1111
|
}
|
|
1112
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1113
|
-
var tmp = this.
|
|
1114
|
-
tmp.
|
|
1115
|
-
tmp.
|
|
1116
|
-
return tmp.
|
|
1112
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).c4l = function (it, $completion) {
|
|
1113
|
+
var tmp = this.d4l(it, $completion);
|
|
1114
|
+
tmp.y8_1 = Unit_instance;
|
|
1115
|
+
tmp.z8_1 = null;
|
|
1116
|
+
return tmp.e9();
|
|
1117
1117
|
};
|
|
1118
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1119
|
-
return this.
|
|
1118
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).r9 = function (p1, $completion) {
|
|
1119
|
+
return this.c4l(p1 instanceof CloseReason ? p1 : THROW_CCE(), $completion);
|
|
1120
1120
|
};
|
|
1121
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1122
|
-
var suspendResult = this.
|
|
1121
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).e9 = function () {
|
|
1122
|
+
var suspendResult = this.y8_1;
|
|
1123
1123
|
$sm: do
|
|
1124
1124
|
try {
|
|
1125
|
-
var tmp = this.
|
|
1125
|
+
var tmp = this.w8_1;
|
|
1126
1126
|
switch (tmp) {
|
|
1127
1127
|
case 0:
|
|
1128
|
-
this.
|
|
1129
|
-
this.
|
|
1130
|
-
suspendResult = sendCloseSequence(this.
|
|
1128
|
+
this.x8_1 = 2;
|
|
1129
|
+
this.w8_1 = 1;
|
|
1130
|
+
suspendResult = sendCloseSequence(this.a4l_1, this.b4l_1, IOException_init_$Create$('Ping timeout'), this);
|
|
1131
1131
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1132
1132
|
return suspendResult;
|
|
1133
1133
|
}
|
|
@@ -1136,48 +1136,48 @@ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).d9 = function ()
|
|
|
1136
1136
|
case 1:
|
|
1137
1137
|
return Unit_instance;
|
|
1138
1138
|
case 2:
|
|
1139
|
-
throw this.
|
|
1139
|
+
throw this.z8_1;
|
|
1140
1140
|
}
|
|
1141
1141
|
} catch ($p) {
|
|
1142
1142
|
var e = $p;
|
|
1143
|
-
if (this.
|
|
1143
|
+
if (this.x8_1 === 2) {
|
|
1144
1144
|
throw e;
|
|
1145
1145
|
} else {
|
|
1146
|
-
this.
|
|
1147
|
-
this.
|
|
1146
|
+
this.w8_1 = this.x8_1;
|
|
1147
|
+
this.z8_1 = e;
|
|
1148
1148
|
}
|
|
1149
1149
|
}
|
|
1150
1150
|
while (true);
|
|
1151
1151
|
};
|
|
1152
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1153
|
-
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.
|
|
1154
|
-
i.
|
|
1152
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).d4l = function (it, completion) {
|
|
1153
|
+
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.a4l_1, completion);
|
|
1154
|
+
i.b4l_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.c4l(it, $completion);
|
|
1161
1161
|
}, 1);
|
|
1162
1162
|
}
|
|
1163
1163
|
function $outgoingProcessorLoopCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1164
1164
|
CoroutineImpl.call(this, resultContinuation);
|
|
1165
|
-
this.
|
|
1165
|
+
this.c4h_1 = _this__u8e3s4;
|
|
1166
1166
|
}
|
|
1167
|
-
protoOf($outgoingProcessorLoopCOROUTINE$).
|
|
1168
|
-
var suspendResult = this.
|
|
1167
|
+
protoOf($outgoingProcessorLoopCOROUTINE$).e9 = function () {
|
|
1168
|
+
var suspendResult = this.y8_1;
|
|
1169
1169
|
$sm: do
|
|
1170
1170
|
try {
|
|
1171
|
-
var tmp = this.
|
|
1171
|
+
var tmp = this.w8_1;
|
|
1172
1172
|
switch (tmp) {
|
|
1173
1173
|
case 0:
|
|
1174
|
-
this.
|
|
1175
|
-
this.
|
|
1176
|
-
this.
|
|
1174
|
+
this.x8_1 = 7;
|
|
1175
|
+
this.e4h_1 = this.c4h_1.x4h_1.t();
|
|
1176
|
+
this.w8_1 = 1;
|
|
1177
1177
|
continue $sm;
|
|
1178
1178
|
case 1:
|
|
1179
|
-
this.
|
|
1180
|
-
suspendResult = this.
|
|
1179
|
+
this.w8_1 = 2;
|
|
1180
|
+
suspendResult = this.e4h_1.o23(this);
|
|
1181
1181
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1182
1182
|
return suspendResult;
|
|
1183
1183
|
}
|
|
@@ -1185,19 +1185,19 @@ protoOf($outgoingProcessorLoopCOROUTINE$).d9 = function () {
|
|
|
1185
1185
|
continue $sm;
|
|
1186
1186
|
case 2:
|
|
1187
1187
|
if (!suspendResult) {
|
|
1188
|
-
this.
|
|
1188
|
+
this.w8_1 = 6;
|
|
1189
1189
|
continue $sm;
|
|
1190
1190
|
}
|
|
1191
1191
|
|
|
1192
|
-
var frame = this.
|
|
1192
|
+
var frame = this.e4h_1.v();
|
|
1193
1193
|
var this_0 = get_LOGGER();
|
|
1194
1194
|
if (get_isTraceEnabled(this_0)) {
|
|
1195
|
-
this_0.
|
|
1195
|
+
this_0.a42('Sending ' + frame.toString() + ' from session ' + toString(this.c4h_1));
|
|
1196
1196
|
}
|
|
1197
1197
|
|
|
1198
1198
|
if (frame instanceof Close) {
|
|
1199
|
-
this.
|
|
1200
|
-
suspendResult = sendCloseSequence(this.
|
|
1199
|
+
this.w8_1 = 3;
|
|
1200
|
+
suspendResult = sendCloseSequence(this.c4h_1, readReason(frame), VOID, this);
|
|
1201
1201
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1202
1202
|
return suspendResult;
|
|
1203
1203
|
}
|
|
@@ -1210,223 +1210,223 @@ protoOf($outgoingProcessorLoopCOROUTINE$).d9 = function () {
|
|
|
1210
1210
|
tmp_0 = frame instanceof Binary;
|
|
1211
1211
|
}
|
|
1212
1212
|
if (tmp_0) {
|
|
1213
|
-
this.
|
|
1214
|
-
this.
|
|
1213
|
+
this.d4h_1 = processOutgoingExtensions(this.c4h_1, frame);
|
|
1214
|
+
this.w8_1 = 4;
|
|
1215
1215
|
continue $sm;
|
|
1216
1216
|
} else {
|
|
1217
|
-
this.
|
|
1218
|
-
this.
|
|
1217
|
+
this.d4h_1 = frame;
|
|
1218
|
+
this.w8_1 = 4;
|
|
1219
1219
|
continue $sm;
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
1222
1222
|
|
|
1223
1223
|
case 3:
|
|
1224
|
-
this.
|
|
1224
|
+
this.w8_1 = 6;
|
|
1225
1225
|
var tmp_1 = this;
|
|
1226
1226
|
continue $sm;
|
|
1227
1227
|
case 4:
|
|
1228
|
-
var processedFrame = this.
|
|
1229
|
-
this.
|
|
1230
|
-
suspendResult = this.
|
|
1228
|
+
var processedFrame = this.d4h_1;
|
|
1229
|
+
this.w8_1 = 5;
|
|
1230
|
+
suspendResult = this.c4h_1.r4h_1.p4g().l25(processedFrame, this);
|
|
1231
1231
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1232
1232
|
return suspendResult;
|
|
1233
1233
|
}
|
|
1234
1234
|
|
|
1235
1235
|
continue $sm;
|
|
1236
1236
|
case 5:
|
|
1237
|
-
this.
|
|
1237
|
+
this.w8_1 = 1;
|
|
1238
1238
|
continue $sm;
|
|
1239
1239
|
case 6:
|
|
1240
1240
|
return Unit_instance;
|
|
1241
1241
|
case 7:
|
|
1242
|
-
throw this.
|
|
1242
|
+
throw this.z8_1;
|
|
1243
1243
|
}
|
|
1244
1244
|
} catch ($p) {
|
|
1245
1245
|
var e = $p;
|
|
1246
|
-
if (this.
|
|
1246
|
+
if (this.x8_1 === 7) {
|
|
1247
1247
|
throw e;
|
|
1248
1248
|
} else {
|
|
1249
|
-
this.
|
|
1250
|
-
this.
|
|
1249
|
+
this.w8_1 = this.x8_1;
|
|
1250
|
+
this.z8_1 = e;
|
|
1251
1251
|
}
|
|
1252
1252
|
}
|
|
1253
1253
|
while (true);
|
|
1254
1254
|
};
|
|
1255
1255
|
function $sendCloseSequenceCOROUTINE$(_this__u8e3s4, reason, exception, resultContinuation) {
|
|
1256
1256
|
CoroutineImpl.call(this, resultContinuation);
|
|
1257
|
-
this.
|
|
1258
|
-
this.
|
|
1259
|
-
this.
|
|
1257
|
+
this.n4h_1 = _this__u8e3s4;
|
|
1258
|
+
this.o4h_1 = reason;
|
|
1259
|
+
this.p4h_1 = exception;
|
|
1260
1260
|
}
|
|
1261
|
-
protoOf($sendCloseSequenceCOROUTINE$).
|
|
1262
|
-
var suspendResult = this.
|
|
1261
|
+
protoOf($sendCloseSequenceCOROUTINE$).e9 = function () {
|
|
1262
|
+
var suspendResult = this.y8_1;
|
|
1263
1263
|
$sm: do
|
|
1264
1264
|
try {
|
|
1265
|
-
var tmp = this.
|
|
1265
|
+
var tmp = this.w8_1;
|
|
1266
1266
|
switch (tmp) {
|
|
1267
1267
|
case 0:
|
|
1268
|
-
this.
|
|
1269
|
-
if (!tryClose(this.
|
|
1268
|
+
this.x8_1 = 6;
|
|
1269
|
+
if (!tryClose(this.n4h_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.a42('Sending Close Sequence for session ' + toString(this.n4h_1) + ' with reason ' + toString_0(this.o4h_1) + ' and exception ' + toString_0(this.p4h_1));
|
|
1274
1274
|
}
|
|
1275
1275
|
|
|
1276
|
-
this.
|
|
1276
|
+
this.n4h_1.u4h_1.i1v();
|
|
1277
1277
|
var tmp_0 = this;
|
|
1278
|
-
var tmp0_elvis_lhs = this.
|
|
1279
|
-
tmp_0.
|
|
1280
|
-
this.
|
|
1278
|
+
var tmp0_elvis_lhs = this.o4h_1;
|
|
1279
|
+
tmp_0.q4h_1 = tmp0_elvis_lhs == null ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : tmp0_elvis_lhs;
|
|
1280
|
+
this.w8_1 = 1;
|
|
1281
1281
|
continue $sm;
|
|
1282
1282
|
case 1:
|
|
1283
|
-
this.
|
|
1284
|
-
runOrCancelPinger(this.
|
|
1285
|
-
if (!(this.
|
|
1286
|
-
this.
|
|
1287
|
-
suspendResult = this.
|
|
1283
|
+
this.x8_1 = 5;
|
|
1284
|
+
runOrCancelPinger(this.n4h_1);
|
|
1285
|
+
if (!(this.q4h_1.x4f_1 === Codes_CLOSED_ABNORMALLY_getInstance().t4f_1)) {
|
|
1286
|
+
this.w8_1 = 2;
|
|
1287
|
+
suspendResult = this.n4h_1.r4h_1.p4g().l25(Close_init_$Create$(this.q4h_1), this);
|
|
1288
1288
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1289
1289
|
return suspendResult;
|
|
1290
1290
|
}
|
|
1291
1291
|
continue $sm;
|
|
1292
1292
|
} else {
|
|
1293
|
-
this.
|
|
1293
|
+
this.w8_1 = 3;
|
|
1294
1294
|
continue $sm;
|
|
1295
1295
|
}
|
|
1296
1296
|
|
|
1297
1297
|
case 2:
|
|
1298
|
-
this.
|
|
1298
|
+
this.w8_1 = 3;
|
|
1299
1299
|
continue $sm;
|
|
1300
1300
|
case 3:
|
|
1301
|
-
this.
|
|
1302
|
-
this.
|
|
1301
|
+
this.x8_1 = 6;
|
|
1302
|
+
this.w8_1 = 4;
|
|
1303
1303
|
continue $sm;
|
|
1304
1304
|
case 4:
|
|
1305
|
-
this.
|
|
1306
|
-
this.
|
|
1307
|
-
if (!(this.
|
|
1308
|
-
this.
|
|
1309
|
-
this.
|
|
1305
|
+
this.x8_1 = 6;
|
|
1306
|
+
this.n4h_1.t4h_1.g1v(this.q4h_1);
|
|
1307
|
+
if (!(this.p4h_1 == null)) {
|
|
1308
|
+
this.n4h_1.x4h_1.q25(this.p4h_1);
|
|
1309
|
+
this.n4h_1.w4h_1.q25(this.p4h_1);
|
|
1310
1310
|
}
|
|
1311
1311
|
|
|
1312
1312
|
return Unit_instance;
|
|
1313
1313
|
case 5:
|
|
1314
|
-
this.
|
|
1315
|
-
var t = this.
|
|
1316
|
-
this.
|
|
1317
|
-
if (!(this.
|
|
1318
|
-
this.
|
|
1319
|
-
this.
|
|
1314
|
+
this.x8_1 = 6;
|
|
1315
|
+
var t = this.z8_1;
|
|
1316
|
+
this.n4h_1.t4h_1.g1v(this.q4h_1);
|
|
1317
|
+
if (!(this.p4h_1 == null)) {
|
|
1318
|
+
this.n4h_1.x4h_1.q25(this.p4h_1);
|
|
1319
|
+
this.n4h_1.w4h_1.q25(this.p4h_1);
|
|
1320
1320
|
}
|
|
1321
1321
|
|
|
1322
1322
|
throw t;
|
|
1323
1323
|
case 6:
|
|
1324
|
-
throw this.
|
|
1324
|
+
throw this.z8_1;
|
|
1325
1325
|
}
|
|
1326
1326
|
} catch ($p) {
|
|
1327
1327
|
var e = $p;
|
|
1328
|
-
if (this.
|
|
1328
|
+
if (this.x8_1 === 6) {
|
|
1329
1329
|
throw e;
|
|
1330
1330
|
} else {
|
|
1331
|
-
this.
|
|
1332
|
-
this.
|
|
1331
|
+
this.w8_1 = this.x8_1;
|
|
1332
|
+
this.z8_1 = e;
|
|
1333
1333
|
}
|
|
1334
1334
|
}
|
|
1335
1335
|
while (true);
|
|
1336
1336
|
};
|
|
1337
1337
|
function $checkMaxFrameSizeCOROUTINE$(_this__u8e3s4, packet, frame, resultContinuation) {
|
|
1338
1338
|
CoroutineImpl.call(this, resultContinuation);
|
|
1339
|
-
this.
|
|
1340
|
-
this.
|
|
1341
|
-
this.
|
|
1339
|
+
this.n4i_1 = _this__u8e3s4;
|
|
1340
|
+
this.o4i_1 = packet;
|
|
1341
|
+
this.p4i_1 = frame;
|
|
1342
1342
|
}
|
|
1343
|
-
protoOf($checkMaxFrameSizeCOROUTINE$).
|
|
1344
|
-
var suspendResult = this.
|
|
1343
|
+
protoOf($checkMaxFrameSizeCOROUTINE$).e9 = function () {
|
|
1344
|
+
var suspendResult = this.y8_1;
|
|
1345
1345
|
$sm: do
|
|
1346
1346
|
try {
|
|
1347
|
-
var tmp = this.
|
|
1347
|
+
var tmp = this.w8_1;
|
|
1348
1348
|
switch (tmp) {
|
|
1349
1349
|
case 0:
|
|
1350
|
-
this.
|
|
1350
|
+
this.x8_1 = 3;
|
|
1351
1351
|
var tmp_0 = this;
|
|
1352
|
-
var tmp_1 = this.
|
|
1353
|
-
var tmp0_safe_receiver = this.
|
|
1352
|
+
var tmp_1 = this.p4i_1.g4g_1.length;
|
|
1353
|
+
var tmp0_safe_receiver = this.o4i_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.q4i_1 = tmp_1 + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
1356
|
+
if (compare(fromInt(this.q4i_1), this.n4i_1.n4g()) > 0) {
|
|
1357
|
+
var tmp2_safe_receiver = this.o4i_1;
|
|
1358
1358
|
if (tmp2_safe_receiver == null)
|
|
1359
1359
|
null;
|
|
1360
1360
|
else {
|
|
1361
|
-
tmp2_safe_receiver.
|
|
1361
|
+
tmp2_safe_receiver.e4();
|
|
1362
1362
|
}
|
|
1363
|
-
this.
|
|
1364
|
-
suspendResult = close(this.
|
|
1363
|
+
this.w8_1 = 2;
|
|
1364
|
+
suspendResult = close(this.n4i_1, CloseReason_init_$Create$(Codes_TOO_BIG_getInstance(), 'Frame is too big: ' + this.q4i_1 + '. Max size is ' + this.n4i_1.n4g().toString()), this);
|
|
1365
1365
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1366
1366
|
return suspendResult;
|
|
1367
1367
|
}
|
|
1368
1368
|
continue $sm;
|
|
1369
1369
|
} else {
|
|
1370
|
-
this.
|
|
1370
|
+
this.w8_1 = 1;
|
|
1371
1371
|
continue $sm;
|
|
1372
1372
|
}
|
|
1373
1373
|
|
|
1374
1374
|
case 1:
|
|
1375
1375
|
return Unit_instance;
|
|
1376
1376
|
case 2:
|
|
1377
|
-
throw new FrameTooBigException(fromInt(this.
|
|
1377
|
+
throw new FrameTooBigException(fromInt(this.q4i_1));
|
|
1378
1378
|
case 3:
|
|
1379
|
-
throw this.
|
|
1379
|
+
throw this.z8_1;
|
|
1380
1380
|
}
|
|
1381
1381
|
} catch ($p) {
|
|
1382
1382
|
var e = $p;
|
|
1383
|
-
if (this.
|
|
1383
|
+
if (this.x8_1 === 3) {
|
|
1384
1384
|
throw e;
|
|
1385
1385
|
} else {
|
|
1386
|
-
this.
|
|
1387
|
-
this.
|
|
1386
|
+
this.w8_1 = this.x8_1;
|
|
1387
|
+
this.z8_1 = e;
|
|
1388
1388
|
}
|
|
1389
1389
|
}
|
|
1390
1390
|
while (true);
|
|
1391
1391
|
};
|
|
1392
1392
|
function DefaultWebSocketSessionImpl(raw, pingIntervalMillis, timeoutMillis, incomingFramesConfig, outgoingFramesConfig) {
|
|
1393
1393
|
Companion_getInstance_1();
|
|
1394
|
-
this.
|
|
1395
|
-
this.
|
|
1396
|
-
this.
|
|
1397
|
-
this.
|
|
1398
|
-
this.
|
|
1399
|
-
this.
|
|
1400
|
-
this.
|
|
1401
|
-
this.
|
|
1394
|
+
this.r4h_1 = raw;
|
|
1395
|
+
this.s4h_1 = atomic$ref$1(null);
|
|
1396
|
+
this.t4h_1 = CompletableDeferred();
|
|
1397
|
+
this.u4h_1 = Job();
|
|
1398
|
+
this.v4h_1 = this.r4h_1.z1m().vh(Key_instance).xh(this.u4h_1).xh(new CoroutineName('ws-default'));
|
|
1399
|
+
this.w4h_1 = from(Factory_getInstance(), incomingFramesConfig);
|
|
1400
|
+
this.x4h_1 = from(Factory_getInstance(), outgoingFramesConfig);
|
|
1401
|
+
this.y4h_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.z4h_1 = ArrayList_init_$Create$();
|
|
1405
|
+
this.a4i_1 = atomic$boolean$1(false);
|
|
1406
|
+
this.b4i_1 = pingIntervalMillis;
|
|
1407
|
+
this.c4i_1 = timeoutMillis;
|
|
1408
|
+
this.d4i_1 = this.t4h_1;
|
|
1409
1409
|
}
|
|
1410
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1411
|
-
return this.
|
|
1410
|
+
protoOf(DefaultWebSocketSessionImpl).z1m = function () {
|
|
1411
|
+
return this.v4h_1;
|
|
1412
1412
|
};
|
|
1413
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1414
|
-
return this.
|
|
1413
|
+
protoOf(DefaultWebSocketSessionImpl).o4g = function () {
|
|
1414
|
+
return this.w4h_1;
|
|
1415
1415
|
};
|
|
1416
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1417
|
-
return this.
|
|
1416
|
+
protoOf(DefaultWebSocketSessionImpl).p4g = function () {
|
|
1417
|
+
return this.x4h_1;
|
|
1418
1418
|
};
|
|
1419
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1420
|
-
return this.
|
|
1419
|
+
protoOf(DefaultWebSocketSessionImpl).r4i = function () {
|
|
1420
|
+
return this.z4h_1;
|
|
1421
1421
|
};
|
|
1422
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1423
|
-
this.
|
|
1422
|
+
protoOf(DefaultWebSocketSessionImpl).m4g = function (value) {
|
|
1423
|
+
this.r4h_1.m4g(value);
|
|
1424
1424
|
};
|
|
1425
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1426
|
-
return this.
|
|
1425
|
+
protoOf(DefaultWebSocketSessionImpl).n4g = function () {
|
|
1426
|
+
return this.r4h_1.n4g();
|
|
1427
1427
|
};
|
|
1428
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1429
|
-
if (!this.
|
|
1428
|
+
protoOf(DefaultWebSocketSessionImpl).l4g = function (negotiatedExtensions) {
|
|
1429
|
+
if (!this.a4i_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).i4g = 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.a42(tmp$ret$2);
|
|
1439
1439
|
}
|
|
1440
|
-
this.
|
|
1440
|
+
this.z4h_1.j1(negotiatedExtensions);
|
|
1441
1441
|
runOrCancelPinger(this);
|
|
1442
|
-
var incomingJob = runIncomingProcessor(this, ponger(this, this.
|
|
1442
|
+
var incomingJob = runIncomingProcessor(this, ponger(this, this.p4g()));
|
|
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).c3l = function ($completion) {
|
|
1447
|
+
return this.r4h_1.c3l($completion);
|
|
1448
1448
|
};
|
|
1449
1449
|
var properties_initialized_DefaultWebSocketSession_kt_6cjlhc;
|
|
1450
1450
|
function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
@@ -1466,20 +1466,20 @@ function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
|
1466
1466
|
}
|
|
1467
1467
|
}
|
|
1468
1468
|
function readReason(_this__u8e3s4) {
|
|
1469
|
-
if (_this__u8e3s4.
|
|
1469
|
+
if (_this__u8e3s4.g4g_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.g4g_1);
|
|
1475
1475
|
var packet = builder;
|
|
1476
|
-
var code = packet.
|
|
1476
|
+
var code = packet.m3g();
|
|
1477
1477
|
var message = readText(packet);
|
|
1478
1478
|
return new CloseReason(code, message);
|
|
1479
1479
|
}
|
|
1480
1480
|
function NonDisposableHandle() {
|
|
1481
1481
|
}
|
|
1482
|
-
protoOf(NonDisposableHandle).
|
|
1482
|
+
protoOf(NonDisposableHandle).x1p = function () {
|
|
1483
1483
|
return Unit_instance;
|
|
1484
1484
|
};
|
|
1485
1485
|
protoOf(NonDisposableHandle).toString = function () {
|
|
@@ -1503,15 +1503,15 @@ function FrameTooBigException(frameSize, cause) {
|
|
|
1503
1503
|
cause = cause === VOID ? null : cause;
|
|
1504
1504
|
Exception_init_$Init$(cause, this);
|
|
1505
1505
|
captureStack(this, FrameTooBigException);
|
|
1506
|
-
this.
|
|
1506
|
+
this.e4l_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.e4l_1, new Long(0, 0)) >= 0 ? ': ' + this.e4l_1.toString() : '';
|
|
1511
1511
|
return 'Frame is too big' + sizeSuffix;
|
|
1512
1512
|
};
|
|
1513
|
-
protoOf(FrameTooBigException).
|
|
1514
|
-
return new FrameTooBigException(this.
|
|
1513
|
+
protoOf(FrameTooBigException).r1v = function () {
|
|
1514
|
+
return new FrameTooBigException(this.e4l_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.d4g_1;
|
|
1539
1539
|
do {
|
|
1540
1540
|
var e = iterator.v();
|
|
1541
|
-
var v = e.
|
|
1541
|
+
var v = e.d4g_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.f4l_1 = ensureNotNull(tmp$ret$0).d4g_1;
|
|
1551
1551
|
var tmp_0 = this;
|
|
1552
1552
|
var tmp_1 = 0;
|
|
1553
|
-
var tmp_2 = this.
|
|
1553
|
+
var tmp_2 = this.f4l_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.d4g_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.g4l_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.c4g_1 = controlFrame;
|
|
1618
|
+
this.d4g_1 = opcode;
|
|
1619
1619
|
}
|
|
1620
1620
|
function FrameType_TEXT_getInstance() {
|
|
1621
1621
|
FrameType_initEntries();
|
|
@@ -1658,55 +1658,55 @@ function pinger(_this__u8e3s4, outgoing, periodMillis, timeoutMillis, onTimeout)
|
|
|
1658
1658
|
_init_properties_PingPong_kt__9aqxey();
|
|
1659
1659
|
var actorJob = Job();
|
|
1660
1660
|
var channel = Channel(2147483647);
|
|
1661
|
-
var tmp = actorJob.
|
|
1661
|
+
var tmp = actorJob.xh(get_PingerCoroutineName());
|
|
1662
1662
|
launch(_this__u8e3s4, tmp, VOID, pinger$slambda_0(periodMillis, timeoutMillis, onTimeout, channel, outgoing, null));
|
|
1663
|
-
var tmp_0 = ensureNotNull(_this__u8e3s4.
|
|
1664
|
-
tmp_0.
|
|
1663
|
+
var tmp_0 = ensureNotNull(_this__u8e3s4.z1m().j9(Key_instance));
|
|
1664
|
+
tmp_0.c1o(pinger$lambda(actorJob));
|
|
1665
1665
|
return channel;
|
|
1666
1666
|
}
|
|
1667
1667
|
function ponger$slambda($channel, $outgoing, resultContinuation) {
|
|
1668
|
-
this.
|
|
1669
|
-
this.
|
|
1668
|
+
this.p4l_1 = $channel;
|
|
1669
|
+
this.q4l_1 = $outgoing;
|
|
1670
1670
|
CoroutineImpl.call(this, resultContinuation);
|
|
1671
1671
|
}
|
|
1672
|
-
protoOf(ponger$slambda).
|
|
1673
|
-
var tmp = this.
|
|
1674
|
-
tmp.
|
|
1675
|
-
tmp.
|
|
1676
|
-
return tmp.
|
|
1672
|
+
protoOf(ponger$slambda).g3t = function ($this$launch, $completion) {
|
|
1673
|
+
var tmp = this.h3t($this$launch, $completion);
|
|
1674
|
+
tmp.y8_1 = Unit_instance;
|
|
1675
|
+
tmp.z8_1 = null;
|
|
1676
|
+
return tmp.e9();
|
|
1677
1677
|
};
|
|
1678
|
-
protoOf(ponger$slambda).
|
|
1679
|
-
return this.
|
|
1678
|
+
protoOf(ponger$slambda).r9 = function (p1, $completion) {
|
|
1679
|
+
return this.g3t((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1680
1680
|
};
|
|
1681
|
-
protoOf(ponger$slambda).
|
|
1682
|
-
var suspendResult = this.
|
|
1681
|
+
protoOf(ponger$slambda).e9 = function () {
|
|
1682
|
+
var suspendResult = this.y8_1;
|
|
1683
1683
|
$sm: do
|
|
1684
1684
|
try {
|
|
1685
|
-
var tmp = this.
|
|
1685
|
+
var tmp = this.w8_1;
|
|
1686
1686
|
switch (tmp) {
|
|
1687
1687
|
case 0:
|
|
1688
|
-
this.
|
|
1689
|
-
this.
|
|
1690
|
-
this.
|
|
1691
|
-
this.
|
|
1688
|
+
this.x8_1 = 14;
|
|
1689
|
+
this.x8_1 = 13;
|
|
1690
|
+
this.v4l_1 = this.p4l_1;
|
|
1691
|
+
this.w8_1 = 1;
|
|
1692
1692
|
continue $sm;
|
|
1693
1693
|
case 1:
|
|
1694
|
-
this.
|
|
1695
|
-
this.
|
|
1696
|
-
this.
|
|
1694
|
+
this.t4l_1 = this.v4l_1;
|
|
1695
|
+
this.s4l_1 = null;
|
|
1696
|
+
this.w8_1 = 2;
|
|
1697
1697
|
continue $sm;
|
|
1698
1698
|
case 2:
|
|
1699
|
-
this.
|
|
1699
|
+
this.w8_1 = 3;
|
|
1700
1700
|
continue $sm;
|
|
1701
1701
|
case 3:
|
|
1702
|
-
this.
|
|
1703
|
-
this.
|
|
1704
|
-
this.
|
|
1705
|
-
this.
|
|
1702
|
+
this.x8_1 = 10;
|
|
1703
|
+
this.x8_1 = 9;
|
|
1704
|
+
this.u4l_1 = this.t4l_1.t();
|
|
1705
|
+
this.w8_1 = 4;
|
|
1706
1706
|
continue $sm;
|
|
1707
1707
|
case 4:
|
|
1708
|
-
this.
|
|
1709
|
-
suspendResult = this.
|
|
1708
|
+
this.w8_1 = 5;
|
|
1709
|
+
suspendResult = this.u4l_1.o23(this);
|
|
1710
1710
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1711
1711
|
return suspendResult;
|
|
1712
1712
|
}
|
|
@@ -1714,305 +1714,316 @@ protoOf(ponger$slambda).d9 = function () {
|
|
|
1714
1714
|
continue $sm;
|
|
1715
1715
|
case 5:
|
|
1716
1716
|
if (!suspendResult) {
|
|
1717
|
-
this.
|
|
1717
|
+
this.w8_1 = 7;
|
|
1718
1718
|
continue $sm;
|
|
1719
1719
|
}
|
|
1720
1720
|
|
|
1721
|
-
var e = this.
|
|
1722
|
-
get_LOGGER().
|
|
1723
|
-
this.
|
|
1724
|
-
suspendResult = this.
|
|
1721
|
+
var e = this.u4l_1.v();
|
|
1722
|
+
get_LOGGER().a42('Received ping message, sending pong message');
|
|
1723
|
+
this.w8_1 = 6;
|
|
1724
|
+
suspendResult = this.q4l_1.l25(new Pong(e.g4g_1), this);
|
|
1725
1725
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1726
1726
|
return suspendResult;
|
|
1727
1727
|
}
|
|
1728
1728
|
|
|
1729
1729
|
continue $sm;
|
|
1730
1730
|
case 6:
|
|
1731
|
-
this.
|
|
1731
|
+
this.w8_1 = 4;
|
|
1732
1732
|
continue $sm;
|
|
1733
1733
|
case 7:
|
|
1734
|
-
this.
|
|
1734
|
+
this.w8_1 = 8;
|
|
1735
1735
|
var tmp_0 = this;
|
|
1736
1736
|
continue $sm;
|
|
1737
1737
|
case 8:
|
|
1738
|
-
this.
|
|
1739
|
-
cancelConsumed(this.
|
|
1740
|
-
this.
|
|
1738
|
+
this.x8_1 = 13;
|
|
1739
|
+
cancelConsumed(this.t4l_1, this.s4l_1);
|
|
1740
|
+
this.w8_1 = 12;
|
|
1741
1741
|
continue $sm;
|
|
1742
1742
|
case 9:
|
|
1743
|
-
this.
|
|
1744
|
-
var tmp_1 = this.
|
|
1743
|
+
this.x8_1 = 10;
|
|
1744
|
+
var tmp_1 = this.z8_1;
|
|
1745
1745
|
if (tmp_1 instanceof Error) {
|
|
1746
|
-
var e_0 = this.
|
|
1746
|
+
var e_0 = this.z8_1;
|
|
1747
1747
|
var tmp_2 = this;
|
|
1748
|
-
this.
|
|
1748
|
+
this.s4l_1 = e_0;
|
|
1749
1749
|
throw e_0;
|
|
1750
1750
|
} else {
|
|
1751
|
-
throw this.
|
|
1751
|
+
throw this.z8_1;
|
|
1752
1752
|
}
|
|
1753
1753
|
|
|
1754
1754
|
case 10:
|
|
1755
|
-
this.
|
|
1756
|
-
var t = this.
|
|
1757
|
-
cancelConsumed(this.
|
|
1755
|
+
this.x8_1 = 13;
|
|
1756
|
+
var t = this.z8_1;
|
|
1757
|
+
cancelConsumed(this.t4l_1, this.s4l_1);
|
|
1758
1758
|
throw t;
|
|
1759
1759
|
case 11:
|
|
1760
|
-
this.
|
|
1761
|
-
cancelConsumed(this.
|
|
1760
|
+
this.x8_1 = 13;
|
|
1761
|
+
cancelConsumed(this.t4l_1, this.s4l_1);
|
|
1762
1762
|
if (false) {
|
|
1763
|
-
this.
|
|
1763
|
+
this.w8_1 = 1;
|
|
1764
1764
|
continue $sm;
|
|
1765
1765
|
}
|
|
1766
1766
|
|
|
1767
|
-
this.
|
|
1767
|
+
this.w8_1 = 12;
|
|
1768
1768
|
continue $sm;
|
|
1769
1769
|
case 12:
|
|
1770
|
-
this.
|
|
1771
|
-
this.
|
|
1770
|
+
this.x8_1 = 14;
|
|
1771
|
+
this.w8_1 = 15;
|
|
1772
1772
|
continue $sm;
|
|
1773
1773
|
case 13:
|
|
1774
|
-
this.
|
|
1775
|
-
var tmp_3 = this.
|
|
1774
|
+
this.x8_1 = 14;
|
|
1775
|
+
var tmp_3 = this.z8_1;
|
|
1776
1776
|
if (tmp_3 instanceof ClosedSendChannelException) {
|
|
1777
|
-
var _unused_var__etf5q3 = this.
|
|
1778
|
-
this.
|
|
1777
|
+
var _unused_var__etf5q3 = this.z8_1;
|
|
1778
|
+
this.w8_1 = 15;
|
|
1779
1779
|
continue $sm;
|
|
1780
1780
|
} else {
|
|
1781
|
-
throw this.
|
|
1781
|
+
throw this.z8_1;
|
|
1782
1782
|
}
|
|
1783
1783
|
|
|
1784
1784
|
case 14:
|
|
1785
|
-
throw this.
|
|
1785
|
+
throw this.z8_1;
|
|
1786
1786
|
case 15:
|
|
1787
|
-
this.
|
|
1787
|
+
this.x8_1 = 14;
|
|
1788
1788
|
return Unit_instance;
|
|
1789
1789
|
}
|
|
1790
1790
|
} catch ($p) {
|
|
1791
1791
|
var e_1 = $p;
|
|
1792
|
-
if (this.
|
|
1792
|
+
if (this.x8_1 === 14) {
|
|
1793
1793
|
throw e_1;
|
|
1794
1794
|
} else {
|
|
1795
|
-
this.
|
|
1796
|
-
this.
|
|
1795
|
+
this.w8_1 = this.x8_1;
|
|
1796
|
+
this.z8_1 = e_1;
|
|
1797
1797
|
}
|
|
1798
1798
|
}
|
|
1799
1799
|
while (true);
|
|
1800
1800
|
};
|
|
1801
|
-
protoOf(ponger$slambda).
|
|
1802
|
-
var i = new ponger$slambda(this.
|
|
1803
|
-
i.
|
|
1801
|
+
protoOf(ponger$slambda).h3t = function ($this$launch, completion) {
|
|
1802
|
+
var i = new ponger$slambda(this.p4l_1, this.q4l_1, completion);
|
|
1803
|
+
i.r4l_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.g3t($this$launch, $completion);
|
|
1810
1810
|
}, 1);
|
|
1811
1811
|
}
|
|
1812
1812
|
function pinger$slambda$slambda($channel, resultContinuation) {
|
|
1813
|
-
this.
|
|
1813
|
+
this.e4m_1 = $channel;
|
|
1814
1814
|
CoroutineImpl.call(this, resultContinuation);
|
|
1815
1815
|
}
|
|
1816
|
-
protoOf(pinger$slambda$slambda).
|
|
1817
|
-
var tmp = this.
|
|
1818
|
-
tmp.
|
|
1819
|
-
tmp.
|
|
1820
|
-
return tmp.
|
|
1816
|
+
protoOf(pinger$slambda$slambda).g3t = function ($this$withTimeoutOrNull, $completion) {
|
|
1817
|
+
var tmp = this.h3t($this$withTimeoutOrNull, $completion);
|
|
1818
|
+
tmp.y8_1 = Unit_instance;
|
|
1819
|
+
tmp.z8_1 = null;
|
|
1820
|
+
return tmp.e9();
|
|
1821
1821
|
};
|
|
1822
|
-
protoOf(pinger$slambda$slambda).
|
|
1823
|
-
return this.
|
|
1822
|
+
protoOf(pinger$slambda$slambda).r9 = function (p1, $completion) {
|
|
1823
|
+
return this.g3t((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1824
1824
|
};
|
|
1825
|
-
protoOf(pinger$slambda$slambda).
|
|
1826
|
-
var suspendResult = this.
|
|
1825
|
+
protoOf(pinger$slambda$slambda).e9 = function () {
|
|
1826
|
+
var suspendResult = this.y8_1;
|
|
1827
1827
|
$sm: do
|
|
1828
1828
|
try {
|
|
1829
|
-
var tmp = this.
|
|
1829
|
+
var tmp = this.w8_1;
|
|
1830
1830
|
switch (tmp) {
|
|
1831
1831
|
case 0:
|
|
1832
|
-
this.
|
|
1833
|
-
this.
|
|
1832
|
+
this.x8_1 = 3;
|
|
1833
|
+
this.w8_1 = 1;
|
|
1834
1834
|
continue $sm;
|
|
1835
1835
|
case 1:
|
|
1836
1836
|
if (!true) {
|
|
1837
|
-
this.
|
|
1837
|
+
this.w8_1 = 4;
|
|
1838
1838
|
continue $sm;
|
|
1839
1839
|
}
|
|
1840
1840
|
|
|
1841
|
-
this.
|
|
1842
|
-
suspendResult = this.
|
|
1841
|
+
this.w8_1 = 2;
|
|
1842
|
+
suspendResult = this.e4m_1.o25(this);
|
|
1843
1843
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1844
1844
|
return suspendResult;
|
|
1845
1845
|
}
|
|
1846
1846
|
|
|
1847
1847
|
continue $sm;
|
|
1848
1848
|
case 2:
|
|
1849
|
-
this.
|
|
1849
|
+
this.w8_1 = 1;
|
|
1850
1850
|
continue $sm;
|
|
1851
1851
|
case 3:
|
|
1852
|
-
throw this.
|
|
1852
|
+
throw this.z8_1;
|
|
1853
1853
|
case 4:
|
|
1854
1854
|
return Unit_instance;
|
|
1855
1855
|
}
|
|
1856
1856
|
} catch ($p) {
|
|
1857
1857
|
var e = $p;
|
|
1858
|
-
if (this.
|
|
1858
|
+
if (this.x8_1 === 3) {
|
|
1859
1859
|
throw e;
|
|
1860
1860
|
} else {
|
|
1861
|
-
this.
|
|
1862
|
-
this.
|
|
1861
|
+
this.w8_1 = this.x8_1;
|
|
1862
|
+
this.z8_1 = e;
|
|
1863
1863
|
}
|
|
1864
1864
|
}
|
|
1865
1865
|
while (true);
|
|
1866
1866
|
};
|
|
1867
|
-
protoOf(pinger$slambda$slambda).
|
|
1868
|
-
var i = new pinger$slambda$slambda(this.
|
|
1869
|
-
i.
|
|
1867
|
+
protoOf(pinger$slambda$slambda).h3t = function ($this$withTimeoutOrNull, completion) {
|
|
1868
|
+
var i = new pinger$slambda$slambda(this.e4m_1, completion);
|
|
1869
|
+
i.f4m_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.g3t($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.o4m_1 = $outgoing;
|
|
1880
|
+
this.p4m_1 = $pingMessage;
|
|
1881
|
+
this.q4m_1 = $channel;
|
|
1882
1882
|
CoroutineImpl.call(this, resultContinuation);
|
|
1883
1883
|
}
|
|
1884
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1885
|
-
var tmp = this.
|
|
1886
|
-
tmp.
|
|
1887
|
-
tmp.
|
|
1888
|
-
return tmp.
|
|
1884
|
+
protoOf(pinger$slambda$slambda_1).g3t = function ($this$withTimeoutOrNull, $completion) {
|
|
1885
|
+
var tmp = this.h3t($this$withTimeoutOrNull, $completion);
|
|
1886
|
+
tmp.y8_1 = Unit_instance;
|
|
1887
|
+
tmp.z8_1 = null;
|
|
1888
|
+
return tmp.e9();
|
|
1889
1889
|
};
|
|
1890
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1891
|
-
return this.
|
|
1890
|
+
protoOf(pinger$slambda$slambda_1).r9 = function (p1, $completion) {
|
|
1891
|
+
return this.g3t((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1892
1892
|
};
|
|
1893
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1894
|
-
var suspendResult = this.
|
|
1893
|
+
protoOf(pinger$slambda$slambda_1).e9 = function () {
|
|
1894
|
+
var suspendResult = this.y8_1;
|
|
1895
1895
|
$sm: do
|
|
1896
1896
|
try {
|
|
1897
|
-
var tmp = this.
|
|
1897
|
+
var tmp = this.w8_1;
|
|
1898
1898
|
switch (tmp) {
|
|
1899
1899
|
case 0:
|
|
1900
|
-
this.
|
|
1901
|
-
get_LOGGER().
|
|
1902
|
-
this.
|
|
1903
|
-
suspendResult = this.
|
|
1900
|
+
this.x8_1 = 6;
|
|
1901
|
+
get_LOGGER().a42('WebSocket Pinger: sending ping frame');
|
|
1902
|
+
this.w8_1 = 1;
|
|
1903
|
+
suspendResult = this.o4m_1.l25(new Ping(toByteArray(this.p4m_1, Charsets_getInstance().h3u_1)), this);
|
|
1904
1904
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1905
1905
|
return suspendResult;
|
|
1906
1906
|
}
|
|
1907
1907
|
|
|
1908
1908
|
continue $sm;
|
|
1909
1909
|
case 1:
|
|
1910
|
-
this.
|
|
1910
|
+
this.w8_1 = 2;
|
|
1911
1911
|
continue $sm;
|
|
1912
1912
|
case 2:
|
|
1913
1913
|
if (!true) {
|
|
1914
|
-
this.
|
|
1914
|
+
this.w8_1 = 5;
|
|
1915
1915
|
continue $sm;
|
|
1916
1916
|
}
|
|
1917
1917
|
|
|
1918
|
-
this.
|
|
1919
|
-
suspendResult = this.
|
|
1918
|
+
this.w8_1 = 3;
|
|
1919
|
+
suspendResult = this.q4m_1.o25(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.
|
|
1928
|
-
|
|
1929
|
-
|
|
1926
|
+
this.s4m_1 = suspendResult;
|
|
1927
|
+
if (decodeToString(this.s4m_1.g4g_1, 0, 0 + this.s4m_1.g4g_1.length | 0) === this.p4m_1) {
|
|
1928
|
+
var this_0 = get_LOGGER();
|
|
1929
|
+
if (get_isTraceEnabled(this_0)) {
|
|
1930
|
+
this_0.a42('WebSocket Pinger: received valid pong frame ' + this.s4m_1.toString());
|
|
1931
|
+
}
|
|
1932
|
+
this.w8_1 = 5;
|
|
1930
1933
|
continue $sm;
|
|
1931
1934
|
} else {
|
|
1932
|
-
this.
|
|
1935
|
+
this.w8_1 = 4;
|
|
1933
1936
|
continue $sm;
|
|
1934
1937
|
}
|
|
1935
1938
|
|
|
1936
1939
|
case 4:
|
|
1937
|
-
|
|
1938
|
-
|
|
1940
|
+
var this_1 = get_LOGGER();
|
|
1941
|
+
if (get_isTraceEnabled(this_1)) {
|
|
1942
|
+
this_1.a42('WebSocket Pinger: received invalid pong frame ' + this.s4m_1.toString() + ', continue waiting');
|
|
1943
|
+
}
|
|
1944
|
+
|
|
1945
|
+
this.w8_1 = 2;
|
|
1939
1946
|
continue $sm;
|
|
1940
1947
|
case 5:
|
|
1941
1948
|
return Unit_instance;
|
|
1942
1949
|
case 6:
|
|
1943
|
-
throw this.
|
|
1950
|
+
throw this.z8_1;
|
|
1944
1951
|
}
|
|
1945
1952
|
} catch ($p) {
|
|
1946
1953
|
var e = $p;
|
|
1947
|
-
if (this.
|
|
1954
|
+
if (this.x8_1 === 6) {
|
|
1948
1955
|
throw e;
|
|
1949
1956
|
} else {
|
|
1950
|
-
this.
|
|
1951
|
-
this.
|
|
1957
|
+
this.w8_1 = this.x8_1;
|
|
1958
|
+
this.z8_1 = e;
|
|
1952
1959
|
}
|
|
1953
1960
|
}
|
|
1954
1961
|
while (true);
|
|
1955
1962
|
};
|
|
1956
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1957
|
-
var i = new pinger$slambda$slambda_1(this.
|
|
1958
|
-
i.
|
|
1963
|
+
protoOf(pinger$slambda$slambda_1).h3t = function ($this$withTimeoutOrNull, completion) {
|
|
1964
|
+
var i = new pinger$slambda$slambda_1(this.o4m_1, this.p4m_1, this.q4m_1, completion);
|
|
1965
|
+
i.r4m_1 = $this$withTimeoutOrNull;
|
|
1959
1966
|
return i;
|
|
1960
1967
|
};
|
|
1961
1968
|
function pinger$slambda$slambda_2($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1962
1969
|
var i = new pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation);
|
|
1963
1970
|
return constructCallableReference(function ($this$withTimeoutOrNull, $completion) {
|
|
1964
|
-
return i.
|
|
1971
|
+
return i.g3t($this$withTimeoutOrNull, $completion);
|
|
1965
1972
|
}, 1);
|
|
1966
1973
|
}
|
|
1967
1974
|
function pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
1968
|
-
this.
|
|
1969
|
-
this.
|
|
1970
|
-
this.
|
|
1971
|
-
this.
|
|
1972
|
-
this.
|
|
1975
|
+
this.b4n_1 = $periodMillis;
|
|
1976
|
+
this.c4n_1 = $timeoutMillis;
|
|
1977
|
+
this.d4n_1 = $onTimeout;
|
|
1978
|
+
this.e4n_1 = $channel;
|
|
1979
|
+
this.f4n_1 = $outgoing;
|
|
1973
1980
|
CoroutineImpl.call(this, resultContinuation);
|
|
1974
1981
|
}
|
|
1975
|
-
protoOf(pinger$slambda).
|
|
1976
|
-
var tmp = this.
|
|
1977
|
-
tmp.
|
|
1978
|
-
tmp.
|
|
1979
|
-
return tmp.
|
|
1982
|
+
protoOf(pinger$slambda).g3t = function ($this$launch, $completion) {
|
|
1983
|
+
var tmp = this.h3t($this$launch, $completion);
|
|
1984
|
+
tmp.y8_1 = Unit_instance;
|
|
1985
|
+
tmp.z8_1 = null;
|
|
1986
|
+
return tmp.e9();
|
|
1980
1987
|
};
|
|
1981
|
-
protoOf(pinger$slambda).
|
|
1982
|
-
return this.
|
|
1988
|
+
protoOf(pinger$slambda).r9 = function (p1, $completion) {
|
|
1989
|
+
return this.g3t((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1983
1990
|
};
|
|
1984
|
-
protoOf(pinger$slambda).
|
|
1985
|
-
var suspendResult = this.
|
|
1991
|
+
protoOf(pinger$slambda).e9 = function () {
|
|
1992
|
+
var suspendResult = this.y8_1;
|
|
1986
1993
|
$sm: do
|
|
1987
1994
|
try {
|
|
1988
|
-
var tmp = this.
|
|
1995
|
+
var tmp = this.w8_1;
|
|
1989
1996
|
switch (tmp) {
|
|
1990
1997
|
case 0:
|
|
1991
|
-
this.
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1998
|
+
this.x8_1 = 8;
|
|
1999
|
+
var this_0 = get_LOGGER();
|
|
2000
|
+
if (get_isTraceEnabled(this_0)) {
|
|
2001
|
+
this_0.a42('Starting WebSocket pinger coroutine with period ' + this.b4n_1.toString() + ' ms and timeout ' + this.c4n_1.toString() + ' ms');
|
|
2002
|
+
}
|
|
2003
|
+
|
|
2004
|
+
this.i4n_1 = Random(getTimeMillis());
|
|
2005
|
+
this.h4n_1 = new Int8Array(32);
|
|
2006
|
+
this.x8_1 = 7;
|
|
2007
|
+
this.w8_1 = 1;
|
|
1997
2008
|
continue $sm;
|
|
1998
2009
|
case 1:
|
|
1999
2010
|
if (!true) {
|
|
2000
|
-
this.
|
|
2011
|
+
this.w8_1 = 6;
|
|
2001
2012
|
continue $sm;
|
|
2002
2013
|
}
|
|
2003
2014
|
|
|
2004
|
-
this.
|
|
2005
|
-
suspendResult = withTimeoutOrNull(this.
|
|
2015
|
+
this.w8_1 = 2;
|
|
2016
|
+
suspendResult = withTimeoutOrNull(this.b4n_1, pinger$slambda$slambda_0(this.e4n_1, null), this);
|
|
2006
2017
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2007
2018
|
return suspendResult;
|
|
2008
2019
|
}
|
|
2009
2020
|
|
|
2010
2021
|
continue $sm;
|
|
2011
2022
|
case 2:
|
|
2012
|
-
this.
|
|
2013
|
-
var pingMessage = '[ping ' + toHexString(this.
|
|
2014
|
-
this.
|
|
2015
|
-
suspendResult = withTimeoutOrNull(this.
|
|
2023
|
+
this.i4n_1.nj(this.h4n_1);
|
|
2024
|
+
var pingMessage = '[ping ' + toHexString(this.h4n_1) + ' ping]';
|
|
2025
|
+
this.w8_1 = 3;
|
|
2026
|
+
suspendResult = withTimeoutOrNull(this.c4n_1, pinger$slambda$slambda_2(this.f4n_1, pingMessage, this.e4n_1, null), this);
|
|
2016
2027
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2017
2028
|
return suspendResult;
|
|
2018
2029
|
}
|
|
@@ -2021,91 +2032,91 @@ protoOf(pinger$slambda).d9 = function () {
|
|
|
2021
2032
|
case 3:
|
|
2022
2033
|
var rc = suspendResult;
|
|
2023
2034
|
if (rc == null) {
|
|
2024
|
-
get_LOGGER().
|
|
2025
|
-
this.
|
|
2026
|
-
suspendResult = this.
|
|
2035
|
+
get_LOGGER().a42('WebSocket pinger has timed out');
|
|
2036
|
+
this.w8_1 = 5;
|
|
2037
|
+
suspendResult = this.d4n_1(CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), 'Ping timeout'), this);
|
|
2027
2038
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2028
2039
|
return suspendResult;
|
|
2029
2040
|
}
|
|
2030
2041
|
continue $sm;
|
|
2031
2042
|
} else {
|
|
2032
|
-
this.
|
|
2043
|
+
this.w8_1 = 4;
|
|
2033
2044
|
continue $sm;
|
|
2034
2045
|
}
|
|
2035
2046
|
|
|
2036
2047
|
case 4:
|
|
2037
|
-
this.
|
|
2048
|
+
this.w8_1 = 1;
|
|
2038
2049
|
continue $sm;
|
|
2039
2050
|
case 5:
|
|
2040
|
-
this.
|
|
2051
|
+
this.w8_1 = 6;
|
|
2041
2052
|
continue $sm;
|
|
2042
2053
|
case 6:
|
|
2054
|
+
this.x8_1 = 8;
|
|
2043
2055
|
this.w8_1 = 9;
|
|
2044
|
-
this.v8_1 = 8;
|
|
2045
2056
|
continue $sm;
|
|
2046
2057
|
case 7:
|
|
2047
|
-
this.
|
|
2048
|
-
var tmp_0 = this.
|
|
2058
|
+
this.x8_1 = 8;
|
|
2059
|
+
var tmp_0 = this.z8_1;
|
|
2049
2060
|
if (tmp_0 instanceof CancellationException) {
|
|
2050
|
-
var ignore = this.
|
|
2051
|
-
this.
|
|
2061
|
+
var ignore = this.z8_1;
|
|
2062
|
+
this.w8_1 = 9;
|
|
2052
2063
|
continue $sm;
|
|
2053
2064
|
} else {
|
|
2054
|
-
var tmp_1 = this.
|
|
2065
|
+
var tmp_1 = this.z8_1;
|
|
2055
2066
|
if (tmp_1 instanceof ClosedReceiveChannelException) {
|
|
2056
|
-
var ignore_0 = this.
|
|
2057
|
-
this.
|
|
2067
|
+
var ignore_0 = this.z8_1;
|
|
2068
|
+
this.w8_1 = 9;
|
|
2058
2069
|
continue $sm;
|
|
2059
2070
|
} else {
|
|
2060
|
-
var tmp_2 = this.
|
|
2071
|
+
var tmp_2 = this.z8_1;
|
|
2061
2072
|
if (tmp_2 instanceof ClosedSendChannelException) {
|
|
2062
|
-
var ignore_1 = this.
|
|
2063
|
-
this.
|
|
2073
|
+
var ignore_1 = this.z8_1;
|
|
2074
|
+
this.w8_1 = 9;
|
|
2064
2075
|
continue $sm;
|
|
2065
2076
|
} else {
|
|
2066
|
-
var tmp_3 = this.
|
|
2077
|
+
var tmp_3 = this.z8_1;
|
|
2067
2078
|
if (tmp_3 instanceof ClosedByteChannelException) {
|
|
2068
|
-
var ignore_2 = this.
|
|
2069
|
-
this.
|
|
2079
|
+
var ignore_2 = this.z8_1;
|
|
2080
|
+
this.w8_1 = 9;
|
|
2070
2081
|
continue $sm;
|
|
2071
2082
|
} else {
|
|
2072
|
-
throw this.
|
|
2083
|
+
throw this.z8_1;
|
|
2073
2084
|
}
|
|
2074
2085
|
}
|
|
2075
2086
|
}
|
|
2076
2087
|
}
|
|
2077
2088
|
|
|
2078
2089
|
case 8:
|
|
2079
|
-
this.
|
|
2080
|
-
return Unit_instance;
|
|
2090
|
+
throw this.z8_1;
|
|
2081
2091
|
case 9:
|
|
2082
|
-
|
|
2092
|
+
this.x8_1 = 8;
|
|
2093
|
+
return Unit_instance;
|
|
2083
2094
|
}
|
|
2084
2095
|
} catch ($p) {
|
|
2085
2096
|
var e = $p;
|
|
2086
|
-
if (this.
|
|
2097
|
+
if (this.x8_1 === 8) {
|
|
2087
2098
|
throw e;
|
|
2088
2099
|
} else {
|
|
2089
|
-
this.
|
|
2090
|
-
this.
|
|
2100
|
+
this.w8_1 = this.x8_1;
|
|
2101
|
+
this.z8_1 = e;
|
|
2091
2102
|
}
|
|
2092
2103
|
}
|
|
2093
2104
|
while (true);
|
|
2094
2105
|
};
|
|
2095
|
-
protoOf(pinger$slambda).
|
|
2096
|
-
var i = new pinger$slambda(this.
|
|
2097
|
-
i.
|
|
2106
|
+
protoOf(pinger$slambda).h3t = function ($this$launch, completion) {
|
|
2107
|
+
var i = new pinger$slambda(this.b4n_1, this.c4n_1, this.d4n_1, this.e4n_1, this.f4n_1, completion);
|
|
2108
|
+
i.g4n_1 = $this$launch;
|
|
2098
2109
|
return i;
|
|
2099
2110
|
};
|
|
2100
2111
|
function pinger$slambda_0($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
2101
2112
|
var i = new pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation);
|
|
2102
2113
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
2103
|
-
return i.
|
|
2114
|
+
return i.g3t($this$launch, $completion);
|
|
2104
2115
|
}, 1);
|
|
2105
2116
|
}
|
|
2106
2117
|
function pinger$lambda($actorJob) {
|
|
2107
2118
|
return function (it) {
|
|
2108
|
-
$actorJob.
|
|
2119
|
+
$actorJob.k1o();
|
|
2109
2120
|
return Unit_instance;
|
|
2110
2121
|
};
|
|
2111
2122
|
}
|
|
@@ -2122,9 +2133,9 @@ function Companion_3() {
|
|
|
2122
2133
|
var tmp = this;
|
|
2123
2134
|
// Inline function 'kotlin.apply' call
|
|
2124
2135
|
var this_0 = new WebSocketChannelsConfig();
|
|
2125
|
-
this_0.
|
|
2126
|
-
this_0.
|
|
2127
|
-
tmp.
|
|
2136
|
+
this_0.s4g_1 = this_0.j4n();
|
|
2137
|
+
this_0.t4g_1 = this_0.j4n();
|
|
2138
|
+
tmp.r4g_1 = this_0;
|
|
2128
2139
|
}
|
|
2129
2140
|
var Companion_instance_3;
|
|
2130
2141
|
function Companion_getInstance_3() {
|
|
@@ -2134,21 +2145,21 @@ function Companion_getInstance_3() {
|
|
|
2134
2145
|
}
|
|
2135
2146
|
function WebSocketChannelsConfig() {
|
|
2136
2147
|
Companion_getInstance_3();
|
|
2137
|
-
this.
|
|
2138
|
-
this.
|
|
2148
|
+
this.s4g_1 = Companion_getInstance_4().k4n_1;
|
|
2149
|
+
this.t4g_1 = Companion_getInstance_4().k4n_1;
|
|
2139
2150
|
}
|
|
2140
|
-
protoOf(WebSocketChannelsConfig).
|
|
2141
|
-
return Companion_getInstance_4().
|
|
2151
|
+
protoOf(WebSocketChannelsConfig).j4n = function () {
|
|
2152
|
+
return Companion_getInstance_4().k4n_1;
|
|
2142
2153
|
};
|
|
2143
2154
|
function from(_this__u8e3s4, config) {
|
|
2144
2155
|
// Inline function 'kotlin.with' call
|
|
2145
2156
|
var tmp;
|
|
2146
|
-
if (config.
|
|
2157
|
+
if (config.l4n_1 === 2147483647) {
|
|
2147
2158
|
tmp = Channel(2147483647);
|
|
2148
|
-
} else if (config.
|
|
2149
|
-
tmp = Channel(config.
|
|
2150
|
-
} else if (config.
|
|
2151
|
-
tmp = new BoundedChannel(config.
|
|
2159
|
+
} else if (config.m4n_1.equals(ChannelOverflow_SUSPEND_getInstance())) {
|
|
2160
|
+
tmp = Channel(config.l4n_1, BufferOverflow_SUSPEND_getInstance());
|
|
2161
|
+
} else if (config.m4n_1.equals(ChannelOverflow_CLOSE_getInstance())) {
|
|
2162
|
+
tmp = new BoundedChannel(config.l4n_1);
|
|
2152
2163
|
} else {
|
|
2153
2164
|
// Inline function 'kotlin.error' call
|
|
2154
2165
|
var message = 'Unsupported channel config.';
|
|
@@ -2158,7 +2169,7 @@ function from(_this__u8e3s4, config) {
|
|
|
2158
2169
|
}
|
|
2159
2170
|
function Companion_4() {
|
|
2160
2171
|
Companion_instance_4 = this;
|
|
2161
|
-
this.
|
|
2172
|
+
this.k4n_1 = new ChannelConfig(2147483647, ChannelOverflow_SUSPEND_getInstance());
|
|
2162
2173
|
}
|
|
2163
2174
|
var Companion_instance_4;
|
|
2164
2175
|
function Companion_getInstance_4() {
|
|
@@ -2168,11 +2179,11 @@ function Companion_getInstance_4() {
|
|
|
2168
2179
|
}
|
|
2169
2180
|
function ChannelConfig(capacity, onOverflow) {
|
|
2170
2181
|
Companion_getInstance_4();
|
|
2171
|
-
this.
|
|
2172
|
-
this.
|
|
2182
|
+
this.l4n_1 = capacity;
|
|
2183
|
+
this.m4n_1 = onOverflow;
|
|
2173
2184
|
}
|
|
2174
|
-
protoOf(ChannelConfig).
|
|
2175
|
-
return this.
|
|
2185
|
+
protoOf(ChannelConfig).n4n = function () {
|
|
2186
|
+
return this.m4n_1.equals(ChannelOverflow_SUSPEND_getInstance()) && !(this.l4n_1 === 2147483647);
|
|
2176
2187
|
};
|
|
2177
2188
|
var ChannelOverflow_SUSPEND_instance;
|
|
2178
2189
|
var ChannelOverflow_CLOSE_instance;
|
|
@@ -2196,14 +2207,14 @@ function BoundedChannel$Companion$createDelegate$lambda($channel) {
|
|
|
2196
2207
|
} else {
|
|
2197
2208
|
tmp_0 = $channel._v;
|
|
2198
2209
|
}
|
|
2199
|
-
if (!tmp_0.
|
|
2210
|
+
if (!tmp_0.q23()) {
|
|
2200
2211
|
var tmp_1;
|
|
2201
2212
|
if ($channel._v == null) {
|
|
2202
2213
|
throwUninitializedPropertyAccessException('channel');
|
|
2203
2214
|
} else {
|
|
2204
2215
|
tmp_1 = $channel._v;
|
|
2205
2216
|
}
|
|
2206
|
-
tmp_1.
|
|
2217
|
+
tmp_1.q25(new ChannelOverflowException('Channel overflowed'));
|
|
2207
2218
|
tmp = Unit_instance;
|
|
2208
2219
|
}
|
|
2209
2220
|
return Unit_instance;
|
|
@@ -2211,7 +2222,7 @@ function BoundedChannel$Companion$createDelegate$lambda($channel) {
|
|
|
2211
2222
|
}
|
|
2212
2223
|
function Companion_5() {
|
|
2213
2224
|
}
|
|
2214
|
-
protoOf(Companion_5).
|
|
2225
|
+
protoOf(Companion_5).o4n = function (capacity) {
|
|
2215
2226
|
var channel = {_v: null};
|
|
2216
2227
|
var tmp = BufferOverflow_DROP_OLDEST_getInstance();
|
|
2217
2228
|
// Inline function 'kotlin.also' call
|
|
@@ -2224,45 +2235,45 @@ function Companion_getInstance_5() {
|
|
|
2224
2235
|
return Companion_instance_5;
|
|
2225
2236
|
}
|
|
2226
2237
|
function BoundedChannel(capacity, delegate) {
|
|
2227
|
-
delegate = delegate === VOID ? Companion_instance_5.
|
|
2228
|
-
this.
|
|
2238
|
+
delegate = delegate === VOID ? Companion_instance_5.o4n(capacity) : delegate;
|
|
2239
|
+
this.p4n_1 = delegate;
|
|
2229
2240
|
}
|
|
2230
|
-
protoOf(BoundedChannel).
|
|
2231
|
-
var result = this.
|
|
2241
|
+
protoOf(BoundedChannel).q4n = function (element) {
|
|
2242
|
+
var result = this.p4n_1.m25(element);
|
|
2232
2243
|
if (!_ChannelResult___get_isSuccess__impl__odq1z9(result) && !_ChannelResult___get_isClosed__impl__mg7kuu(result)) {
|
|
2233
|
-
this.
|
|
2244
|
+
this.q25(new ChannelOverflowException('Channel overflowed'));
|
|
2234
2245
|
}
|
|
2235
2246
|
return result;
|
|
2236
2247
|
};
|
|
2237
|
-
protoOf(BoundedChannel).
|
|
2238
|
-
return this.
|
|
2248
|
+
protoOf(BoundedChannel).m25 = function (element) {
|
|
2249
|
+
return this.q4n(element);
|
|
2239
2250
|
};
|
|
2240
|
-
protoOf(BoundedChannel).
|
|
2241
|
-
return this.
|
|
2251
|
+
protoOf(BoundedChannel).r4n = function (element, $completion) {
|
|
2252
|
+
return this.p4n_1.l25(element, $completion);
|
|
2242
2253
|
};
|
|
2243
|
-
protoOf(BoundedChannel).
|
|
2244
|
-
return this.
|
|
2254
|
+
protoOf(BoundedChannel).l25 = function (element, $completion) {
|
|
2255
|
+
return this.r4n(element, $completion);
|
|
2245
2256
|
};
|
|
2246
|
-
protoOf(BoundedChannel).
|
|
2247
|
-
return this.
|
|
2257
|
+
protoOf(BoundedChannel).q25 = function (cause) {
|
|
2258
|
+
return this.p4n_1.q25(cause);
|
|
2248
2259
|
};
|
|
2249
|
-
protoOf(BoundedChannel).
|
|
2250
|
-
this.
|
|
2260
|
+
protoOf(BoundedChannel).v25 = function (handler) {
|
|
2261
|
+
this.p4n_1.v25(handler);
|
|
2251
2262
|
};
|
|
2252
|
-
protoOf(BoundedChannel).
|
|
2253
|
-
return this.
|
|
2263
|
+
protoOf(BoundedChannel).q23 = function () {
|
|
2264
|
+
return this.p4n_1.q23();
|
|
2254
2265
|
};
|
|
2255
|
-
protoOf(BoundedChannel).
|
|
2256
|
-
return this.
|
|
2266
|
+
protoOf(BoundedChannel).s4n = function ($completion) {
|
|
2267
|
+
return this.p4n_1.o25($completion);
|
|
2257
2268
|
};
|
|
2258
|
-
protoOf(BoundedChannel).
|
|
2259
|
-
return this.
|
|
2269
|
+
protoOf(BoundedChannel).o25 = function ($completion) {
|
|
2270
|
+
return this.s4n($completion);
|
|
2260
2271
|
};
|
|
2261
2272
|
protoOf(BoundedChannel).t = function () {
|
|
2262
|
-
return this.
|
|
2273
|
+
return this.p4n_1.t();
|
|
2263
2274
|
};
|
|
2264
|
-
protoOf(BoundedChannel).
|
|
2265
|
-
this.
|
|
2275
|
+
protoOf(BoundedChannel).j1o = function (cause) {
|
|
2276
|
+
this.p4n_1.j1o(cause);
|
|
2266
2277
|
};
|
|
2267
2278
|
function ChannelOverflowException(message) {
|
|
2268
2279
|
RuntimeException_init_$Init$(message, this);
|
|
@@ -2281,16 +2292,16 @@ function WebSocketExtension() {
|
|
|
2281
2292
|
function WebSocketExtensionsConfig() {
|
|
2282
2293
|
var tmp = this;
|
|
2283
2294
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2284
|
-
tmp.
|
|
2295
|
+
tmp.v4n_1 = ArrayList_init_$Create$();
|
|
2285
2296
|
var tmp_0 = this;
|
|
2286
2297
|
// Inline function 'kotlin.arrayOf' call
|
|
2287
2298
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2288
2299
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2289
|
-
tmp_0.
|
|
2300
|
+
tmp_0.w4n_1 = [false, false, false];
|
|
2290
2301
|
}
|
|
2291
|
-
protoOf(WebSocketExtensionsConfig).
|
|
2302
|
+
protoOf(WebSocketExtensionsConfig).f45 = function () {
|
|
2292
2303
|
// Inline function 'kotlin.collections.map' call
|
|
2293
|
-
var this_0 = this.
|
|
2304
|
+
var this_0 = this.v4n_1;
|
|
2294
2305
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2295
2306
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2296
2307
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2302,14 +2313,14 @@ protoOf(WebSocketExtensionsConfig).d45 = function () {
|
|
|
2302
2313
|
return destination;
|
|
2303
2314
|
};
|
|
2304
2315
|
function parametersToString($this) {
|
|
2305
|
-
return $this.
|
|
2316
|
+
return $this.y4n_1.r() ? '' : '; ' + joinToString($this.y4n_1, ';');
|
|
2306
2317
|
}
|
|
2307
2318
|
function WebSocketExtensionHeader(name, parameters) {
|
|
2308
|
-
this.
|
|
2309
|
-
this.
|
|
2319
|
+
this.x4n_1 = name;
|
|
2320
|
+
this.y4n_1 = parameters;
|
|
2310
2321
|
}
|
|
2311
2322
|
protoOf(WebSocketExtensionHeader).toString = function () {
|
|
2312
|
-
return this.
|
|
2323
|
+
return this.x4n_1 + ' ' + parametersToString(this);
|
|
2313
2324
|
};
|
|
2314
2325
|
function parseWebSocketExtensions(value) {
|
|
2315
2326
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2345,9 +2356,9 @@ function WebSocketSession() {
|
|
|
2345
2356
|
function close(_this__u8e3s4, reason, $completion) {
|
|
2346
2357
|
reason = reason === VOID ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : reason;
|
|
2347
2358
|
var tmp = new $closeCOROUTINE$(_this__u8e3s4, reason, $completion);
|
|
2348
|
-
tmp.
|
|
2349
|
-
tmp.
|
|
2350
|
-
return tmp.
|
|
2359
|
+
tmp.y8_1 = Unit_instance;
|
|
2360
|
+
tmp.z8_1 = null;
|
|
2361
|
+
return tmp.e9();
|
|
2351
2362
|
}
|
|
2352
2363
|
function closeExceptionally(_this__u8e3s4, cause, $completion) {
|
|
2353
2364
|
var tmp;
|
|
@@ -2362,61 +2373,61 @@ function closeExceptionally(_this__u8e3s4, cause, $completion) {
|
|
|
2362
2373
|
}
|
|
2363
2374
|
function $closeCOROUTINE$(_this__u8e3s4, reason, resultContinuation) {
|
|
2364
2375
|
CoroutineImpl.call(this, resultContinuation);
|
|
2365
|
-
this.
|
|
2366
|
-
this.
|
|
2376
|
+
this.h4o_1 = _this__u8e3s4;
|
|
2377
|
+
this.i4o_1 = reason;
|
|
2367
2378
|
}
|
|
2368
|
-
protoOf($closeCOROUTINE$).
|
|
2369
|
-
var suspendResult = this.
|
|
2379
|
+
protoOf($closeCOROUTINE$).e9 = function () {
|
|
2380
|
+
var suspendResult = this.y8_1;
|
|
2370
2381
|
$sm: do
|
|
2371
2382
|
try {
|
|
2372
|
-
var tmp = this.
|
|
2383
|
+
var tmp = this.w8_1;
|
|
2373
2384
|
switch (tmp) {
|
|
2374
2385
|
case 0:
|
|
2375
|
-
this.
|
|
2376
|
-
this.
|
|
2377
|
-
this.
|
|
2378
|
-
suspendResult = this.
|
|
2386
|
+
this.x8_1 = 4;
|
|
2387
|
+
this.x8_1 = 3;
|
|
2388
|
+
this.w8_1 = 1;
|
|
2389
|
+
suspendResult = this.h4o_1.q4g(Close_init_$Create$(this.i4o_1), this);
|
|
2379
2390
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2380
2391
|
return suspendResult;
|
|
2381
2392
|
}
|
|
2382
2393
|
|
|
2383
2394
|
continue $sm;
|
|
2384
2395
|
case 1:
|
|
2385
|
-
this.
|
|
2386
|
-
suspendResult = this.
|
|
2396
|
+
this.w8_1 = 2;
|
|
2397
|
+
suspendResult = this.h4o_1.c3l(this);
|
|
2387
2398
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2388
2399
|
return suspendResult;
|
|
2389
2400
|
}
|
|
2390
2401
|
|
|
2391
2402
|
continue $sm;
|
|
2392
2403
|
case 2:
|
|
2393
|
-
this.
|
|
2394
|
-
this.
|
|
2404
|
+
this.x8_1 = 4;
|
|
2405
|
+
this.w8_1 = 5;
|
|
2395
2406
|
continue $sm;
|
|
2396
2407
|
case 3:
|
|
2397
|
-
this.
|
|
2398
|
-
var tmp_0 = this.
|
|
2408
|
+
this.x8_1 = 4;
|
|
2409
|
+
var tmp_0 = this.z8_1;
|
|
2399
2410
|
if (tmp_0 instanceof Error) {
|
|
2400
|
-
var _unused_var__etf5q3 = this.
|
|
2401
|
-
this.
|
|
2411
|
+
var _unused_var__etf5q3 = this.z8_1;
|
|
2412
|
+
this.w8_1 = 5;
|
|
2402
2413
|
continue $sm;
|
|
2403
2414
|
} else {
|
|
2404
|
-
throw this.
|
|
2415
|
+
throw this.z8_1;
|
|
2405
2416
|
}
|
|
2406
2417
|
|
|
2407
2418
|
case 4:
|
|
2408
|
-
throw this.
|
|
2419
|
+
throw this.z8_1;
|
|
2409
2420
|
case 5:
|
|
2410
|
-
this.
|
|
2421
|
+
this.x8_1 = 4;
|
|
2411
2422
|
return Unit_instance;
|
|
2412
2423
|
}
|
|
2413
2424
|
} catch ($p) {
|
|
2414
2425
|
var e = $p;
|
|
2415
|
-
if (this.
|
|
2426
|
+
if (this.x8_1 === 4) {
|
|
2416
2427
|
throw e;
|
|
2417
2428
|
} else {
|
|
2418
|
-
this.
|
|
2419
|
-
this.
|
|
2429
|
+
this.w8_1 = this.x8_1;
|
|
2430
|
+
this.z8_1 = e;
|
|
2420
2431
|
}
|
|
2421
2432
|
}
|
|
2422
2433
|
while (true);
|
|
@@ -2442,8 +2453,8 @@ function Text_init_$Create$(text) {
|
|
|
2442
2453
|
function Close_init_$Init$(reason, $this) {
|
|
2443
2454
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
2444
2455
|
var builder = new Buffer();
|
|
2445
|
-
builder.
|
|
2446
|
-
writeText(builder, reason.
|
|
2456
|
+
builder.u3h(reason.x4f_1);
|
|
2457
|
+
writeText(builder, reason.y4f_1);
|
|
2447
2458
|
Close_init_$Init$_0(builder, $this);
|
|
2448
2459
|
return $this;
|
|
2449
2460
|
}
|
|
@@ -2455,7 +2466,7 @@ function Close_init_$Init$_0(packet, $this) {
|
|
|
2455
2466
|
return $this;
|
|
2456
2467
|
}
|
|
2457
2468
|
function Close_init_$Init$_1($this) {
|
|
2458
|
-
Close.call($this, Companion_getInstance_6().
|
|
2469
|
+
Close.call($this, Companion_getInstance_6().f4k_1);
|
|
2459
2470
|
return $this;
|
|
2460
2471
|
}
|
|
2461
2472
|
function Close_init_$Create$_0() {
|
|
@@ -2485,9 +2496,9 @@ function Pong(data, disposableHandle) {
|
|
|
2485
2496
|
}
|
|
2486
2497
|
function Companion_6() {
|
|
2487
2498
|
Companion_instance_6 = this;
|
|
2488
|
-
this.
|
|
2499
|
+
this.f4k_1 = new Int8Array(0);
|
|
2489
2500
|
}
|
|
2490
|
-
protoOf(Companion_6).
|
|
2501
|
+
protoOf(Companion_6).g4k = function (fin, frameType, data, rsv1, rsv2, rsv3) {
|
|
2491
2502
|
var tmp;
|
|
2492
2503
|
switch (frameType.a1_1) {
|
|
2493
2504
|
case 1:
|
|
@@ -2523,29 +2534,29 @@ function Frame(fin, frameType, data, disposableHandle, rsv1, rsv2, rsv3) {
|
|
|
2523
2534
|
rsv1 = rsv1 === VOID ? false : rsv1;
|
|
2524
2535
|
rsv2 = rsv2 === VOID ? false : rsv2;
|
|
2525
2536
|
rsv3 = rsv3 === VOID ? false : rsv3;
|
|
2526
|
-
this.
|
|
2527
|
-
this.
|
|
2528
|
-
this.
|
|
2529
|
-
this.
|
|
2530
|
-
this.
|
|
2531
|
-
this.
|
|
2532
|
-
this.
|
|
2537
|
+
this.e4g_1 = fin;
|
|
2538
|
+
this.f4g_1 = frameType;
|
|
2539
|
+
this.g4g_1 = data;
|
|
2540
|
+
this.h4g_1 = disposableHandle;
|
|
2541
|
+
this.i4g_1 = rsv1;
|
|
2542
|
+
this.j4g_1 = rsv2;
|
|
2543
|
+
this.k4g_1 = rsv3;
|
|
2533
2544
|
validateSize(this);
|
|
2534
2545
|
}
|
|
2535
2546
|
protoOf(Frame).toString = function () {
|
|
2536
|
-
return 'Frame ' + this.
|
|
2547
|
+
return 'Frame ' + this.f4g_1.toString() + ' (fin=' + this.e4g_1 + ', buffer len = ' + this.g4g_1.length + ')';
|
|
2537
2548
|
};
|
|
2538
2549
|
function get_OUTGOING_CHANNEL_CAPACITY() {
|
|
2539
2550
|
return OUTGOING_CHANNEL_CAPACITY;
|
|
2540
2551
|
}
|
|
2541
2552
|
var OUTGOING_CHANNEL_CAPACITY;
|
|
2542
2553
|
//region block: post-declaration
|
|
2543
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
2554
|
+
protoOf(DefaultWebSocketSessionImpl).q4g = send;
|
|
2544
2555
|
defineProp(protoOf(FrameTooBigException), 'message', function () {
|
|
2545
2556
|
return this.e();
|
|
2546
2557
|
});
|
|
2547
|
-
protoOf(BoundedChannel).
|
|
2548
|
-
protoOf(BoundedChannel).
|
|
2558
|
+
protoOf(BoundedChannel).s25 = close$default;
|
|
2559
|
+
protoOf(BoundedChannel).u25 = cancel$default;
|
|
2549
2560
|
//endregion
|
|
2550
2561
|
//region block: init
|
|
2551
2562
|
Companion_instance_0 = new Companion_0();
|