@solibo/solibo-sdk 1.0.47 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/KmLogging-logging.mjs +110 -110
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1562 -1562
- package/KotlinBigInteger-bignum.mjs +1198 -1198
- 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 +52 -52
- 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 +340 -340
- package/cryptography-kotlin-cryptography-serialization-pem.mjs +16 -16
- package/index.js +2 -1
- package/kotlin-kotlin-stdlib.mjs +2908 -2340
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-coroutines-core.mjs +2141 -2112
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +32 -32
- package/kotlinx-io-kotlinx-io-core.mjs +454 -454
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1829 -1829
- 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 +4292 -4284
- package/ktor-ktor-client-logging.mjs +1083 -1083
- package/ktor-ktor-client-mock.mjs +288 -0
- package/ktor-ktor-client-mock.mjs.map +1 -1
- package/ktor-ktor-events.mjs +6 -6
- package/ktor-ktor-http-cio.mjs +480 -480
- package/ktor-ktor-http.mjs +995 -991
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +1090 -1090
- package/ktor-ktor-serialization-kotlinx-json.mjs +7 -7
- package/ktor-ktor-serialization-kotlinx.mjs +234 -234
- package/ktor-ktor-serialization.mjs +108 -108
- package/ktor-ktor-utils.mjs +871 -871
- package/ktor-ktor-websockets.mjs +742 -742
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.mjs +54019 -54000
- package/solibo-sdk-sdk.d.mts +51 -0
- package/solibo-sdk-sdk.mjs +3361 -2493
- package/solibo-sdk-sdk.mjs.map +1 -1
package/ktor-ktor-websockets.mjs
CHANGED
|
@@ -110,7 +110,7 @@ initMetadataForCompanion(Companion);
|
|
|
110
110
|
initMetadataForClass(Codes, 'Codes', VOID, Enum);
|
|
111
111
|
initMetadataForClass(CloseReason, 'CloseReason');
|
|
112
112
|
function send(frame, $completion) {
|
|
113
|
-
return this.
|
|
113
|
+
return this.c3y().d2e(frame, $completion);
|
|
114
114
|
}
|
|
115
115
|
initMetadataForInterface(WebSocketSession, 'WebSocketSession', VOID, VOID, [CoroutineScope], [1, 0]);
|
|
116
116
|
initMetadataForInterface(DefaultWebSocketSession, 'DefaultWebSocketSession', VOID, VOID, [WebSocketSession], [1, 0]);
|
|
@@ -174,14 +174,14 @@ function Companion() {
|
|
|
174
174
|
var _iterator__ex2g4s = this_0.t();
|
|
175
175
|
while (_iterator__ex2g4s.u()) {
|
|
176
176
|
var element = _iterator__ex2g4s.v();
|
|
177
|
-
var tmp$ret$0 = element.
|
|
177
|
+
var tmp$ret$0 = element.r3x_1;
|
|
178
178
|
destination.c3(tmp$ret$0, element);
|
|
179
179
|
}
|
|
180
|
-
tmp.
|
|
181
|
-
this.
|
|
180
|
+
tmp.s3x_1 = destination;
|
|
181
|
+
this.t3x_1 = Codes_INTERNAL_ERROR_getInstance();
|
|
182
182
|
}
|
|
183
|
-
protoOf(Companion).
|
|
184
|
-
return this.
|
|
183
|
+
protoOf(Companion).u3x = function (code) {
|
|
184
|
+
return this.s3x_1.z2(code);
|
|
185
185
|
};
|
|
186
186
|
var Companion_instance;
|
|
187
187
|
function Companion_getInstance() {
|
|
@@ -219,7 +219,7 @@ function Codes_initEntries() {
|
|
|
219
219
|
}
|
|
220
220
|
var $ENTRIES;
|
|
221
221
|
function CloseReason_init_$Init$(code, message, $this) {
|
|
222
|
-
CloseReason.call($this, code.
|
|
222
|
+
CloseReason.call($this, code.r3x_1, message);
|
|
223
223
|
return $this;
|
|
224
224
|
}
|
|
225
225
|
function CloseReason_init_$Create$(code, message) {
|
|
@@ -227,7 +227,7 @@ function CloseReason_init_$Create$(code, message) {
|
|
|
227
227
|
}
|
|
228
228
|
function Codes(name, ordinal, code) {
|
|
229
229
|
Enum.call(this, name, ordinal);
|
|
230
|
-
this.
|
|
230
|
+
this.r3x_1 = code;
|
|
231
231
|
}
|
|
232
232
|
function Codes_NORMAL_getInstance() {
|
|
233
233
|
Codes_initEntries();
|
|
@@ -278,19 +278,19 @@ function Codes_TRY_AGAIN_LATER_getInstance() {
|
|
|
278
278
|
return Codes_TRY_AGAIN_LATER_instance;
|
|
279
279
|
}
|
|
280
280
|
function CloseReason(code, message) {
|
|
281
|
-
this.
|
|
282
|
-
this.
|
|
281
|
+
this.v3x_1 = code;
|
|
282
|
+
this.w3x_1 = message;
|
|
283
283
|
}
|
|
284
|
-
protoOf(CloseReason).
|
|
285
|
-
return Companion_getInstance().
|
|
284
|
+
protoOf(CloseReason).x3x = function () {
|
|
285
|
+
return Companion_getInstance().u3x(this.v3x_1);
|
|
286
286
|
};
|
|
287
287
|
protoOf(CloseReason).toString = function () {
|
|
288
|
-
var tmp0_elvis_lhs = this.
|
|
289
|
-
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.
|
|
288
|
+
var tmp0_elvis_lhs = this.x3x();
|
|
289
|
+
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.v3x_1 : tmp0_elvis_lhs) + ', message=' + this.w3x_1 + ')';
|
|
290
290
|
};
|
|
291
291
|
protoOf(CloseReason).hashCode = function () {
|
|
292
|
-
var result = this.
|
|
293
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
292
|
+
var result = this.v3x_1;
|
|
293
|
+
result = imul(result, 31) + getStringHashCode(this.w3x_1) | 0;
|
|
294
294
|
return result;
|
|
295
295
|
};
|
|
296
296
|
protoOf(CloseReason).equals = function (other) {
|
|
@@ -298,9 +298,9 @@ protoOf(CloseReason).equals = function (other) {
|
|
|
298
298
|
return true;
|
|
299
299
|
if (!(other instanceof CloseReason))
|
|
300
300
|
return false;
|
|
301
|
-
if (!(this.
|
|
301
|
+
if (!(this.v3x_1 === other.v3x_1))
|
|
302
302
|
return false;
|
|
303
|
-
if (!(this.
|
|
303
|
+
if (!(this.w3x_1 === other.w3x_1))
|
|
304
304
|
return false;
|
|
305
305
|
return true;
|
|
306
306
|
};
|
|
@@ -330,101 +330,101 @@ function DefaultWebSocketSession() {
|
|
|
330
330
|
function DefaultWebSocketSession_0(session, pingIntervalMillis, timeoutMillis, channelsConfig) {
|
|
331
331
|
pingIntervalMillis = pingIntervalMillis === VOID ? 0n : pingIntervalMillis;
|
|
332
332
|
timeoutMillis = timeoutMillis === VOID ? 15000n : timeoutMillis;
|
|
333
|
-
channelsConfig = channelsConfig === VOID ? Companion_getInstance_2().
|
|
333
|
+
channelsConfig = channelsConfig === VOID ? Companion_getInstance_2().e3y_1 : channelsConfig;
|
|
334
334
|
_init_properties_DefaultWebSocketSession_kt__469s0y();
|
|
335
335
|
// Inline function 'kotlin.require' call
|
|
336
336
|
if (!!isInterface(session, DefaultWebSocketSession)) {
|
|
337
337
|
var message = 'Cannot wrap other DefaultWebSocketSession';
|
|
338
338
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
339
339
|
}
|
|
340
|
-
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.
|
|
340
|
+
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.f3y_1, channelsConfig.g3y_1);
|
|
341
341
|
}
|
|
342
342
|
function runIncomingProcessor($this, ponger) {
|
|
343
|
-
var tmp = get_IncomingProcessorCoroutineName().
|
|
343
|
+
var tmp = get_IncomingProcessorCoroutineName().wj(Dispatchers_getInstance().y27_1);
|
|
344
344
|
return launch($this, tmp, VOID, DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0($this, ponger, null));
|
|
345
345
|
}
|
|
346
346
|
function runOutgoingProcessor($this) {
|
|
347
|
-
var tmp = get_OutgoingProcessorCoroutineName().
|
|
347
|
+
var tmp = get_OutgoingProcessorCoroutineName().wj(Dispatchers_getInstance().y27_1);
|
|
348
348
|
var tmp_0 = CoroutineStart_UNDISPATCHED_getInstance();
|
|
349
349
|
return launch($this, tmp, tmp_0, DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0($this, null));
|
|
350
350
|
}
|
|
351
351
|
function outgoingProcessorLoop($this, $completion) {
|
|
352
352
|
var tmp = new $outgoingProcessorLoopCOROUTINE$($this, $completion);
|
|
353
|
-
tmp.
|
|
354
|
-
tmp.
|
|
355
|
-
return tmp.
|
|
353
|
+
tmp.n9_1 = Unit_instance;
|
|
354
|
+
tmp.o9_1 = null;
|
|
355
|
+
return tmp.t9();
|
|
356
356
|
}
|
|
357
357
|
function sendCloseSequence($this, reason, exception, $completion) {
|
|
358
358
|
var tmp = new $sendCloseSequenceCOROUTINE$($this, reason, exception, $completion);
|
|
359
|
-
tmp.
|
|
360
|
-
tmp.
|
|
361
|
-
return tmp.
|
|
359
|
+
tmp.n9_1 = Unit_instance;
|
|
360
|
+
tmp.o9_1 = null;
|
|
361
|
+
return tmp.t9();
|
|
362
362
|
}
|
|
363
363
|
function sendCloseSequence$default($this, reason, exception, $completion, $super) {
|
|
364
364
|
exception = exception === VOID ? null : exception;
|
|
365
365
|
return sendCloseSequence($this, reason, exception, $completion);
|
|
366
366
|
}
|
|
367
367
|
function tryClose($this) {
|
|
368
|
-
return $this.
|
|
368
|
+
return $this.l3z_1.atomicfu$compareAndSet(false, true);
|
|
369
369
|
}
|
|
370
370
|
function runOrCancelPinger($this) {
|
|
371
|
-
var interval = $this.
|
|
371
|
+
var interval = $this.o3z_1;
|
|
372
372
|
var tmp;
|
|
373
|
-
if ($this.
|
|
373
|
+
if ($this.l3z_1.kotlinx$atomicfu$value) {
|
|
374
374
|
tmp = null;
|
|
375
375
|
} else if (interval > 0n) {
|
|
376
|
-
var tmp_0 = $this.
|
|
377
|
-
var tmp_1 = $this.
|
|
376
|
+
var tmp_0 = $this.e3z_1.c3y();
|
|
377
|
+
var tmp_1 = $this.p3z_1;
|
|
378
378
|
tmp = pinger($this, tmp_0, interval, tmp_1, DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0($this, null));
|
|
379
379
|
} else {
|
|
380
380
|
tmp = null;
|
|
381
381
|
}
|
|
382
382
|
var newPinger = tmp;
|
|
383
|
-
var tmp0_safe_receiver = $this.
|
|
383
|
+
var tmp0_safe_receiver = $this.f3z_1.atomicfu$getAndSet(newPinger);
|
|
384
384
|
if (tmp0_safe_receiver == null)
|
|
385
385
|
null;
|
|
386
386
|
else
|
|
387
|
-
tmp0_safe_receiver.
|
|
388
|
-
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.
|
|
387
|
+
tmp0_safe_receiver.l2e();
|
|
388
|
+
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.e2e(Companion_getInstance_0().r3z_1));
|
|
389
389
|
if (tmp2_safe_receiver == null)
|
|
390
390
|
null;
|
|
391
391
|
else
|
|
392
|
-
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.
|
|
393
|
-
if ($this.
|
|
392
|
+
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.o2c_1);
|
|
393
|
+
if ($this.l3z_1.kotlinx$atomicfu$value && !(newPinger == null)) {
|
|
394
394
|
runOrCancelPinger($this);
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
397
|
function checkMaxFrameSize($this, packet, frame, $completion) {
|
|
398
398
|
var tmp = new $checkMaxFrameSizeCOROUTINE$($this, packet, frame, $completion);
|
|
399
|
-
tmp.
|
|
400
|
-
tmp.
|
|
401
|
-
return tmp.
|
|
399
|
+
tmp.n9_1 = Unit_instance;
|
|
400
|
+
tmp.o9_1 = null;
|
|
401
|
+
return tmp.t9();
|
|
402
402
|
}
|
|
403
403
|
function processIncomingExtensions($this, frame) {
|
|
404
404
|
// Inline function 'kotlin.collections.fold' call
|
|
405
405
|
var accumulator = frame;
|
|
406
|
-
var _iterator__ex2g4s = $this.
|
|
406
|
+
var _iterator__ex2g4s = $this.e40().t();
|
|
407
407
|
while (_iterator__ex2g4s.u()) {
|
|
408
408
|
var element = _iterator__ex2g4s.v();
|
|
409
409
|
var current = accumulator;
|
|
410
|
-
accumulator = element.
|
|
410
|
+
accumulator = element.f40(current);
|
|
411
411
|
}
|
|
412
412
|
return accumulator;
|
|
413
413
|
}
|
|
414
414
|
function processOutgoingExtensions($this, frame) {
|
|
415
415
|
// Inline function 'kotlin.collections.fold' call
|
|
416
416
|
var accumulator = frame;
|
|
417
|
-
var _iterator__ex2g4s = $this.
|
|
417
|
+
var _iterator__ex2g4s = $this.e40().t();
|
|
418
418
|
while (_iterator__ex2g4s.u()) {
|
|
419
419
|
var element = _iterator__ex2g4s.v();
|
|
420
420
|
var current = accumulator;
|
|
421
|
-
accumulator = element.
|
|
421
|
+
accumulator = element.g40(current);
|
|
422
422
|
}
|
|
423
423
|
return accumulator;
|
|
424
424
|
}
|
|
425
425
|
function Companion_0() {
|
|
426
426
|
Companion_instance_0 = this;
|
|
427
|
-
this.
|
|
427
|
+
this.r3z_1 = new Pong(new Int8Array(0), NonDisposableHandle_instance);
|
|
428
428
|
}
|
|
429
429
|
var Companion_instance_0;
|
|
430
430
|
function Companion_getInstance_0() {
|
|
@@ -433,130 +433,130 @@ function Companion_getInstance_0() {
|
|
|
433
433
|
return Companion_instance_0;
|
|
434
434
|
}
|
|
435
435
|
function DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
436
|
+
this.p40_1 = $incomingJob;
|
|
437
|
+
this.q40_1 = $outgoingJob;
|
|
438
|
+
this.r40_1 = this$0;
|
|
439
439
|
CoroutineImpl.call(this, resultContinuation);
|
|
440
440
|
}
|
|
441
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
442
|
-
var tmp = this.
|
|
443
|
-
tmp.
|
|
444
|
-
tmp.
|
|
445
|
-
return tmp.
|
|
441
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).q30 = function ($this$launch, $completion) {
|
|
442
|
+
var tmp = this.r30($this$launch, $completion);
|
|
443
|
+
tmp.n9_1 = Unit_instance;
|
|
444
|
+
tmp.o9_1 = null;
|
|
445
|
+
return tmp.t9();
|
|
446
446
|
};
|
|
447
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
448
|
-
return this.
|
|
447
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).fa = function (p1, $completion) {
|
|
448
|
+
return this.q30((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
449
449
|
};
|
|
450
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
451
|
-
var suspendResult = this.
|
|
450
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).t9 = function () {
|
|
451
|
+
var suspendResult = this.n9_1;
|
|
452
452
|
$sm: do
|
|
453
453
|
try {
|
|
454
|
-
var tmp = this.
|
|
454
|
+
var tmp = this.l9_1;
|
|
455
455
|
switch (tmp) {
|
|
456
456
|
case 0:
|
|
457
|
-
this.
|
|
458
|
-
this.
|
|
459
|
-
suspendResult = this.
|
|
457
|
+
this.m9_1 = 3;
|
|
458
|
+
this.l9_1 = 1;
|
|
459
|
+
suspendResult = this.p40_1.z1w(this);
|
|
460
460
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
461
461
|
return suspendResult;
|
|
462
462
|
}
|
|
463
463
|
|
|
464
464
|
continue $sm;
|
|
465
465
|
case 1:
|
|
466
|
-
this.
|
|
467
|
-
suspendResult = this.
|
|
466
|
+
this.l9_1 = 2;
|
|
467
|
+
suspendResult = this.q40_1.z1w(this);
|
|
468
468
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
469
469
|
return suspendResult;
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
continue $sm;
|
|
473
473
|
case 2:
|
|
474
|
-
this.
|
|
474
|
+
this.r40_1.h3z_1.d1x();
|
|
475
475
|
return Unit_instance;
|
|
476
476
|
case 3:
|
|
477
|
-
throw this.
|
|
477
|
+
throw this.o9_1;
|
|
478
478
|
}
|
|
479
479
|
} catch ($p) {
|
|
480
480
|
var e = $p;
|
|
481
|
-
if (this.
|
|
481
|
+
if (this.m9_1 === 3) {
|
|
482
482
|
throw e;
|
|
483
483
|
} else {
|
|
484
|
-
this.
|
|
485
|
-
this.
|
|
484
|
+
this.l9_1 = this.m9_1;
|
|
485
|
+
this.o9_1 = e;
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
488
|
while (true);
|
|
489
489
|
};
|
|
490
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
491
|
-
var i = new DefaultWebSocketSessionImpl$start$slambda(this.
|
|
492
|
-
i.
|
|
490
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).r30 = function ($this$launch, completion) {
|
|
491
|
+
var i = new DefaultWebSocketSessionImpl$start$slambda(this.p40_1, this.q40_1, this.r40_1, completion);
|
|
492
|
+
i.s40_1 = $this$launch;
|
|
493
493
|
return i;
|
|
494
494
|
};
|
|
495
495
|
function DefaultWebSocketSessionImpl$start$slambda_0($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
496
496
|
var i = new DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation);
|
|
497
497
|
var l = function ($this$launch, $completion) {
|
|
498
|
-
return i.
|
|
498
|
+
return i.q30($this$launch, $completion);
|
|
499
499
|
};
|
|
500
500
|
l.$arity = 1;
|
|
501
501
|
return l;
|
|
502
502
|
}
|
|
503
503
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation) {
|
|
504
|
-
this.
|
|
505
|
-
this.
|
|
504
|
+
this.b41_1 = this$0;
|
|
505
|
+
this.c41_1 = $ponger;
|
|
506
506
|
CoroutineImpl.call(this, resultContinuation);
|
|
507
507
|
}
|
|
508
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
509
|
-
var tmp = this.
|
|
510
|
-
tmp.
|
|
511
|
-
tmp.
|
|
512
|
-
return tmp.
|
|
508
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).q30 = function ($this$launch, $completion) {
|
|
509
|
+
var tmp = this.r30($this$launch, $completion);
|
|
510
|
+
tmp.n9_1 = Unit_instance;
|
|
511
|
+
tmp.o9_1 = null;
|
|
512
|
+
return tmp.t9();
|
|
513
513
|
};
|
|
514
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
515
|
-
return this.
|
|
514
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).fa = function (p1, $completion) {
|
|
515
|
+
return this.q30((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
516
516
|
};
|
|
517
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
518
|
-
var suspendResult = this.
|
|
517
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function () {
|
|
518
|
+
var suspendResult = this.n9_1;
|
|
519
519
|
$sm: do
|
|
520
520
|
try {
|
|
521
|
-
var tmp = this.
|
|
521
|
+
var tmp = this.l9_1;
|
|
522
522
|
switch (tmp) {
|
|
523
523
|
case 0:
|
|
524
|
-
this.
|
|
525
|
-
this.
|
|
526
|
-
this.
|
|
527
|
-
this.
|
|
528
|
-
this.
|
|
529
|
-
this.
|
|
524
|
+
this.m9_1 = 39;
|
|
525
|
+
this.n41_1 = null;
|
|
526
|
+
this.g41_1 = null;
|
|
527
|
+
this.f41_1 = false;
|
|
528
|
+
this.h41_1 = Unit_instance;
|
|
529
|
+
this.l9_1 = 1;
|
|
530
530
|
continue $sm;
|
|
531
531
|
case 1:
|
|
532
|
-
this.
|
|
532
|
+
this.l9_1 = 2;
|
|
533
533
|
continue $sm;
|
|
534
534
|
case 2:
|
|
535
|
-
this.
|
|
536
|
-
this.
|
|
537
|
-
this.
|
|
538
|
-
this.
|
|
535
|
+
this.m9_1 = 33;
|
|
536
|
+
this.m9_1 = 32;
|
|
537
|
+
this.r41_1 = this.b41_1.e3z_1.b3y();
|
|
538
|
+
this.l9_1 = 3;
|
|
539
539
|
continue $sm;
|
|
540
540
|
case 3:
|
|
541
|
-
this.
|
|
542
|
-
this.
|
|
543
|
-
this.
|
|
541
|
+
this.k41_1 = this.r41_1;
|
|
542
|
+
this.j41_1 = null;
|
|
543
|
+
this.l9_1 = 4;
|
|
544
544
|
continue $sm;
|
|
545
545
|
case 4:
|
|
546
|
-
this.
|
|
546
|
+
this.l9_1 = 5;
|
|
547
547
|
continue $sm;
|
|
548
548
|
case 5:
|
|
549
|
-
this.
|
|
549
|
+
this.l9_1 = 6;
|
|
550
550
|
continue $sm;
|
|
551
551
|
case 6:
|
|
552
|
-
this.
|
|
553
|
-
this.
|
|
554
|
-
this.
|
|
555
|
-
this.
|
|
552
|
+
this.m9_1 = 29;
|
|
553
|
+
this.m9_1 = 28;
|
|
554
|
+
this.q41_1 = this.k41_1.t();
|
|
555
|
+
this.l9_1 = 7;
|
|
556
556
|
continue $sm;
|
|
557
557
|
case 7:
|
|
558
|
-
this.
|
|
559
|
-
suspendResult = this.
|
|
558
|
+
this.l9_1 = 8;
|
|
559
|
+
suspendResult = this.q41_1.g2c(this);
|
|
560
560
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
561
561
|
return suspendResult;
|
|
562
562
|
}
|
|
@@ -564,46 +564,46 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).q9 = function
|
|
|
564
564
|
continue $sm;
|
|
565
565
|
case 8:
|
|
566
566
|
if (!suspendResult) {
|
|
567
|
-
this.
|
|
567
|
+
this.l9_1 = 26;
|
|
568
568
|
continue $sm;
|
|
569
569
|
}
|
|
570
570
|
|
|
571
|
-
var e = this.
|
|
572
|
-
this.
|
|
573
|
-
this.
|
|
571
|
+
var e = this.q41_1.v();
|
|
572
|
+
this.p41_1 = e;
|
|
573
|
+
this.l9_1 = 9;
|
|
574
574
|
continue $sm;
|
|
575
575
|
case 9:
|
|
576
|
-
this.
|
|
576
|
+
this.o41_1 = this.p41_1;
|
|
577
577
|
var this_0 = get_LOGGER();
|
|
578
578
|
if (get_isTraceEnabled(this_0)) {
|
|
579
|
-
this_0.
|
|
579
|
+
this_0.m3c('WebSocketSession(' + toString(this.d41_1) + ') receiving frame ' + this.o41_1.toString());
|
|
580
580
|
}
|
|
581
581
|
|
|
582
|
-
var tmp0_subject = this.
|
|
582
|
+
var tmp0_subject = this.o41_1;
|
|
583
583
|
if (tmp0_subject instanceof Close) {
|
|
584
|
-
if (!this.
|
|
585
|
-
this.
|
|
586
|
-
var tmp_0 = this.
|
|
587
|
-
var tmp1_elvis_lhs = readReason(this.
|
|
588
|
-
suspendResult = tmp_0.
|
|
584
|
+
if (!this.b41_1.c3y().i2c()) {
|
|
585
|
+
this.l9_1 = 18;
|
|
586
|
+
var tmp_0 = this.b41_1.c3y();
|
|
587
|
+
var tmp1_elvis_lhs = readReason(this.o41_1);
|
|
588
|
+
suspendResult = tmp_0.d2e(Close_init_$Create$(tmp1_elvis_lhs == null ? get_NORMAL_CLOSE() : tmp1_elvis_lhs), this);
|
|
589
589
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
590
590
|
return suspendResult;
|
|
591
591
|
}
|
|
592
592
|
continue $sm;
|
|
593
593
|
} else {
|
|
594
|
-
this.
|
|
594
|
+
this.l9_1 = 19;
|
|
595
595
|
continue $sm;
|
|
596
596
|
}
|
|
597
597
|
} else {
|
|
598
598
|
if (tmp0_subject instanceof Pong) {
|
|
599
|
-
var tmp2_safe_receiver = this.
|
|
599
|
+
var tmp2_safe_receiver = this.b41_1.f3z_1.kotlinx$atomicfu$value;
|
|
600
600
|
if (tmp2_safe_receiver == null) {
|
|
601
|
-
this.
|
|
602
|
-
this.
|
|
601
|
+
this.m41_1 = null;
|
|
602
|
+
this.l9_1 = 17;
|
|
603
603
|
continue $sm;
|
|
604
604
|
} else {
|
|
605
|
-
this.
|
|
606
|
-
suspendResult = tmp2_safe_receiver.
|
|
605
|
+
this.l9_1 = 16;
|
|
606
|
+
suspendResult = tmp2_safe_receiver.d2e(this.o41_1, this);
|
|
607
607
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
608
608
|
return suspendResult;
|
|
609
609
|
}
|
|
@@ -611,15 +611,15 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).q9 = function
|
|
|
611
611
|
}
|
|
612
612
|
} else {
|
|
613
613
|
if (tmp0_subject instanceof Ping) {
|
|
614
|
-
this.
|
|
615
|
-
suspendResult = this.
|
|
614
|
+
this.l9_1 = 15;
|
|
615
|
+
suspendResult = this.c41_1.d2e(this.o41_1, this);
|
|
616
616
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
617
617
|
return suspendResult;
|
|
618
618
|
}
|
|
619
619
|
continue $sm;
|
|
620
620
|
} else {
|
|
621
|
-
this.
|
|
622
|
-
suspendResult = checkMaxFrameSize(this.
|
|
621
|
+
this.l9_1 = 10;
|
|
622
|
+
suspendResult = checkMaxFrameSize(this.b41_1, this.g41_1, this.o41_1, this);
|
|
623
623
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
624
624
|
return suspendResult;
|
|
625
625
|
}
|
|
@@ -629,40 +629,40 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).q9 = function
|
|
|
629
629
|
}
|
|
630
630
|
|
|
631
631
|
case 10:
|
|
632
|
-
if (!this.
|
|
633
|
-
if (this.
|
|
634
|
-
this.
|
|
632
|
+
if (!this.o41_1.s41_1) {
|
|
633
|
+
if (this.n41_1 == null) {
|
|
634
|
+
this.n41_1 = this.o41_1;
|
|
635
635
|
}
|
|
636
|
-
if (this.
|
|
637
|
-
this.
|
|
636
|
+
if (this.g41_1 == null) {
|
|
637
|
+
this.g41_1 = BytePacketBuilder();
|
|
638
638
|
}
|
|
639
|
-
writeFully(this.
|
|
640
|
-
this.
|
|
639
|
+
writeFully(this.g41_1, this.o41_1.u41_1);
|
|
640
|
+
this.l9_1 = 21;
|
|
641
641
|
continue $sm;
|
|
642
642
|
} else {
|
|
643
|
-
this.
|
|
643
|
+
this.l9_1 = 11;
|
|
644
644
|
continue $sm;
|
|
645
645
|
}
|
|
646
646
|
|
|
647
647
|
case 11:
|
|
648
|
-
if (this.
|
|
649
|
-
this.
|
|
650
|
-
suspendResult = this.
|
|
648
|
+
if (this.n41_1 == null) {
|
|
649
|
+
this.l9_1 = 14;
|
|
650
|
+
suspendResult = this.b41_1.j3z_1.d2e(processIncomingExtensions(this.b41_1, this.o41_1), this);
|
|
651
651
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
652
652
|
return suspendResult;
|
|
653
653
|
}
|
|
654
654
|
continue $sm;
|
|
655
655
|
} else {
|
|
656
|
-
this.
|
|
656
|
+
this.l9_1 = 12;
|
|
657
657
|
continue $sm;
|
|
658
658
|
}
|
|
659
659
|
|
|
660
660
|
case 12:
|
|
661
|
-
writeFully(ensureNotNull(this.
|
|
662
|
-
var defragmented = Companion_getInstance_5().
|
|
663
|
-
this.
|
|
664
|
-
this.
|
|
665
|
-
suspendResult = this.
|
|
661
|
+
writeFully(ensureNotNull(this.g41_1), this.o41_1.u41_1);
|
|
662
|
+
var defragmented = Companion_getInstance_5().a42(true, this.n41_1.t41_1, readByteArray(build(this.g41_1)), this.n41_1.w41_1, this.n41_1.x41_1, this.n41_1.y41_1);
|
|
663
|
+
this.n41_1 = null;
|
|
664
|
+
this.l9_1 = 13;
|
|
665
|
+
suspendResult = this.b41_1.j3z_1.d2e(processIncomingExtensions(this.b41_1, defragmented), this);
|
|
666
666
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
667
667
|
return suspendResult;
|
|
668
668
|
}
|
|
@@ -670,316 +670,316 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).q9 = function
|
|
|
670
670
|
continue $sm;
|
|
671
671
|
case 13:
|
|
672
672
|
var tmp_1 = this;
|
|
673
|
-
tmp_1.
|
|
674
|
-
this.
|
|
673
|
+
tmp_1.l41_1 = Unit_instance;
|
|
674
|
+
this.l9_1 = 20;
|
|
675
675
|
continue $sm;
|
|
676
676
|
case 14:
|
|
677
|
-
this.
|
|
677
|
+
this.l9_1 = 21;
|
|
678
678
|
continue $sm;
|
|
679
679
|
case 15:
|
|
680
680
|
var tmp_2 = this;
|
|
681
|
-
tmp_2.
|
|
682
|
-
this.
|
|
681
|
+
tmp_2.l41_1 = Unit_instance;
|
|
682
|
+
this.l9_1 = 20;
|
|
683
683
|
continue $sm;
|
|
684
684
|
case 16:
|
|
685
685
|
var tmp_3 = this;
|
|
686
|
-
tmp_3.
|
|
687
|
-
this.
|
|
686
|
+
tmp_3.m41_1 = Unit_instance;
|
|
687
|
+
this.l9_1 = 17;
|
|
688
688
|
continue $sm;
|
|
689
689
|
case 17:
|
|
690
|
-
this.
|
|
691
|
-
this.
|
|
690
|
+
this.l41_1 = this.m41_1;
|
|
691
|
+
this.l9_1 = 20;
|
|
692
692
|
continue $sm;
|
|
693
693
|
case 18:
|
|
694
|
-
this.
|
|
694
|
+
this.l9_1 = 19;
|
|
695
695
|
continue $sm;
|
|
696
696
|
case 19:
|
|
697
|
-
this.
|
|
698
|
-
this.
|
|
697
|
+
this.f41_1 = true;
|
|
698
|
+
this.l9_1 = 22;
|
|
699
699
|
var tmp_4 = this;
|
|
700
700
|
continue $sm;
|
|
701
701
|
case 20:
|
|
702
702
|
if (false) {
|
|
703
|
-
this.
|
|
703
|
+
this.l9_1 = 9;
|
|
704
704
|
continue $sm;
|
|
705
705
|
}
|
|
706
706
|
|
|
707
|
-
this.
|
|
707
|
+
this.l9_1 = 21;
|
|
708
708
|
continue $sm;
|
|
709
709
|
case 21:
|
|
710
|
-
this.
|
|
710
|
+
this.l9_1 = 7;
|
|
711
711
|
continue $sm;
|
|
712
712
|
case 22:
|
|
713
|
-
this.
|
|
714
|
-
cancelConsumed(this.
|
|
715
|
-
this.
|
|
716
|
-
this.
|
|
713
|
+
this.m9_1 = 32;
|
|
714
|
+
cancelConsumed(this.k41_1, this.j41_1);
|
|
715
|
+
this.m9_1 = 39;
|
|
716
|
+
this.l9_1 = 23;
|
|
717
717
|
continue $sm;
|
|
718
718
|
case 23:
|
|
719
|
-
this.
|
|
720
|
-
this.
|
|
721
|
-
var tmp0_safe_receiver = this.
|
|
719
|
+
this.m9_1 = 39;
|
|
720
|
+
this.c41_1.l2e();
|
|
721
|
+
var tmp0_safe_receiver = this.g41_1;
|
|
722
722
|
if (tmp0_safe_receiver == null)
|
|
723
723
|
null;
|
|
724
724
|
else {
|
|
725
|
-
tmp0_safe_receiver.
|
|
725
|
+
tmp0_safe_receiver.c5();
|
|
726
726
|
}
|
|
727
727
|
|
|
728
|
-
this.
|
|
729
|
-
if (!this.
|
|
730
|
-
this.
|
|
731
|
-
suspendResult = close(this.
|
|
728
|
+
this.b41_1.j3z_1.l2e();
|
|
729
|
+
if (!this.f41_1) {
|
|
730
|
+
this.l9_1 = 24;
|
|
731
|
+
suspendResult = close(this.b41_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
732
732
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
733
733
|
return suspendResult;
|
|
734
734
|
}
|
|
735
735
|
continue $sm;
|
|
736
736
|
} else {
|
|
737
|
-
this.
|
|
737
|
+
this.l9_1 = 25;
|
|
738
738
|
continue $sm;
|
|
739
739
|
}
|
|
740
740
|
|
|
741
741
|
case 24:
|
|
742
|
-
this.
|
|
742
|
+
this.l9_1 = 25;
|
|
743
743
|
continue $sm;
|
|
744
744
|
case 25:
|
|
745
745
|
var tmp_5 = this;
|
|
746
746
|
return Unit_instance;
|
|
747
747
|
case 26:
|
|
748
|
-
this.
|
|
748
|
+
this.l9_1 = 27;
|
|
749
749
|
var tmp_6 = this;
|
|
750
750
|
continue $sm;
|
|
751
751
|
case 27:
|
|
752
|
-
this.
|
|
753
|
-
cancelConsumed(this.
|
|
754
|
-
this.
|
|
752
|
+
this.m9_1 = 32;
|
|
753
|
+
cancelConsumed(this.k41_1, this.j41_1);
|
|
754
|
+
this.l9_1 = 31;
|
|
755
755
|
continue $sm;
|
|
756
756
|
case 28:
|
|
757
|
-
this.
|
|
758
|
-
var tmp_7 = this.
|
|
757
|
+
this.m9_1 = 29;
|
|
758
|
+
var tmp_7 = this.o9_1;
|
|
759
759
|
if (tmp_7 instanceof Error) {
|
|
760
|
-
var e_0 = this.
|
|
760
|
+
var e_0 = this.o9_1;
|
|
761
761
|
var tmp_8 = this;
|
|
762
|
-
this.
|
|
762
|
+
this.j41_1 = e_0;
|
|
763
763
|
throw e_0;
|
|
764
764
|
} else {
|
|
765
|
-
throw this.
|
|
765
|
+
throw this.o9_1;
|
|
766
766
|
}
|
|
767
767
|
|
|
768
768
|
case 29:
|
|
769
|
-
this.
|
|
770
|
-
var t = this.
|
|
771
|
-
cancelConsumed(this.
|
|
769
|
+
this.m9_1 = 32;
|
|
770
|
+
var t = this.o9_1;
|
|
771
|
+
cancelConsumed(this.k41_1, this.j41_1);
|
|
772
772
|
throw t;
|
|
773
773
|
case 30:
|
|
774
|
-
this.
|
|
775
|
-
cancelConsumed(this.
|
|
774
|
+
this.m9_1 = 32;
|
|
775
|
+
cancelConsumed(this.k41_1, this.j41_1);
|
|
776
776
|
if (false) {
|
|
777
|
-
this.
|
|
777
|
+
this.l9_1 = 3;
|
|
778
778
|
continue $sm;
|
|
779
779
|
}
|
|
780
780
|
|
|
781
|
-
this.
|
|
781
|
+
this.l9_1 = 31;
|
|
782
782
|
continue $sm;
|
|
783
783
|
case 31:
|
|
784
|
-
this.
|
|
785
|
-
this.
|
|
786
|
-
this.
|
|
784
|
+
this.h41_1 = Unit_instance;
|
|
785
|
+
this.m9_1 = 39;
|
|
786
|
+
this.l9_1 = 36;
|
|
787
787
|
continue $sm;
|
|
788
788
|
case 32:
|
|
789
|
-
this.
|
|
790
|
-
var tmp_9 = this.
|
|
789
|
+
this.m9_1 = 33;
|
|
790
|
+
var tmp_9 = this.o9_1;
|
|
791
791
|
if (tmp_9 instanceof ClosedSendChannelException) {
|
|
792
|
-
var _unused_var__etf5q3 = this.
|
|
792
|
+
var _unused_var__etf5q3 = this.o9_1;
|
|
793
793
|
var tmp_10 = this;
|
|
794
|
-
tmp_10.
|
|
795
|
-
this.
|
|
796
|
-
this.
|
|
794
|
+
tmp_10.h41_1 = Unit_instance;
|
|
795
|
+
this.m9_1 = 39;
|
|
796
|
+
this.l9_1 = 36;
|
|
797
797
|
continue $sm;
|
|
798
798
|
} else {
|
|
799
|
-
var tmp_11 = this.
|
|
799
|
+
var tmp_11 = this.o9_1;
|
|
800
800
|
if (tmp_11 instanceof Error) {
|
|
801
|
-
var cause = this.
|
|
801
|
+
var cause = this.o9_1;
|
|
802
802
|
var tmp_12 = this;
|
|
803
|
-
this.
|
|
804
|
-
tmp_12.
|
|
805
|
-
this.
|
|
806
|
-
this.
|
|
803
|
+
this.c41_1.l2e();
|
|
804
|
+
tmp_12.h41_1 = this.b41_1.j3z_1.j2e(cause);
|
|
805
|
+
this.m9_1 = 39;
|
|
806
|
+
this.l9_1 = 36;
|
|
807
807
|
continue $sm;
|
|
808
808
|
} else {
|
|
809
|
-
throw this.
|
|
809
|
+
throw this.o9_1;
|
|
810
810
|
}
|
|
811
811
|
}
|
|
812
812
|
|
|
813
813
|
case 33:
|
|
814
|
-
this.
|
|
815
|
-
this.
|
|
816
|
-
this.
|
|
817
|
-
var tmp0_safe_receiver_0 = this.
|
|
814
|
+
this.m9_1 = 39;
|
|
815
|
+
this.i41_1 = this.o9_1;
|
|
816
|
+
this.c41_1.l2e();
|
|
817
|
+
var tmp0_safe_receiver_0 = this.g41_1;
|
|
818
818
|
if (tmp0_safe_receiver_0 == null)
|
|
819
819
|
null;
|
|
820
820
|
else {
|
|
821
|
-
tmp0_safe_receiver_0.
|
|
821
|
+
tmp0_safe_receiver_0.c5();
|
|
822
822
|
}
|
|
823
823
|
|
|
824
|
-
this.
|
|
825
|
-
if (!this.
|
|
826
|
-
this.
|
|
827
|
-
suspendResult = close(this.
|
|
824
|
+
this.b41_1.j3z_1.l2e();
|
|
825
|
+
if (!this.f41_1) {
|
|
826
|
+
this.l9_1 = 34;
|
|
827
|
+
suspendResult = close(this.b41_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
828
828
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
829
829
|
return suspendResult;
|
|
830
830
|
}
|
|
831
831
|
continue $sm;
|
|
832
832
|
} else {
|
|
833
|
-
this.
|
|
833
|
+
this.l9_1 = 35;
|
|
834
834
|
continue $sm;
|
|
835
835
|
}
|
|
836
836
|
|
|
837
837
|
case 34:
|
|
838
|
-
this.
|
|
838
|
+
this.l9_1 = 35;
|
|
839
839
|
continue $sm;
|
|
840
840
|
case 35:
|
|
841
|
-
throw this.
|
|
841
|
+
throw this.i41_1;
|
|
842
842
|
case 36:
|
|
843
|
-
this.
|
|
844
|
-
this.
|
|
845
|
-
this.
|
|
846
|
-
var tmp0_safe_receiver_1 = this.
|
|
843
|
+
this.e41_1 = this.h41_1;
|
|
844
|
+
this.m9_1 = 39;
|
|
845
|
+
this.c41_1.l2e();
|
|
846
|
+
var tmp0_safe_receiver_1 = this.g41_1;
|
|
847
847
|
if (tmp0_safe_receiver_1 == null)
|
|
848
848
|
null;
|
|
849
849
|
else {
|
|
850
|
-
tmp0_safe_receiver_1.
|
|
850
|
+
tmp0_safe_receiver_1.c5();
|
|
851
851
|
}
|
|
852
852
|
|
|
853
|
-
this.
|
|
854
|
-
if (!this.
|
|
855
|
-
this.
|
|
856
|
-
suspendResult = close(this.
|
|
853
|
+
this.b41_1.j3z_1.l2e();
|
|
854
|
+
if (!this.f41_1) {
|
|
855
|
+
this.l9_1 = 37;
|
|
856
|
+
suspendResult = close(this.b41_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
857
857
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
858
858
|
return suspendResult;
|
|
859
859
|
}
|
|
860
860
|
continue $sm;
|
|
861
861
|
} else {
|
|
862
|
-
this.
|
|
862
|
+
this.l9_1 = 38;
|
|
863
863
|
continue $sm;
|
|
864
864
|
}
|
|
865
865
|
|
|
866
866
|
case 37:
|
|
867
|
-
this.
|
|
867
|
+
this.l9_1 = 38;
|
|
868
868
|
continue $sm;
|
|
869
869
|
case 38:
|
|
870
870
|
return Unit_instance;
|
|
871
871
|
case 39:
|
|
872
|
-
throw this.
|
|
872
|
+
throw this.o9_1;
|
|
873
873
|
}
|
|
874
874
|
} catch ($p) {
|
|
875
875
|
var e_1 = $p;
|
|
876
|
-
if (this.
|
|
876
|
+
if (this.m9_1 === 39) {
|
|
877
877
|
throw e_1;
|
|
878
878
|
} else {
|
|
879
|
-
this.
|
|
880
|
-
this.
|
|
879
|
+
this.l9_1 = this.m9_1;
|
|
880
|
+
this.o9_1 = e_1;
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
883
|
while (true);
|
|
884
884
|
};
|
|
885
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
886
|
-
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.
|
|
887
|
-
i.
|
|
885
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r30 = function ($this$launch, completion) {
|
|
886
|
+
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.b41_1, this.c41_1, completion);
|
|
887
|
+
i.d41_1 = $this$launch;
|
|
888
888
|
return i;
|
|
889
889
|
};
|
|
890
890
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0(this$0, $ponger, resultContinuation) {
|
|
891
891
|
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation);
|
|
892
892
|
var l = function ($this$launch, $completion) {
|
|
893
|
-
return i.
|
|
893
|
+
return i.q30($this$launch, $completion);
|
|
894
894
|
};
|
|
895
895
|
l.$arity = 1;
|
|
896
896
|
return l;
|
|
897
897
|
}
|
|
898
898
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation) {
|
|
899
|
-
this.
|
|
899
|
+
this.j42_1 = this$0;
|
|
900
900
|
CoroutineImpl.call(this, resultContinuation);
|
|
901
901
|
}
|
|
902
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
903
|
-
var tmp = this.
|
|
904
|
-
tmp.
|
|
905
|
-
tmp.
|
|
906
|
-
return tmp.
|
|
902
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).q30 = function ($this$launch, $completion) {
|
|
903
|
+
var tmp = this.r30($this$launch, $completion);
|
|
904
|
+
tmp.n9_1 = Unit_instance;
|
|
905
|
+
tmp.o9_1 = null;
|
|
906
|
+
return tmp.t9();
|
|
907
907
|
};
|
|
908
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
909
|
-
return this.
|
|
908
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).fa = function (p1, $completion) {
|
|
909
|
+
return this.q30((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
910
910
|
};
|
|
911
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
912
|
-
var suspendResult = this.
|
|
911
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).t9 = function () {
|
|
912
|
+
var suspendResult = this.n9_1;
|
|
913
913
|
$sm: do
|
|
914
914
|
try {
|
|
915
|
-
var tmp = this.
|
|
915
|
+
var tmp = this.l9_1;
|
|
916
916
|
switch (tmp) {
|
|
917
917
|
case 0:
|
|
918
|
-
this.
|
|
919
|
-
this.
|
|
918
|
+
this.m9_1 = 13;
|
|
919
|
+
this.l9_1 = 1;
|
|
920
920
|
continue $sm;
|
|
921
921
|
case 1:
|
|
922
|
-
this.
|
|
922
|
+
this.l9_1 = 2;
|
|
923
923
|
continue $sm;
|
|
924
924
|
case 2:
|
|
925
|
-
this.
|
|
926
|
-
this.
|
|
927
|
-
this.
|
|
928
|
-
suspendResult = outgoingProcessorLoop(this.
|
|
925
|
+
this.m9_1 = 9;
|
|
926
|
+
this.m9_1 = 4;
|
|
927
|
+
this.l9_1 = 3;
|
|
928
|
+
suspendResult = outgoingProcessorLoop(this.j42_1, this);
|
|
929
929
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
930
930
|
return suspendResult;
|
|
931
931
|
}
|
|
932
932
|
|
|
933
933
|
continue $sm;
|
|
934
934
|
case 3:
|
|
935
|
-
this.
|
|
936
|
-
this.
|
|
935
|
+
this.m9_1 = 13;
|
|
936
|
+
this.l9_1 = 11;
|
|
937
937
|
continue $sm;
|
|
938
938
|
case 4:
|
|
939
|
-
this.
|
|
940
|
-
var tmp_0 = this.
|
|
939
|
+
this.m9_1 = 9;
|
|
940
|
+
var tmp_0 = this.o9_1;
|
|
941
941
|
if (tmp_0 instanceof ClosedSendChannelException) {
|
|
942
|
-
var _unused_var__etf5q3 = this.
|
|
943
|
-
this.
|
|
944
|
-
this.
|
|
942
|
+
var _unused_var__etf5q3 = this.o9_1;
|
|
943
|
+
this.m9_1 = 13;
|
|
944
|
+
this.l9_1 = 11;
|
|
945
945
|
continue $sm;
|
|
946
946
|
} else {
|
|
947
|
-
var tmp_1 = this.
|
|
947
|
+
var tmp_1 = this.o9_1;
|
|
948
948
|
if (tmp_1 instanceof ClosedReceiveChannelException) {
|
|
949
|
-
var _unused_var__etf5q3_0 = this.
|
|
950
|
-
this.
|
|
951
|
-
this.
|
|
949
|
+
var _unused_var__etf5q3_0 = this.o9_1;
|
|
950
|
+
this.m9_1 = 13;
|
|
951
|
+
this.l9_1 = 11;
|
|
952
952
|
continue $sm;
|
|
953
953
|
} else {
|
|
954
|
-
var tmp_2 = this.
|
|
954
|
+
var tmp_2 = this.o9_1;
|
|
955
955
|
if (tmp_2 instanceof CancellationException) {
|
|
956
|
-
var _unused_var__etf5q3_1 = this.
|
|
957
|
-
this.
|
|
958
|
-
suspendResult = sendCloseSequence$default(this.
|
|
956
|
+
var _unused_var__etf5q3_1 = this.o9_1;
|
|
957
|
+
this.l9_1 = 5;
|
|
958
|
+
suspendResult = sendCloseSequence$default(this.j42_1, CloseReason_init_$Create$(Codes_NORMAL_getInstance(), ''), VOID, this);
|
|
959
959
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
960
960
|
return suspendResult;
|
|
961
961
|
}
|
|
962
962
|
continue $sm;
|
|
963
963
|
} else {
|
|
964
|
-
var tmp_3 = this.
|
|
964
|
+
var tmp_3 = this.o9_1;
|
|
965
965
|
if (tmp_3 instanceof ChannelIOException) {
|
|
966
|
-
var _unused_var__etf5q3_2 = this.
|
|
967
|
-
this.
|
|
968
|
-
this.
|
|
966
|
+
var _unused_var__etf5q3_2 = this.o9_1;
|
|
967
|
+
this.m9_1 = 13;
|
|
968
|
+
this.l9_1 = 11;
|
|
969
969
|
continue $sm;
|
|
970
970
|
} else {
|
|
971
|
-
var tmp_4 = this.
|
|
971
|
+
var tmp_4 = this.o9_1;
|
|
972
972
|
if (tmp_4 instanceof Error) {
|
|
973
|
-
var cause = this.
|
|
974
|
-
this.
|
|
975
|
-
this.
|
|
976
|
-
suspendResult = closeExceptionally(this.
|
|
973
|
+
var cause = this.o9_1;
|
|
974
|
+
this.j42_1.k3z_1.c1x(CancellationException_init_$Create$('Failed to send frame', cause));
|
|
975
|
+
this.l9_1 = 6;
|
|
976
|
+
suspendResult = closeExceptionally(this.j42_1.e3z_1, cause, this);
|
|
977
977
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
978
978
|
return suspendResult;
|
|
979
979
|
}
|
|
980
980
|
continue $sm;
|
|
981
981
|
} else {
|
|
982
|
-
throw this.
|
|
982
|
+
throw this.o9_1;
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
985
|
}
|
|
@@ -987,18 +987,18 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).q9 = function
|
|
|
987
987
|
}
|
|
988
988
|
|
|
989
989
|
case 5:
|
|
990
|
-
this.
|
|
991
|
-
this.
|
|
990
|
+
this.m9_1 = 13;
|
|
991
|
+
this.l9_1 = 11;
|
|
992
992
|
continue $sm;
|
|
993
993
|
case 6:
|
|
994
|
-
this.
|
|
995
|
-
this.
|
|
994
|
+
this.m9_1 = 13;
|
|
995
|
+
this.l9_1 = 7;
|
|
996
996
|
continue $sm;
|
|
997
997
|
case 7:
|
|
998
|
-
this.
|
|
999
|
-
this.
|
|
1000
|
-
this.
|
|
1001
|
-
suspendResult = close(this.
|
|
998
|
+
this.m9_1 = 13;
|
|
999
|
+
this.j42_1.k3z_1.n2e();
|
|
1000
|
+
this.l9_1 = 8;
|
|
1001
|
+
suspendResult = close(this.j42_1.e3z_1, VOID, this);
|
|
1002
1002
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1003
1003
|
return suspendResult;
|
|
1004
1004
|
}
|
|
@@ -1007,23 +1007,23 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).q9 = function
|
|
|
1007
1007
|
case 8:
|
|
1008
1008
|
return Unit_instance;
|
|
1009
1009
|
case 9:
|
|
1010
|
-
this.
|
|
1011
|
-
this.
|
|
1012
|
-
this.
|
|
1013
|
-
this.
|
|
1014
|
-
suspendResult = close(this.
|
|
1010
|
+
this.m9_1 = 13;
|
|
1011
|
+
this.l42_1 = this.o9_1;
|
|
1012
|
+
this.j42_1.k3z_1.n2e();
|
|
1013
|
+
this.l9_1 = 10;
|
|
1014
|
+
suspendResult = close(this.j42_1.e3z_1, VOID, this);
|
|
1015
1015
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1016
1016
|
return suspendResult;
|
|
1017
1017
|
}
|
|
1018
1018
|
|
|
1019
1019
|
continue $sm;
|
|
1020
1020
|
case 10:
|
|
1021
|
-
throw this.
|
|
1021
|
+
throw this.l42_1;
|
|
1022
1022
|
case 11:
|
|
1023
|
-
this.
|
|
1024
|
-
this.
|
|
1025
|
-
this.
|
|
1026
|
-
suspendResult = close(this.
|
|
1023
|
+
this.m9_1 = 13;
|
|
1024
|
+
this.j42_1.k3z_1.n2e();
|
|
1025
|
+
this.l9_1 = 12;
|
|
1026
|
+
suspendResult = close(this.j42_1.e3z_1, VOID, this);
|
|
1027
1027
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1028
1028
|
return suspendResult;
|
|
1029
1029
|
}
|
|
@@ -1032,55 +1032,55 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).q9 = function
|
|
|
1032
1032
|
case 12:
|
|
1033
1033
|
return Unit_instance;
|
|
1034
1034
|
case 13:
|
|
1035
|
-
throw this.
|
|
1035
|
+
throw this.o9_1;
|
|
1036
1036
|
}
|
|
1037
1037
|
} catch ($p) {
|
|
1038
1038
|
var e = $p;
|
|
1039
|
-
if (this.
|
|
1039
|
+
if (this.m9_1 === 13) {
|
|
1040
1040
|
throw e;
|
|
1041
1041
|
} else {
|
|
1042
|
-
this.
|
|
1043
|
-
this.
|
|
1042
|
+
this.l9_1 = this.m9_1;
|
|
1043
|
+
this.o9_1 = e;
|
|
1044
1044
|
}
|
|
1045
1045
|
}
|
|
1046
1046
|
while (true);
|
|
1047
1047
|
};
|
|
1048
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
1049
|
-
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.
|
|
1050
|
-
i.
|
|
1048
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).r30 = function ($this$launch, completion) {
|
|
1049
|
+
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.j42_1, completion);
|
|
1050
|
+
i.k42_1 = $this$launch;
|
|
1051
1051
|
return i;
|
|
1052
1052
|
};
|
|
1053
1053
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0(this$0, resultContinuation) {
|
|
1054
1054
|
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation);
|
|
1055
1055
|
var l = function ($this$launch, $completion) {
|
|
1056
|
-
return i.
|
|
1056
|
+
return i.q30($this$launch, $completion);
|
|
1057
1057
|
};
|
|
1058
1058
|
l.$arity = 1;
|
|
1059
1059
|
return l;
|
|
1060
1060
|
}
|
|
1061
1061
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation) {
|
|
1062
|
-
this.
|
|
1062
|
+
this.u42_1 = this$0;
|
|
1063
1063
|
CoroutineImpl.call(this, resultContinuation);
|
|
1064
1064
|
}
|
|
1065
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1066
|
-
var tmp = this.
|
|
1067
|
-
tmp.
|
|
1068
|
-
tmp.
|
|
1069
|
-
return tmp.
|
|
1065
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).w42 = function (it, $completion) {
|
|
1066
|
+
var tmp = this.x42(it, $completion);
|
|
1067
|
+
tmp.n9_1 = Unit_instance;
|
|
1068
|
+
tmp.o9_1 = null;
|
|
1069
|
+
return tmp.t9();
|
|
1070
1070
|
};
|
|
1071
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1072
|
-
return this.
|
|
1071
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).fa = function (p1, $completion) {
|
|
1072
|
+
return this.w42(p1 instanceof CloseReason ? p1 : THROW_CCE(), $completion);
|
|
1073
1073
|
};
|
|
1074
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1075
|
-
var suspendResult = this.
|
|
1074
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).t9 = function () {
|
|
1075
|
+
var suspendResult = this.n9_1;
|
|
1076
1076
|
$sm: do
|
|
1077
1077
|
try {
|
|
1078
|
-
var tmp = this.
|
|
1078
|
+
var tmp = this.l9_1;
|
|
1079
1079
|
switch (tmp) {
|
|
1080
1080
|
case 0:
|
|
1081
|
-
this.
|
|
1082
|
-
this.
|
|
1083
|
-
suspendResult = sendCloseSequence(this.
|
|
1081
|
+
this.m9_1 = 2;
|
|
1082
|
+
this.l9_1 = 1;
|
|
1083
|
+
suspendResult = sendCloseSequence(this.u42_1, this.v42_1, IOException_init_$Create$('Ping timeout'), this);
|
|
1084
1084
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1085
1085
|
return suspendResult;
|
|
1086
1086
|
}
|
|
@@ -1089,50 +1089,50 @@ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).q9 = function ()
|
|
|
1089
1089
|
case 1:
|
|
1090
1090
|
return Unit_instance;
|
|
1091
1091
|
case 2:
|
|
1092
|
-
throw this.
|
|
1092
|
+
throw this.o9_1;
|
|
1093
1093
|
}
|
|
1094
1094
|
} catch ($p) {
|
|
1095
1095
|
var e = $p;
|
|
1096
|
-
if (this.
|
|
1096
|
+
if (this.m9_1 === 2) {
|
|
1097
1097
|
throw e;
|
|
1098
1098
|
} else {
|
|
1099
|
-
this.
|
|
1100
|
-
this.
|
|
1099
|
+
this.l9_1 = this.m9_1;
|
|
1100
|
+
this.o9_1 = e;
|
|
1101
1101
|
}
|
|
1102
1102
|
}
|
|
1103
1103
|
while (true);
|
|
1104
1104
|
};
|
|
1105
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1106
|
-
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.
|
|
1107
|
-
i.
|
|
1105
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).x42 = function (it, completion) {
|
|
1106
|
+
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.u42_1, completion);
|
|
1107
|
+
i.v42_1 = it;
|
|
1108
1108
|
return i;
|
|
1109
1109
|
};
|
|
1110
1110
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0(this$0, resultContinuation) {
|
|
1111
1111
|
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation);
|
|
1112
1112
|
var l = function (it, $completion) {
|
|
1113
|
-
return i.
|
|
1113
|
+
return i.w42(it, $completion);
|
|
1114
1114
|
};
|
|
1115
1115
|
l.$arity = 1;
|
|
1116
1116
|
return l;
|
|
1117
1117
|
}
|
|
1118
1118
|
function $outgoingProcessorLoopCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1119
1119
|
CoroutineImpl.call(this, resultContinuation);
|
|
1120
|
-
this.
|
|
1120
|
+
this.p3y_1 = _this__u8e3s4;
|
|
1121
1121
|
}
|
|
1122
|
-
protoOf($outgoingProcessorLoopCOROUTINE$).
|
|
1123
|
-
var suspendResult = this.
|
|
1122
|
+
protoOf($outgoingProcessorLoopCOROUTINE$).t9 = function () {
|
|
1123
|
+
var suspendResult = this.n9_1;
|
|
1124
1124
|
$sm: do
|
|
1125
1125
|
try {
|
|
1126
|
-
var tmp = this.
|
|
1126
|
+
var tmp = this.l9_1;
|
|
1127
1127
|
switch (tmp) {
|
|
1128
1128
|
case 0:
|
|
1129
|
-
this.
|
|
1130
|
-
this.
|
|
1131
|
-
this.
|
|
1129
|
+
this.m9_1 = 7;
|
|
1130
|
+
this.r3y_1 = this.p3y_1.k3z_1.t();
|
|
1131
|
+
this.l9_1 = 1;
|
|
1132
1132
|
continue $sm;
|
|
1133
1133
|
case 1:
|
|
1134
|
-
this.
|
|
1135
|
-
suspendResult = this.
|
|
1134
|
+
this.l9_1 = 2;
|
|
1135
|
+
suspendResult = this.r3y_1.g2c(this);
|
|
1136
1136
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1137
1137
|
return suspendResult;
|
|
1138
1138
|
}
|
|
@@ -1140,19 +1140,19 @@ protoOf($outgoingProcessorLoopCOROUTINE$).q9 = function () {
|
|
|
1140
1140
|
continue $sm;
|
|
1141
1141
|
case 2:
|
|
1142
1142
|
if (!suspendResult) {
|
|
1143
|
-
this.
|
|
1143
|
+
this.l9_1 = 6;
|
|
1144
1144
|
continue $sm;
|
|
1145
1145
|
}
|
|
1146
1146
|
|
|
1147
|
-
var frame = this.
|
|
1147
|
+
var frame = this.r3y_1.v();
|
|
1148
1148
|
var this_0 = get_LOGGER();
|
|
1149
1149
|
if (get_isTraceEnabled(this_0)) {
|
|
1150
|
-
this_0.
|
|
1150
|
+
this_0.m3c('Sending ' + frame.toString() + ' from session ' + toString(this.p3y_1));
|
|
1151
1151
|
}
|
|
1152
1152
|
|
|
1153
1153
|
if (frame instanceof Close) {
|
|
1154
|
-
this.
|
|
1155
|
-
suspendResult = sendCloseSequence$default(this.
|
|
1154
|
+
this.l9_1 = 3;
|
|
1155
|
+
suspendResult = sendCloseSequence$default(this.p3y_1, readReason(frame), VOID, this);
|
|
1156
1156
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1157
1157
|
return suspendResult;
|
|
1158
1158
|
}
|
|
@@ -1165,223 +1165,223 @@ protoOf($outgoingProcessorLoopCOROUTINE$).q9 = function () {
|
|
|
1165
1165
|
tmp_0 = frame instanceof Binary;
|
|
1166
1166
|
}
|
|
1167
1167
|
if (tmp_0) {
|
|
1168
|
-
this.
|
|
1169
|
-
this.
|
|
1168
|
+
this.q3y_1 = processOutgoingExtensions(this.p3y_1, frame);
|
|
1169
|
+
this.l9_1 = 4;
|
|
1170
1170
|
continue $sm;
|
|
1171
1171
|
} else {
|
|
1172
|
-
this.
|
|
1173
|
-
this.
|
|
1172
|
+
this.q3y_1 = frame;
|
|
1173
|
+
this.l9_1 = 4;
|
|
1174
1174
|
continue $sm;
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
1177
1177
|
|
|
1178
1178
|
case 3:
|
|
1179
|
-
this.
|
|
1179
|
+
this.l9_1 = 6;
|
|
1180
1180
|
var tmp_1 = this;
|
|
1181
1181
|
continue $sm;
|
|
1182
1182
|
case 4:
|
|
1183
|
-
var processedFrame = this.
|
|
1184
|
-
this.
|
|
1185
|
-
suspendResult = this.
|
|
1183
|
+
var processedFrame = this.q3y_1;
|
|
1184
|
+
this.l9_1 = 5;
|
|
1185
|
+
suspendResult = this.p3y_1.e3z_1.c3y().d2e(processedFrame, this);
|
|
1186
1186
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1187
1187
|
return suspendResult;
|
|
1188
1188
|
}
|
|
1189
1189
|
|
|
1190
1190
|
continue $sm;
|
|
1191
1191
|
case 5:
|
|
1192
|
-
this.
|
|
1192
|
+
this.l9_1 = 1;
|
|
1193
1193
|
continue $sm;
|
|
1194
1194
|
case 6:
|
|
1195
1195
|
return Unit_instance;
|
|
1196
1196
|
case 7:
|
|
1197
|
-
throw this.
|
|
1197
|
+
throw this.o9_1;
|
|
1198
1198
|
}
|
|
1199
1199
|
} catch ($p) {
|
|
1200
1200
|
var e = $p;
|
|
1201
|
-
if (this.
|
|
1201
|
+
if (this.m9_1 === 7) {
|
|
1202
1202
|
throw e;
|
|
1203
1203
|
} else {
|
|
1204
|
-
this.
|
|
1205
|
-
this.
|
|
1204
|
+
this.l9_1 = this.m9_1;
|
|
1205
|
+
this.o9_1 = e;
|
|
1206
1206
|
}
|
|
1207
1207
|
}
|
|
1208
1208
|
while (true);
|
|
1209
1209
|
};
|
|
1210
1210
|
function $sendCloseSequenceCOROUTINE$(_this__u8e3s4, reason, exception, resultContinuation) {
|
|
1211
1211
|
CoroutineImpl.call(this, resultContinuation);
|
|
1212
|
-
this.
|
|
1213
|
-
this.
|
|
1214
|
-
this.
|
|
1212
|
+
this.a3z_1 = _this__u8e3s4;
|
|
1213
|
+
this.b3z_1 = reason;
|
|
1214
|
+
this.c3z_1 = exception;
|
|
1215
1215
|
}
|
|
1216
|
-
protoOf($sendCloseSequenceCOROUTINE$).
|
|
1217
|
-
var suspendResult = this.
|
|
1216
|
+
protoOf($sendCloseSequenceCOROUTINE$).t9 = function () {
|
|
1217
|
+
var suspendResult = this.n9_1;
|
|
1218
1218
|
$sm: do
|
|
1219
1219
|
try {
|
|
1220
|
-
var tmp = this.
|
|
1220
|
+
var tmp = this.l9_1;
|
|
1221
1221
|
switch (tmp) {
|
|
1222
1222
|
case 0:
|
|
1223
|
-
this.
|
|
1224
|
-
if (!tryClose(this.
|
|
1223
|
+
this.m9_1 = 6;
|
|
1224
|
+
if (!tryClose(this.a3z_1))
|
|
1225
1225
|
return Unit_instance;
|
|
1226
1226
|
var this_0 = get_LOGGER();
|
|
1227
1227
|
if (get_isTraceEnabled(this_0)) {
|
|
1228
|
-
this_0.
|
|
1228
|
+
this_0.m3c('Sending Close Sequence for session ' + toString(this.a3z_1) + ' with reason ' + toString_0(this.b3z_1) + ' and exception ' + toString_0(this.c3z_1));
|
|
1229
1229
|
}
|
|
1230
1230
|
|
|
1231
|
-
this.
|
|
1231
|
+
this.a3z_1.h3z_1.a24();
|
|
1232
1232
|
var tmp_0 = this;
|
|
1233
|
-
var tmp0_elvis_lhs = this.
|
|
1234
|
-
tmp_0.
|
|
1235
|
-
this.
|
|
1233
|
+
var tmp0_elvis_lhs = this.b3z_1;
|
|
1234
|
+
tmp_0.d3z_1 = tmp0_elvis_lhs == null ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : tmp0_elvis_lhs;
|
|
1235
|
+
this.l9_1 = 1;
|
|
1236
1236
|
continue $sm;
|
|
1237
1237
|
case 1:
|
|
1238
|
-
this.
|
|
1239
|
-
runOrCancelPinger(this.
|
|
1240
|
-
if (!(this.
|
|
1241
|
-
this.
|
|
1242
|
-
suspendResult = this.
|
|
1238
|
+
this.m9_1 = 5;
|
|
1239
|
+
runOrCancelPinger(this.a3z_1);
|
|
1240
|
+
if (!(this.d3z_1.v3x_1 === Codes_CLOSED_ABNORMALLY_getInstance().r3x_1)) {
|
|
1241
|
+
this.l9_1 = 2;
|
|
1242
|
+
suspendResult = this.a3z_1.e3z_1.c3y().d2e(Close_init_$Create$(this.d3z_1), this);
|
|
1243
1243
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1244
1244
|
return suspendResult;
|
|
1245
1245
|
}
|
|
1246
1246
|
continue $sm;
|
|
1247
1247
|
} else {
|
|
1248
|
-
this.
|
|
1248
|
+
this.l9_1 = 3;
|
|
1249
1249
|
continue $sm;
|
|
1250
1250
|
}
|
|
1251
1251
|
|
|
1252
1252
|
case 2:
|
|
1253
|
-
this.
|
|
1253
|
+
this.l9_1 = 3;
|
|
1254
1254
|
continue $sm;
|
|
1255
1255
|
case 3:
|
|
1256
|
-
this.
|
|
1257
|
-
this.
|
|
1256
|
+
this.m9_1 = 6;
|
|
1257
|
+
this.l9_1 = 4;
|
|
1258
1258
|
continue $sm;
|
|
1259
1259
|
case 4:
|
|
1260
|
-
this.
|
|
1261
|
-
this.
|
|
1262
|
-
if (!(this.
|
|
1263
|
-
this.
|
|
1264
|
-
this.
|
|
1260
|
+
this.m9_1 = 6;
|
|
1261
|
+
this.a3z_1.g3z_1.y23(this.d3z_1);
|
|
1262
|
+
if (!(this.c3z_1 == null)) {
|
|
1263
|
+
this.a3z_1.k3z_1.j2e(this.c3z_1);
|
|
1264
|
+
this.a3z_1.j3z_1.j2e(this.c3z_1);
|
|
1265
1265
|
}
|
|
1266
1266
|
|
|
1267
1267
|
return Unit_instance;
|
|
1268
1268
|
case 5:
|
|
1269
|
-
this.
|
|
1270
|
-
var t = this.
|
|
1271
|
-
this.
|
|
1272
|
-
if (!(this.
|
|
1273
|
-
this.
|
|
1274
|
-
this.
|
|
1269
|
+
this.m9_1 = 6;
|
|
1270
|
+
var t = this.o9_1;
|
|
1271
|
+
this.a3z_1.g3z_1.y23(this.d3z_1);
|
|
1272
|
+
if (!(this.c3z_1 == null)) {
|
|
1273
|
+
this.a3z_1.k3z_1.j2e(this.c3z_1);
|
|
1274
|
+
this.a3z_1.j3z_1.j2e(this.c3z_1);
|
|
1275
1275
|
}
|
|
1276
1276
|
|
|
1277
1277
|
throw t;
|
|
1278
1278
|
case 6:
|
|
1279
|
-
throw this.
|
|
1279
|
+
throw this.o9_1;
|
|
1280
1280
|
}
|
|
1281
1281
|
} catch ($p) {
|
|
1282
1282
|
var e = $p;
|
|
1283
|
-
if (this.
|
|
1283
|
+
if (this.m9_1 === 6) {
|
|
1284
1284
|
throw e;
|
|
1285
1285
|
} else {
|
|
1286
|
-
this.
|
|
1287
|
-
this.
|
|
1286
|
+
this.l9_1 = this.m9_1;
|
|
1287
|
+
this.o9_1 = e;
|
|
1288
1288
|
}
|
|
1289
1289
|
}
|
|
1290
1290
|
while (true);
|
|
1291
1291
|
};
|
|
1292
1292
|
function $checkMaxFrameSizeCOROUTINE$(_this__u8e3s4, packet, frame, resultContinuation) {
|
|
1293
1293
|
CoroutineImpl.call(this, resultContinuation);
|
|
1294
|
-
this.
|
|
1295
|
-
this.
|
|
1296
|
-
this.
|
|
1294
|
+
this.a40_1 = _this__u8e3s4;
|
|
1295
|
+
this.b40_1 = packet;
|
|
1296
|
+
this.c40_1 = frame;
|
|
1297
1297
|
}
|
|
1298
|
-
protoOf($checkMaxFrameSizeCOROUTINE$).
|
|
1299
|
-
var suspendResult = this.
|
|
1298
|
+
protoOf($checkMaxFrameSizeCOROUTINE$).t9 = function () {
|
|
1299
|
+
var suspendResult = this.n9_1;
|
|
1300
1300
|
$sm: do
|
|
1301
1301
|
try {
|
|
1302
|
-
var tmp = this.
|
|
1302
|
+
var tmp = this.l9_1;
|
|
1303
1303
|
switch (tmp) {
|
|
1304
1304
|
case 0:
|
|
1305
|
-
this.
|
|
1305
|
+
this.m9_1 = 3;
|
|
1306
1306
|
var tmp_0 = this;
|
|
1307
|
-
var tmp_1 = this.
|
|
1308
|
-
var tmp0_safe_receiver = this.
|
|
1307
|
+
var tmp_1 = this.c40_1.u41_1.length;
|
|
1308
|
+
var tmp0_safe_receiver = this.b40_1;
|
|
1309
1309
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_size(tmp0_safe_receiver);
|
|
1310
|
-
tmp_0.
|
|
1311
|
-
if (fromInt(this.
|
|
1312
|
-
var tmp2_safe_receiver = this.
|
|
1310
|
+
tmp_0.d40_1 = tmp_1 + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
1311
|
+
if (fromInt(this.d40_1) > this.a40_1.a3y()) {
|
|
1312
|
+
var tmp2_safe_receiver = this.b40_1;
|
|
1313
1313
|
if (tmp2_safe_receiver == null)
|
|
1314
1314
|
null;
|
|
1315
1315
|
else {
|
|
1316
|
-
tmp2_safe_receiver.
|
|
1316
|
+
tmp2_safe_receiver.c5();
|
|
1317
1317
|
}
|
|
1318
|
-
this.
|
|
1319
|
-
suspendResult = close(this.
|
|
1318
|
+
this.l9_1 = 2;
|
|
1319
|
+
suspendResult = close(this.a40_1, CloseReason_init_$Create$(Codes_TOO_BIG_getInstance(), 'Frame is too big: ' + this.d40_1 + '. Max size is ' + this.a40_1.a3y().toString()), this);
|
|
1320
1320
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1321
1321
|
return suspendResult;
|
|
1322
1322
|
}
|
|
1323
1323
|
continue $sm;
|
|
1324
1324
|
} else {
|
|
1325
|
-
this.
|
|
1325
|
+
this.l9_1 = 1;
|
|
1326
1326
|
continue $sm;
|
|
1327
1327
|
}
|
|
1328
1328
|
|
|
1329
1329
|
case 1:
|
|
1330
1330
|
return Unit_instance;
|
|
1331
1331
|
case 2:
|
|
1332
|
-
throw new FrameTooBigException(fromInt(this.
|
|
1332
|
+
throw new FrameTooBigException(fromInt(this.d40_1));
|
|
1333
1333
|
case 3:
|
|
1334
|
-
throw this.
|
|
1334
|
+
throw this.o9_1;
|
|
1335
1335
|
}
|
|
1336
1336
|
} catch ($p) {
|
|
1337
1337
|
var e = $p;
|
|
1338
|
-
if (this.
|
|
1338
|
+
if (this.m9_1 === 3) {
|
|
1339
1339
|
throw e;
|
|
1340
1340
|
} else {
|
|
1341
|
-
this.
|
|
1342
|
-
this.
|
|
1341
|
+
this.l9_1 = this.m9_1;
|
|
1342
|
+
this.o9_1 = e;
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
1345
1345
|
while (true);
|
|
1346
1346
|
};
|
|
1347
1347
|
function DefaultWebSocketSessionImpl(raw, pingIntervalMillis, timeoutMillis, incomingFramesConfig, outgoingFramesConfig) {
|
|
1348
1348
|
Companion_getInstance_0();
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1353
|
-
this.
|
|
1354
|
-
this.
|
|
1355
|
-
this.
|
|
1356
|
-
this.
|
|
1349
|
+
this.e3z_1 = raw;
|
|
1350
|
+
this.f3z_1 = atomic$ref$1(null);
|
|
1351
|
+
this.g3z_1 = CompletableDeferred();
|
|
1352
|
+
this.h3z_1 = Job();
|
|
1353
|
+
this.i3z_1 = this.e3z_1.t1v().uj(Key_instance).wj(this.h3z_1).wj(new CoroutineName('ws-default'));
|
|
1354
|
+
this.j3z_1 = from(Factory_getInstance(), incomingFramesConfig);
|
|
1355
|
+
this.k3z_1 = from(Factory_getInstance(), outgoingFramesConfig);
|
|
1356
|
+
this.l3z_1 = atomic$boolean$1(false);
|
|
1357
1357
|
var tmp = this;
|
|
1358
1358
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1359
|
-
tmp.
|
|
1360
|
-
this.
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1363
|
-
this.
|
|
1359
|
+
tmp.m3z_1 = ArrayList_init_$Create$();
|
|
1360
|
+
this.n3z_1 = atomic$boolean$1(false);
|
|
1361
|
+
this.o3z_1 = pingIntervalMillis;
|
|
1362
|
+
this.p3z_1 = timeoutMillis;
|
|
1363
|
+
this.q3z_1 = this.g3z_1;
|
|
1364
1364
|
}
|
|
1365
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1366
|
-
return this.
|
|
1365
|
+
protoOf(DefaultWebSocketSessionImpl).t1v = function () {
|
|
1366
|
+
return this.i3z_1;
|
|
1367
1367
|
};
|
|
1368
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1369
|
-
return this.
|
|
1368
|
+
protoOf(DefaultWebSocketSessionImpl).b3y = function () {
|
|
1369
|
+
return this.j3z_1;
|
|
1370
1370
|
};
|
|
1371
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1372
|
-
return this.
|
|
1371
|
+
protoOf(DefaultWebSocketSessionImpl).c3y = function () {
|
|
1372
|
+
return this.k3z_1;
|
|
1373
1373
|
};
|
|
1374
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1375
|
-
return this.
|
|
1374
|
+
protoOf(DefaultWebSocketSessionImpl).e40 = function () {
|
|
1375
|
+
return this.m3z_1;
|
|
1376
1376
|
};
|
|
1377
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1378
|
-
this.
|
|
1377
|
+
protoOf(DefaultWebSocketSessionImpl).z3x = function (value) {
|
|
1378
|
+
this.e3z_1.z3x(value);
|
|
1379
1379
|
};
|
|
1380
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1381
|
-
return this.
|
|
1380
|
+
protoOf(DefaultWebSocketSessionImpl).a3y = function () {
|
|
1381
|
+
return this.e3z_1.a3y();
|
|
1382
1382
|
};
|
|
1383
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1384
|
-
if (!this.
|
|
1383
|
+
protoOf(DefaultWebSocketSessionImpl).y3x = function (negotiatedExtensions) {
|
|
1384
|
+
if (!this.n3z_1.atomicfu$compareAndSet(false, true)) {
|
|
1385
1385
|
// Inline function 'kotlin.error' call
|
|
1386
1386
|
var message = 'WebSocket session ' + toString(this) + ' is already started.';
|
|
1387
1387
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -1390,16 +1390,16 @@ protoOf(DefaultWebSocketSessionImpl).l3x = function (negotiatedExtensions) {
|
|
|
1390
1390
|
var this_0 = get_LOGGER();
|
|
1391
1391
|
if (get_isTraceEnabled(this_0)) {
|
|
1392
1392
|
var tmp$ret$0 = 'Starting default WebSocketSession(' + toString(this) + ') ' + ('with negotiated extensions: ' + joinToString(negotiatedExtensions));
|
|
1393
|
-
this_0.
|
|
1393
|
+
this_0.m3c(tmp$ret$0);
|
|
1394
1394
|
}
|
|
1395
|
-
this.
|
|
1395
|
+
this.m3z_1.j1(negotiatedExtensions);
|
|
1396
1396
|
runOrCancelPinger(this);
|
|
1397
|
-
var incomingJob = runIncomingProcessor(this, ponger(this, this.
|
|
1397
|
+
var incomingJob = runIncomingProcessor(this, ponger(this, this.c3y()));
|
|
1398
1398
|
var outgoingJob = runOutgoingProcessor(this);
|
|
1399
1399
|
launch(this, VOID, VOID, DefaultWebSocketSessionImpl$start$slambda_0(incomingJob, outgoingJob, this, null));
|
|
1400
1400
|
};
|
|
1401
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1402
|
-
return this.
|
|
1401
|
+
protoOf(DefaultWebSocketSessionImpl).y2q = function ($completion) {
|
|
1402
|
+
return this.e3z_1.y2q($completion);
|
|
1403
1403
|
};
|
|
1404
1404
|
var properties_initialized_DefaultWebSocketSession_kt_6cjlhc;
|
|
1405
1405
|
function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
@@ -1421,20 +1421,20 @@ function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
|
1421
1421
|
}
|
|
1422
1422
|
}
|
|
1423
1423
|
function readReason(_this__u8e3s4) {
|
|
1424
|
-
if (_this__u8e3s4.
|
|
1424
|
+
if (_this__u8e3s4.u41_1.length < 2) {
|
|
1425
1425
|
return null;
|
|
1426
1426
|
}
|
|
1427
1427
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1428
1428
|
var builder = new Buffer();
|
|
1429
|
-
writeFully(builder, _this__u8e3s4.
|
|
1429
|
+
writeFully(builder, _this__u8e3s4.u41_1);
|
|
1430
1430
|
var packet = builder;
|
|
1431
|
-
var code = packet.
|
|
1431
|
+
var code = packet.m2m();
|
|
1432
1432
|
var message = readText(packet);
|
|
1433
1433
|
return new CloseReason(code, message);
|
|
1434
1434
|
}
|
|
1435
1435
|
function NonDisposableHandle() {
|
|
1436
1436
|
}
|
|
1437
|
-
protoOf(NonDisposableHandle).
|
|
1437
|
+
protoOf(NonDisposableHandle).p1y = function () {
|
|
1438
1438
|
return Unit_instance;
|
|
1439
1439
|
};
|
|
1440
1440
|
protoOf(NonDisposableHandle).toString = function () {
|
|
@@ -1457,15 +1457,15 @@ function NonDisposableHandle_getInstance() {
|
|
|
1457
1457
|
function FrameTooBigException(frameSize) {
|
|
1458
1458
|
Exception_init_$Init$(this);
|
|
1459
1459
|
captureStack(this, FrameTooBigException);
|
|
1460
|
-
this.
|
|
1460
|
+
this.y42_1 = frameSize;
|
|
1461
1461
|
delete this.message;
|
|
1462
1462
|
}
|
|
1463
1463
|
protoOf(FrameTooBigException).e = function () {
|
|
1464
|
-
return 'Frame is too big: ' + this.
|
|
1464
|
+
return 'Frame is too big: ' + this.y42_1.toString();
|
|
1465
1465
|
};
|
|
1466
|
-
protoOf(FrameTooBigException).
|
|
1466
|
+
protoOf(FrameTooBigException).j24 = function () {
|
|
1467
1467
|
// Inline function 'kotlin.also' call
|
|
1468
|
-
var this_0 = new FrameTooBigException(this.
|
|
1468
|
+
var this_0 = new FrameTooBigException(this.y42_1);
|
|
1469
1469
|
initCauseBridge(this_0, this);
|
|
1470
1470
|
return this_0;
|
|
1471
1471
|
};
|
|
@@ -1491,10 +1491,10 @@ function Companion_1() {
|
|
|
1491
1491
|
tmp$ret$0 = maxElem;
|
|
1492
1492
|
break $l$block_0;
|
|
1493
1493
|
}
|
|
1494
|
-
var maxValue = maxElem.
|
|
1494
|
+
var maxValue = maxElem.c43_1;
|
|
1495
1495
|
do {
|
|
1496
1496
|
var e = iterator.v();
|
|
1497
|
-
var v = e.
|
|
1497
|
+
var v = e.c43_1;
|
|
1498
1498
|
if (compareTo(maxValue, v) < 0) {
|
|
1499
1499
|
maxElem = e;
|
|
1500
1500
|
maxValue = v;
|
|
@@ -1503,10 +1503,10 @@ function Companion_1() {
|
|
|
1503
1503
|
while (iterator.u());
|
|
1504
1504
|
tmp$ret$0 = maxElem;
|
|
1505
1505
|
}
|
|
1506
|
-
tmp.
|
|
1506
|
+
tmp.d43_1 = ensureNotNull(tmp$ret$0).c43_1;
|
|
1507
1507
|
var tmp_0 = this;
|
|
1508
1508
|
var tmp_1 = 0;
|
|
1509
|
-
var tmp_2 = this.
|
|
1509
|
+
var tmp_2 = this.d43_1 + 1 | 0;
|
|
1510
1510
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1511
1511
|
var tmp_3 = Array(tmp_2);
|
|
1512
1512
|
while (tmp_1 < tmp_2) {
|
|
@@ -1520,7 +1520,7 @@ function Companion_1() {
|
|
|
1520
1520
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
1521
1521
|
while (_iterator__ex2g4s.u()) {
|
|
1522
1522
|
var element = _iterator__ex2g4s.v();
|
|
1523
|
-
if (element.
|
|
1523
|
+
if (element.c43_1 === tmp_4) {
|
|
1524
1524
|
if (found) {
|
|
1525
1525
|
tmp$ret$5 = null;
|
|
1526
1526
|
break $l$block_2;
|
|
@@ -1538,7 +1538,7 @@ function Companion_1() {
|
|
|
1538
1538
|
tmp_3[tmp_4] = tmp$ret$5;
|
|
1539
1539
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1540
1540
|
}
|
|
1541
|
-
tmp_0.
|
|
1541
|
+
tmp_0.e43_1 = tmp_3;
|
|
1542
1542
|
}
|
|
1543
1543
|
var Companion_instance_1;
|
|
1544
1544
|
function Companion_getInstance_1() {
|
|
@@ -1570,8 +1570,8 @@ function FrameType_initEntries() {
|
|
|
1570
1570
|
var $ENTRIES_0;
|
|
1571
1571
|
function FrameType(name, ordinal, controlFrame, opcode) {
|
|
1572
1572
|
Enum.call(this, name, ordinal);
|
|
1573
|
-
this.
|
|
1574
|
-
this.
|
|
1573
|
+
this.b43_1 = controlFrame;
|
|
1574
|
+
this.c43_1 = opcode;
|
|
1575
1575
|
}
|
|
1576
1576
|
function FrameType_TEXT_getInstance() {
|
|
1577
1577
|
FrameType_initEntries();
|
|
@@ -1614,55 +1614,55 @@ function pinger(_this__u8e3s4, outgoing, periodMillis, timeoutMillis, onTimeout)
|
|
|
1614
1614
|
_init_properties_PingPong_kt__9aqxey();
|
|
1615
1615
|
var actorJob = Job();
|
|
1616
1616
|
var channel = Channel(2147483647);
|
|
1617
|
-
var tmp = actorJob.
|
|
1617
|
+
var tmp = actorJob.wj(get_PingerCoroutineName());
|
|
1618
1618
|
launch(_this__u8e3s4, tmp, VOID, pinger$slambda_0(periodMillis, timeoutMillis, onTimeout, channel, outgoing, null));
|
|
1619
|
-
var tmp_0 = ensureNotNull(_this__u8e3s4.
|
|
1620
|
-
tmp_0.
|
|
1619
|
+
var tmp_0 = ensureNotNull(_this__u8e3s4.t1v().y9(Key_instance));
|
|
1620
|
+
tmp_0.v1w(pinger$lambda(actorJob));
|
|
1621
1621
|
return channel;
|
|
1622
1622
|
}
|
|
1623
1623
|
function ponger$slambda($channel, $outgoing, resultContinuation) {
|
|
1624
|
-
this.
|
|
1625
|
-
this.
|
|
1624
|
+
this.n43_1 = $channel;
|
|
1625
|
+
this.o43_1 = $outgoing;
|
|
1626
1626
|
CoroutineImpl.call(this, resultContinuation);
|
|
1627
1627
|
}
|
|
1628
|
-
protoOf(ponger$slambda).
|
|
1629
|
-
var tmp = this.
|
|
1630
|
-
tmp.
|
|
1631
|
-
tmp.
|
|
1632
|
-
return tmp.
|
|
1628
|
+
protoOf(ponger$slambda).q30 = function ($this$launch, $completion) {
|
|
1629
|
+
var tmp = this.r30($this$launch, $completion);
|
|
1630
|
+
tmp.n9_1 = Unit_instance;
|
|
1631
|
+
tmp.o9_1 = null;
|
|
1632
|
+
return tmp.t9();
|
|
1633
1633
|
};
|
|
1634
|
-
protoOf(ponger$slambda).
|
|
1635
|
-
return this.
|
|
1634
|
+
protoOf(ponger$slambda).fa = function (p1, $completion) {
|
|
1635
|
+
return this.q30((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1636
1636
|
};
|
|
1637
|
-
protoOf(ponger$slambda).
|
|
1638
|
-
var suspendResult = this.
|
|
1637
|
+
protoOf(ponger$slambda).t9 = function () {
|
|
1638
|
+
var suspendResult = this.n9_1;
|
|
1639
1639
|
$sm: do
|
|
1640
1640
|
try {
|
|
1641
|
-
var tmp = this.
|
|
1641
|
+
var tmp = this.l9_1;
|
|
1642
1642
|
switch (tmp) {
|
|
1643
1643
|
case 0:
|
|
1644
|
-
this.
|
|
1645
|
-
this.
|
|
1646
|
-
this.
|
|
1647
|
-
this.
|
|
1644
|
+
this.m9_1 = 14;
|
|
1645
|
+
this.m9_1 = 13;
|
|
1646
|
+
this.t43_1 = this.n43_1;
|
|
1647
|
+
this.l9_1 = 1;
|
|
1648
1648
|
continue $sm;
|
|
1649
1649
|
case 1:
|
|
1650
|
-
this.
|
|
1651
|
-
this.
|
|
1652
|
-
this.
|
|
1650
|
+
this.r43_1 = this.t43_1;
|
|
1651
|
+
this.q43_1 = null;
|
|
1652
|
+
this.l9_1 = 2;
|
|
1653
1653
|
continue $sm;
|
|
1654
1654
|
case 2:
|
|
1655
|
-
this.
|
|
1655
|
+
this.l9_1 = 3;
|
|
1656
1656
|
continue $sm;
|
|
1657
1657
|
case 3:
|
|
1658
|
-
this.
|
|
1659
|
-
this.
|
|
1660
|
-
this.
|
|
1661
|
-
this.
|
|
1658
|
+
this.m9_1 = 10;
|
|
1659
|
+
this.m9_1 = 9;
|
|
1660
|
+
this.s43_1 = this.r43_1.t();
|
|
1661
|
+
this.l9_1 = 4;
|
|
1662
1662
|
continue $sm;
|
|
1663
1663
|
case 4:
|
|
1664
|
-
this.
|
|
1665
|
-
suspendResult = this.
|
|
1664
|
+
this.l9_1 = 5;
|
|
1665
|
+
suspendResult = this.s43_1.g2c(this);
|
|
1666
1666
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1667
1667
|
return suspendResult;
|
|
1668
1668
|
}
|
|
@@ -1670,311 +1670,311 @@ protoOf(ponger$slambda).q9 = function () {
|
|
|
1670
1670
|
continue $sm;
|
|
1671
1671
|
case 5:
|
|
1672
1672
|
if (!suspendResult) {
|
|
1673
|
-
this.
|
|
1673
|
+
this.l9_1 = 7;
|
|
1674
1674
|
continue $sm;
|
|
1675
1675
|
}
|
|
1676
1676
|
|
|
1677
|
-
var e = this.
|
|
1678
|
-
get_LOGGER().
|
|
1679
|
-
this.
|
|
1680
|
-
suspendResult = this.
|
|
1677
|
+
var e = this.s43_1.v();
|
|
1678
|
+
get_LOGGER().m3c('Received ping message, sending pong message');
|
|
1679
|
+
this.l9_1 = 6;
|
|
1680
|
+
suspendResult = this.o43_1.d2e(new Pong(e.u41_1), this);
|
|
1681
1681
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1682
1682
|
return suspendResult;
|
|
1683
1683
|
}
|
|
1684
1684
|
|
|
1685
1685
|
continue $sm;
|
|
1686
1686
|
case 6:
|
|
1687
|
-
this.
|
|
1687
|
+
this.l9_1 = 4;
|
|
1688
1688
|
continue $sm;
|
|
1689
1689
|
case 7:
|
|
1690
|
-
this.
|
|
1690
|
+
this.l9_1 = 8;
|
|
1691
1691
|
var tmp_0 = this;
|
|
1692
1692
|
continue $sm;
|
|
1693
1693
|
case 8:
|
|
1694
|
-
this.
|
|
1695
|
-
cancelConsumed(this.
|
|
1696
|
-
this.
|
|
1694
|
+
this.m9_1 = 13;
|
|
1695
|
+
cancelConsumed(this.r43_1, this.q43_1);
|
|
1696
|
+
this.l9_1 = 12;
|
|
1697
1697
|
continue $sm;
|
|
1698
1698
|
case 9:
|
|
1699
|
-
this.
|
|
1700
|
-
var tmp_1 = this.
|
|
1699
|
+
this.m9_1 = 10;
|
|
1700
|
+
var tmp_1 = this.o9_1;
|
|
1701
1701
|
if (tmp_1 instanceof Error) {
|
|
1702
|
-
var e_0 = this.
|
|
1702
|
+
var e_0 = this.o9_1;
|
|
1703
1703
|
var tmp_2 = this;
|
|
1704
|
-
this.
|
|
1704
|
+
this.q43_1 = e_0;
|
|
1705
1705
|
throw e_0;
|
|
1706
1706
|
} else {
|
|
1707
|
-
throw this.
|
|
1707
|
+
throw this.o9_1;
|
|
1708
1708
|
}
|
|
1709
1709
|
|
|
1710
1710
|
case 10:
|
|
1711
|
-
this.
|
|
1712
|
-
var t = this.
|
|
1713
|
-
cancelConsumed(this.
|
|
1711
|
+
this.m9_1 = 13;
|
|
1712
|
+
var t = this.o9_1;
|
|
1713
|
+
cancelConsumed(this.r43_1, this.q43_1);
|
|
1714
1714
|
throw t;
|
|
1715
1715
|
case 11:
|
|
1716
|
-
this.
|
|
1717
|
-
cancelConsumed(this.
|
|
1716
|
+
this.m9_1 = 13;
|
|
1717
|
+
cancelConsumed(this.r43_1, this.q43_1);
|
|
1718
1718
|
if (false) {
|
|
1719
|
-
this.
|
|
1719
|
+
this.l9_1 = 1;
|
|
1720
1720
|
continue $sm;
|
|
1721
1721
|
}
|
|
1722
1722
|
|
|
1723
|
-
this.
|
|
1723
|
+
this.l9_1 = 12;
|
|
1724
1724
|
continue $sm;
|
|
1725
1725
|
case 12:
|
|
1726
|
-
this.
|
|
1727
|
-
this.
|
|
1726
|
+
this.m9_1 = 14;
|
|
1727
|
+
this.l9_1 = 15;
|
|
1728
1728
|
continue $sm;
|
|
1729
1729
|
case 13:
|
|
1730
|
-
this.
|
|
1731
|
-
var tmp_3 = this.
|
|
1730
|
+
this.m9_1 = 14;
|
|
1731
|
+
var tmp_3 = this.o9_1;
|
|
1732
1732
|
if (tmp_3 instanceof ClosedSendChannelException) {
|
|
1733
|
-
var _unused_var__etf5q3 = this.
|
|
1734
|
-
this.
|
|
1733
|
+
var _unused_var__etf5q3 = this.o9_1;
|
|
1734
|
+
this.l9_1 = 15;
|
|
1735
1735
|
continue $sm;
|
|
1736
1736
|
} else {
|
|
1737
|
-
throw this.
|
|
1737
|
+
throw this.o9_1;
|
|
1738
1738
|
}
|
|
1739
1739
|
|
|
1740
1740
|
case 14:
|
|
1741
|
-
throw this.
|
|
1741
|
+
throw this.o9_1;
|
|
1742
1742
|
case 15:
|
|
1743
|
-
this.
|
|
1743
|
+
this.m9_1 = 14;
|
|
1744
1744
|
return Unit_instance;
|
|
1745
1745
|
}
|
|
1746
1746
|
} catch ($p) {
|
|
1747
1747
|
var e_1 = $p;
|
|
1748
|
-
if (this.
|
|
1748
|
+
if (this.m9_1 === 14) {
|
|
1749
1749
|
throw e_1;
|
|
1750
1750
|
} else {
|
|
1751
|
-
this.
|
|
1752
|
-
this.
|
|
1751
|
+
this.l9_1 = this.m9_1;
|
|
1752
|
+
this.o9_1 = e_1;
|
|
1753
1753
|
}
|
|
1754
1754
|
}
|
|
1755
1755
|
while (true);
|
|
1756
1756
|
};
|
|
1757
|
-
protoOf(ponger$slambda).
|
|
1758
|
-
var i = new ponger$slambda(this.
|
|
1759
|
-
i.
|
|
1757
|
+
protoOf(ponger$slambda).r30 = function ($this$launch, completion) {
|
|
1758
|
+
var i = new ponger$slambda(this.n43_1, this.o43_1, completion);
|
|
1759
|
+
i.p43_1 = $this$launch;
|
|
1760
1760
|
return i;
|
|
1761
1761
|
};
|
|
1762
1762
|
function ponger$slambda_0($channel, $outgoing, resultContinuation) {
|
|
1763
1763
|
var i = new ponger$slambda($channel, $outgoing, resultContinuation);
|
|
1764
1764
|
var l = function ($this$launch, $completion) {
|
|
1765
|
-
return i.
|
|
1765
|
+
return i.q30($this$launch, $completion);
|
|
1766
1766
|
};
|
|
1767
1767
|
l.$arity = 1;
|
|
1768
1768
|
return l;
|
|
1769
1769
|
}
|
|
1770
1770
|
function pinger$slambda$slambda($channel, resultContinuation) {
|
|
1771
|
-
this.
|
|
1771
|
+
this.c44_1 = $channel;
|
|
1772
1772
|
CoroutineImpl.call(this, resultContinuation);
|
|
1773
1773
|
}
|
|
1774
|
-
protoOf(pinger$slambda$slambda).
|
|
1775
|
-
var tmp = this.
|
|
1776
|
-
tmp.
|
|
1777
|
-
tmp.
|
|
1778
|
-
return tmp.
|
|
1774
|
+
protoOf(pinger$slambda$slambda).q30 = function ($this$withTimeoutOrNull, $completion) {
|
|
1775
|
+
var tmp = this.r30($this$withTimeoutOrNull, $completion);
|
|
1776
|
+
tmp.n9_1 = Unit_instance;
|
|
1777
|
+
tmp.o9_1 = null;
|
|
1778
|
+
return tmp.t9();
|
|
1779
1779
|
};
|
|
1780
|
-
protoOf(pinger$slambda$slambda).
|
|
1781
|
-
return this.
|
|
1780
|
+
protoOf(pinger$slambda$slambda).fa = function (p1, $completion) {
|
|
1781
|
+
return this.q30((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1782
1782
|
};
|
|
1783
|
-
protoOf(pinger$slambda$slambda).
|
|
1784
|
-
var suspendResult = this.
|
|
1783
|
+
protoOf(pinger$slambda$slambda).t9 = function () {
|
|
1784
|
+
var suspendResult = this.n9_1;
|
|
1785
1785
|
$sm: do
|
|
1786
1786
|
try {
|
|
1787
|
-
var tmp = this.
|
|
1787
|
+
var tmp = this.l9_1;
|
|
1788
1788
|
switch (tmp) {
|
|
1789
1789
|
case 0:
|
|
1790
|
-
this.
|
|
1791
|
-
this.
|
|
1790
|
+
this.m9_1 = 3;
|
|
1791
|
+
this.l9_1 = 1;
|
|
1792
1792
|
continue $sm;
|
|
1793
1793
|
case 1:
|
|
1794
1794
|
if (!true) {
|
|
1795
|
-
this.
|
|
1795
|
+
this.l9_1 = 4;
|
|
1796
1796
|
continue $sm;
|
|
1797
1797
|
}
|
|
1798
1798
|
|
|
1799
|
-
this.
|
|
1800
|
-
suspendResult = this.
|
|
1799
|
+
this.l9_1 = 2;
|
|
1800
|
+
suspendResult = this.c44_1.h2e(this);
|
|
1801
1801
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1802
1802
|
return suspendResult;
|
|
1803
1803
|
}
|
|
1804
1804
|
|
|
1805
1805
|
continue $sm;
|
|
1806
1806
|
case 2:
|
|
1807
|
-
this.
|
|
1807
|
+
this.l9_1 = 1;
|
|
1808
1808
|
continue $sm;
|
|
1809
1809
|
case 3:
|
|
1810
|
-
throw this.
|
|
1810
|
+
throw this.o9_1;
|
|
1811
1811
|
case 4:
|
|
1812
1812
|
return Unit_instance;
|
|
1813
1813
|
}
|
|
1814
1814
|
} catch ($p) {
|
|
1815
1815
|
var e = $p;
|
|
1816
|
-
if (this.
|
|
1816
|
+
if (this.m9_1 === 3) {
|
|
1817
1817
|
throw e;
|
|
1818
1818
|
} else {
|
|
1819
|
-
this.
|
|
1820
|
-
this.
|
|
1819
|
+
this.l9_1 = this.m9_1;
|
|
1820
|
+
this.o9_1 = e;
|
|
1821
1821
|
}
|
|
1822
1822
|
}
|
|
1823
1823
|
while (true);
|
|
1824
1824
|
};
|
|
1825
|
-
protoOf(pinger$slambda$slambda).
|
|
1826
|
-
var i = new pinger$slambda$slambda(this.
|
|
1827
|
-
i.
|
|
1825
|
+
protoOf(pinger$slambda$slambda).r30 = function ($this$withTimeoutOrNull, completion) {
|
|
1826
|
+
var i = new pinger$slambda$slambda(this.c44_1, completion);
|
|
1827
|
+
i.d44_1 = $this$withTimeoutOrNull;
|
|
1828
1828
|
return i;
|
|
1829
1829
|
};
|
|
1830
1830
|
function pinger$slambda$slambda_0($channel, resultContinuation) {
|
|
1831
1831
|
var i = new pinger$slambda$slambda($channel, resultContinuation);
|
|
1832
1832
|
var l = function ($this$withTimeoutOrNull, $completion) {
|
|
1833
|
-
return i.
|
|
1833
|
+
return i.q30($this$withTimeoutOrNull, $completion);
|
|
1834
1834
|
};
|
|
1835
1835
|
l.$arity = 1;
|
|
1836
1836
|
return l;
|
|
1837
1837
|
}
|
|
1838
1838
|
function pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1839
|
-
this.
|
|
1840
|
-
this.
|
|
1841
|
-
this.
|
|
1839
|
+
this.m44_1 = $outgoing;
|
|
1840
|
+
this.n44_1 = $pingMessage;
|
|
1841
|
+
this.o44_1 = $channel;
|
|
1842
1842
|
CoroutineImpl.call(this, resultContinuation);
|
|
1843
1843
|
}
|
|
1844
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1845
|
-
var tmp = this.
|
|
1846
|
-
tmp.
|
|
1847
|
-
tmp.
|
|
1848
|
-
return tmp.
|
|
1844
|
+
protoOf(pinger$slambda$slambda_1).q30 = function ($this$withTimeoutOrNull, $completion) {
|
|
1845
|
+
var tmp = this.r30($this$withTimeoutOrNull, $completion);
|
|
1846
|
+
tmp.n9_1 = Unit_instance;
|
|
1847
|
+
tmp.o9_1 = null;
|
|
1848
|
+
return tmp.t9();
|
|
1849
1849
|
};
|
|
1850
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1851
|
-
return this.
|
|
1850
|
+
protoOf(pinger$slambda$slambda_1).fa = function (p1, $completion) {
|
|
1851
|
+
return this.q30((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1852
1852
|
};
|
|
1853
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1854
|
-
var suspendResult = this.
|
|
1853
|
+
protoOf(pinger$slambda$slambda_1).t9 = function () {
|
|
1854
|
+
var suspendResult = this.n9_1;
|
|
1855
1855
|
$sm: do
|
|
1856
1856
|
try {
|
|
1857
|
-
var tmp = this.
|
|
1857
|
+
var tmp = this.l9_1;
|
|
1858
1858
|
switch (tmp) {
|
|
1859
1859
|
case 0:
|
|
1860
|
-
this.
|
|
1861
|
-
get_LOGGER().
|
|
1862
|
-
this.
|
|
1863
|
-
suspendResult = this.
|
|
1860
|
+
this.m9_1 = 6;
|
|
1861
|
+
get_LOGGER().m3c('WebSocket Pinger: sending ping frame');
|
|
1862
|
+
this.l9_1 = 1;
|
|
1863
|
+
suspendResult = this.m44_1.d2e(new Ping(toByteArray(this.n44_1, Charsets_getInstance().r31_1)), this);
|
|
1864
1864
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1865
1865
|
return suspendResult;
|
|
1866
1866
|
}
|
|
1867
1867
|
|
|
1868
1868
|
continue $sm;
|
|
1869
1869
|
case 1:
|
|
1870
|
-
this.
|
|
1870
|
+
this.l9_1 = 2;
|
|
1871
1871
|
continue $sm;
|
|
1872
1872
|
case 2:
|
|
1873
1873
|
if (!true) {
|
|
1874
|
-
this.
|
|
1874
|
+
this.l9_1 = 5;
|
|
1875
1875
|
continue $sm;
|
|
1876
1876
|
}
|
|
1877
1877
|
|
|
1878
|
-
this.
|
|
1879
|
-
suspendResult = this.
|
|
1878
|
+
this.l9_1 = 3;
|
|
1879
|
+
suspendResult = this.o44_1.h2e(this);
|
|
1880
1880
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1881
1881
|
return suspendResult;
|
|
1882
1882
|
}
|
|
1883
1883
|
|
|
1884
1884
|
continue $sm;
|
|
1885
1885
|
case 3:
|
|
1886
|
-
this.
|
|
1887
|
-
if (decodeToString(this.
|
|
1888
|
-
get_LOGGER().
|
|
1889
|
-
this.
|
|
1886
|
+
this.q44_1 = suspendResult;
|
|
1887
|
+
if (decodeToString(this.q44_1.u41_1, 0, 0 + this.q44_1.u41_1.length | 0) === this.n44_1) {
|
|
1888
|
+
get_LOGGER().m3c('WebSocket Pinger: received valid pong frame ' + this.q44_1.toString());
|
|
1889
|
+
this.l9_1 = 5;
|
|
1890
1890
|
continue $sm;
|
|
1891
1891
|
} else {
|
|
1892
|
-
this.
|
|
1892
|
+
this.l9_1 = 4;
|
|
1893
1893
|
continue $sm;
|
|
1894
1894
|
}
|
|
1895
1895
|
|
|
1896
1896
|
case 4:
|
|
1897
|
-
get_LOGGER().
|
|
1898
|
-
this.
|
|
1897
|
+
get_LOGGER().m3c('WebSocket Pinger: received invalid pong frame ' + this.q44_1.toString() + ', continue waiting');
|
|
1898
|
+
this.l9_1 = 2;
|
|
1899
1899
|
continue $sm;
|
|
1900
1900
|
case 5:
|
|
1901
1901
|
return Unit_instance;
|
|
1902
1902
|
case 6:
|
|
1903
|
-
throw this.
|
|
1903
|
+
throw this.o9_1;
|
|
1904
1904
|
}
|
|
1905
1905
|
} catch ($p) {
|
|
1906
1906
|
var e = $p;
|
|
1907
|
-
if (this.
|
|
1907
|
+
if (this.m9_1 === 6) {
|
|
1908
1908
|
throw e;
|
|
1909
1909
|
} else {
|
|
1910
|
-
this.
|
|
1911
|
-
this.
|
|
1910
|
+
this.l9_1 = this.m9_1;
|
|
1911
|
+
this.o9_1 = e;
|
|
1912
1912
|
}
|
|
1913
1913
|
}
|
|
1914
1914
|
while (true);
|
|
1915
1915
|
};
|
|
1916
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1917
|
-
var i = new pinger$slambda$slambda_1(this.
|
|
1918
|
-
i.
|
|
1916
|
+
protoOf(pinger$slambda$slambda_1).r30 = function ($this$withTimeoutOrNull, completion) {
|
|
1917
|
+
var i = new pinger$slambda$slambda_1(this.m44_1, this.n44_1, this.o44_1, completion);
|
|
1918
|
+
i.p44_1 = $this$withTimeoutOrNull;
|
|
1919
1919
|
return i;
|
|
1920
1920
|
};
|
|
1921
1921
|
function pinger$slambda$slambda_2($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1922
1922
|
var i = new pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation);
|
|
1923
1923
|
var l = function ($this$withTimeoutOrNull, $completion) {
|
|
1924
|
-
return i.
|
|
1924
|
+
return i.q30($this$withTimeoutOrNull, $completion);
|
|
1925
1925
|
};
|
|
1926
1926
|
l.$arity = 1;
|
|
1927
1927
|
return l;
|
|
1928
1928
|
}
|
|
1929
1929
|
function pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
1930
|
-
this.
|
|
1931
|
-
this.
|
|
1932
|
-
this.
|
|
1933
|
-
this.
|
|
1934
|
-
this.
|
|
1930
|
+
this.z44_1 = $periodMillis;
|
|
1931
|
+
this.a45_1 = $timeoutMillis;
|
|
1932
|
+
this.b45_1 = $onTimeout;
|
|
1933
|
+
this.c45_1 = $channel;
|
|
1934
|
+
this.d45_1 = $outgoing;
|
|
1935
1935
|
CoroutineImpl.call(this, resultContinuation);
|
|
1936
1936
|
}
|
|
1937
|
-
protoOf(pinger$slambda).
|
|
1938
|
-
var tmp = this.
|
|
1939
|
-
tmp.
|
|
1940
|
-
tmp.
|
|
1941
|
-
return tmp.
|
|
1937
|
+
protoOf(pinger$slambda).q30 = function ($this$launch, $completion) {
|
|
1938
|
+
var tmp = this.r30($this$launch, $completion);
|
|
1939
|
+
tmp.n9_1 = Unit_instance;
|
|
1940
|
+
tmp.o9_1 = null;
|
|
1941
|
+
return tmp.t9();
|
|
1942
1942
|
};
|
|
1943
|
-
protoOf(pinger$slambda).
|
|
1944
|
-
return this.
|
|
1943
|
+
protoOf(pinger$slambda).fa = function (p1, $completion) {
|
|
1944
|
+
return this.q30((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1945
1945
|
};
|
|
1946
|
-
protoOf(pinger$slambda).
|
|
1947
|
-
var suspendResult = this.
|
|
1946
|
+
protoOf(pinger$slambda).t9 = function () {
|
|
1947
|
+
var suspendResult = this.n9_1;
|
|
1948
1948
|
$sm: do
|
|
1949
1949
|
try {
|
|
1950
|
-
var tmp = this.
|
|
1950
|
+
var tmp = this.l9_1;
|
|
1951
1951
|
switch (tmp) {
|
|
1952
1952
|
case 0:
|
|
1953
|
-
this.
|
|
1954
|
-
get_LOGGER().
|
|
1955
|
-
this.
|
|
1956
|
-
this.
|
|
1957
|
-
this.
|
|
1958
|
-
this.
|
|
1953
|
+
this.m9_1 = 9;
|
|
1954
|
+
get_LOGGER().m3c('Starting WebSocket pinger coroutine with period ' + this.z44_1.toString() + ' ms and timeout ' + this.a45_1.toString() + ' ms');
|
|
1955
|
+
this.g45_1 = Random(getTimeMillis());
|
|
1956
|
+
this.f45_1 = new Int8Array(32);
|
|
1957
|
+
this.m9_1 = 7;
|
|
1958
|
+
this.l9_1 = 1;
|
|
1959
1959
|
continue $sm;
|
|
1960
1960
|
case 1:
|
|
1961
1961
|
if (!true) {
|
|
1962
|
-
this.
|
|
1962
|
+
this.l9_1 = 6;
|
|
1963
1963
|
continue $sm;
|
|
1964
1964
|
}
|
|
1965
1965
|
|
|
1966
|
-
this.
|
|
1967
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1966
|
+
this.l9_1 = 2;
|
|
1967
|
+
suspendResult = withTimeoutOrNull(this.z44_1, pinger$slambda$slambda_0(this.c45_1, null), this);
|
|
1968
1968
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1969
1969
|
return suspendResult;
|
|
1970
1970
|
}
|
|
1971
1971
|
|
|
1972
1972
|
continue $sm;
|
|
1973
1973
|
case 2:
|
|
1974
|
-
this.
|
|
1975
|
-
var pingMessage = '[ping ' + hex(this.
|
|
1976
|
-
this.
|
|
1977
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1974
|
+
this.g45_1.sl(this.f45_1);
|
|
1975
|
+
var pingMessage = '[ping ' + hex(this.f45_1) + ' ping]';
|
|
1976
|
+
this.l9_1 = 3;
|
|
1977
|
+
suspendResult = withTimeoutOrNull(this.a45_1, pinger$slambda$slambda_2(this.d45_1, pingMessage, this.c45_1, null), this);
|
|
1978
1978
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1979
1979
|
return suspendResult;
|
|
1980
1980
|
}
|
|
@@ -1983,93 +1983,93 @@ protoOf(pinger$slambda).q9 = function () {
|
|
|
1983
1983
|
case 3:
|
|
1984
1984
|
var rc = suspendResult;
|
|
1985
1985
|
if (rc == null) {
|
|
1986
|
-
get_LOGGER().
|
|
1987
|
-
this.
|
|
1988
|
-
suspendResult = this.
|
|
1986
|
+
get_LOGGER().m3c('WebSocket pinger has timed out');
|
|
1987
|
+
this.l9_1 = 5;
|
|
1988
|
+
suspendResult = this.b45_1(CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), 'Ping timeout'), this);
|
|
1989
1989
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1990
1990
|
return suspendResult;
|
|
1991
1991
|
}
|
|
1992
1992
|
continue $sm;
|
|
1993
1993
|
} else {
|
|
1994
|
-
this.
|
|
1994
|
+
this.l9_1 = 4;
|
|
1995
1995
|
continue $sm;
|
|
1996
1996
|
}
|
|
1997
1997
|
|
|
1998
1998
|
case 4:
|
|
1999
|
-
this.
|
|
1999
|
+
this.l9_1 = 1;
|
|
2000
2000
|
continue $sm;
|
|
2001
2001
|
case 5:
|
|
2002
|
-
this.
|
|
2002
|
+
this.l9_1 = 6;
|
|
2003
2003
|
continue $sm;
|
|
2004
2004
|
case 6:
|
|
2005
|
-
this.
|
|
2006
|
-
this.
|
|
2005
|
+
this.m9_1 = 9;
|
|
2006
|
+
this.l9_1 = 8;
|
|
2007
2007
|
continue $sm;
|
|
2008
2008
|
case 7:
|
|
2009
|
-
this.
|
|
2010
|
-
var tmp_0 = this.
|
|
2009
|
+
this.m9_1 = 9;
|
|
2010
|
+
var tmp_0 = this.o9_1;
|
|
2011
2011
|
if (tmp_0 instanceof CancellationException) {
|
|
2012
|
-
var ignore = this.
|
|
2013
|
-
this.
|
|
2012
|
+
var ignore = this.o9_1;
|
|
2013
|
+
this.l9_1 = 8;
|
|
2014
2014
|
continue $sm;
|
|
2015
2015
|
} else {
|
|
2016
|
-
var tmp_1 = this.
|
|
2016
|
+
var tmp_1 = this.o9_1;
|
|
2017
2017
|
if (tmp_1 instanceof ClosedReceiveChannelException) {
|
|
2018
|
-
var ignore_0 = this.
|
|
2019
|
-
this.
|
|
2018
|
+
var ignore_0 = this.o9_1;
|
|
2019
|
+
this.l9_1 = 8;
|
|
2020
2020
|
continue $sm;
|
|
2021
2021
|
} else {
|
|
2022
|
-
var tmp_2 = this.
|
|
2022
|
+
var tmp_2 = this.o9_1;
|
|
2023
2023
|
if (tmp_2 instanceof ClosedSendChannelException) {
|
|
2024
|
-
var ignore_1 = this.
|
|
2025
|
-
this.
|
|
2024
|
+
var ignore_1 = this.o9_1;
|
|
2025
|
+
this.l9_1 = 8;
|
|
2026
2026
|
continue $sm;
|
|
2027
2027
|
} else {
|
|
2028
|
-
var tmp_3 = this.
|
|
2028
|
+
var tmp_3 = this.o9_1;
|
|
2029
2029
|
if (tmp_3 instanceof ClosedByteChannelException) {
|
|
2030
|
-
var ignore_2 = this.
|
|
2031
|
-
this.
|
|
2030
|
+
var ignore_2 = this.o9_1;
|
|
2031
|
+
this.l9_1 = 8;
|
|
2032
2032
|
continue $sm;
|
|
2033
2033
|
} else {
|
|
2034
|
-
throw this.
|
|
2034
|
+
throw this.o9_1;
|
|
2035
2035
|
}
|
|
2036
2036
|
}
|
|
2037
2037
|
}
|
|
2038
2038
|
}
|
|
2039
2039
|
|
|
2040
2040
|
case 8:
|
|
2041
|
-
this.
|
|
2041
|
+
this.m9_1 = 9;
|
|
2042
2042
|
return Unit_instance;
|
|
2043
2043
|
case 9:
|
|
2044
|
-
throw this.
|
|
2044
|
+
throw this.o9_1;
|
|
2045
2045
|
}
|
|
2046
2046
|
} catch ($p) {
|
|
2047
2047
|
var e = $p;
|
|
2048
|
-
if (this.
|
|
2048
|
+
if (this.m9_1 === 9) {
|
|
2049
2049
|
throw e;
|
|
2050
2050
|
} else {
|
|
2051
|
-
this.
|
|
2052
|
-
this.
|
|
2051
|
+
this.l9_1 = this.m9_1;
|
|
2052
|
+
this.o9_1 = e;
|
|
2053
2053
|
}
|
|
2054
2054
|
}
|
|
2055
2055
|
while (true);
|
|
2056
2056
|
};
|
|
2057
|
-
protoOf(pinger$slambda).
|
|
2058
|
-
var i = new pinger$slambda(this.
|
|
2059
|
-
i.
|
|
2057
|
+
protoOf(pinger$slambda).r30 = function ($this$launch, completion) {
|
|
2058
|
+
var i = new pinger$slambda(this.z44_1, this.a45_1, this.b45_1, this.c45_1, this.d45_1, completion);
|
|
2059
|
+
i.e45_1 = $this$launch;
|
|
2060
2060
|
return i;
|
|
2061
2061
|
};
|
|
2062
2062
|
function pinger$slambda_0($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
2063
2063
|
var i = new pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation);
|
|
2064
2064
|
var l = function ($this$launch, $completion) {
|
|
2065
|
-
return i.
|
|
2065
|
+
return i.q30($this$launch, $completion);
|
|
2066
2066
|
};
|
|
2067
2067
|
l.$arity = 1;
|
|
2068
2068
|
return l;
|
|
2069
2069
|
}
|
|
2070
2070
|
function pinger$lambda($actorJob) {
|
|
2071
2071
|
return function (it) {
|
|
2072
|
-
$actorJob.
|
|
2072
|
+
$actorJob.d1x();
|
|
2073
2073
|
return Unit_instance;
|
|
2074
2074
|
};
|
|
2075
2075
|
}
|
|
@@ -2086,9 +2086,9 @@ function Companion_2() {
|
|
|
2086
2086
|
var tmp = this;
|
|
2087
2087
|
// Inline function 'kotlin.apply' call
|
|
2088
2088
|
var this_0 = new WebSocketChannelsConfig();
|
|
2089
|
-
this_0.
|
|
2090
|
-
this_0.
|
|
2091
|
-
tmp.
|
|
2089
|
+
this_0.f3y_1 = this_0.h45();
|
|
2090
|
+
this_0.g3y_1 = this_0.h45();
|
|
2091
|
+
tmp.e3y_1 = this_0;
|
|
2092
2092
|
}
|
|
2093
2093
|
var Companion_instance_2;
|
|
2094
2094
|
function Companion_getInstance_2() {
|
|
@@ -2098,21 +2098,21 @@ function Companion_getInstance_2() {
|
|
|
2098
2098
|
}
|
|
2099
2099
|
function WebSocketChannelsConfig() {
|
|
2100
2100
|
Companion_getInstance_2();
|
|
2101
|
-
this.
|
|
2102
|
-
this.
|
|
2101
|
+
this.f3y_1 = Companion_getInstance_3().i45_1;
|
|
2102
|
+
this.g3y_1 = Companion_getInstance_3().i45_1;
|
|
2103
2103
|
}
|
|
2104
|
-
protoOf(WebSocketChannelsConfig).
|
|
2105
|
-
return Companion_getInstance_3().
|
|
2104
|
+
protoOf(WebSocketChannelsConfig).h45 = function () {
|
|
2105
|
+
return Companion_getInstance_3().i45_1;
|
|
2106
2106
|
};
|
|
2107
2107
|
function from(_this__u8e3s4, config) {
|
|
2108
2108
|
// Inline function 'kotlin.with' call
|
|
2109
2109
|
var tmp;
|
|
2110
|
-
if (config.
|
|
2110
|
+
if (config.j45_1 === 2147483647) {
|
|
2111
2111
|
tmp = Channel(2147483647);
|
|
2112
|
-
} else if (config.
|
|
2113
|
-
tmp = Channel(config.
|
|
2114
|
-
} else if (config.
|
|
2115
|
-
tmp = new BoundedChannel(config.
|
|
2112
|
+
} else if (config.k45_1.equals(ChannelOverflow_SUSPEND_getInstance())) {
|
|
2113
|
+
tmp = Channel(config.j45_1, BufferOverflow_SUSPEND_getInstance());
|
|
2114
|
+
} else if (config.k45_1.equals(ChannelOverflow_CLOSE_getInstance())) {
|
|
2115
|
+
tmp = new BoundedChannel(config.j45_1);
|
|
2116
2116
|
} else {
|
|
2117
2117
|
var message = 'Unsupported channel config.';
|
|
2118
2118
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -2121,7 +2121,7 @@ function from(_this__u8e3s4, config) {
|
|
|
2121
2121
|
}
|
|
2122
2122
|
function Companion_3() {
|
|
2123
2123
|
Companion_instance_3 = this;
|
|
2124
|
-
this.
|
|
2124
|
+
this.i45_1 = new ChannelConfig(2147483647, ChannelOverflow_SUSPEND_getInstance());
|
|
2125
2125
|
}
|
|
2126
2126
|
var Companion_instance_3;
|
|
2127
2127
|
function Companion_getInstance_3() {
|
|
@@ -2131,11 +2131,11 @@ function Companion_getInstance_3() {
|
|
|
2131
2131
|
}
|
|
2132
2132
|
function ChannelConfig(capacity, onOverflow) {
|
|
2133
2133
|
Companion_getInstance_3();
|
|
2134
|
-
this.
|
|
2135
|
-
this.
|
|
2134
|
+
this.j45_1 = capacity;
|
|
2135
|
+
this.k45_1 = onOverflow;
|
|
2136
2136
|
}
|
|
2137
|
-
protoOf(ChannelConfig).
|
|
2138
|
-
return this.
|
|
2137
|
+
protoOf(ChannelConfig).l45 = function () {
|
|
2138
|
+
return this.k45_1.equals(ChannelOverflow_SUSPEND_getInstance()) && !(this.j45_1 === 2147483647);
|
|
2139
2139
|
};
|
|
2140
2140
|
var ChannelOverflow_SUSPEND_instance;
|
|
2141
2141
|
var ChannelOverflow_CLOSE_instance;
|
|
@@ -2159,14 +2159,14 @@ function BoundedChannel$Companion$createDelegate$lambda($channel) {
|
|
|
2159
2159
|
} else {
|
|
2160
2160
|
tmp_0 = $channel._v;
|
|
2161
2161
|
}
|
|
2162
|
-
if (!tmp_0.
|
|
2162
|
+
if (!tmp_0.i2c()) {
|
|
2163
2163
|
var tmp_1;
|
|
2164
2164
|
if ($channel._v == null) {
|
|
2165
2165
|
throwUninitializedPropertyAccessException('channel');
|
|
2166
2166
|
} else {
|
|
2167
2167
|
tmp_1 = $channel._v;
|
|
2168
2168
|
}
|
|
2169
|
-
tmp_1.
|
|
2169
|
+
tmp_1.j2e(new ChannelOverflowException('Channel overflowed'));
|
|
2170
2170
|
tmp = Unit_instance;
|
|
2171
2171
|
}
|
|
2172
2172
|
return Unit_instance;
|
|
@@ -2174,7 +2174,7 @@ function BoundedChannel$Companion$createDelegate$lambda($channel) {
|
|
|
2174
2174
|
}
|
|
2175
2175
|
function Companion_4() {
|
|
2176
2176
|
}
|
|
2177
|
-
protoOf(Companion_4).
|
|
2177
|
+
protoOf(Companion_4).m45 = function (capacity) {
|
|
2178
2178
|
var channel = {_v: null};
|
|
2179
2179
|
var tmp = BufferOverflow_DROP_OLDEST_getInstance();
|
|
2180
2180
|
// Inline function 'kotlin.also' call
|
|
@@ -2187,42 +2187,42 @@ function Companion_getInstance_4() {
|
|
|
2187
2187
|
return Companion_instance_4;
|
|
2188
2188
|
}
|
|
2189
2189
|
function BoundedChannel(capacity, delegate) {
|
|
2190
|
-
delegate = delegate === VOID ? Companion_instance_4.
|
|
2191
|
-
this.
|
|
2190
|
+
delegate = delegate === VOID ? Companion_instance_4.m45(capacity) : delegate;
|
|
2191
|
+
this.n45_1 = delegate;
|
|
2192
2192
|
}
|
|
2193
|
-
protoOf(BoundedChannel).
|
|
2194
|
-
var result = this.
|
|
2193
|
+
protoOf(BoundedChannel).o45 = function (element) {
|
|
2194
|
+
var result = this.n45_1.e2e(element);
|
|
2195
2195
|
if (!_ChannelResult___get_isSuccess__impl__odq1z9(result) && !_ChannelResult___get_isClosed__impl__mg7kuu(result)) {
|
|
2196
|
-
this.
|
|
2196
|
+
this.j2e(new ChannelOverflowException('Channel overflowed'));
|
|
2197
2197
|
}
|
|
2198
2198
|
return result;
|
|
2199
2199
|
};
|
|
2200
|
-
protoOf(BoundedChannel).
|
|
2201
|
-
return this.
|
|
2200
|
+
protoOf(BoundedChannel).e2e = function (element) {
|
|
2201
|
+
return this.o45((element == null ? true : !(element == null)) ? element : THROW_CCE());
|
|
2202
2202
|
};
|
|
2203
|
-
protoOf(BoundedChannel).
|
|
2204
|
-
return this.
|
|
2203
|
+
protoOf(BoundedChannel).p45 = function (element, $completion) {
|
|
2204
|
+
return this.n45_1.d2e(element, $completion);
|
|
2205
2205
|
};
|
|
2206
|
-
protoOf(BoundedChannel).
|
|
2207
|
-
return this.
|
|
2206
|
+
protoOf(BoundedChannel).d2e = function (element, $completion) {
|
|
2207
|
+
return this.p45((element == null ? true : !(element == null)) ? element : THROW_CCE(), $completion);
|
|
2208
2208
|
};
|
|
2209
|
-
protoOf(BoundedChannel).
|
|
2210
|
-
return this.
|
|
2209
|
+
protoOf(BoundedChannel).j2e = function (cause) {
|
|
2210
|
+
return this.n45_1.j2e(cause);
|
|
2211
2211
|
};
|
|
2212
|
-
protoOf(BoundedChannel).
|
|
2213
|
-
return this.
|
|
2212
|
+
protoOf(BoundedChannel).i2c = function () {
|
|
2213
|
+
return this.n45_1.i2c();
|
|
2214
2214
|
};
|
|
2215
|
-
protoOf(BoundedChannel).
|
|
2216
|
-
return this.
|
|
2215
|
+
protoOf(BoundedChannel).q45 = function ($completion) {
|
|
2216
|
+
return this.n45_1.h2e($completion);
|
|
2217
2217
|
};
|
|
2218
|
-
protoOf(BoundedChannel).
|
|
2219
|
-
return this.
|
|
2218
|
+
protoOf(BoundedChannel).h2e = function ($completion) {
|
|
2219
|
+
return this.q45($completion);
|
|
2220
2220
|
};
|
|
2221
2221
|
protoOf(BoundedChannel).t = function () {
|
|
2222
|
-
return this.
|
|
2222
|
+
return this.n45_1.t();
|
|
2223
2223
|
};
|
|
2224
|
-
protoOf(BoundedChannel).
|
|
2225
|
-
this.
|
|
2224
|
+
protoOf(BoundedChannel).c1x = function (cause) {
|
|
2225
|
+
this.n45_1.c1x(cause);
|
|
2226
2226
|
};
|
|
2227
2227
|
function ChannelOverflowException(message) {
|
|
2228
2228
|
RuntimeException_init_$Init$(message, this);
|
|
@@ -2241,16 +2241,16 @@ function WebSocketExtension() {
|
|
|
2241
2241
|
function WebSocketExtensionsConfig() {
|
|
2242
2242
|
var tmp = this;
|
|
2243
2243
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2244
|
-
tmp.
|
|
2244
|
+
tmp.t45_1 = ArrayList_init_$Create$();
|
|
2245
2245
|
var tmp_0 = this;
|
|
2246
2246
|
// Inline function 'kotlin.arrayOf' call
|
|
2247
2247
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2248
2248
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2249
|
-
tmp_0.
|
|
2249
|
+
tmp_0.u45_1 = [false, false, false];
|
|
2250
2250
|
}
|
|
2251
|
-
protoOf(WebSocketExtensionsConfig).
|
|
2251
|
+
protoOf(WebSocketExtensionsConfig).s1g = function () {
|
|
2252
2252
|
// Inline function 'kotlin.collections.map' call
|
|
2253
|
-
var this_0 = this.
|
|
2253
|
+
var this_0 = this.t45_1;
|
|
2254
2254
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2255
2255
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2256
2256
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2262,14 +2262,14 @@ protoOf(WebSocketExtensionsConfig).j1g = function () {
|
|
|
2262
2262
|
return destination;
|
|
2263
2263
|
};
|
|
2264
2264
|
function parametersToString($this) {
|
|
2265
|
-
return $this.
|
|
2265
|
+
return $this.w45_1.r() ? '' : '; ' + joinToString($this.w45_1, ';');
|
|
2266
2266
|
}
|
|
2267
2267
|
function WebSocketExtensionHeader(name, parameters) {
|
|
2268
|
-
this.
|
|
2269
|
-
this.
|
|
2268
|
+
this.v45_1 = name;
|
|
2269
|
+
this.w45_1 = parameters;
|
|
2270
2270
|
}
|
|
2271
2271
|
protoOf(WebSocketExtensionHeader).toString = function () {
|
|
2272
|
-
return this.
|
|
2272
|
+
return this.v45_1 + ' ' + parametersToString(this);
|
|
2273
2273
|
};
|
|
2274
2274
|
function parseWebSocketExtensions(value) {
|
|
2275
2275
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2305,9 +2305,9 @@ function WebSocketSession() {
|
|
|
2305
2305
|
function close(_this__u8e3s4, reason, $completion) {
|
|
2306
2306
|
reason = reason === VOID ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : reason;
|
|
2307
2307
|
var tmp = new $closeCOROUTINE$(_this__u8e3s4, reason, $completion);
|
|
2308
|
-
tmp.
|
|
2309
|
-
tmp.
|
|
2310
|
-
return tmp.
|
|
2308
|
+
tmp.n9_1 = Unit_instance;
|
|
2309
|
+
tmp.o9_1 = null;
|
|
2310
|
+
return tmp.t9();
|
|
2311
2311
|
}
|
|
2312
2312
|
function closeExceptionally(_this__u8e3s4, cause, $completion) {
|
|
2313
2313
|
var tmp;
|
|
@@ -2321,61 +2321,61 @@ function closeExceptionally(_this__u8e3s4, cause, $completion) {
|
|
|
2321
2321
|
}
|
|
2322
2322
|
function $closeCOROUTINE$(_this__u8e3s4, reason, resultContinuation) {
|
|
2323
2323
|
CoroutineImpl.call(this, resultContinuation);
|
|
2324
|
-
this.
|
|
2325
|
-
this.
|
|
2324
|
+
this.f46_1 = _this__u8e3s4;
|
|
2325
|
+
this.g46_1 = reason;
|
|
2326
2326
|
}
|
|
2327
|
-
protoOf($closeCOROUTINE$).
|
|
2328
|
-
var suspendResult = this.
|
|
2327
|
+
protoOf($closeCOROUTINE$).t9 = function () {
|
|
2328
|
+
var suspendResult = this.n9_1;
|
|
2329
2329
|
$sm: do
|
|
2330
2330
|
try {
|
|
2331
|
-
var tmp = this.
|
|
2331
|
+
var tmp = this.l9_1;
|
|
2332
2332
|
switch (tmp) {
|
|
2333
2333
|
case 0:
|
|
2334
|
-
this.
|
|
2335
|
-
this.
|
|
2336
|
-
this.
|
|
2337
|
-
suspendResult = this.
|
|
2334
|
+
this.m9_1 = 4;
|
|
2335
|
+
this.m9_1 = 3;
|
|
2336
|
+
this.l9_1 = 1;
|
|
2337
|
+
suspendResult = this.f46_1.d3y(Close_init_$Create$(this.g46_1), this);
|
|
2338
2338
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2339
2339
|
return suspendResult;
|
|
2340
2340
|
}
|
|
2341
2341
|
|
|
2342
2342
|
continue $sm;
|
|
2343
2343
|
case 1:
|
|
2344
|
-
this.
|
|
2345
|
-
suspendResult = this.
|
|
2344
|
+
this.l9_1 = 2;
|
|
2345
|
+
suspendResult = this.f46_1.y2q(this);
|
|
2346
2346
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2347
2347
|
return suspendResult;
|
|
2348
2348
|
}
|
|
2349
2349
|
|
|
2350
2350
|
continue $sm;
|
|
2351
2351
|
case 2:
|
|
2352
|
-
this.
|
|
2353
|
-
this.
|
|
2352
|
+
this.m9_1 = 4;
|
|
2353
|
+
this.l9_1 = 5;
|
|
2354
2354
|
continue $sm;
|
|
2355
2355
|
case 3:
|
|
2356
|
-
this.
|
|
2357
|
-
var tmp_0 = this.
|
|
2356
|
+
this.m9_1 = 4;
|
|
2357
|
+
var tmp_0 = this.o9_1;
|
|
2358
2358
|
if (tmp_0 instanceof Error) {
|
|
2359
|
-
var _unused_var__etf5q3 = this.
|
|
2360
|
-
this.
|
|
2359
|
+
var _unused_var__etf5q3 = this.o9_1;
|
|
2360
|
+
this.l9_1 = 5;
|
|
2361
2361
|
continue $sm;
|
|
2362
2362
|
} else {
|
|
2363
|
-
throw this.
|
|
2363
|
+
throw this.o9_1;
|
|
2364
2364
|
}
|
|
2365
2365
|
|
|
2366
2366
|
case 4:
|
|
2367
|
-
throw this.
|
|
2367
|
+
throw this.o9_1;
|
|
2368
2368
|
case 5:
|
|
2369
|
-
this.
|
|
2369
|
+
this.m9_1 = 4;
|
|
2370
2370
|
return Unit_instance;
|
|
2371
2371
|
}
|
|
2372
2372
|
} catch ($p) {
|
|
2373
2373
|
var e = $p;
|
|
2374
|
-
if (this.
|
|
2374
|
+
if (this.m9_1 === 4) {
|
|
2375
2375
|
throw e;
|
|
2376
2376
|
} else {
|
|
2377
|
-
this.
|
|
2378
|
-
this.
|
|
2377
|
+
this.l9_1 = this.m9_1;
|
|
2378
|
+
this.o9_1 = e;
|
|
2379
2379
|
}
|
|
2380
2380
|
}
|
|
2381
2381
|
while (true);
|
|
@@ -2401,8 +2401,8 @@ function Text_init_$Create$(text) {
|
|
|
2401
2401
|
function Close_init_$Init$(reason, $this) {
|
|
2402
2402
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
2403
2403
|
var builder = new Buffer();
|
|
2404
|
-
builder.
|
|
2405
|
-
writeText(builder, reason.
|
|
2404
|
+
builder.u2n(reason.v3x_1);
|
|
2405
|
+
writeText(builder, reason.w3x_1);
|
|
2406
2406
|
Close_init_$Init$_0(builder, $this);
|
|
2407
2407
|
return $this;
|
|
2408
2408
|
}
|
|
@@ -2414,7 +2414,7 @@ function Close_init_$Init$_0(packet, $this) {
|
|
|
2414
2414
|
return $this;
|
|
2415
2415
|
}
|
|
2416
2416
|
function Close_init_$Init$_1($this) {
|
|
2417
|
-
Close.call($this, Companion_getInstance_5().
|
|
2417
|
+
Close.call($this, Companion_getInstance_5().z41_1);
|
|
2418
2418
|
return $this;
|
|
2419
2419
|
}
|
|
2420
2420
|
function Close_init_$Create$_0() {
|
|
@@ -2444,9 +2444,9 @@ function Pong(data, disposableHandle) {
|
|
|
2444
2444
|
}
|
|
2445
2445
|
function Companion_5() {
|
|
2446
2446
|
Companion_instance_5 = this;
|
|
2447
|
-
this.
|
|
2447
|
+
this.z41_1 = new Int8Array(0);
|
|
2448
2448
|
}
|
|
2449
|
-
protoOf(Companion_5).
|
|
2449
|
+
protoOf(Companion_5).a42 = function (fin, frameType, data, rsv1, rsv2, rsv3) {
|
|
2450
2450
|
var tmp;
|
|
2451
2451
|
switch (frameType.a1_1) {
|
|
2452
2452
|
case 1:
|
|
@@ -2482,28 +2482,28 @@ function Frame(fin, frameType, data, disposableHandle, rsv1, rsv2, rsv3) {
|
|
|
2482
2482
|
rsv1 = rsv1 === VOID ? false : rsv1;
|
|
2483
2483
|
rsv2 = rsv2 === VOID ? false : rsv2;
|
|
2484
2484
|
rsv3 = rsv3 === VOID ? false : rsv3;
|
|
2485
|
-
this.
|
|
2486
|
-
this.
|
|
2487
|
-
this.
|
|
2488
|
-
this.
|
|
2489
|
-
this.
|
|
2490
|
-
this.
|
|
2491
|
-
this.
|
|
2485
|
+
this.s41_1 = fin;
|
|
2486
|
+
this.t41_1 = frameType;
|
|
2487
|
+
this.u41_1 = data;
|
|
2488
|
+
this.v41_1 = disposableHandle;
|
|
2489
|
+
this.w41_1 = rsv1;
|
|
2490
|
+
this.x41_1 = rsv2;
|
|
2491
|
+
this.y41_1 = rsv3;
|
|
2492
2492
|
}
|
|
2493
2493
|
protoOf(Frame).toString = function () {
|
|
2494
|
-
return 'Frame ' + this.
|
|
2494
|
+
return 'Frame ' + this.t41_1.toString() + ' (fin=' + this.s41_1 + ', buffer len = ' + this.u41_1.length + ')';
|
|
2495
2495
|
};
|
|
2496
2496
|
function get_OUTGOING_CHANNEL_CAPACITY() {
|
|
2497
2497
|
return OUTGOING_CHANNEL_CAPACITY;
|
|
2498
2498
|
}
|
|
2499
2499
|
var OUTGOING_CHANNEL_CAPACITY;
|
|
2500
2500
|
//region block: post-declaration
|
|
2501
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
2501
|
+
protoOf(DefaultWebSocketSessionImpl).d3y = send;
|
|
2502
2502
|
defineProp(protoOf(FrameTooBigException), 'message', function () {
|
|
2503
2503
|
return this.e();
|
|
2504
2504
|
});
|
|
2505
|
-
protoOf(BoundedChannel).
|
|
2506
|
-
protoOf(BoundedChannel).
|
|
2505
|
+
protoOf(BoundedChannel).l2e = close$default;
|
|
2506
|
+
protoOf(BoundedChannel).n2e = cancel$default;
|
|
2507
2507
|
//endregion
|
|
2508
2508
|
//region block: init
|
|
2509
2509
|
NonDisposableHandle_instance = new NonDisposableHandle();
|