@solibo/solibo-sdk 1.5.18 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/KmLogging-logging.mjs +110 -110
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1545 -1545
- package/KotlinBigInteger-bignum.mjs +1198 -1198
- package/MultiplatformSettings-multiplatform-settings-test.mjs +19 -19
- package/MultiplatformSettings-multiplatform-settings.mjs +17 -17
- package/Stately-stately-concurrency.mjs +5 -5
- package/cryptography-kotlin-cryptography-bigint.mjs +33 -33
- package/cryptography-kotlin-cryptography-core.mjs +49 -49
- package/cryptography-kotlin-cryptography-provider-base.mjs +8 -8
- package/cryptography-kotlin-cryptography-provider-webcrypto.mjs +175 -175
- package/cryptography-kotlin-cryptography-random.mjs +26 -26
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.mjs +204 -204
- package/cryptography-kotlin-cryptography-serialization-asn1.mjs +332 -332
- package/cryptography-kotlin-cryptography-serialization-pem.mjs +16 -16
- package/index.mjs +6 -0
- package/kotlin-kotlin-stdlib.mjs +2141 -2051
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-coroutines-core.mjs +2488 -2461
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +32 -32
- package/kotlinx-io-kotlinx-io-core.mjs +451 -451
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1832 -1832
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1383 -1383
- package/ktor-ktor-client-auth.mjs +463 -463
- package/ktor-ktor-client-content-negotiation.mjs +184 -184
- package/ktor-ktor-client-core.mjs +4457 -4456
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-client-encoding.mjs +785 -0
- package/ktor-ktor-client-encoding.mjs.map +1 -0
- package/ktor-ktor-client-logging.mjs +1080 -1080
- package/ktor-ktor-client-mock.mjs +79 -79
- package/ktor-ktor-events.mjs +6 -6
- package/ktor-ktor-http-cio.mjs +480 -480
- package/ktor-ktor-http.mjs +1296 -997
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +1120 -1097
- package/ktor-ktor-io.mjs.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.mjs +7 -7
- package/ktor-ktor-serialization-kotlinx.mjs +228 -228
- package/ktor-ktor-serialization.mjs +105 -105
- package/ktor-ktor-utils.mjs +1152 -1041
- package/ktor-ktor-utils.mjs.map +1 -1
- package/ktor-ktor-websockets.mjs +741 -741
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.mjs +77103 -73805
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
- package/solibo-sdk-sdk.d.mts +318 -3
- package/solibo-sdk-sdk.mjs +6928 -6854
- package/solibo-sdk-sdk.mjs.map +1 -1
package/ktor-ktor-websockets.mjs
CHANGED
|
@@ -112,7 +112,7 @@ initMetadataForCompanion(Companion);
|
|
|
112
112
|
initMetadataForClass(Codes, 'Codes', VOID, Enum);
|
|
113
113
|
initMetadataForClass(CloseReason, 'CloseReason');
|
|
114
114
|
function send(frame, $completion) {
|
|
115
|
-
return this.
|
|
115
|
+
return this.r45().s2e(frame, $completion);
|
|
116
116
|
}
|
|
117
117
|
initMetadataForInterface(WebSocketSession, 'WebSocketSession', VOID, VOID, [CoroutineScope], [1, 0]);
|
|
118
118
|
initMetadataForInterface(DefaultWebSocketSession, 'DefaultWebSocketSession', VOID, VOID, [WebSocketSession], [1, 0]);
|
|
@@ -176,14 +176,14 @@ function Companion() {
|
|
|
176
176
|
var _iterator__ex2g4s = this_0.t();
|
|
177
177
|
while (_iterator__ex2g4s.u()) {
|
|
178
178
|
var element = _iterator__ex2g4s.v();
|
|
179
|
-
var tmp$ret$2 = element.
|
|
179
|
+
var tmp$ret$2 = element.g45_1;
|
|
180
180
|
destination.c3(tmp$ret$2, element);
|
|
181
181
|
}
|
|
182
|
-
tmp.
|
|
183
|
-
this.
|
|
182
|
+
tmp.h45_1 = destination;
|
|
183
|
+
this.i45_1 = Codes_INTERNAL_ERROR_getInstance();
|
|
184
184
|
}
|
|
185
|
-
protoOf(Companion).
|
|
186
|
-
return this.
|
|
185
|
+
protoOf(Companion).j45 = function (code) {
|
|
186
|
+
return this.h45_1.z2(code);
|
|
187
187
|
};
|
|
188
188
|
var Companion_instance;
|
|
189
189
|
function Companion_getInstance() {
|
|
@@ -221,7 +221,7 @@ function Codes_initEntries() {
|
|
|
221
221
|
}
|
|
222
222
|
var $ENTRIES;
|
|
223
223
|
function CloseReason_init_$Init$(code, message, $this) {
|
|
224
|
-
CloseReason.call($this, code.
|
|
224
|
+
CloseReason.call($this, code.g45_1, message);
|
|
225
225
|
return $this;
|
|
226
226
|
}
|
|
227
227
|
function CloseReason_init_$Create$(code, message) {
|
|
@@ -229,7 +229,7 @@ function CloseReason_init_$Create$(code, message) {
|
|
|
229
229
|
}
|
|
230
230
|
function Codes(name, ordinal, code) {
|
|
231
231
|
Enum.call(this, name, ordinal);
|
|
232
|
-
this.
|
|
232
|
+
this.g45_1 = code;
|
|
233
233
|
}
|
|
234
234
|
function Codes_NORMAL_getInstance() {
|
|
235
235
|
Codes_initEntries();
|
|
@@ -280,19 +280,19 @@ function Codes_TRY_AGAIN_LATER_getInstance() {
|
|
|
280
280
|
return Codes_TRY_AGAIN_LATER_instance;
|
|
281
281
|
}
|
|
282
282
|
function CloseReason(code, message) {
|
|
283
|
-
this.
|
|
284
|
-
this.
|
|
283
|
+
this.k45_1 = code;
|
|
284
|
+
this.l45_1 = message;
|
|
285
285
|
}
|
|
286
|
-
protoOf(CloseReason).
|
|
287
|
-
return Companion_getInstance().
|
|
286
|
+
protoOf(CloseReason).m45 = function () {
|
|
287
|
+
return Companion_getInstance().j45(this.k45_1);
|
|
288
288
|
};
|
|
289
289
|
protoOf(CloseReason).toString = function () {
|
|
290
|
-
var tmp0_elvis_lhs = this.
|
|
291
|
-
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.
|
|
290
|
+
var tmp0_elvis_lhs = this.m45();
|
|
291
|
+
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.k45_1 : tmp0_elvis_lhs) + ', message=' + this.l45_1 + ')';
|
|
292
292
|
};
|
|
293
293
|
protoOf(CloseReason).hashCode = function () {
|
|
294
|
-
var result = this.
|
|
295
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
294
|
+
var result = this.k45_1;
|
|
295
|
+
result = imul(result, 31) + getStringHashCode(this.l45_1) | 0;
|
|
296
296
|
return result;
|
|
297
297
|
};
|
|
298
298
|
protoOf(CloseReason).equals = function (other) {
|
|
@@ -300,9 +300,9 @@ protoOf(CloseReason).equals = function (other) {
|
|
|
300
300
|
return true;
|
|
301
301
|
if (!(other instanceof CloseReason))
|
|
302
302
|
return false;
|
|
303
|
-
if (!(this.
|
|
303
|
+
if (!(this.k45_1 === other.k45_1))
|
|
304
304
|
return false;
|
|
305
|
-
if (!(this.
|
|
305
|
+
if (!(this.l45_1 === other.l45_1))
|
|
306
306
|
return false;
|
|
307
307
|
return true;
|
|
308
308
|
};
|
|
@@ -332,98 +332,98 @@ function DefaultWebSocketSession() {
|
|
|
332
332
|
function DefaultWebSocketSession_0(session, pingIntervalMillis, timeoutMillis, channelsConfig) {
|
|
333
333
|
pingIntervalMillis = pingIntervalMillis === VOID ? 0n : pingIntervalMillis;
|
|
334
334
|
timeoutMillis = timeoutMillis === VOID ? 15000n : timeoutMillis;
|
|
335
|
-
channelsConfig = channelsConfig === VOID ? Companion_getInstance_2().
|
|
335
|
+
channelsConfig = channelsConfig === VOID ? Companion_getInstance_2().t45_1 : channelsConfig;
|
|
336
336
|
_init_properties_DefaultWebSocketSession_kt__469s0y();
|
|
337
337
|
// Inline function 'kotlin.require' call
|
|
338
338
|
if (!!isInterface(session, DefaultWebSocketSession)) {
|
|
339
339
|
var message = 'Cannot wrap other DefaultWebSocketSession';
|
|
340
340
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
341
341
|
}
|
|
342
|
-
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.
|
|
342
|
+
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.u45_1, channelsConfig.v45_1);
|
|
343
343
|
}
|
|
344
344
|
function runIncomingProcessor($this, ponger) {
|
|
345
|
-
var tmp = get_IncomingProcessorCoroutineName().
|
|
345
|
+
var tmp = get_IncomingProcessorCoroutineName().yj(Dispatchers_getInstance().l28_1);
|
|
346
346
|
return launch($this, tmp, VOID, DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0($this, ponger, null));
|
|
347
347
|
}
|
|
348
348
|
function runOutgoingProcessor($this) {
|
|
349
|
-
var tmp = get_OutgoingProcessorCoroutineName().
|
|
349
|
+
var tmp = get_OutgoingProcessorCoroutineName().yj(Dispatchers_getInstance().l28_1);
|
|
350
350
|
var tmp_0 = CoroutineStart_UNDISPATCHED_getInstance();
|
|
351
351
|
return launch($this, tmp, tmp_0, DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0($this, null));
|
|
352
352
|
}
|
|
353
353
|
function outgoingProcessorLoop($this, $completion) {
|
|
354
354
|
var tmp = new $outgoingProcessorLoopCOROUTINE$($this, $completion);
|
|
355
|
-
tmp.
|
|
356
|
-
tmp.
|
|
357
|
-
return tmp.
|
|
355
|
+
tmp.o9_1 = Unit_instance;
|
|
356
|
+
tmp.p9_1 = null;
|
|
357
|
+
return tmp.u9();
|
|
358
358
|
}
|
|
359
359
|
function sendCloseSequence($this, reason, exception, $completion) {
|
|
360
360
|
exception = exception === VOID ? null : exception;
|
|
361
361
|
var tmp = new $sendCloseSequenceCOROUTINE$($this, reason, exception, $completion);
|
|
362
|
-
tmp.
|
|
363
|
-
tmp.
|
|
364
|
-
return tmp.
|
|
362
|
+
tmp.o9_1 = Unit_instance;
|
|
363
|
+
tmp.p9_1 = null;
|
|
364
|
+
return tmp.u9();
|
|
365
365
|
}
|
|
366
366
|
function tryClose($this) {
|
|
367
|
-
return $this.
|
|
367
|
+
return $this.a47_1.atomicfu$compareAndSet(false, true);
|
|
368
368
|
}
|
|
369
369
|
function runOrCancelPinger($this) {
|
|
370
|
-
var interval = $this.
|
|
370
|
+
var interval = $this.d47_1;
|
|
371
371
|
var tmp;
|
|
372
|
-
if ($this.
|
|
372
|
+
if ($this.a47_1.kotlinx$atomicfu$value) {
|
|
373
373
|
tmp = null;
|
|
374
374
|
} else if (interval > 0n) {
|
|
375
|
-
var tmp_0 = $this.
|
|
376
|
-
var tmp_1 = $this.
|
|
375
|
+
var tmp_0 = $this.t46_1.r45();
|
|
376
|
+
var tmp_1 = $this.e47_1;
|
|
377
377
|
tmp = pinger($this, tmp_0, interval, tmp_1, DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0($this, null));
|
|
378
378
|
} else {
|
|
379
379
|
tmp = null;
|
|
380
380
|
}
|
|
381
381
|
var newPinger = tmp;
|
|
382
|
-
var tmp0_safe_receiver = $this.
|
|
382
|
+
var tmp0_safe_receiver = $this.u46_1.atomicfu$getAndSet(newPinger);
|
|
383
383
|
if (tmp0_safe_receiver == null)
|
|
384
384
|
null;
|
|
385
385
|
else
|
|
386
|
-
tmp0_safe_receiver.
|
|
387
|
-
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.
|
|
386
|
+
tmp0_safe_receiver.a2f();
|
|
387
|
+
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.t2e(Companion_getInstance_0().g47_1));
|
|
388
388
|
if (tmp2_safe_receiver == null)
|
|
389
389
|
null;
|
|
390
390
|
else
|
|
391
|
-
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.
|
|
392
|
-
if ($this.
|
|
391
|
+
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.d2d_1);
|
|
392
|
+
if ($this.a47_1.kotlinx$atomicfu$value && !(newPinger == null)) {
|
|
393
393
|
runOrCancelPinger($this);
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
function checkMaxFrameSize($this, packet, frame, $completion) {
|
|
397
397
|
var tmp = new $checkMaxFrameSizeCOROUTINE$($this, packet, frame, $completion);
|
|
398
|
-
tmp.
|
|
399
|
-
tmp.
|
|
400
|
-
return tmp.
|
|
398
|
+
tmp.o9_1 = Unit_instance;
|
|
399
|
+
tmp.p9_1 = null;
|
|
400
|
+
return tmp.u9();
|
|
401
401
|
}
|
|
402
402
|
function processIncomingExtensions($this, frame) {
|
|
403
403
|
// Inline function 'kotlin.collections.fold' call
|
|
404
404
|
var accumulator = frame;
|
|
405
|
-
var _iterator__ex2g4s = $this.
|
|
405
|
+
var _iterator__ex2g4s = $this.t47().t();
|
|
406
406
|
while (_iterator__ex2g4s.u()) {
|
|
407
407
|
var element = _iterator__ex2g4s.v();
|
|
408
408
|
var current = accumulator;
|
|
409
|
-
accumulator = element.
|
|
409
|
+
accumulator = element.u47(current);
|
|
410
410
|
}
|
|
411
411
|
return accumulator;
|
|
412
412
|
}
|
|
413
413
|
function processOutgoingExtensions($this, frame) {
|
|
414
414
|
// Inline function 'kotlin.collections.fold' call
|
|
415
415
|
var accumulator = frame;
|
|
416
|
-
var _iterator__ex2g4s = $this.
|
|
416
|
+
var _iterator__ex2g4s = $this.t47().t();
|
|
417
417
|
while (_iterator__ex2g4s.u()) {
|
|
418
418
|
var element = _iterator__ex2g4s.v();
|
|
419
419
|
var current = accumulator;
|
|
420
|
-
accumulator = element.
|
|
420
|
+
accumulator = element.v47(current);
|
|
421
421
|
}
|
|
422
422
|
return accumulator;
|
|
423
423
|
}
|
|
424
424
|
function Companion_0() {
|
|
425
425
|
Companion_instance_0 = this;
|
|
426
|
-
this.
|
|
426
|
+
this.g47_1 = new Pong(new Int8Array(0), NonDisposableHandle_instance);
|
|
427
427
|
}
|
|
428
428
|
var Companion_instance_0;
|
|
429
429
|
function Companion_getInstance_0() {
|
|
@@ -432,130 +432,130 @@ function Companion_getInstance_0() {
|
|
|
432
432
|
return Companion_instance_0;
|
|
433
433
|
}
|
|
434
434
|
function DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
435
|
-
this.
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
435
|
+
this.e48_1 = $incomingJob;
|
|
436
|
+
this.f48_1 = $outgoingJob;
|
|
437
|
+
this.g48_1 = this$0;
|
|
438
438
|
CoroutineImpl.call(this, resultContinuation);
|
|
439
439
|
}
|
|
440
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
441
|
-
var tmp = this.
|
|
442
|
-
tmp.
|
|
443
|
-
tmp.
|
|
444
|
-
return tmp.
|
|
440
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).g2j = function ($this$launch, $completion) {
|
|
441
|
+
var tmp = this.h2j($this$launch, $completion);
|
|
442
|
+
tmp.o9_1 = Unit_instance;
|
|
443
|
+
tmp.p9_1 = null;
|
|
444
|
+
return tmp.u9();
|
|
445
445
|
};
|
|
446
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
447
|
-
return this.
|
|
446
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).ga = function (p1, $completion) {
|
|
447
|
+
return this.g2j((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
448
448
|
};
|
|
449
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
450
|
-
var suspendResult = this.
|
|
449
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).u9 = function () {
|
|
450
|
+
var suspendResult = this.o9_1;
|
|
451
451
|
$sm: do
|
|
452
452
|
try {
|
|
453
|
-
var tmp = this.
|
|
453
|
+
var tmp = this.m9_1;
|
|
454
454
|
switch (tmp) {
|
|
455
455
|
case 0:
|
|
456
|
-
this.
|
|
457
|
-
this.
|
|
458
|
-
suspendResult = this.
|
|
456
|
+
this.n9_1 = 3;
|
|
457
|
+
this.m9_1 = 1;
|
|
458
|
+
suspendResult = this.e48_1.c1x(this);
|
|
459
459
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
460
460
|
return suspendResult;
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
continue $sm;
|
|
464
464
|
case 1:
|
|
465
|
-
this.
|
|
466
|
-
suspendResult = this.
|
|
465
|
+
this.m9_1 = 2;
|
|
466
|
+
suspendResult = this.f48_1.c1x(this);
|
|
467
467
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
468
468
|
return suspendResult;
|
|
469
469
|
}
|
|
470
470
|
|
|
471
471
|
continue $sm;
|
|
472
472
|
case 2:
|
|
473
|
-
this.
|
|
473
|
+
this.g48_1.w46_1.h1x();
|
|
474
474
|
return Unit_instance;
|
|
475
475
|
case 3:
|
|
476
|
-
throw this.
|
|
476
|
+
throw this.p9_1;
|
|
477
477
|
}
|
|
478
478
|
} catch ($p) {
|
|
479
479
|
var e = $p;
|
|
480
|
-
if (this.
|
|
480
|
+
if (this.n9_1 === 3) {
|
|
481
481
|
throw e;
|
|
482
482
|
} else {
|
|
483
|
-
this.
|
|
484
|
-
this.
|
|
483
|
+
this.m9_1 = this.n9_1;
|
|
484
|
+
this.p9_1 = e;
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
while (true);
|
|
488
488
|
};
|
|
489
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
490
|
-
var i = new DefaultWebSocketSessionImpl$start$slambda(this.
|
|
491
|
-
i.
|
|
489
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).h2j = function ($this$launch, completion) {
|
|
490
|
+
var i = new DefaultWebSocketSessionImpl$start$slambda(this.e48_1, this.f48_1, this.g48_1, completion);
|
|
491
|
+
i.h48_1 = $this$launch;
|
|
492
492
|
return i;
|
|
493
493
|
};
|
|
494
494
|
function DefaultWebSocketSessionImpl$start$slambda_0($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
495
495
|
var i = new DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation);
|
|
496
496
|
var l = function ($this$launch, $completion) {
|
|
497
|
-
return i.
|
|
497
|
+
return i.g2j($this$launch, $completion);
|
|
498
498
|
};
|
|
499
499
|
l.$arity = 1;
|
|
500
500
|
return l;
|
|
501
501
|
}
|
|
502
502
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation) {
|
|
503
|
-
this.
|
|
504
|
-
this.
|
|
503
|
+
this.q48_1 = this$0;
|
|
504
|
+
this.r48_1 = $ponger;
|
|
505
505
|
CoroutineImpl.call(this, resultContinuation);
|
|
506
506
|
}
|
|
507
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
508
|
-
var tmp = this.
|
|
509
|
-
tmp.
|
|
510
|
-
tmp.
|
|
511
|
-
return tmp.
|
|
507
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).g2j = function ($this$launch, $completion) {
|
|
508
|
+
var tmp = this.h2j($this$launch, $completion);
|
|
509
|
+
tmp.o9_1 = Unit_instance;
|
|
510
|
+
tmp.p9_1 = null;
|
|
511
|
+
return tmp.u9();
|
|
512
512
|
};
|
|
513
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
514
|
-
return this.
|
|
513
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).ga = function (p1, $completion) {
|
|
514
|
+
return this.g2j((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
515
515
|
};
|
|
516
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
517
|
-
var suspendResult = this.
|
|
516
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u9 = function () {
|
|
517
|
+
var suspendResult = this.o9_1;
|
|
518
518
|
$sm: do
|
|
519
519
|
try {
|
|
520
|
-
var tmp = this.
|
|
520
|
+
var tmp = this.m9_1;
|
|
521
521
|
switch (tmp) {
|
|
522
522
|
case 0:
|
|
523
|
-
this.
|
|
524
|
-
this.
|
|
525
|
-
this.
|
|
526
|
-
this.
|
|
527
|
-
this.
|
|
528
|
-
this.
|
|
523
|
+
this.n9_1 = 39;
|
|
524
|
+
this.c49_1 = null;
|
|
525
|
+
this.v48_1 = null;
|
|
526
|
+
this.u48_1 = false;
|
|
527
|
+
this.w48_1 = Unit_instance;
|
|
528
|
+
this.m9_1 = 1;
|
|
529
529
|
continue $sm;
|
|
530
530
|
case 1:
|
|
531
|
-
this.
|
|
531
|
+
this.m9_1 = 2;
|
|
532
532
|
continue $sm;
|
|
533
533
|
case 2:
|
|
534
|
-
this.
|
|
535
|
-
this.
|
|
536
|
-
this.
|
|
537
|
-
this.
|
|
534
|
+
this.n9_1 = 33;
|
|
535
|
+
this.n9_1 = 32;
|
|
536
|
+
this.g49_1 = this.q48_1.t46_1.q45();
|
|
537
|
+
this.m9_1 = 3;
|
|
538
538
|
continue $sm;
|
|
539
539
|
case 3:
|
|
540
|
-
this.
|
|
541
|
-
this.
|
|
542
|
-
this.
|
|
540
|
+
this.z48_1 = this.g49_1;
|
|
541
|
+
this.y48_1 = null;
|
|
542
|
+
this.m9_1 = 4;
|
|
543
543
|
continue $sm;
|
|
544
544
|
case 4:
|
|
545
|
-
this.
|
|
545
|
+
this.m9_1 = 5;
|
|
546
546
|
continue $sm;
|
|
547
547
|
case 5:
|
|
548
|
-
this.
|
|
548
|
+
this.m9_1 = 6;
|
|
549
549
|
continue $sm;
|
|
550
550
|
case 6:
|
|
551
|
-
this.
|
|
552
|
-
this.
|
|
553
|
-
this.
|
|
554
|
-
this.
|
|
551
|
+
this.n9_1 = 29;
|
|
552
|
+
this.n9_1 = 28;
|
|
553
|
+
this.f49_1 = this.z48_1.t();
|
|
554
|
+
this.m9_1 = 7;
|
|
555
555
|
continue $sm;
|
|
556
556
|
case 7:
|
|
557
|
-
this.
|
|
558
|
-
suspendResult = this.
|
|
557
|
+
this.m9_1 = 8;
|
|
558
|
+
suspendResult = this.f49_1.v2c(this);
|
|
559
559
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
560
560
|
return suspendResult;
|
|
561
561
|
}
|
|
@@ -563,46 +563,46 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
563
563
|
continue $sm;
|
|
564
564
|
case 8:
|
|
565
565
|
if (!suspendResult) {
|
|
566
|
-
this.
|
|
566
|
+
this.m9_1 = 26;
|
|
567
567
|
continue $sm;
|
|
568
568
|
}
|
|
569
569
|
|
|
570
|
-
var e = this.
|
|
571
|
-
this.
|
|
572
|
-
this.
|
|
570
|
+
var e = this.f49_1.v();
|
|
571
|
+
this.e49_1 = e;
|
|
572
|
+
this.m9_1 = 9;
|
|
573
573
|
continue $sm;
|
|
574
574
|
case 9:
|
|
575
|
-
this.
|
|
575
|
+
this.d49_1 = this.e49_1;
|
|
576
576
|
var this_0 = get_LOGGER();
|
|
577
577
|
if (get_isTraceEnabled(this_0)) {
|
|
578
|
-
this_0.
|
|
578
|
+
this_0.e3j('WebSocketSession(' + toString(this.s48_1) + ') receiving frame ' + this.d49_1.toString());
|
|
579
579
|
}
|
|
580
580
|
|
|
581
|
-
var tmp0_subject = this.
|
|
581
|
+
var tmp0_subject = this.d49_1;
|
|
582
582
|
if (tmp0_subject instanceof Close) {
|
|
583
|
-
if (!this.
|
|
584
|
-
this.
|
|
585
|
-
var tmp_0 = this.
|
|
586
|
-
var tmp1_elvis_lhs = readReason(this.
|
|
587
|
-
suspendResult = tmp_0.
|
|
583
|
+
if (!this.q48_1.r45().x2c()) {
|
|
584
|
+
this.m9_1 = 18;
|
|
585
|
+
var tmp_0 = this.q48_1.r45();
|
|
586
|
+
var tmp1_elvis_lhs = readReason(this.d49_1);
|
|
587
|
+
suspendResult = tmp_0.s2e(Close_init_$Create$(tmp1_elvis_lhs == null ? get_NORMAL_CLOSE() : tmp1_elvis_lhs), this);
|
|
588
588
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
589
589
|
return suspendResult;
|
|
590
590
|
}
|
|
591
591
|
continue $sm;
|
|
592
592
|
} else {
|
|
593
|
-
this.
|
|
593
|
+
this.m9_1 = 19;
|
|
594
594
|
continue $sm;
|
|
595
595
|
}
|
|
596
596
|
} else {
|
|
597
597
|
if (tmp0_subject instanceof Pong) {
|
|
598
|
-
var tmp2_safe_receiver = this.
|
|
598
|
+
var tmp2_safe_receiver = this.q48_1.u46_1.kotlinx$atomicfu$value;
|
|
599
599
|
if (tmp2_safe_receiver == null) {
|
|
600
|
-
this.
|
|
601
|
-
this.
|
|
600
|
+
this.b49_1 = null;
|
|
601
|
+
this.m9_1 = 17;
|
|
602
602
|
continue $sm;
|
|
603
603
|
} else {
|
|
604
|
-
this.
|
|
605
|
-
suspendResult = tmp2_safe_receiver.
|
|
604
|
+
this.m9_1 = 16;
|
|
605
|
+
suspendResult = tmp2_safe_receiver.s2e(this.d49_1, this);
|
|
606
606
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
607
607
|
return suspendResult;
|
|
608
608
|
}
|
|
@@ -610,15 +610,15 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
610
610
|
}
|
|
611
611
|
} else {
|
|
612
612
|
if (tmp0_subject instanceof Ping) {
|
|
613
|
-
this.
|
|
614
|
-
suspendResult = this.
|
|
613
|
+
this.m9_1 = 15;
|
|
614
|
+
suspendResult = this.r48_1.s2e(this.d49_1, this);
|
|
615
615
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
616
616
|
return suspendResult;
|
|
617
617
|
}
|
|
618
618
|
continue $sm;
|
|
619
619
|
} else {
|
|
620
|
-
this.
|
|
621
|
-
suspendResult = checkMaxFrameSize(this.
|
|
620
|
+
this.m9_1 = 10;
|
|
621
|
+
suspendResult = checkMaxFrameSize(this.q48_1, this.v48_1, this.d49_1, this);
|
|
622
622
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
623
623
|
return suspendResult;
|
|
624
624
|
}
|
|
@@ -628,40 +628,40 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
628
628
|
}
|
|
629
629
|
|
|
630
630
|
case 10:
|
|
631
|
-
if (!this.
|
|
632
|
-
if (this.
|
|
633
|
-
this.
|
|
631
|
+
if (!this.d49_1.h49_1) {
|
|
632
|
+
if (this.c49_1 == null) {
|
|
633
|
+
this.c49_1 = this.d49_1;
|
|
634
634
|
}
|
|
635
|
-
if (this.
|
|
636
|
-
this.
|
|
635
|
+
if (this.v48_1 == null) {
|
|
636
|
+
this.v48_1 = BytePacketBuilder();
|
|
637
637
|
}
|
|
638
|
-
writeFully(this.
|
|
639
|
-
this.
|
|
638
|
+
writeFully(this.v48_1, this.d49_1.j49_1);
|
|
639
|
+
this.m9_1 = 21;
|
|
640
640
|
continue $sm;
|
|
641
641
|
} else {
|
|
642
|
-
this.
|
|
642
|
+
this.m9_1 = 11;
|
|
643
643
|
continue $sm;
|
|
644
644
|
}
|
|
645
645
|
|
|
646
646
|
case 11:
|
|
647
|
-
if (this.
|
|
648
|
-
this.
|
|
649
|
-
suspendResult = this.
|
|
647
|
+
if (this.c49_1 == null) {
|
|
648
|
+
this.m9_1 = 14;
|
|
649
|
+
suspendResult = this.q48_1.y46_1.s2e(processIncomingExtensions(this.q48_1, this.d49_1), this);
|
|
650
650
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
651
651
|
return suspendResult;
|
|
652
652
|
}
|
|
653
653
|
continue $sm;
|
|
654
654
|
} else {
|
|
655
|
-
this.
|
|
655
|
+
this.m9_1 = 12;
|
|
656
656
|
continue $sm;
|
|
657
657
|
}
|
|
658
658
|
|
|
659
659
|
case 12:
|
|
660
|
-
writeFully(ensureNotNull(this.
|
|
661
|
-
var defragmented = Companion_getInstance_5().
|
|
662
|
-
this.
|
|
663
|
-
this.
|
|
664
|
-
suspendResult = this.
|
|
660
|
+
writeFully(ensureNotNull(this.v48_1), this.d49_1.j49_1);
|
|
661
|
+
var defragmented = Companion_getInstance_5().p49(true, this.c49_1.i49_1, readByteArray(build(this.v48_1)), this.c49_1.l49_1, this.c49_1.m49_1, this.c49_1.n49_1);
|
|
662
|
+
this.c49_1 = null;
|
|
663
|
+
this.m9_1 = 13;
|
|
664
|
+
suspendResult = this.q48_1.y46_1.s2e(processIncomingExtensions(this.q48_1, defragmented), this);
|
|
665
665
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
666
666
|
return suspendResult;
|
|
667
667
|
}
|
|
@@ -669,316 +669,316 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
669
669
|
continue $sm;
|
|
670
670
|
case 13:
|
|
671
671
|
var tmp_1 = this;
|
|
672
|
-
tmp_1.
|
|
673
|
-
this.
|
|
672
|
+
tmp_1.a49_1 = Unit_instance;
|
|
673
|
+
this.m9_1 = 20;
|
|
674
674
|
continue $sm;
|
|
675
675
|
case 14:
|
|
676
|
-
this.
|
|
676
|
+
this.m9_1 = 21;
|
|
677
677
|
continue $sm;
|
|
678
678
|
case 15:
|
|
679
679
|
var tmp_2 = this;
|
|
680
|
-
tmp_2.
|
|
681
|
-
this.
|
|
680
|
+
tmp_2.a49_1 = Unit_instance;
|
|
681
|
+
this.m9_1 = 20;
|
|
682
682
|
continue $sm;
|
|
683
683
|
case 16:
|
|
684
684
|
var tmp_3 = this;
|
|
685
|
-
tmp_3.
|
|
686
|
-
this.
|
|
685
|
+
tmp_3.b49_1 = Unit_instance;
|
|
686
|
+
this.m9_1 = 17;
|
|
687
687
|
continue $sm;
|
|
688
688
|
case 17:
|
|
689
|
-
this.
|
|
690
|
-
this.
|
|
689
|
+
this.a49_1 = this.b49_1;
|
|
690
|
+
this.m9_1 = 20;
|
|
691
691
|
continue $sm;
|
|
692
692
|
case 18:
|
|
693
|
-
this.
|
|
693
|
+
this.m9_1 = 19;
|
|
694
694
|
continue $sm;
|
|
695
695
|
case 19:
|
|
696
|
-
this.
|
|
697
|
-
this.
|
|
696
|
+
this.u48_1 = true;
|
|
697
|
+
this.m9_1 = 22;
|
|
698
698
|
var tmp_4 = this;
|
|
699
699
|
continue $sm;
|
|
700
700
|
case 20:
|
|
701
701
|
if (false) {
|
|
702
|
-
this.
|
|
702
|
+
this.m9_1 = 9;
|
|
703
703
|
continue $sm;
|
|
704
704
|
}
|
|
705
705
|
|
|
706
|
-
this.
|
|
706
|
+
this.m9_1 = 21;
|
|
707
707
|
continue $sm;
|
|
708
708
|
case 21:
|
|
709
|
-
this.
|
|
709
|
+
this.m9_1 = 7;
|
|
710
710
|
continue $sm;
|
|
711
711
|
case 22:
|
|
712
|
-
this.
|
|
713
|
-
cancelConsumed(this.
|
|
714
|
-
this.
|
|
715
|
-
this.
|
|
712
|
+
this.n9_1 = 32;
|
|
713
|
+
cancelConsumed(this.z48_1, this.y48_1);
|
|
714
|
+
this.n9_1 = 39;
|
|
715
|
+
this.m9_1 = 23;
|
|
716
716
|
continue $sm;
|
|
717
717
|
case 23:
|
|
718
|
-
this.
|
|
719
|
-
this.
|
|
720
|
-
var tmp0_safe_receiver = this.
|
|
718
|
+
this.n9_1 = 39;
|
|
719
|
+
this.r48_1.a2f();
|
|
720
|
+
var tmp0_safe_receiver = this.v48_1;
|
|
721
721
|
if (tmp0_safe_receiver == null)
|
|
722
722
|
null;
|
|
723
723
|
else {
|
|
724
724
|
tmp0_safe_receiver.c5();
|
|
725
725
|
}
|
|
726
726
|
|
|
727
|
-
this.
|
|
728
|
-
if (!this.
|
|
729
|
-
this.
|
|
730
|
-
suspendResult = close(this.
|
|
727
|
+
this.q48_1.y46_1.a2f();
|
|
728
|
+
if (!this.u48_1) {
|
|
729
|
+
this.m9_1 = 24;
|
|
730
|
+
suspendResult = close(this.q48_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
731
731
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
732
732
|
return suspendResult;
|
|
733
733
|
}
|
|
734
734
|
continue $sm;
|
|
735
735
|
} else {
|
|
736
|
-
this.
|
|
736
|
+
this.m9_1 = 25;
|
|
737
737
|
continue $sm;
|
|
738
738
|
}
|
|
739
739
|
|
|
740
740
|
case 24:
|
|
741
|
-
this.
|
|
741
|
+
this.m9_1 = 25;
|
|
742
742
|
continue $sm;
|
|
743
743
|
case 25:
|
|
744
744
|
var tmp_5 = this;
|
|
745
745
|
return Unit_instance;
|
|
746
746
|
case 26:
|
|
747
|
-
this.
|
|
747
|
+
this.m9_1 = 27;
|
|
748
748
|
var tmp_6 = this;
|
|
749
749
|
continue $sm;
|
|
750
750
|
case 27:
|
|
751
|
-
this.
|
|
752
|
-
cancelConsumed(this.
|
|
753
|
-
this.
|
|
751
|
+
this.n9_1 = 32;
|
|
752
|
+
cancelConsumed(this.z48_1, this.y48_1);
|
|
753
|
+
this.m9_1 = 31;
|
|
754
754
|
continue $sm;
|
|
755
755
|
case 28:
|
|
756
|
-
this.
|
|
757
|
-
var tmp_7 = this.
|
|
756
|
+
this.n9_1 = 29;
|
|
757
|
+
var tmp_7 = this.p9_1;
|
|
758
758
|
if (tmp_7 instanceof Error) {
|
|
759
|
-
var e_0 = this.
|
|
759
|
+
var e_0 = this.p9_1;
|
|
760
760
|
var tmp_8 = this;
|
|
761
|
-
this.
|
|
761
|
+
this.y48_1 = e_0;
|
|
762
762
|
throw e_0;
|
|
763
763
|
} else {
|
|
764
|
-
throw this.
|
|
764
|
+
throw this.p9_1;
|
|
765
765
|
}
|
|
766
766
|
|
|
767
767
|
case 29:
|
|
768
|
-
this.
|
|
769
|
-
var t = this.
|
|
770
|
-
cancelConsumed(this.
|
|
768
|
+
this.n9_1 = 32;
|
|
769
|
+
var t = this.p9_1;
|
|
770
|
+
cancelConsumed(this.z48_1, this.y48_1);
|
|
771
771
|
throw t;
|
|
772
772
|
case 30:
|
|
773
|
-
this.
|
|
774
|
-
cancelConsumed(this.
|
|
773
|
+
this.n9_1 = 32;
|
|
774
|
+
cancelConsumed(this.z48_1, this.y48_1);
|
|
775
775
|
if (false) {
|
|
776
|
-
this.
|
|
776
|
+
this.m9_1 = 3;
|
|
777
777
|
continue $sm;
|
|
778
778
|
}
|
|
779
779
|
|
|
780
|
-
this.
|
|
780
|
+
this.m9_1 = 31;
|
|
781
781
|
continue $sm;
|
|
782
782
|
case 31:
|
|
783
|
-
this.
|
|
784
|
-
this.
|
|
785
|
-
this.
|
|
783
|
+
this.w48_1 = Unit_instance;
|
|
784
|
+
this.n9_1 = 39;
|
|
785
|
+
this.m9_1 = 36;
|
|
786
786
|
continue $sm;
|
|
787
787
|
case 32:
|
|
788
|
-
this.
|
|
789
|
-
var tmp_9 = this.
|
|
788
|
+
this.n9_1 = 33;
|
|
789
|
+
var tmp_9 = this.p9_1;
|
|
790
790
|
if (tmp_9 instanceof ClosedSendChannelException) {
|
|
791
|
-
var _unused_var__etf5q3 = this.
|
|
791
|
+
var _unused_var__etf5q3 = this.p9_1;
|
|
792
792
|
var tmp_10 = this;
|
|
793
|
-
tmp_10.
|
|
794
|
-
this.
|
|
795
|
-
this.
|
|
793
|
+
tmp_10.w48_1 = Unit_instance;
|
|
794
|
+
this.n9_1 = 39;
|
|
795
|
+
this.m9_1 = 36;
|
|
796
796
|
continue $sm;
|
|
797
797
|
} else {
|
|
798
|
-
var tmp_11 = this.
|
|
798
|
+
var tmp_11 = this.p9_1;
|
|
799
799
|
if (tmp_11 instanceof Error) {
|
|
800
|
-
var cause = this.
|
|
800
|
+
var cause = this.p9_1;
|
|
801
801
|
var tmp_12 = this;
|
|
802
|
-
this.
|
|
803
|
-
tmp_12.
|
|
804
|
-
this.
|
|
805
|
-
this.
|
|
802
|
+
this.r48_1.a2f();
|
|
803
|
+
tmp_12.w48_1 = this.q48_1.y46_1.y2e(cause);
|
|
804
|
+
this.n9_1 = 39;
|
|
805
|
+
this.m9_1 = 36;
|
|
806
806
|
continue $sm;
|
|
807
807
|
} else {
|
|
808
|
-
throw this.
|
|
808
|
+
throw this.p9_1;
|
|
809
809
|
}
|
|
810
810
|
}
|
|
811
811
|
|
|
812
812
|
case 33:
|
|
813
|
-
this.
|
|
814
|
-
this.
|
|
815
|
-
this.
|
|
816
|
-
var tmp0_safe_receiver_0 = this.
|
|
813
|
+
this.n9_1 = 39;
|
|
814
|
+
this.x48_1 = this.p9_1;
|
|
815
|
+
this.r48_1.a2f();
|
|
816
|
+
var tmp0_safe_receiver_0 = this.v48_1;
|
|
817
817
|
if (tmp0_safe_receiver_0 == null)
|
|
818
818
|
null;
|
|
819
819
|
else {
|
|
820
820
|
tmp0_safe_receiver_0.c5();
|
|
821
821
|
}
|
|
822
822
|
|
|
823
|
-
this.
|
|
824
|
-
if (!this.
|
|
825
|
-
this.
|
|
826
|
-
suspendResult = close(this.
|
|
823
|
+
this.q48_1.y46_1.a2f();
|
|
824
|
+
if (!this.u48_1) {
|
|
825
|
+
this.m9_1 = 34;
|
|
826
|
+
suspendResult = close(this.q48_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
827
827
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
828
828
|
return suspendResult;
|
|
829
829
|
}
|
|
830
830
|
continue $sm;
|
|
831
831
|
} else {
|
|
832
|
-
this.
|
|
832
|
+
this.m9_1 = 35;
|
|
833
833
|
continue $sm;
|
|
834
834
|
}
|
|
835
835
|
|
|
836
836
|
case 34:
|
|
837
|
-
this.
|
|
837
|
+
this.m9_1 = 35;
|
|
838
838
|
continue $sm;
|
|
839
839
|
case 35:
|
|
840
|
-
throw this.
|
|
840
|
+
throw this.x48_1;
|
|
841
841
|
case 36:
|
|
842
|
-
this.
|
|
843
|
-
this.
|
|
844
|
-
this.
|
|
845
|
-
var tmp0_safe_receiver_1 = this.
|
|
842
|
+
this.t48_1 = this.w48_1;
|
|
843
|
+
this.n9_1 = 39;
|
|
844
|
+
this.r48_1.a2f();
|
|
845
|
+
var tmp0_safe_receiver_1 = this.v48_1;
|
|
846
846
|
if (tmp0_safe_receiver_1 == null)
|
|
847
847
|
null;
|
|
848
848
|
else {
|
|
849
849
|
tmp0_safe_receiver_1.c5();
|
|
850
850
|
}
|
|
851
851
|
|
|
852
|
-
this.
|
|
853
|
-
if (!this.
|
|
854
|
-
this.
|
|
855
|
-
suspendResult = close(this.
|
|
852
|
+
this.q48_1.y46_1.a2f();
|
|
853
|
+
if (!this.u48_1) {
|
|
854
|
+
this.m9_1 = 37;
|
|
855
|
+
suspendResult = close(this.q48_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
856
856
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
857
857
|
return suspendResult;
|
|
858
858
|
}
|
|
859
859
|
continue $sm;
|
|
860
860
|
} else {
|
|
861
|
-
this.
|
|
861
|
+
this.m9_1 = 38;
|
|
862
862
|
continue $sm;
|
|
863
863
|
}
|
|
864
864
|
|
|
865
865
|
case 37:
|
|
866
|
-
this.
|
|
866
|
+
this.m9_1 = 38;
|
|
867
867
|
continue $sm;
|
|
868
868
|
case 38:
|
|
869
869
|
return Unit_instance;
|
|
870
870
|
case 39:
|
|
871
|
-
throw this.
|
|
871
|
+
throw this.p9_1;
|
|
872
872
|
}
|
|
873
873
|
} catch ($p) {
|
|
874
874
|
var e_1 = $p;
|
|
875
|
-
if (this.
|
|
875
|
+
if (this.n9_1 === 39) {
|
|
876
876
|
throw e_1;
|
|
877
877
|
} else {
|
|
878
|
-
this.
|
|
879
|
-
this.
|
|
878
|
+
this.m9_1 = this.n9_1;
|
|
879
|
+
this.p9_1 = e_1;
|
|
880
880
|
}
|
|
881
881
|
}
|
|
882
882
|
while (true);
|
|
883
883
|
};
|
|
884
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
885
|
-
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.
|
|
886
|
-
i.
|
|
884
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).h2j = function ($this$launch, completion) {
|
|
885
|
+
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.q48_1, this.r48_1, completion);
|
|
886
|
+
i.s48_1 = $this$launch;
|
|
887
887
|
return i;
|
|
888
888
|
};
|
|
889
889
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0(this$0, $ponger, resultContinuation) {
|
|
890
890
|
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation);
|
|
891
891
|
var l = function ($this$launch, $completion) {
|
|
892
|
-
return i.
|
|
892
|
+
return i.g2j($this$launch, $completion);
|
|
893
893
|
};
|
|
894
894
|
l.$arity = 1;
|
|
895
895
|
return l;
|
|
896
896
|
}
|
|
897
897
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation) {
|
|
898
|
-
this.
|
|
898
|
+
this.y49_1 = this$0;
|
|
899
899
|
CoroutineImpl.call(this, resultContinuation);
|
|
900
900
|
}
|
|
901
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
902
|
-
var tmp = this.
|
|
903
|
-
tmp.
|
|
904
|
-
tmp.
|
|
905
|
-
return tmp.
|
|
901
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).g2j = function ($this$launch, $completion) {
|
|
902
|
+
var tmp = this.h2j($this$launch, $completion);
|
|
903
|
+
tmp.o9_1 = Unit_instance;
|
|
904
|
+
tmp.p9_1 = null;
|
|
905
|
+
return tmp.u9();
|
|
906
906
|
};
|
|
907
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
908
|
-
return this.
|
|
907
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).ga = function (p1, $completion) {
|
|
908
|
+
return this.g2j((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
909
909
|
};
|
|
910
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
911
|
-
var suspendResult = this.
|
|
910
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).u9 = function () {
|
|
911
|
+
var suspendResult = this.o9_1;
|
|
912
912
|
$sm: do
|
|
913
913
|
try {
|
|
914
|
-
var tmp = this.
|
|
914
|
+
var tmp = this.m9_1;
|
|
915
915
|
switch (tmp) {
|
|
916
916
|
case 0:
|
|
917
|
-
this.
|
|
918
|
-
this.
|
|
917
|
+
this.n9_1 = 13;
|
|
918
|
+
this.m9_1 = 1;
|
|
919
919
|
continue $sm;
|
|
920
920
|
case 1:
|
|
921
|
-
this.
|
|
921
|
+
this.m9_1 = 2;
|
|
922
922
|
continue $sm;
|
|
923
923
|
case 2:
|
|
924
|
-
this.
|
|
925
|
-
this.
|
|
926
|
-
this.
|
|
927
|
-
suspendResult = outgoingProcessorLoop(this.
|
|
924
|
+
this.n9_1 = 9;
|
|
925
|
+
this.n9_1 = 4;
|
|
926
|
+
this.m9_1 = 3;
|
|
927
|
+
suspendResult = outgoingProcessorLoop(this.y49_1, this);
|
|
928
928
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
929
929
|
return suspendResult;
|
|
930
930
|
}
|
|
931
931
|
|
|
932
932
|
continue $sm;
|
|
933
933
|
case 3:
|
|
934
|
-
this.
|
|
935
|
-
this.
|
|
934
|
+
this.n9_1 = 13;
|
|
935
|
+
this.m9_1 = 11;
|
|
936
936
|
continue $sm;
|
|
937
937
|
case 4:
|
|
938
|
-
this.
|
|
939
|
-
var tmp_0 = this.
|
|
938
|
+
this.n9_1 = 9;
|
|
939
|
+
var tmp_0 = this.p9_1;
|
|
940
940
|
if (tmp_0 instanceof ClosedSendChannelException) {
|
|
941
|
-
var _unused_var__etf5q3 = this.
|
|
942
|
-
this.
|
|
943
|
-
this.
|
|
941
|
+
var _unused_var__etf5q3 = this.p9_1;
|
|
942
|
+
this.n9_1 = 13;
|
|
943
|
+
this.m9_1 = 11;
|
|
944
944
|
continue $sm;
|
|
945
945
|
} else {
|
|
946
|
-
var tmp_1 = this.
|
|
946
|
+
var tmp_1 = this.p9_1;
|
|
947
947
|
if (tmp_1 instanceof ClosedReceiveChannelException) {
|
|
948
|
-
var _unused_var__etf5q3_0 = this.
|
|
949
|
-
this.
|
|
950
|
-
this.
|
|
948
|
+
var _unused_var__etf5q3_0 = this.p9_1;
|
|
949
|
+
this.n9_1 = 13;
|
|
950
|
+
this.m9_1 = 11;
|
|
951
951
|
continue $sm;
|
|
952
952
|
} else {
|
|
953
|
-
var tmp_2 = this.
|
|
953
|
+
var tmp_2 = this.p9_1;
|
|
954
954
|
if (tmp_2 instanceof CancellationException) {
|
|
955
|
-
var _unused_var__etf5q3_1 = this.
|
|
956
|
-
this.
|
|
957
|
-
suspendResult = sendCloseSequence(this.
|
|
955
|
+
var _unused_var__etf5q3_1 = this.p9_1;
|
|
956
|
+
this.m9_1 = 5;
|
|
957
|
+
suspendResult = sendCloseSequence(this.y49_1, CloseReason_init_$Create$(Codes_NORMAL_getInstance(), ''), VOID, this);
|
|
958
958
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
959
959
|
return suspendResult;
|
|
960
960
|
}
|
|
961
961
|
continue $sm;
|
|
962
962
|
} else {
|
|
963
|
-
var tmp_3 = this.
|
|
963
|
+
var tmp_3 = this.p9_1;
|
|
964
964
|
if (tmp_3 instanceof ChannelIOException) {
|
|
965
|
-
var _unused_var__etf5q3_2 = this.
|
|
966
|
-
this.
|
|
967
|
-
this.
|
|
965
|
+
var _unused_var__etf5q3_2 = this.p9_1;
|
|
966
|
+
this.n9_1 = 13;
|
|
967
|
+
this.m9_1 = 11;
|
|
968
968
|
continue $sm;
|
|
969
969
|
} else {
|
|
970
|
-
var tmp_4 = this.
|
|
970
|
+
var tmp_4 = this.p9_1;
|
|
971
971
|
if (tmp_4 instanceof Error) {
|
|
972
|
-
var cause = this.
|
|
973
|
-
this.
|
|
974
|
-
this.
|
|
975
|
-
suspendResult = closeExceptionally(this.
|
|
972
|
+
var cause = this.p9_1;
|
|
973
|
+
this.y49_1.z46_1.g1x(CancellationException_init_$Create$('Failed to send frame', cause));
|
|
974
|
+
this.m9_1 = 6;
|
|
975
|
+
suspendResult = closeExceptionally(this.y49_1.t46_1, cause, this);
|
|
976
976
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
977
977
|
return suspendResult;
|
|
978
978
|
}
|
|
979
979
|
continue $sm;
|
|
980
980
|
} else {
|
|
981
|
-
throw this.
|
|
981
|
+
throw this.p9_1;
|
|
982
982
|
}
|
|
983
983
|
}
|
|
984
984
|
}
|
|
@@ -986,18 +986,18 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).t9 = function
|
|
|
986
986
|
}
|
|
987
987
|
|
|
988
988
|
case 5:
|
|
989
|
-
this.
|
|
990
|
-
this.
|
|
989
|
+
this.n9_1 = 13;
|
|
990
|
+
this.m9_1 = 11;
|
|
991
991
|
continue $sm;
|
|
992
992
|
case 6:
|
|
993
|
-
this.
|
|
994
|
-
this.
|
|
993
|
+
this.n9_1 = 13;
|
|
994
|
+
this.m9_1 = 7;
|
|
995
995
|
continue $sm;
|
|
996
996
|
case 7:
|
|
997
|
-
this.
|
|
998
|
-
this.
|
|
999
|
-
this.
|
|
1000
|
-
suspendResult = close(this.
|
|
997
|
+
this.n9_1 = 13;
|
|
998
|
+
this.y49_1.z46_1.c2f();
|
|
999
|
+
this.m9_1 = 8;
|
|
1000
|
+
suspendResult = close(this.y49_1.t46_1, VOID, this);
|
|
1001
1001
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1002
1002
|
return suspendResult;
|
|
1003
1003
|
}
|
|
@@ -1006,23 +1006,23 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).t9 = function
|
|
|
1006
1006
|
case 8:
|
|
1007
1007
|
return Unit_instance;
|
|
1008
1008
|
case 9:
|
|
1009
|
-
this.
|
|
1010
|
-
this.
|
|
1011
|
-
this.
|
|
1012
|
-
this.
|
|
1013
|
-
suspendResult = close(this.
|
|
1009
|
+
this.n9_1 = 13;
|
|
1010
|
+
this.a4a_1 = this.p9_1;
|
|
1011
|
+
this.y49_1.z46_1.c2f();
|
|
1012
|
+
this.m9_1 = 10;
|
|
1013
|
+
suspendResult = close(this.y49_1.t46_1, VOID, this);
|
|
1014
1014
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1015
1015
|
return suspendResult;
|
|
1016
1016
|
}
|
|
1017
1017
|
|
|
1018
1018
|
continue $sm;
|
|
1019
1019
|
case 10:
|
|
1020
|
-
throw this.
|
|
1020
|
+
throw this.a4a_1;
|
|
1021
1021
|
case 11:
|
|
1022
|
-
this.
|
|
1023
|
-
this.
|
|
1024
|
-
this.
|
|
1025
|
-
suspendResult = close(this.
|
|
1022
|
+
this.n9_1 = 13;
|
|
1023
|
+
this.y49_1.z46_1.c2f();
|
|
1024
|
+
this.m9_1 = 12;
|
|
1025
|
+
suspendResult = close(this.y49_1.t46_1, VOID, this);
|
|
1026
1026
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1027
1027
|
return suspendResult;
|
|
1028
1028
|
}
|
|
@@ -1031,55 +1031,55 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).t9 = function
|
|
|
1031
1031
|
case 12:
|
|
1032
1032
|
return Unit_instance;
|
|
1033
1033
|
case 13:
|
|
1034
|
-
throw this.
|
|
1034
|
+
throw this.p9_1;
|
|
1035
1035
|
}
|
|
1036
1036
|
} catch ($p) {
|
|
1037
1037
|
var e = $p;
|
|
1038
|
-
if (this.
|
|
1038
|
+
if (this.n9_1 === 13) {
|
|
1039
1039
|
throw e;
|
|
1040
1040
|
} else {
|
|
1041
|
-
this.
|
|
1042
|
-
this.
|
|
1041
|
+
this.m9_1 = this.n9_1;
|
|
1042
|
+
this.p9_1 = e;
|
|
1043
1043
|
}
|
|
1044
1044
|
}
|
|
1045
1045
|
while (true);
|
|
1046
1046
|
};
|
|
1047
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
1048
|
-
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.
|
|
1049
|
-
i.
|
|
1047
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).h2j = function ($this$launch, completion) {
|
|
1048
|
+
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.y49_1, completion);
|
|
1049
|
+
i.z49_1 = $this$launch;
|
|
1050
1050
|
return i;
|
|
1051
1051
|
};
|
|
1052
1052
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0(this$0, resultContinuation) {
|
|
1053
1053
|
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation);
|
|
1054
1054
|
var l = function ($this$launch, $completion) {
|
|
1055
|
-
return i.
|
|
1055
|
+
return i.g2j($this$launch, $completion);
|
|
1056
1056
|
};
|
|
1057
1057
|
l.$arity = 1;
|
|
1058
1058
|
return l;
|
|
1059
1059
|
}
|
|
1060
1060
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation) {
|
|
1061
|
-
this.
|
|
1061
|
+
this.j4a_1 = this$0;
|
|
1062
1062
|
CoroutineImpl.call(this, resultContinuation);
|
|
1063
1063
|
}
|
|
1064
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1065
|
-
var tmp = this.
|
|
1066
|
-
tmp.
|
|
1067
|
-
tmp.
|
|
1068
|
-
return tmp.
|
|
1064
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).l4a = function (it, $completion) {
|
|
1065
|
+
var tmp = this.m4a(it, $completion);
|
|
1066
|
+
tmp.o9_1 = Unit_instance;
|
|
1067
|
+
tmp.p9_1 = null;
|
|
1068
|
+
return tmp.u9();
|
|
1069
1069
|
};
|
|
1070
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1071
|
-
return this.
|
|
1070
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).ga = function (p1, $completion) {
|
|
1071
|
+
return this.l4a(p1 instanceof CloseReason ? p1 : THROW_CCE(), $completion);
|
|
1072
1072
|
};
|
|
1073
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1074
|
-
var suspendResult = this.
|
|
1073
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).u9 = function () {
|
|
1074
|
+
var suspendResult = this.o9_1;
|
|
1075
1075
|
$sm: do
|
|
1076
1076
|
try {
|
|
1077
|
-
var tmp = this.
|
|
1077
|
+
var tmp = this.m9_1;
|
|
1078
1078
|
switch (tmp) {
|
|
1079
1079
|
case 0:
|
|
1080
|
-
this.
|
|
1081
|
-
this.
|
|
1082
|
-
suspendResult = sendCloseSequence(this.
|
|
1080
|
+
this.n9_1 = 2;
|
|
1081
|
+
this.m9_1 = 1;
|
|
1082
|
+
suspendResult = sendCloseSequence(this.j4a_1, this.k4a_1, IOException_init_$Create$('Ping timeout'), this);
|
|
1083
1083
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1084
1084
|
return suspendResult;
|
|
1085
1085
|
}
|
|
@@ -1088,50 +1088,50 @@ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).t9 = function ()
|
|
|
1088
1088
|
case 1:
|
|
1089
1089
|
return Unit_instance;
|
|
1090
1090
|
case 2:
|
|
1091
|
-
throw this.
|
|
1091
|
+
throw this.p9_1;
|
|
1092
1092
|
}
|
|
1093
1093
|
} catch ($p) {
|
|
1094
1094
|
var e = $p;
|
|
1095
|
-
if (this.
|
|
1095
|
+
if (this.n9_1 === 2) {
|
|
1096
1096
|
throw e;
|
|
1097
1097
|
} else {
|
|
1098
|
-
this.
|
|
1099
|
-
this.
|
|
1098
|
+
this.m9_1 = this.n9_1;
|
|
1099
|
+
this.p9_1 = e;
|
|
1100
1100
|
}
|
|
1101
1101
|
}
|
|
1102
1102
|
while (true);
|
|
1103
1103
|
};
|
|
1104
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1105
|
-
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.
|
|
1106
|
-
i.
|
|
1104
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).m4a = function (it, completion) {
|
|
1105
|
+
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.j4a_1, completion);
|
|
1106
|
+
i.k4a_1 = it;
|
|
1107
1107
|
return i;
|
|
1108
1108
|
};
|
|
1109
1109
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0(this$0, resultContinuation) {
|
|
1110
1110
|
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation);
|
|
1111
1111
|
var l = function (it, $completion) {
|
|
1112
|
-
return i.
|
|
1112
|
+
return i.l4a(it, $completion);
|
|
1113
1113
|
};
|
|
1114
1114
|
l.$arity = 1;
|
|
1115
1115
|
return l;
|
|
1116
1116
|
}
|
|
1117
1117
|
function $outgoingProcessorLoopCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1118
1118
|
CoroutineImpl.call(this, resultContinuation);
|
|
1119
|
-
this.
|
|
1119
|
+
this.e46_1 = _this__u8e3s4;
|
|
1120
1120
|
}
|
|
1121
|
-
protoOf($outgoingProcessorLoopCOROUTINE$).
|
|
1122
|
-
var suspendResult = this.
|
|
1121
|
+
protoOf($outgoingProcessorLoopCOROUTINE$).u9 = function () {
|
|
1122
|
+
var suspendResult = this.o9_1;
|
|
1123
1123
|
$sm: do
|
|
1124
1124
|
try {
|
|
1125
|
-
var tmp = this.
|
|
1125
|
+
var tmp = this.m9_1;
|
|
1126
1126
|
switch (tmp) {
|
|
1127
1127
|
case 0:
|
|
1128
|
-
this.
|
|
1129
|
-
this.
|
|
1130
|
-
this.
|
|
1128
|
+
this.n9_1 = 7;
|
|
1129
|
+
this.g46_1 = this.e46_1.z46_1.t();
|
|
1130
|
+
this.m9_1 = 1;
|
|
1131
1131
|
continue $sm;
|
|
1132
1132
|
case 1:
|
|
1133
|
-
this.
|
|
1134
|
-
suspendResult = this.
|
|
1133
|
+
this.m9_1 = 2;
|
|
1134
|
+
suspendResult = this.g46_1.v2c(this);
|
|
1135
1135
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1136
1136
|
return suspendResult;
|
|
1137
1137
|
}
|
|
@@ -1139,19 +1139,19 @@ protoOf($outgoingProcessorLoopCOROUTINE$).t9 = function () {
|
|
|
1139
1139
|
continue $sm;
|
|
1140
1140
|
case 2:
|
|
1141
1141
|
if (!suspendResult) {
|
|
1142
|
-
this.
|
|
1142
|
+
this.m9_1 = 6;
|
|
1143
1143
|
continue $sm;
|
|
1144
1144
|
}
|
|
1145
1145
|
|
|
1146
|
-
var frame = this.
|
|
1146
|
+
var frame = this.g46_1.v();
|
|
1147
1147
|
var this_0 = get_LOGGER();
|
|
1148
1148
|
if (get_isTraceEnabled(this_0)) {
|
|
1149
|
-
this_0.
|
|
1149
|
+
this_0.e3j('Sending ' + frame.toString() + ' from session ' + toString(this.e46_1));
|
|
1150
1150
|
}
|
|
1151
1151
|
|
|
1152
1152
|
if (frame instanceof Close) {
|
|
1153
|
-
this.
|
|
1154
|
-
suspendResult = sendCloseSequence(this.
|
|
1153
|
+
this.m9_1 = 3;
|
|
1154
|
+
suspendResult = sendCloseSequence(this.e46_1, readReason(frame), VOID, this);
|
|
1155
1155
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1156
1156
|
return suspendResult;
|
|
1157
1157
|
}
|
|
@@ -1164,223 +1164,223 @@ protoOf($outgoingProcessorLoopCOROUTINE$).t9 = function () {
|
|
|
1164
1164
|
tmp_0 = frame instanceof Binary;
|
|
1165
1165
|
}
|
|
1166
1166
|
if (tmp_0) {
|
|
1167
|
-
this.
|
|
1168
|
-
this.
|
|
1167
|
+
this.f46_1 = processOutgoingExtensions(this.e46_1, frame);
|
|
1168
|
+
this.m9_1 = 4;
|
|
1169
1169
|
continue $sm;
|
|
1170
1170
|
} else {
|
|
1171
|
-
this.
|
|
1172
|
-
this.
|
|
1171
|
+
this.f46_1 = frame;
|
|
1172
|
+
this.m9_1 = 4;
|
|
1173
1173
|
continue $sm;
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
1176
|
|
|
1177
1177
|
case 3:
|
|
1178
|
-
this.
|
|
1178
|
+
this.m9_1 = 6;
|
|
1179
1179
|
var tmp_1 = this;
|
|
1180
1180
|
continue $sm;
|
|
1181
1181
|
case 4:
|
|
1182
|
-
var processedFrame = this.
|
|
1183
|
-
this.
|
|
1184
|
-
suspendResult = this.
|
|
1182
|
+
var processedFrame = this.f46_1;
|
|
1183
|
+
this.m9_1 = 5;
|
|
1184
|
+
suspendResult = this.e46_1.t46_1.r45().s2e(processedFrame, this);
|
|
1185
1185
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1186
1186
|
return suspendResult;
|
|
1187
1187
|
}
|
|
1188
1188
|
|
|
1189
1189
|
continue $sm;
|
|
1190
1190
|
case 5:
|
|
1191
|
-
this.
|
|
1191
|
+
this.m9_1 = 1;
|
|
1192
1192
|
continue $sm;
|
|
1193
1193
|
case 6:
|
|
1194
1194
|
return Unit_instance;
|
|
1195
1195
|
case 7:
|
|
1196
|
-
throw this.
|
|
1196
|
+
throw this.p9_1;
|
|
1197
1197
|
}
|
|
1198
1198
|
} catch ($p) {
|
|
1199
1199
|
var e = $p;
|
|
1200
|
-
if (this.
|
|
1200
|
+
if (this.n9_1 === 7) {
|
|
1201
1201
|
throw e;
|
|
1202
1202
|
} else {
|
|
1203
|
-
this.
|
|
1204
|
-
this.
|
|
1203
|
+
this.m9_1 = this.n9_1;
|
|
1204
|
+
this.p9_1 = e;
|
|
1205
1205
|
}
|
|
1206
1206
|
}
|
|
1207
1207
|
while (true);
|
|
1208
1208
|
};
|
|
1209
1209
|
function $sendCloseSequenceCOROUTINE$(_this__u8e3s4, reason, exception, resultContinuation) {
|
|
1210
1210
|
CoroutineImpl.call(this, resultContinuation);
|
|
1211
|
-
this.
|
|
1212
|
-
this.
|
|
1213
|
-
this.
|
|
1211
|
+
this.p46_1 = _this__u8e3s4;
|
|
1212
|
+
this.q46_1 = reason;
|
|
1213
|
+
this.r46_1 = exception;
|
|
1214
1214
|
}
|
|
1215
|
-
protoOf($sendCloseSequenceCOROUTINE$).
|
|
1216
|
-
var suspendResult = this.
|
|
1215
|
+
protoOf($sendCloseSequenceCOROUTINE$).u9 = function () {
|
|
1216
|
+
var suspendResult = this.o9_1;
|
|
1217
1217
|
$sm: do
|
|
1218
1218
|
try {
|
|
1219
|
-
var tmp = this.
|
|
1219
|
+
var tmp = this.m9_1;
|
|
1220
1220
|
switch (tmp) {
|
|
1221
1221
|
case 0:
|
|
1222
|
-
this.
|
|
1223
|
-
if (!tryClose(this.
|
|
1222
|
+
this.n9_1 = 6;
|
|
1223
|
+
if (!tryClose(this.p46_1))
|
|
1224
1224
|
return Unit_instance;
|
|
1225
1225
|
var this_0 = get_LOGGER();
|
|
1226
1226
|
if (get_isTraceEnabled(this_0)) {
|
|
1227
|
-
this_0.
|
|
1227
|
+
this_0.e3j('Sending Close Sequence for session ' + toString(this.p46_1) + ' with reason ' + toString_0(this.q46_1) + ' and exception ' + toString_0(this.r46_1));
|
|
1228
1228
|
}
|
|
1229
1229
|
|
|
1230
|
-
this.
|
|
1230
|
+
this.p46_1.w46_1.e24();
|
|
1231
1231
|
var tmp_0 = this;
|
|
1232
|
-
var tmp0_elvis_lhs = this.
|
|
1233
|
-
tmp_0.
|
|
1234
|
-
this.
|
|
1232
|
+
var tmp0_elvis_lhs = this.q46_1;
|
|
1233
|
+
tmp_0.s46_1 = tmp0_elvis_lhs == null ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : tmp0_elvis_lhs;
|
|
1234
|
+
this.m9_1 = 1;
|
|
1235
1235
|
continue $sm;
|
|
1236
1236
|
case 1:
|
|
1237
|
-
this.
|
|
1238
|
-
runOrCancelPinger(this.
|
|
1239
|
-
if (!(this.
|
|
1240
|
-
this.
|
|
1241
|
-
suspendResult = this.
|
|
1237
|
+
this.n9_1 = 5;
|
|
1238
|
+
runOrCancelPinger(this.p46_1);
|
|
1239
|
+
if (!(this.s46_1.k45_1 === Codes_CLOSED_ABNORMALLY_getInstance().g45_1)) {
|
|
1240
|
+
this.m9_1 = 2;
|
|
1241
|
+
suspendResult = this.p46_1.t46_1.r45().s2e(Close_init_$Create$(this.s46_1), this);
|
|
1242
1242
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1243
1243
|
return suspendResult;
|
|
1244
1244
|
}
|
|
1245
1245
|
continue $sm;
|
|
1246
1246
|
} else {
|
|
1247
|
-
this.
|
|
1247
|
+
this.m9_1 = 3;
|
|
1248
1248
|
continue $sm;
|
|
1249
1249
|
}
|
|
1250
1250
|
|
|
1251
1251
|
case 2:
|
|
1252
|
-
this.
|
|
1252
|
+
this.m9_1 = 3;
|
|
1253
1253
|
continue $sm;
|
|
1254
1254
|
case 3:
|
|
1255
|
-
this.
|
|
1256
|
-
this.
|
|
1255
|
+
this.n9_1 = 6;
|
|
1256
|
+
this.m9_1 = 4;
|
|
1257
1257
|
continue $sm;
|
|
1258
1258
|
case 4:
|
|
1259
|
-
this.
|
|
1260
|
-
this.
|
|
1261
|
-
if (!(this.
|
|
1262
|
-
this.
|
|
1263
|
-
this.
|
|
1259
|
+
this.n9_1 = 6;
|
|
1260
|
+
this.p46_1.v46_1.c24(this.s46_1);
|
|
1261
|
+
if (!(this.r46_1 == null)) {
|
|
1262
|
+
this.p46_1.z46_1.y2e(this.r46_1);
|
|
1263
|
+
this.p46_1.y46_1.y2e(this.r46_1);
|
|
1264
1264
|
}
|
|
1265
1265
|
|
|
1266
1266
|
return Unit_instance;
|
|
1267
1267
|
case 5:
|
|
1268
|
-
this.
|
|
1269
|
-
var t = this.
|
|
1270
|
-
this.
|
|
1271
|
-
if (!(this.
|
|
1272
|
-
this.
|
|
1273
|
-
this.
|
|
1268
|
+
this.n9_1 = 6;
|
|
1269
|
+
var t = this.p9_1;
|
|
1270
|
+
this.p46_1.v46_1.c24(this.s46_1);
|
|
1271
|
+
if (!(this.r46_1 == null)) {
|
|
1272
|
+
this.p46_1.z46_1.y2e(this.r46_1);
|
|
1273
|
+
this.p46_1.y46_1.y2e(this.r46_1);
|
|
1274
1274
|
}
|
|
1275
1275
|
|
|
1276
1276
|
throw t;
|
|
1277
1277
|
case 6:
|
|
1278
|
-
throw this.
|
|
1278
|
+
throw this.p9_1;
|
|
1279
1279
|
}
|
|
1280
1280
|
} catch ($p) {
|
|
1281
1281
|
var e = $p;
|
|
1282
|
-
if (this.
|
|
1282
|
+
if (this.n9_1 === 6) {
|
|
1283
1283
|
throw e;
|
|
1284
1284
|
} else {
|
|
1285
|
-
this.
|
|
1286
|
-
this.
|
|
1285
|
+
this.m9_1 = this.n9_1;
|
|
1286
|
+
this.p9_1 = e;
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
1289
1289
|
while (true);
|
|
1290
1290
|
};
|
|
1291
1291
|
function $checkMaxFrameSizeCOROUTINE$(_this__u8e3s4, packet, frame, resultContinuation) {
|
|
1292
1292
|
CoroutineImpl.call(this, resultContinuation);
|
|
1293
|
-
this.
|
|
1294
|
-
this.
|
|
1295
|
-
this.
|
|
1293
|
+
this.p47_1 = _this__u8e3s4;
|
|
1294
|
+
this.q47_1 = packet;
|
|
1295
|
+
this.r47_1 = frame;
|
|
1296
1296
|
}
|
|
1297
|
-
protoOf($checkMaxFrameSizeCOROUTINE$).
|
|
1298
|
-
var suspendResult = this.
|
|
1297
|
+
protoOf($checkMaxFrameSizeCOROUTINE$).u9 = function () {
|
|
1298
|
+
var suspendResult = this.o9_1;
|
|
1299
1299
|
$sm: do
|
|
1300
1300
|
try {
|
|
1301
|
-
var tmp = this.
|
|
1301
|
+
var tmp = this.m9_1;
|
|
1302
1302
|
switch (tmp) {
|
|
1303
1303
|
case 0:
|
|
1304
|
-
this.
|
|
1304
|
+
this.n9_1 = 3;
|
|
1305
1305
|
var tmp_0 = this;
|
|
1306
|
-
var tmp_1 = this.
|
|
1307
|
-
var tmp0_safe_receiver = this.
|
|
1306
|
+
var tmp_1 = this.r47_1.j49_1.length;
|
|
1307
|
+
var tmp0_safe_receiver = this.q47_1;
|
|
1308
1308
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_size(tmp0_safe_receiver);
|
|
1309
|
-
tmp_0.
|
|
1310
|
-
if (fromInt(this.
|
|
1311
|
-
var tmp2_safe_receiver = this.
|
|
1309
|
+
tmp_0.s47_1 = tmp_1 + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
1310
|
+
if (fromInt(this.s47_1) > this.p47_1.p45()) {
|
|
1311
|
+
var tmp2_safe_receiver = this.q47_1;
|
|
1312
1312
|
if (tmp2_safe_receiver == null)
|
|
1313
1313
|
null;
|
|
1314
1314
|
else {
|
|
1315
1315
|
tmp2_safe_receiver.c5();
|
|
1316
1316
|
}
|
|
1317
|
-
this.
|
|
1318
|
-
suspendResult = close(this.
|
|
1317
|
+
this.m9_1 = 2;
|
|
1318
|
+
suspendResult = close(this.p47_1, CloseReason_init_$Create$(Codes_TOO_BIG_getInstance(), 'Frame is too big: ' + this.s47_1 + '. Max size is ' + this.p47_1.p45().toString()), this);
|
|
1319
1319
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1320
1320
|
return suspendResult;
|
|
1321
1321
|
}
|
|
1322
1322
|
continue $sm;
|
|
1323
1323
|
} else {
|
|
1324
|
-
this.
|
|
1324
|
+
this.m9_1 = 1;
|
|
1325
1325
|
continue $sm;
|
|
1326
1326
|
}
|
|
1327
1327
|
|
|
1328
1328
|
case 1:
|
|
1329
1329
|
return Unit_instance;
|
|
1330
1330
|
case 2:
|
|
1331
|
-
throw new FrameTooBigException(fromInt(this.
|
|
1331
|
+
throw new FrameTooBigException(fromInt(this.s47_1));
|
|
1332
1332
|
case 3:
|
|
1333
|
-
throw this.
|
|
1333
|
+
throw this.p9_1;
|
|
1334
1334
|
}
|
|
1335
1335
|
} catch ($p) {
|
|
1336
1336
|
var e = $p;
|
|
1337
|
-
if (this.
|
|
1337
|
+
if (this.n9_1 === 3) {
|
|
1338
1338
|
throw e;
|
|
1339
1339
|
} else {
|
|
1340
|
-
this.
|
|
1341
|
-
this.
|
|
1340
|
+
this.m9_1 = this.n9_1;
|
|
1341
|
+
this.p9_1 = e;
|
|
1342
1342
|
}
|
|
1343
1343
|
}
|
|
1344
1344
|
while (true);
|
|
1345
1345
|
};
|
|
1346
1346
|
function DefaultWebSocketSessionImpl(raw, pingIntervalMillis, timeoutMillis, incomingFramesConfig, outgoingFramesConfig) {
|
|
1347
1347
|
Companion_getInstance_0();
|
|
1348
|
-
this.
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1353
|
-
this.
|
|
1354
|
-
this.
|
|
1355
|
-
this.
|
|
1348
|
+
this.t46_1 = raw;
|
|
1349
|
+
this.u46_1 = atomic$ref$1(null);
|
|
1350
|
+
this.v46_1 = CompletableDeferred();
|
|
1351
|
+
this.w46_1 = Job();
|
|
1352
|
+
this.x46_1 = this.t46_1.w1v().wj(Key_instance).yj(this.w46_1).yj(new CoroutineName('ws-default'));
|
|
1353
|
+
this.y46_1 = from(Factory_getInstance(), incomingFramesConfig);
|
|
1354
|
+
this.z46_1 = from(Factory_getInstance(), outgoingFramesConfig);
|
|
1355
|
+
this.a47_1 = atomic$boolean$1(false);
|
|
1356
1356
|
var tmp = this;
|
|
1357
1357
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1358
|
-
tmp.
|
|
1359
|
-
this.
|
|
1360
|
-
this.
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1358
|
+
tmp.b47_1 = ArrayList_init_$Create$();
|
|
1359
|
+
this.c47_1 = atomic$boolean$1(false);
|
|
1360
|
+
this.d47_1 = pingIntervalMillis;
|
|
1361
|
+
this.e47_1 = timeoutMillis;
|
|
1362
|
+
this.f47_1 = this.v46_1;
|
|
1363
1363
|
}
|
|
1364
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1365
|
-
return this.
|
|
1364
|
+
protoOf(DefaultWebSocketSessionImpl).w1v = function () {
|
|
1365
|
+
return this.x46_1;
|
|
1366
1366
|
};
|
|
1367
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1368
|
-
return this.
|
|
1367
|
+
protoOf(DefaultWebSocketSessionImpl).q45 = function () {
|
|
1368
|
+
return this.y46_1;
|
|
1369
1369
|
};
|
|
1370
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1371
|
-
return this.
|
|
1370
|
+
protoOf(DefaultWebSocketSessionImpl).r45 = function () {
|
|
1371
|
+
return this.z46_1;
|
|
1372
1372
|
};
|
|
1373
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1374
|
-
return this.
|
|
1373
|
+
protoOf(DefaultWebSocketSessionImpl).t47 = function () {
|
|
1374
|
+
return this.b47_1;
|
|
1375
1375
|
};
|
|
1376
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1377
|
-
this.
|
|
1376
|
+
protoOf(DefaultWebSocketSessionImpl).o45 = function (value) {
|
|
1377
|
+
this.t46_1.o45(value);
|
|
1378
1378
|
};
|
|
1379
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1380
|
-
return this.
|
|
1379
|
+
protoOf(DefaultWebSocketSessionImpl).p45 = function () {
|
|
1380
|
+
return this.t46_1.p45();
|
|
1381
1381
|
};
|
|
1382
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1383
|
-
if (!this.
|
|
1382
|
+
protoOf(DefaultWebSocketSessionImpl).n45 = function (negotiatedExtensions) {
|
|
1383
|
+
if (!this.c47_1.atomicfu$compareAndSet(false, true)) {
|
|
1384
1384
|
// Inline function 'kotlin.error' call
|
|
1385
1385
|
var message = 'WebSocket session ' + toString(this) + ' is already started.';
|
|
1386
1386
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -1389,16 +1389,16 @@ protoOf(DefaultWebSocketSessionImpl).e44 = function (negotiatedExtensions) {
|
|
|
1389
1389
|
var this_0 = get_LOGGER();
|
|
1390
1390
|
if (get_isTraceEnabled(this_0)) {
|
|
1391
1391
|
var tmp$ret$2 = 'Starting default WebSocketSession(' + toString(this) + ') ' + ('with negotiated extensions: ' + joinToString(negotiatedExtensions));
|
|
1392
|
-
this_0.
|
|
1392
|
+
this_0.e3j(tmp$ret$2);
|
|
1393
1393
|
}
|
|
1394
|
-
this.
|
|
1394
|
+
this.b47_1.j1(negotiatedExtensions);
|
|
1395
1395
|
runOrCancelPinger(this);
|
|
1396
|
-
var incomingJob = runIncomingProcessor(this, ponger(this, this.
|
|
1396
|
+
var incomingJob = runIncomingProcessor(this, ponger(this, this.r45()));
|
|
1397
1397
|
var outgoingJob = runOutgoingProcessor(this);
|
|
1398
1398
|
launch(this, VOID, VOID, DefaultWebSocketSessionImpl$start$slambda_0(incomingJob, outgoingJob, this, null));
|
|
1399
1399
|
};
|
|
1400
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1401
|
-
return this.
|
|
1400
|
+
protoOf(DefaultWebSocketSessionImpl).t2w = function ($completion) {
|
|
1401
|
+
return this.t46_1.t2w($completion);
|
|
1402
1402
|
};
|
|
1403
1403
|
var properties_initialized_DefaultWebSocketSession_kt_6cjlhc;
|
|
1404
1404
|
function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
@@ -1420,20 +1420,20 @@ function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
1422
|
function readReason(_this__u8e3s4) {
|
|
1423
|
-
if (_this__u8e3s4.
|
|
1423
|
+
if (_this__u8e3s4.j49_1.length < 2) {
|
|
1424
1424
|
return null;
|
|
1425
1425
|
}
|
|
1426
1426
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1427
1427
|
var builder = new Buffer();
|
|
1428
|
-
writeFully(builder, _this__u8e3s4.
|
|
1428
|
+
writeFully(builder, _this__u8e3s4.j49_1);
|
|
1429
1429
|
var packet = builder;
|
|
1430
|
-
var code = packet.
|
|
1430
|
+
var code = packet.h2s();
|
|
1431
1431
|
var message = readText(packet);
|
|
1432
1432
|
return new CloseReason(code, message);
|
|
1433
1433
|
}
|
|
1434
1434
|
function NonDisposableHandle() {
|
|
1435
1435
|
}
|
|
1436
|
-
protoOf(NonDisposableHandle).
|
|
1436
|
+
protoOf(NonDisposableHandle).t1y = function () {
|
|
1437
1437
|
return Unit_instance;
|
|
1438
1438
|
};
|
|
1439
1439
|
protoOf(NonDisposableHandle).toString = function () {
|
|
@@ -1455,28 +1455,28 @@ function NonDisposableHandle_getInstance() {
|
|
|
1455
1455
|
}
|
|
1456
1456
|
function readText_0(_this__u8e3s4) {
|
|
1457
1457
|
// Inline function 'kotlin.require' call
|
|
1458
|
-
if (!_this__u8e3s4.
|
|
1458
|
+
if (!_this__u8e3s4.h49_1) {
|
|
1459
1459
|
var message = 'Text could be only extracted from non-fragmented frame';
|
|
1460
1460
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1461
1461
|
}
|
|
1462
|
-
var tmp = Charsets_getInstance().
|
|
1462
|
+
var tmp = Charsets_getInstance().k37_1.n37();
|
|
1463
1463
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1464
1464
|
var builder = new Buffer();
|
|
1465
|
-
writeFully(builder, _this__u8e3s4.
|
|
1465
|
+
writeFully(builder, _this__u8e3s4.j49_1);
|
|
1466
1466
|
return decode(tmp, builder);
|
|
1467
1467
|
}
|
|
1468
1468
|
function FrameTooBigException(frameSize) {
|
|
1469
1469
|
Exception_init_$Init$(this);
|
|
1470
1470
|
captureStack(this, FrameTooBigException);
|
|
1471
|
-
this.
|
|
1471
|
+
this.n4a_1 = frameSize;
|
|
1472
1472
|
delete this.message;
|
|
1473
1473
|
}
|
|
1474
1474
|
protoOf(FrameTooBigException).e = function () {
|
|
1475
|
-
return 'Frame is too big: ' + this.
|
|
1475
|
+
return 'Frame is too big: ' + this.n4a_1.toString();
|
|
1476
1476
|
};
|
|
1477
|
-
protoOf(FrameTooBigException).
|
|
1477
|
+
protoOf(FrameTooBigException).n24 = function () {
|
|
1478
1478
|
// Inline function 'kotlin.also' call
|
|
1479
|
-
var this_0 = new FrameTooBigException(this.
|
|
1479
|
+
var this_0 = new FrameTooBigException(this.n4a_1);
|
|
1480
1480
|
initCauseBridge(this_0, this);
|
|
1481
1481
|
return this_0;
|
|
1482
1482
|
};
|
|
@@ -1502,10 +1502,10 @@ function Companion_1() {
|
|
|
1502
1502
|
tmp$ret$0 = maxElem;
|
|
1503
1503
|
break $l$block_0;
|
|
1504
1504
|
}
|
|
1505
|
-
var maxValue = maxElem.
|
|
1505
|
+
var maxValue = maxElem.r4a_1;
|
|
1506
1506
|
do {
|
|
1507
1507
|
var e = iterator.v();
|
|
1508
|
-
var v = e.
|
|
1508
|
+
var v = e.r4a_1;
|
|
1509
1509
|
if (compareTo(maxValue, v) < 0) {
|
|
1510
1510
|
maxElem = e;
|
|
1511
1511
|
maxValue = v;
|
|
@@ -1514,10 +1514,10 @@ function Companion_1() {
|
|
|
1514
1514
|
while (iterator.u());
|
|
1515
1515
|
tmp$ret$0 = maxElem;
|
|
1516
1516
|
}
|
|
1517
|
-
tmp.
|
|
1517
|
+
tmp.s4a_1 = ensureNotNull(tmp$ret$0).r4a_1;
|
|
1518
1518
|
var tmp_0 = this;
|
|
1519
1519
|
var tmp_1 = 0;
|
|
1520
|
-
var tmp_2 = this.
|
|
1520
|
+
var tmp_2 = this.s4a_1 + 1 | 0;
|
|
1521
1521
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1522
1522
|
var tmp_3 = Array(tmp_2);
|
|
1523
1523
|
while (tmp_1 < tmp_2) {
|
|
@@ -1531,7 +1531,7 @@ function Companion_1() {
|
|
|
1531
1531
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
1532
1532
|
while (_iterator__ex2g4s.u()) {
|
|
1533
1533
|
var element = _iterator__ex2g4s.v();
|
|
1534
|
-
if (element.
|
|
1534
|
+
if (element.r4a_1 === tmp_4) {
|
|
1535
1535
|
if (found) {
|
|
1536
1536
|
tmp$ret$5 = null;
|
|
1537
1537
|
break $l$block_2;
|
|
@@ -1549,7 +1549,7 @@ function Companion_1() {
|
|
|
1549
1549
|
tmp_3[tmp_4] = tmp$ret$5;
|
|
1550
1550
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1551
1551
|
}
|
|
1552
|
-
tmp_0.
|
|
1552
|
+
tmp_0.t4a_1 = tmp_3;
|
|
1553
1553
|
}
|
|
1554
1554
|
var Companion_instance_1;
|
|
1555
1555
|
function Companion_getInstance_1() {
|
|
@@ -1581,8 +1581,8 @@ function FrameType_initEntries() {
|
|
|
1581
1581
|
var $ENTRIES_0;
|
|
1582
1582
|
function FrameType(name, ordinal, controlFrame, opcode) {
|
|
1583
1583
|
Enum.call(this, name, ordinal);
|
|
1584
|
-
this.
|
|
1585
|
-
this.
|
|
1584
|
+
this.q4a_1 = controlFrame;
|
|
1585
|
+
this.r4a_1 = opcode;
|
|
1586
1586
|
}
|
|
1587
1587
|
function FrameType_TEXT_getInstance() {
|
|
1588
1588
|
FrameType_initEntries();
|
|
@@ -1625,55 +1625,55 @@ function pinger(_this__u8e3s4, outgoing, periodMillis, timeoutMillis, onTimeout)
|
|
|
1625
1625
|
_init_properties_PingPong_kt__9aqxey();
|
|
1626
1626
|
var actorJob = Job();
|
|
1627
1627
|
var channel = Channel(2147483647);
|
|
1628
|
-
var tmp = actorJob.
|
|
1628
|
+
var tmp = actorJob.yj(get_PingerCoroutineName());
|
|
1629
1629
|
launch(_this__u8e3s4, tmp, VOID, pinger$slambda_0(periodMillis, timeoutMillis, onTimeout, channel, outgoing, null));
|
|
1630
|
-
var tmp_0 = ensureNotNull(_this__u8e3s4.
|
|
1631
|
-
tmp_0.
|
|
1630
|
+
var tmp_0 = ensureNotNull(_this__u8e3s4.w1v().z9(Key_instance));
|
|
1631
|
+
tmp_0.y1w(pinger$lambda(actorJob));
|
|
1632
1632
|
return channel;
|
|
1633
1633
|
}
|
|
1634
1634
|
function ponger$slambda($channel, $outgoing, resultContinuation) {
|
|
1635
|
-
this.
|
|
1636
|
-
this.
|
|
1635
|
+
this.c4b_1 = $channel;
|
|
1636
|
+
this.d4b_1 = $outgoing;
|
|
1637
1637
|
CoroutineImpl.call(this, resultContinuation);
|
|
1638
1638
|
}
|
|
1639
|
-
protoOf(ponger$slambda).
|
|
1640
|
-
var tmp = this.
|
|
1641
|
-
tmp.
|
|
1642
|
-
tmp.
|
|
1643
|
-
return tmp.
|
|
1639
|
+
protoOf(ponger$slambda).g2j = function ($this$launch, $completion) {
|
|
1640
|
+
var tmp = this.h2j($this$launch, $completion);
|
|
1641
|
+
tmp.o9_1 = Unit_instance;
|
|
1642
|
+
tmp.p9_1 = null;
|
|
1643
|
+
return tmp.u9();
|
|
1644
1644
|
};
|
|
1645
|
-
protoOf(ponger$slambda).
|
|
1646
|
-
return this.
|
|
1645
|
+
protoOf(ponger$slambda).ga = function (p1, $completion) {
|
|
1646
|
+
return this.g2j((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1647
1647
|
};
|
|
1648
|
-
protoOf(ponger$slambda).
|
|
1649
|
-
var suspendResult = this.
|
|
1648
|
+
protoOf(ponger$slambda).u9 = function () {
|
|
1649
|
+
var suspendResult = this.o9_1;
|
|
1650
1650
|
$sm: do
|
|
1651
1651
|
try {
|
|
1652
|
-
var tmp = this.
|
|
1652
|
+
var tmp = this.m9_1;
|
|
1653
1653
|
switch (tmp) {
|
|
1654
1654
|
case 0:
|
|
1655
|
-
this.
|
|
1656
|
-
this.
|
|
1657
|
-
this.
|
|
1658
|
-
this.
|
|
1655
|
+
this.n9_1 = 14;
|
|
1656
|
+
this.n9_1 = 13;
|
|
1657
|
+
this.i4b_1 = this.c4b_1;
|
|
1658
|
+
this.m9_1 = 1;
|
|
1659
1659
|
continue $sm;
|
|
1660
1660
|
case 1:
|
|
1661
|
-
this.
|
|
1662
|
-
this.
|
|
1663
|
-
this.
|
|
1661
|
+
this.g4b_1 = this.i4b_1;
|
|
1662
|
+
this.f4b_1 = null;
|
|
1663
|
+
this.m9_1 = 2;
|
|
1664
1664
|
continue $sm;
|
|
1665
1665
|
case 2:
|
|
1666
|
-
this.
|
|
1666
|
+
this.m9_1 = 3;
|
|
1667
1667
|
continue $sm;
|
|
1668
1668
|
case 3:
|
|
1669
|
-
this.
|
|
1670
|
-
this.
|
|
1671
|
-
this.
|
|
1672
|
-
this.
|
|
1669
|
+
this.n9_1 = 10;
|
|
1670
|
+
this.n9_1 = 9;
|
|
1671
|
+
this.h4b_1 = this.g4b_1.t();
|
|
1672
|
+
this.m9_1 = 4;
|
|
1673
1673
|
continue $sm;
|
|
1674
1674
|
case 4:
|
|
1675
|
-
this.
|
|
1676
|
-
suspendResult = this.
|
|
1675
|
+
this.m9_1 = 5;
|
|
1676
|
+
suspendResult = this.h4b_1.v2c(this);
|
|
1677
1677
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1678
1678
|
return suspendResult;
|
|
1679
1679
|
}
|
|
@@ -1681,311 +1681,311 @@ protoOf(ponger$slambda).t9 = function () {
|
|
|
1681
1681
|
continue $sm;
|
|
1682
1682
|
case 5:
|
|
1683
1683
|
if (!suspendResult) {
|
|
1684
|
-
this.
|
|
1684
|
+
this.m9_1 = 7;
|
|
1685
1685
|
continue $sm;
|
|
1686
1686
|
}
|
|
1687
1687
|
|
|
1688
|
-
var e = this.
|
|
1689
|
-
get_LOGGER().
|
|
1690
|
-
this.
|
|
1691
|
-
suspendResult = this.
|
|
1688
|
+
var e = this.h4b_1.v();
|
|
1689
|
+
get_LOGGER().e3j('Received ping message, sending pong message');
|
|
1690
|
+
this.m9_1 = 6;
|
|
1691
|
+
suspendResult = this.d4b_1.s2e(new Pong(e.j49_1), this);
|
|
1692
1692
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1693
1693
|
return suspendResult;
|
|
1694
1694
|
}
|
|
1695
1695
|
|
|
1696
1696
|
continue $sm;
|
|
1697
1697
|
case 6:
|
|
1698
|
-
this.
|
|
1698
|
+
this.m9_1 = 4;
|
|
1699
1699
|
continue $sm;
|
|
1700
1700
|
case 7:
|
|
1701
|
-
this.
|
|
1701
|
+
this.m9_1 = 8;
|
|
1702
1702
|
var tmp_0 = this;
|
|
1703
1703
|
continue $sm;
|
|
1704
1704
|
case 8:
|
|
1705
|
-
this.
|
|
1706
|
-
cancelConsumed(this.
|
|
1707
|
-
this.
|
|
1705
|
+
this.n9_1 = 13;
|
|
1706
|
+
cancelConsumed(this.g4b_1, this.f4b_1);
|
|
1707
|
+
this.m9_1 = 12;
|
|
1708
1708
|
continue $sm;
|
|
1709
1709
|
case 9:
|
|
1710
|
-
this.
|
|
1711
|
-
var tmp_1 = this.
|
|
1710
|
+
this.n9_1 = 10;
|
|
1711
|
+
var tmp_1 = this.p9_1;
|
|
1712
1712
|
if (tmp_1 instanceof Error) {
|
|
1713
|
-
var e_0 = this.
|
|
1713
|
+
var e_0 = this.p9_1;
|
|
1714
1714
|
var tmp_2 = this;
|
|
1715
|
-
this.
|
|
1715
|
+
this.f4b_1 = e_0;
|
|
1716
1716
|
throw e_0;
|
|
1717
1717
|
} else {
|
|
1718
|
-
throw this.
|
|
1718
|
+
throw this.p9_1;
|
|
1719
1719
|
}
|
|
1720
1720
|
|
|
1721
1721
|
case 10:
|
|
1722
|
-
this.
|
|
1723
|
-
var t = this.
|
|
1724
|
-
cancelConsumed(this.
|
|
1722
|
+
this.n9_1 = 13;
|
|
1723
|
+
var t = this.p9_1;
|
|
1724
|
+
cancelConsumed(this.g4b_1, this.f4b_1);
|
|
1725
1725
|
throw t;
|
|
1726
1726
|
case 11:
|
|
1727
|
-
this.
|
|
1728
|
-
cancelConsumed(this.
|
|
1727
|
+
this.n9_1 = 13;
|
|
1728
|
+
cancelConsumed(this.g4b_1, this.f4b_1);
|
|
1729
1729
|
if (false) {
|
|
1730
|
-
this.
|
|
1730
|
+
this.m9_1 = 1;
|
|
1731
1731
|
continue $sm;
|
|
1732
1732
|
}
|
|
1733
1733
|
|
|
1734
|
-
this.
|
|
1734
|
+
this.m9_1 = 12;
|
|
1735
1735
|
continue $sm;
|
|
1736
1736
|
case 12:
|
|
1737
|
-
this.
|
|
1738
|
-
this.
|
|
1737
|
+
this.n9_1 = 14;
|
|
1738
|
+
this.m9_1 = 15;
|
|
1739
1739
|
continue $sm;
|
|
1740
1740
|
case 13:
|
|
1741
|
-
this.
|
|
1742
|
-
var tmp_3 = this.
|
|
1741
|
+
this.n9_1 = 14;
|
|
1742
|
+
var tmp_3 = this.p9_1;
|
|
1743
1743
|
if (tmp_3 instanceof ClosedSendChannelException) {
|
|
1744
|
-
var _unused_var__etf5q3 = this.
|
|
1745
|
-
this.
|
|
1744
|
+
var _unused_var__etf5q3 = this.p9_1;
|
|
1745
|
+
this.m9_1 = 15;
|
|
1746
1746
|
continue $sm;
|
|
1747
1747
|
} else {
|
|
1748
|
-
throw this.
|
|
1748
|
+
throw this.p9_1;
|
|
1749
1749
|
}
|
|
1750
1750
|
|
|
1751
1751
|
case 14:
|
|
1752
|
-
throw this.
|
|
1752
|
+
throw this.p9_1;
|
|
1753
1753
|
case 15:
|
|
1754
|
-
this.
|
|
1754
|
+
this.n9_1 = 14;
|
|
1755
1755
|
return Unit_instance;
|
|
1756
1756
|
}
|
|
1757
1757
|
} catch ($p) {
|
|
1758
1758
|
var e_1 = $p;
|
|
1759
|
-
if (this.
|
|
1759
|
+
if (this.n9_1 === 14) {
|
|
1760
1760
|
throw e_1;
|
|
1761
1761
|
} else {
|
|
1762
|
-
this.
|
|
1763
|
-
this.
|
|
1762
|
+
this.m9_1 = this.n9_1;
|
|
1763
|
+
this.p9_1 = e_1;
|
|
1764
1764
|
}
|
|
1765
1765
|
}
|
|
1766
1766
|
while (true);
|
|
1767
1767
|
};
|
|
1768
|
-
protoOf(ponger$slambda).
|
|
1769
|
-
var i = new ponger$slambda(this.
|
|
1770
|
-
i.
|
|
1768
|
+
protoOf(ponger$slambda).h2j = function ($this$launch, completion) {
|
|
1769
|
+
var i = new ponger$slambda(this.c4b_1, this.d4b_1, completion);
|
|
1770
|
+
i.e4b_1 = $this$launch;
|
|
1771
1771
|
return i;
|
|
1772
1772
|
};
|
|
1773
1773
|
function ponger$slambda_0($channel, $outgoing, resultContinuation) {
|
|
1774
1774
|
var i = new ponger$slambda($channel, $outgoing, resultContinuation);
|
|
1775
1775
|
var l = function ($this$launch, $completion) {
|
|
1776
|
-
return i.
|
|
1776
|
+
return i.g2j($this$launch, $completion);
|
|
1777
1777
|
};
|
|
1778
1778
|
l.$arity = 1;
|
|
1779
1779
|
return l;
|
|
1780
1780
|
}
|
|
1781
1781
|
function pinger$slambda$slambda($channel, resultContinuation) {
|
|
1782
|
-
this.
|
|
1782
|
+
this.r4b_1 = $channel;
|
|
1783
1783
|
CoroutineImpl.call(this, resultContinuation);
|
|
1784
1784
|
}
|
|
1785
|
-
protoOf(pinger$slambda$slambda).
|
|
1786
|
-
var tmp = this.
|
|
1787
|
-
tmp.
|
|
1788
|
-
tmp.
|
|
1789
|
-
return tmp.
|
|
1785
|
+
protoOf(pinger$slambda$slambda).g2j = function ($this$withTimeoutOrNull, $completion) {
|
|
1786
|
+
var tmp = this.h2j($this$withTimeoutOrNull, $completion);
|
|
1787
|
+
tmp.o9_1 = Unit_instance;
|
|
1788
|
+
tmp.p9_1 = null;
|
|
1789
|
+
return tmp.u9();
|
|
1790
1790
|
};
|
|
1791
|
-
protoOf(pinger$slambda$slambda).
|
|
1792
|
-
return this.
|
|
1791
|
+
protoOf(pinger$slambda$slambda).ga = function (p1, $completion) {
|
|
1792
|
+
return this.g2j((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1793
1793
|
};
|
|
1794
|
-
protoOf(pinger$slambda$slambda).
|
|
1795
|
-
var suspendResult = this.
|
|
1794
|
+
protoOf(pinger$slambda$slambda).u9 = function () {
|
|
1795
|
+
var suspendResult = this.o9_1;
|
|
1796
1796
|
$sm: do
|
|
1797
1797
|
try {
|
|
1798
|
-
var tmp = this.
|
|
1798
|
+
var tmp = this.m9_1;
|
|
1799
1799
|
switch (tmp) {
|
|
1800
1800
|
case 0:
|
|
1801
|
-
this.
|
|
1802
|
-
this.
|
|
1801
|
+
this.n9_1 = 3;
|
|
1802
|
+
this.m9_1 = 1;
|
|
1803
1803
|
continue $sm;
|
|
1804
1804
|
case 1:
|
|
1805
1805
|
if (!true) {
|
|
1806
|
-
this.
|
|
1806
|
+
this.m9_1 = 4;
|
|
1807
1807
|
continue $sm;
|
|
1808
1808
|
}
|
|
1809
1809
|
|
|
1810
|
-
this.
|
|
1811
|
-
suspendResult = this.
|
|
1810
|
+
this.m9_1 = 2;
|
|
1811
|
+
suspendResult = this.r4b_1.w2e(this);
|
|
1812
1812
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1813
1813
|
return suspendResult;
|
|
1814
1814
|
}
|
|
1815
1815
|
|
|
1816
1816
|
continue $sm;
|
|
1817
1817
|
case 2:
|
|
1818
|
-
this.
|
|
1818
|
+
this.m9_1 = 1;
|
|
1819
1819
|
continue $sm;
|
|
1820
1820
|
case 3:
|
|
1821
|
-
throw this.
|
|
1821
|
+
throw this.p9_1;
|
|
1822
1822
|
case 4:
|
|
1823
1823
|
return Unit_instance;
|
|
1824
1824
|
}
|
|
1825
1825
|
} catch ($p) {
|
|
1826
1826
|
var e = $p;
|
|
1827
|
-
if (this.
|
|
1827
|
+
if (this.n9_1 === 3) {
|
|
1828
1828
|
throw e;
|
|
1829
1829
|
} else {
|
|
1830
|
-
this.
|
|
1831
|
-
this.
|
|
1830
|
+
this.m9_1 = this.n9_1;
|
|
1831
|
+
this.p9_1 = e;
|
|
1832
1832
|
}
|
|
1833
1833
|
}
|
|
1834
1834
|
while (true);
|
|
1835
1835
|
};
|
|
1836
|
-
protoOf(pinger$slambda$slambda).
|
|
1837
|
-
var i = new pinger$slambda$slambda(this.
|
|
1838
|
-
i.
|
|
1836
|
+
protoOf(pinger$slambda$slambda).h2j = function ($this$withTimeoutOrNull, completion) {
|
|
1837
|
+
var i = new pinger$slambda$slambda(this.r4b_1, completion);
|
|
1838
|
+
i.s4b_1 = $this$withTimeoutOrNull;
|
|
1839
1839
|
return i;
|
|
1840
1840
|
};
|
|
1841
1841
|
function pinger$slambda$slambda_0($channel, resultContinuation) {
|
|
1842
1842
|
var i = new pinger$slambda$slambda($channel, resultContinuation);
|
|
1843
1843
|
var l = function ($this$withTimeoutOrNull, $completion) {
|
|
1844
|
-
return i.
|
|
1844
|
+
return i.g2j($this$withTimeoutOrNull, $completion);
|
|
1845
1845
|
};
|
|
1846
1846
|
l.$arity = 1;
|
|
1847
1847
|
return l;
|
|
1848
1848
|
}
|
|
1849
1849
|
function pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1850
|
-
this.
|
|
1851
|
-
this.
|
|
1852
|
-
this.
|
|
1850
|
+
this.b4c_1 = $outgoing;
|
|
1851
|
+
this.c4c_1 = $pingMessage;
|
|
1852
|
+
this.d4c_1 = $channel;
|
|
1853
1853
|
CoroutineImpl.call(this, resultContinuation);
|
|
1854
1854
|
}
|
|
1855
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1856
|
-
var tmp = this.
|
|
1857
|
-
tmp.
|
|
1858
|
-
tmp.
|
|
1859
|
-
return tmp.
|
|
1855
|
+
protoOf(pinger$slambda$slambda_1).g2j = function ($this$withTimeoutOrNull, $completion) {
|
|
1856
|
+
var tmp = this.h2j($this$withTimeoutOrNull, $completion);
|
|
1857
|
+
tmp.o9_1 = Unit_instance;
|
|
1858
|
+
tmp.p9_1 = null;
|
|
1859
|
+
return tmp.u9();
|
|
1860
1860
|
};
|
|
1861
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1862
|
-
return this.
|
|
1861
|
+
protoOf(pinger$slambda$slambda_1).ga = function (p1, $completion) {
|
|
1862
|
+
return this.g2j((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1863
1863
|
};
|
|
1864
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1865
|
-
var suspendResult = this.
|
|
1864
|
+
protoOf(pinger$slambda$slambda_1).u9 = function () {
|
|
1865
|
+
var suspendResult = this.o9_1;
|
|
1866
1866
|
$sm: do
|
|
1867
1867
|
try {
|
|
1868
|
-
var tmp = this.
|
|
1868
|
+
var tmp = this.m9_1;
|
|
1869
1869
|
switch (tmp) {
|
|
1870
1870
|
case 0:
|
|
1871
|
-
this.
|
|
1872
|
-
get_LOGGER().
|
|
1873
|
-
this.
|
|
1874
|
-
suspendResult = this.
|
|
1871
|
+
this.n9_1 = 6;
|
|
1872
|
+
get_LOGGER().e3j('WebSocket Pinger: sending ping frame');
|
|
1873
|
+
this.m9_1 = 1;
|
|
1874
|
+
suspendResult = this.b4c_1.s2e(new Ping(toByteArray(this.c4c_1, Charsets_getInstance().l37_1)), this);
|
|
1875
1875
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1876
1876
|
return suspendResult;
|
|
1877
1877
|
}
|
|
1878
1878
|
|
|
1879
1879
|
continue $sm;
|
|
1880
1880
|
case 1:
|
|
1881
|
-
this.
|
|
1881
|
+
this.m9_1 = 2;
|
|
1882
1882
|
continue $sm;
|
|
1883
1883
|
case 2:
|
|
1884
1884
|
if (!true) {
|
|
1885
|
-
this.
|
|
1885
|
+
this.m9_1 = 5;
|
|
1886
1886
|
continue $sm;
|
|
1887
1887
|
}
|
|
1888
1888
|
|
|
1889
|
-
this.
|
|
1890
|
-
suspendResult = this.
|
|
1889
|
+
this.m9_1 = 3;
|
|
1890
|
+
suspendResult = this.d4c_1.w2e(this);
|
|
1891
1891
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1892
1892
|
return suspendResult;
|
|
1893
1893
|
}
|
|
1894
1894
|
|
|
1895
1895
|
continue $sm;
|
|
1896
1896
|
case 3:
|
|
1897
|
-
this.
|
|
1898
|
-
if (decodeToString(this.
|
|
1899
|
-
get_LOGGER().
|
|
1900
|
-
this.
|
|
1897
|
+
this.f4c_1 = suspendResult;
|
|
1898
|
+
if (decodeToString(this.f4c_1.j49_1, 0, 0 + this.f4c_1.j49_1.length | 0) === this.c4c_1) {
|
|
1899
|
+
get_LOGGER().e3j('WebSocket Pinger: received valid pong frame ' + this.f4c_1.toString());
|
|
1900
|
+
this.m9_1 = 5;
|
|
1901
1901
|
continue $sm;
|
|
1902
1902
|
} else {
|
|
1903
|
-
this.
|
|
1903
|
+
this.m9_1 = 4;
|
|
1904
1904
|
continue $sm;
|
|
1905
1905
|
}
|
|
1906
1906
|
|
|
1907
1907
|
case 4:
|
|
1908
|
-
get_LOGGER().
|
|
1909
|
-
this.
|
|
1908
|
+
get_LOGGER().e3j('WebSocket Pinger: received invalid pong frame ' + this.f4c_1.toString() + ', continue waiting');
|
|
1909
|
+
this.m9_1 = 2;
|
|
1910
1910
|
continue $sm;
|
|
1911
1911
|
case 5:
|
|
1912
1912
|
return Unit_instance;
|
|
1913
1913
|
case 6:
|
|
1914
|
-
throw this.
|
|
1914
|
+
throw this.p9_1;
|
|
1915
1915
|
}
|
|
1916
1916
|
} catch ($p) {
|
|
1917
1917
|
var e = $p;
|
|
1918
|
-
if (this.
|
|
1918
|
+
if (this.n9_1 === 6) {
|
|
1919
1919
|
throw e;
|
|
1920
1920
|
} else {
|
|
1921
|
-
this.
|
|
1922
|
-
this.
|
|
1921
|
+
this.m9_1 = this.n9_1;
|
|
1922
|
+
this.p9_1 = e;
|
|
1923
1923
|
}
|
|
1924
1924
|
}
|
|
1925
1925
|
while (true);
|
|
1926
1926
|
};
|
|
1927
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1928
|
-
var i = new pinger$slambda$slambda_1(this.
|
|
1929
|
-
i.
|
|
1927
|
+
protoOf(pinger$slambda$slambda_1).h2j = function ($this$withTimeoutOrNull, completion) {
|
|
1928
|
+
var i = new pinger$slambda$slambda_1(this.b4c_1, this.c4c_1, this.d4c_1, completion);
|
|
1929
|
+
i.e4c_1 = $this$withTimeoutOrNull;
|
|
1930
1930
|
return i;
|
|
1931
1931
|
};
|
|
1932
1932
|
function pinger$slambda$slambda_2($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1933
1933
|
var i = new pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation);
|
|
1934
1934
|
var l = function ($this$withTimeoutOrNull, $completion) {
|
|
1935
|
-
return i.
|
|
1935
|
+
return i.g2j($this$withTimeoutOrNull, $completion);
|
|
1936
1936
|
};
|
|
1937
1937
|
l.$arity = 1;
|
|
1938
1938
|
return l;
|
|
1939
1939
|
}
|
|
1940
1940
|
function pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
1941
|
-
this.
|
|
1942
|
-
this.
|
|
1943
|
-
this.
|
|
1944
|
-
this.
|
|
1945
|
-
this.
|
|
1941
|
+
this.o4c_1 = $periodMillis;
|
|
1942
|
+
this.p4c_1 = $timeoutMillis;
|
|
1943
|
+
this.q4c_1 = $onTimeout;
|
|
1944
|
+
this.r4c_1 = $channel;
|
|
1945
|
+
this.s4c_1 = $outgoing;
|
|
1946
1946
|
CoroutineImpl.call(this, resultContinuation);
|
|
1947
1947
|
}
|
|
1948
|
-
protoOf(pinger$slambda).
|
|
1949
|
-
var tmp = this.
|
|
1950
|
-
tmp.
|
|
1951
|
-
tmp.
|
|
1952
|
-
return tmp.
|
|
1948
|
+
protoOf(pinger$slambda).g2j = function ($this$launch, $completion) {
|
|
1949
|
+
var tmp = this.h2j($this$launch, $completion);
|
|
1950
|
+
tmp.o9_1 = Unit_instance;
|
|
1951
|
+
tmp.p9_1 = null;
|
|
1952
|
+
return tmp.u9();
|
|
1953
1953
|
};
|
|
1954
|
-
protoOf(pinger$slambda).
|
|
1955
|
-
return this.
|
|
1954
|
+
protoOf(pinger$slambda).ga = function (p1, $completion) {
|
|
1955
|
+
return this.g2j((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1956
1956
|
};
|
|
1957
|
-
protoOf(pinger$slambda).
|
|
1958
|
-
var suspendResult = this.
|
|
1957
|
+
protoOf(pinger$slambda).u9 = function () {
|
|
1958
|
+
var suspendResult = this.o9_1;
|
|
1959
1959
|
$sm: do
|
|
1960
1960
|
try {
|
|
1961
|
-
var tmp = this.
|
|
1961
|
+
var tmp = this.m9_1;
|
|
1962
1962
|
switch (tmp) {
|
|
1963
1963
|
case 0:
|
|
1964
|
-
this.
|
|
1965
|
-
get_LOGGER().
|
|
1966
|
-
this.
|
|
1967
|
-
this.
|
|
1968
|
-
this.
|
|
1969
|
-
this.
|
|
1964
|
+
this.n9_1 = 9;
|
|
1965
|
+
get_LOGGER().e3j('Starting WebSocket pinger coroutine with period ' + this.o4c_1.toString() + ' ms and timeout ' + this.p4c_1.toString() + ' ms');
|
|
1966
|
+
this.v4c_1 = Random(getTimeMillis());
|
|
1967
|
+
this.u4c_1 = new Int8Array(32);
|
|
1968
|
+
this.n9_1 = 7;
|
|
1969
|
+
this.m9_1 = 1;
|
|
1970
1970
|
continue $sm;
|
|
1971
1971
|
case 1:
|
|
1972
1972
|
if (!true) {
|
|
1973
|
-
this.
|
|
1973
|
+
this.m9_1 = 6;
|
|
1974
1974
|
continue $sm;
|
|
1975
1975
|
}
|
|
1976
1976
|
|
|
1977
|
-
this.
|
|
1978
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1977
|
+
this.m9_1 = 2;
|
|
1978
|
+
suspendResult = withTimeoutOrNull(this.o4c_1, pinger$slambda$slambda_0(this.r4c_1, null), this);
|
|
1979
1979
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1980
1980
|
return suspendResult;
|
|
1981
1981
|
}
|
|
1982
1982
|
|
|
1983
1983
|
continue $sm;
|
|
1984
1984
|
case 2:
|
|
1985
|
-
this.
|
|
1986
|
-
var pingMessage = '[ping ' + hex(this.
|
|
1987
|
-
this.
|
|
1988
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1985
|
+
this.v4c_1.vl(this.u4c_1);
|
|
1986
|
+
var pingMessage = '[ping ' + hex(this.u4c_1) + ' ping]';
|
|
1987
|
+
this.m9_1 = 3;
|
|
1988
|
+
suspendResult = withTimeoutOrNull(this.p4c_1, pinger$slambda$slambda_2(this.s4c_1, pingMessage, this.r4c_1, null), this);
|
|
1989
1989
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1990
1990
|
return suspendResult;
|
|
1991
1991
|
}
|
|
@@ -1994,93 +1994,93 @@ protoOf(pinger$slambda).t9 = function () {
|
|
|
1994
1994
|
case 3:
|
|
1995
1995
|
var rc = suspendResult;
|
|
1996
1996
|
if (rc == null) {
|
|
1997
|
-
get_LOGGER().
|
|
1998
|
-
this.
|
|
1999
|
-
suspendResult = this.
|
|
1997
|
+
get_LOGGER().e3j('WebSocket pinger has timed out');
|
|
1998
|
+
this.m9_1 = 5;
|
|
1999
|
+
suspendResult = this.q4c_1(CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), 'Ping timeout'), this);
|
|
2000
2000
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2001
2001
|
return suspendResult;
|
|
2002
2002
|
}
|
|
2003
2003
|
continue $sm;
|
|
2004
2004
|
} else {
|
|
2005
|
-
this.
|
|
2005
|
+
this.m9_1 = 4;
|
|
2006
2006
|
continue $sm;
|
|
2007
2007
|
}
|
|
2008
2008
|
|
|
2009
2009
|
case 4:
|
|
2010
|
-
this.
|
|
2010
|
+
this.m9_1 = 1;
|
|
2011
2011
|
continue $sm;
|
|
2012
2012
|
case 5:
|
|
2013
|
-
this.
|
|
2013
|
+
this.m9_1 = 6;
|
|
2014
2014
|
continue $sm;
|
|
2015
2015
|
case 6:
|
|
2016
|
-
this.
|
|
2017
|
-
this.
|
|
2016
|
+
this.n9_1 = 9;
|
|
2017
|
+
this.m9_1 = 8;
|
|
2018
2018
|
continue $sm;
|
|
2019
2019
|
case 7:
|
|
2020
|
-
this.
|
|
2021
|
-
var tmp_0 = this.
|
|
2020
|
+
this.n9_1 = 9;
|
|
2021
|
+
var tmp_0 = this.p9_1;
|
|
2022
2022
|
if (tmp_0 instanceof CancellationException) {
|
|
2023
|
-
var ignore = this.
|
|
2024
|
-
this.
|
|
2023
|
+
var ignore = this.p9_1;
|
|
2024
|
+
this.m9_1 = 8;
|
|
2025
2025
|
continue $sm;
|
|
2026
2026
|
} else {
|
|
2027
|
-
var tmp_1 = this.
|
|
2027
|
+
var tmp_1 = this.p9_1;
|
|
2028
2028
|
if (tmp_1 instanceof ClosedReceiveChannelException) {
|
|
2029
|
-
var ignore_0 = this.
|
|
2030
|
-
this.
|
|
2029
|
+
var ignore_0 = this.p9_1;
|
|
2030
|
+
this.m9_1 = 8;
|
|
2031
2031
|
continue $sm;
|
|
2032
2032
|
} else {
|
|
2033
|
-
var tmp_2 = this.
|
|
2033
|
+
var tmp_2 = this.p9_1;
|
|
2034
2034
|
if (tmp_2 instanceof ClosedSendChannelException) {
|
|
2035
|
-
var ignore_1 = this.
|
|
2036
|
-
this.
|
|
2035
|
+
var ignore_1 = this.p9_1;
|
|
2036
|
+
this.m9_1 = 8;
|
|
2037
2037
|
continue $sm;
|
|
2038
2038
|
} else {
|
|
2039
|
-
var tmp_3 = this.
|
|
2039
|
+
var tmp_3 = this.p9_1;
|
|
2040
2040
|
if (tmp_3 instanceof ClosedByteChannelException) {
|
|
2041
|
-
var ignore_2 = this.
|
|
2042
|
-
this.
|
|
2041
|
+
var ignore_2 = this.p9_1;
|
|
2042
|
+
this.m9_1 = 8;
|
|
2043
2043
|
continue $sm;
|
|
2044
2044
|
} else {
|
|
2045
|
-
throw this.
|
|
2045
|
+
throw this.p9_1;
|
|
2046
2046
|
}
|
|
2047
2047
|
}
|
|
2048
2048
|
}
|
|
2049
2049
|
}
|
|
2050
2050
|
|
|
2051
2051
|
case 8:
|
|
2052
|
-
this.
|
|
2052
|
+
this.n9_1 = 9;
|
|
2053
2053
|
return Unit_instance;
|
|
2054
2054
|
case 9:
|
|
2055
|
-
throw this.
|
|
2055
|
+
throw this.p9_1;
|
|
2056
2056
|
}
|
|
2057
2057
|
} catch ($p) {
|
|
2058
2058
|
var e = $p;
|
|
2059
|
-
if (this.
|
|
2059
|
+
if (this.n9_1 === 9) {
|
|
2060
2060
|
throw e;
|
|
2061
2061
|
} else {
|
|
2062
|
-
this.
|
|
2063
|
-
this.
|
|
2062
|
+
this.m9_1 = this.n9_1;
|
|
2063
|
+
this.p9_1 = e;
|
|
2064
2064
|
}
|
|
2065
2065
|
}
|
|
2066
2066
|
while (true);
|
|
2067
2067
|
};
|
|
2068
|
-
protoOf(pinger$slambda).
|
|
2069
|
-
var i = new pinger$slambda(this.
|
|
2070
|
-
i.
|
|
2068
|
+
protoOf(pinger$slambda).h2j = function ($this$launch, completion) {
|
|
2069
|
+
var i = new pinger$slambda(this.o4c_1, this.p4c_1, this.q4c_1, this.r4c_1, this.s4c_1, completion);
|
|
2070
|
+
i.t4c_1 = $this$launch;
|
|
2071
2071
|
return i;
|
|
2072
2072
|
};
|
|
2073
2073
|
function pinger$slambda_0($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
2074
2074
|
var i = new pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation);
|
|
2075
2075
|
var l = function ($this$launch, $completion) {
|
|
2076
|
-
return i.
|
|
2076
|
+
return i.g2j($this$launch, $completion);
|
|
2077
2077
|
};
|
|
2078
2078
|
l.$arity = 1;
|
|
2079
2079
|
return l;
|
|
2080
2080
|
}
|
|
2081
2081
|
function pinger$lambda($actorJob) {
|
|
2082
2082
|
return function (it) {
|
|
2083
|
-
$actorJob.
|
|
2083
|
+
$actorJob.h1x();
|
|
2084
2084
|
return Unit_instance;
|
|
2085
2085
|
};
|
|
2086
2086
|
}
|
|
@@ -2097,9 +2097,9 @@ function Companion_2() {
|
|
|
2097
2097
|
var tmp = this;
|
|
2098
2098
|
// Inline function 'kotlin.apply' call
|
|
2099
2099
|
var this_0 = new WebSocketChannelsConfig();
|
|
2100
|
-
this_0.
|
|
2101
|
-
this_0.
|
|
2102
|
-
tmp.
|
|
2100
|
+
this_0.u45_1 = this_0.w4c();
|
|
2101
|
+
this_0.v45_1 = this_0.w4c();
|
|
2102
|
+
tmp.t45_1 = this_0;
|
|
2103
2103
|
}
|
|
2104
2104
|
var Companion_instance_2;
|
|
2105
2105
|
function Companion_getInstance_2() {
|
|
@@ -2109,21 +2109,21 @@ function Companion_getInstance_2() {
|
|
|
2109
2109
|
}
|
|
2110
2110
|
function WebSocketChannelsConfig() {
|
|
2111
2111
|
Companion_getInstance_2();
|
|
2112
|
-
this.
|
|
2113
|
-
this.
|
|
2112
|
+
this.u45_1 = Companion_getInstance_3().x4c_1;
|
|
2113
|
+
this.v45_1 = Companion_getInstance_3().x4c_1;
|
|
2114
2114
|
}
|
|
2115
|
-
protoOf(WebSocketChannelsConfig).
|
|
2116
|
-
return Companion_getInstance_3().
|
|
2115
|
+
protoOf(WebSocketChannelsConfig).w4c = function () {
|
|
2116
|
+
return Companion_getInstance_3().x4c_1;
|
|
2117
2117
|
};
|
|
2118
2118
|
function from(_this__u8e3s4, config) {
|
|
2119
2119
|
// Inline function 'kotlin.with' call
|
|
2120
2120
|
var tmp;
|
|
2121
|
-
if (config.
|
|
2121
|
+
if (config.y4c_1 === 2147483647) {
|
|
2122
2122
|
tmp = Channel(2147483647);
|
|
2123
|
-
} else if (config.
|
|
2124
|
-
tmp = Channel(config.
|
|
2125
|
-
} else if (config.
|
|
2126
|
-
tmp = new BoundedChannel(config.
|
|
2123
|
+
} else if (config.z4c_1.equals(ChannelOverflow_SUSPEND_getInstance())) {
|
|
2124
|
+
tmp = Channel(config.y4c_1, BufferOverflow_SUSPEND_getInstance());
|
|
2125
|
+
} else if (config.z4c_1.equals(ChannelOverflow_CLOSE_getInstance())) {
|
|
2126
|
+
tmp = new BoundedChannel(config.y4c_1);
|
|
2127
2127
|
} else {
|
|
2128
2128
|
// Inline function 'kotlin.error' call
|
|
2129
2129
|
var message = 'Unsupported channel config.';
|
|
@@ -2133,7 +2133,7 @@ function from(_this__u8e3s4, config) {
|
|
|
2133
2133
|
}
|
|
2134
2134
|
function Companion_3() {
|
|
2135
2135
|
Companion_instance_3 = this;
|
|
2136
|
-
this.
|
|
2136
|
+
this.x4c_1 = new ChannelConfig(2147483647, ChannelOverflow_SUSPEND_getInstance());
|
|
2137
2137
|
}
|
|
2138
2138
|
var Companion_instance_3;
|
|
2139
2139
|
function Companion_getInstance_3() {
|
|
@@ -2143,11 +2143,11 @@ function Companion_getInstance_3() {
|
|
|
2143
2143
|
}
|
|
2144
2144
|
function ChannelConfig(capacity, onOverflow) {
|
|
2145
2145
|
Companion_getInstance_3();
|
|
2146
|
-
this.
|
|
2147
|
-
this.
|
|
2146
|
+
this.y4c_1 = capacity;
|
|
2147
|
+
this.z4c_1 = onOverflow;
|
|
2148
2148
|
}
|
|
2149
|
-
protoOf(ChannelConfig).
|
|
2150
|
-
return this.
|
|
2149
|
+
protoOf(ChannelConfig).a4d = function () {
|
|
2150
|
+
return this.z4c_1.equals(ChannelOverflow_SUSPEND_getInstance()) && !(this.y4c_1 === 2147483647);
|
|
2151
2151
|
};
|
|
2152
2152
|
var ChannelOverflow_SUSPEND_instance;
|
|
2153
2153
|
var ChannelOverflow_CLOSE_instance;
|
|
@@ -2171,14 +2171,14 @@ function BoundedChannel$Companion$createDelegate$lambda($channel) {
|
|
|
2171
2171
|
} else {
|
|
2172
2172
|
tmp_0 = $channel._v;
|
|
2173
2173
|
}
|
|
2174
|
-
if (!tmp_0.
|
|
2174
|
+
if (!tmp_0.x2c()) {
|
|
2175
2175
|
var tmp_1;
|
|
2176
2176
|
if ($channel._v == null) {
|
|
2177
2177
|
throwUninitializedPropertyAccessException('channel');
|
|
2178
2178
|
} else {
|
|
2179
2179
|
tmp_1 = $channel._v;
|
|
2180
2180
|
}
|
|
2181
|
-
tmp_1.
|
|
2181
|
+
tmp_1.y2e(new ChannelOverflowException('Channel overflowed'));
|
|
2182
2182
|
tmp = Unit_instance;
|
|
2183
2183
|
}
|
|
2184
2184
|
return Unit_instance;
|
|
@@ -2186,7 +2186,7 @@ function BoundedChannel$Companion$createDelegate$lambda($channel) {
|
|
|
2186
2186
|
}
|
|
2187
2187
|
function Companion_4() {
|
|
2188
2188
|
}
|
|
2189
|
-
protoOf(Companion_4).
|
|
2189
|
+
protoOf(Companion_4).b4d = function (capacity) {
|
|
2190
2190
|
var channel = {_v: null};
|
|
2191
2191
|
var tmp = BufferOverflow_DROP_OLDEST_getInstance();
|
|
2192
2192
|
// Inline function 'kotlin.also' call
|
|
@@ -2199,42 +2199,42 @@ function Companion_getInstance_4() {
|
|
|
2199
2199
|
return Companion_instance_4;
|
|
2200
2200
|
}
|
|
2201
2201
|
function BoundedChannel(capacity, delegate) {
|
|
2202
|
-
delegate = delegate === VOID ? Companion_instance_4.
|
|
2203
|
-
this.
|
|
2202
|
+
delegate = delegate === VOID ? Companion_instance_4.b4d(capacity) : delegate;
|
|
2203
|
+
this.c4d_1 = delegate;
|
|
2204
2204
|
}
|
|
2205
|
-
protoOf(BoundedChannel).
|
|
2206
|
-
var result = this.
|
|
2205
|
+
protoOf(BoundedChannel).d4d = function (element) {
|
|
2206
|
+
var result = this.c4d_1.t2e(element);
|
|
2207
2207
|
if (!_ChannelResult___get_isSuccess__impl__odq1z9(result) && !_ChannelResult___get_isClosed__impl__mg7kuu(result)) {
|
|
2208
|
-
this.
|
|
2208
|
+
this.y2e(new ChannelOverflowException('Channel overflowed'));
|
|
2209
2209
|
}
|
|
2210
2210
|
return result;
|
|
2211
2211
|
};
|
|
2212
|
-
protoOf(BoundedChannel).
|
|
2213
|
-
return this.
|
|
2212
|
+
protoOf(BoundedChannel).t2e = function (element) {
|
|
2213
|
+
return this.d4d(element);
|
|
2214
2214
|
};
|
|
2215
|
-
protoOf(BoundedChannel).
|
|
2216
|
-
return this.
|
|
2215
|
+
protoOf(BoundedChannel).e4d = function (element, $completion) {
|
|
2216
|
+
return this.c4d_1.s2e(element, $completion);
|
|
2217
2217
|
};
|
|
2218
|
-
protoOf(BoundedChannel).
|
|
2219
|
-
return this.
|
|
2218
|
+
protoOf(BoundedChannel).s2e = function (element, $completion) {
|
|
2219
|
+
return this.e4d(element, $completion);
|
|
2220
2220
|
};
|
|
2221
|
-
protoOf(BoundedChannel).
|
|
2222
|
-
return this.
|
|
2221
|
+
protoOf(BoundedChannel).y2e = function (cause) {
|
|
2222
|
+
return this.c4d_1.y2e(cause);
|
|
2223
2223
|
};
|
|
2224
|
-
protoOf(BoundedChannel).
|
|
2225
|
-
return this.
|
|
2224
|
+
protoOf(BoundedChannel).x2c = function () {
|
|
2225
|
+
return this.c4d_1.x2c();
|
|
2226
2226
|
};
|
|
2227
|
-
protoOf(BoundedChannel).
|
|
2228
|
-
return this.
|
|
2227
|
+
protoOf(BoundedChannel).f4d = function ($completion) {
|
|
2228
|
+
return this.c4d_1.w2e($completion);
|
|
2229
2229
|
};
|
|
2230
|
-
protoOf(BoundedChannel).
|
|
2231
|
-
return this.
|
|
2230
|
+
protoOf(BoundedChannel).w2e = function ($completion) {
|
|
2231
|
+
return this.f4d($completion);
|
|
2232
2232
|
};
|
|
2233
2233
|
protoOf(BoundedChannel).t = function () {
|
|
2234
|
-
return this.
|
|
2234
|
+
return this.c4d_1.t();
|
|
2235
2235
|
};
|
|
2236
|
-
protoOf(BoundedChannel).
|
|
2237
|
-
this.
|
|
2236
|
+
protoOf(BoundedChannel).g1x = function (cause) {
|
|
2237
|
+
this.c4d_1.g1x(cause);
|
|
2238
2238
|
};
|
|
2239
2239
|
function ChannelOverflowException(message) {
|
|
2240
2240
|
RuntimeException_init_$Init$(message, this);
|
|
@@ -2253,16 +2253,16 @@ function WebSocketExtension() {
|
|
|
2253
2253
|
function WebSocketExtensionsConfig() {
|
|
2254
2254
|
var tmp = this;
|
|
2255
2255
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2256
|
-
tmp.
|
|
2256
|
+
tmp.i4d_1 = ArrayList_init_$Create$();
|
|
2257
2257
|
var tmp_0 = this;
|
|
2258
2258
|
// Inline function 'kotlin.arrayOf' call
|
|
2259
2259
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2260
2260
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2261
|
-
tmp_0.
|
|
2261
|
+
tmp_0.j4d_1 = [false, false, false];
|
|
2262
2262
|
}
|
|
2263
|
-
protoOf(WebSocketExtensionsConfig).
|
|
2263
|
+
protoOf(WebSocketExtensionsConfig).v1g = function () {
|
|
2264
2264
|
// Inline function 'kotlin.collections.map' call
|
|
2265
|
-
var this_0 = this.
|
|
2265
|
+
var this_0 = this.i4d_1;
|
|
2266
2266
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2267
2267
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2268
2268
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2274,14 +2274,14 @@ protoOf(WebSocketExtensionsConfig).r1g = function () {
|
|
|
2274
2274
|
return destination;
|
|
2275
2275
|
};
|
|
2276
2276
|
function parametersToString($this) {
|
|
2277
|
-
return $this.
|
|
2277
|
+
return $this.l4d_1.r() ? '' : '; ' + joinToString($this.l4d_1, ';');
|
|
2278
2278
|
}
|
|
2279
2279
|
function WebSocketExtensionHeader(name, parameters) {
|
|
2280
|
-
this.
|
|
2281
|
-
this.
|
|
2280
|
+
this.k4d_1 = name;
|
|
2281
|
+
this.l4d_1 = parameters;
|
|
2282
2282
|
}
|
|
2283
2283
|
protoOf(WebSocketExtensionHeader).toString = function () {
|
|
2284
|
-
return this.
|
|
2284
|
+
return this.k4d_1 + ' ' + parametersToString(this);
|
|
2285
2285
|
};
|
|
2286
2286
|
function parseWebSocketExtensions(value) {
|
|
2287
2287
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2317,9 +2317,9 @@ function WebSocketSession() {
|
|
|
2317
2317
|
function close(_this__u8e3s4, reason, $completion) {
|
|
2318
2318
|
reason = reason === VOID ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : reason;
|
|
2319
2319
|
var tmp = new $closeCOROUTINE$(_this__u8e3s4, reason, $completion);
|
|
2320
|
-
tmp.
|
|
2321
|
-
tmp.
|
|
2322
|
-
return tmp.
|
|
2320
|
+
tmp.o9_1 = Unit_instance;
|
|
2321
|
+
tmp.p9_1 = null;
|
|
2322
|
+
return tmp.u9();
|
|
2323
2323
|
}
|
|
2324
2324
|
function closeExceptionally(_this__u8e3s4, cause, $completion) {
|
|
2325
2325
|
var tmp;
|
|
@@ -2333,61 +2333,61 @@ function closeExceptionally(_this__u8e3s4, cause, $completion) {
|
|
|
2333
2333
|
}
|
|
2334
2334
|
function $closeCOROUTINE$(_this__u8e3s4, reason, resultContinuation) {
|
|
2335
2335
|
CoroutineImpl.call(this, resultContinuation);
|
|
2336
|
-
this.
|
|
2337
|
-
this.
|
|
2336
|
+
this.u4d_1 = _this__u8e3s4;
|
|
2337
|
+
this.v4d_1 = reason;
|
|
2338
2338
|
}
|
|
2339
|
-
protoOf($closeCOROUTINE$).
|
|
2340
|
-
var suspendResult = this.
|
|
2339
|
+
protoOf($closeCOROUTINE$).u9 = function () {
|
|
2340
|
+
var suspendResult = this.o9_1;
|
|
2341
2341
|
$sm: do
|
|
2342
2342
|
try {
|
|
2343
|
-
var tmp = this.
|
|
2343
|
+
var tmp = this.m9_1;
|
|
2344
2344
|
switch (tmp) {
|
|
2345
2345
|
case 0:
|
|
2346
|
-
this.
|
|
2347
|
-
this.
|
|
2348
|
-
this.
|
|
2349
|
-
suspendResult = this.
|
|
2346
|
+
this.n9_1 = 4;
|
|
2347
|
+
this.n9_1 = 3;
|
|
2348
|
+
this.m9_1 = 1;
|
|
2349
|
+
suspendResult = this.u4d_1.s45(Close_init_$Create$(this.v4d_1), this);
|
|
2350
2350
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2351
2351
|
return suspendResult;
|
|
2352
2352
|
}
|
|
2353
2353
|
|
|
2354
2354
|
continue $sm;
|
|
2355
2355
|
case 1:
|
|
2356
|
-
this.
|
|
2357
|
-
suspendResult = this.
|
|
2356
|
+
this.m9_1 = 2;
|
|
2357
|
+
suspendResult = this.u4d_1.t2w(this);
|
|
2358
2358
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2359
2359
|
return suspendResult;
|
|
2360
2360
|
}
|
|
2361
2361
|
|
|
2362
2362
|
continue $sm;
|
|
2363
2363
|
case 2:
|
|
2364
|
-
this.
|
|
2365
|
-
this.
|
|
2364
|
+
this.n9_1 = 4;
|
|
2365
|
+
this.m9_1 = 5;
|
|
2366
2366
|
continue $sm;
|
|
2367
2367
|
case 3:
|
|
2368
|
-
this.
|
|
2369
|
-
var tmp_0 = this.
|
|
2368
|
+
this.n9_1 = 4;
|
|
2369
|
+
var tmp_0 = this.p9_1;
|
|
2370
2370
|
if (tmp_0 instanceof Error) {
|
|
2371
|
-
var _unused_var__etf5q3 = this.
|
|
2372
|
-
this.
|
|
2371
|
+
var _unused_var__etf5q3 = this.p9_1;
|
|
2372
|
+
this.m9_1 = 5;
|
|
2373
2373
|
continue $sm;
|
|
2374
2374
|
} else {
|
|
2375
|
-
throw this.
|
|
2375
|
+
throw this.p9_1;
|
|
2376
2376
|
}
|
|
2377
2377
|
|
|
2378
2378
|
case 4:
|
|
2379
|
-
throw this.
|
|
2379
|
+
throw this.p9_1;
|
|
2380
2380
|
case 5:
|
|
2381
|
-
this.
|
|
2381
|
+
this.n9_1 = 4;
|
|
2382
2382
|
return Unit_instance;
|
|
2383
2383
|
}
|
|
2384
2384
|
} catch ($p) {
|
|
2385
2385
|
var e = $p;
|
|
2386
|
-
if (this.
|
|
2386
|
+
if (this.n9_1 === 4) {
|
|
2387
2387
|
throw e;
|
|
2388
2388
|
} else {
|
|
2389
|
-
this.
|
|
2390
|
-
this.
|
|
2389
|
+
this.m9_1 = this.n9_1;
|
|
2390
|
+
this.p9_1 = e;
|
|
2391
2391
|
}
|
|
2392
2392
|
}
|
|
2393
2393
|
while (true);
|
|
@@ -2413,8 +2413,8 @@ function Text_init_$Create$(text) {
|
|
|
2413
2413
|
function Close_init_$Init$(reason, $this) {
|
|
2414
2414
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
2415
2415
|
var builder = new Buffer();
|
|
2416
|
-
builder.
|
|
2417
|
-
writeText(builder, reason.
|
|
2416
|
+
builder.p2t(reason.k45_1);
|
|
2417
|
+
writeText(builder, reason.l45_1);
|
|
2418
2418
|
Close_init_$Init$_0(builder, $this);
|
|
2419
2419
|
return $this;
|
|
2420
2420
|
}
|
|
@@ -2426,7 +2426,7 @@ function Close_init_$Init$_0(packet, $this) {
|
|
|
2426
2426
|
return $this;
|
|
2427
2427
|
}
|
|
2428
2428
|
function Close_init_$Init$_1($this) {
|
|
2429
|
-
Close.call($this, Companion_getInstance_5().
|
|
2429
|
+
Close.call($this, Companion_getInstance_5().o49_1);
|
|
2430
2430
|
return $this;
|
|
2431
2431
|
}
|
|
2432
2432
|
function Close_init_$Create$_0() {
|
|
@@ -2456,9 +2456,9 @@ function Pong(data, disposableHandle) {
|
|
|
2456
2456
|
}
|
|
2457
2457
|
function Companion_5() {
|
|
2458
2458
|
Companion_instance_5 = this;
|
|
2459
|
-
this.
|
|
2459
|
+
this.o49_1 = new Int8Array(0);
|
|
2460
2460
|
}
|
|
2461
|
-
protoOf(Companion_5).
|
|
2461
|
+
protoOf(Companion_5).p49 = function (fin, frameType, data, rsv1, rsv2, rsv3) {
|
|
2462
2462
|
var tmp;
|
|
2463
2463
|
switch (frameType.a1_1) {
|
|
2464
2464
|
case 1:
|
|
@@ -2494,28 +2494,28 @@ function Frame(fin, frameType, data, disposableHandle, rsv1, rsv2, rsv3) {
|
|
|
2494
2494
|
rsv1 = rsv1 === VOID ? false : rsv1;
|
|
2495
2495
|
rsv2 = rsv2 === VOID ? false : rsv2;
|
|
2496
2496
|
rsv3 = rsv3 === VOID ? false : rsv3;
|
|
2497
|
-
this.
|
|
2498
|
-
this.
|
|
2499
|
-
this.
|
|
2500
|
-
this.
|
|
2501
|
-
this.
|
|
2502
|
-
this.
|
|
2503
|
-
this.
|
|
2497
|
+
this.h49_1 = fin;
|
|
2498
|
+
this.i49_1 = frameType;
|
|
2499
|
+
this.j49_1 = data;
|
|
2500
|
+
this.k49_1 = disposableHandle;
|
|
2501
|
+
this.l49_1 = rsv1;
|
|
2502
|
+
this.m49_1 = rsv2;
|
|
2503
|
+
this.n49_1 = rsv3;
|
|
2504
2504
|
}
|
|
2505
2505
|
protoOf(Frame).toString = function () {
|
|
2506
|
-
return 'Frame ' + this.
|
|
2506
|
+
return 'Frame ' + this.i49_1.toString() + ' (fin=' + this.h49_1 + ', buffer len = ' + this.j49_1.length + ')';
|
|
2507
2507
|
};
|
|
2508
2508
|
function get_OUTGOING_CHANNEL_CAPACITY() {
|
|
2509
2509
|
return OUTGOING_CHANNEL_CAPACITY;
|
|
2510
2510
|
}
|
|
2511
2511
|
var OUTGOING_CHANNEL_CAPACITY;
|
|
2512
2512
|
//region block: post-declaration
|
|
2513
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
2513
|
+
protoOf(DefaultWebSocketSessionImpl).s45 = send;
|
|
2514
2514
|
defineProp(protoOf(FrameTooBigException), 'message', function () {
|
|
2515
2515
|
return this.e();
|
|
2516
2516
|
});
|
|
2517
|
-
protoOf(BoundedChannel).
|
|
2518
|
-
protoOf(BoundedChannel).
|
|
2517
|
+
protoOf(BoundedChannel).a2f = close$default;
|
|
2518
|
+
protoOf(BoundedChannel).c2f = cancel$default;
|
|
2519
2519
|
//endregion
|
|
2520
2520
|
//region block: init
|
|
2521
2521
|
NonDisposableHandle_instance = new NonDisposableHandle();
|