@solibo/solibo-sdk 1.1.18 → 1.1.19
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 +86 -86
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1510 -1510
- package/KotlinBigInteger-bignum.mjs +1123 -1123
- package/MultiplatformSettings-multiplatform-settings.mjs +17 -17
- package/Stately-stately-concurrency.mjs +5 -5
- package/cryptography-kotlin-cryptography-bigint.mjs +31 -31
- package/cryptography-kotlin-cryptography-core.mjs +47 -47
- package/cryptography-kotlin-cryptography-provider-base.mjs +8 -8
- package/cryptography-kotlin-cryptography-provider-webcrypto.mjs +136 -136
- package/cryptography-kotlin-cryptography-random.mjs +25 -25
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.mjs +204 -204
- package/cryptography-kotlin-cryptography-serialization-asn1.mjs +327 -327
- package/cryptography-kotlin-cryptography-serialization-pem.mjs +16 -16
- package/kotlin-kotlin-stdlib.mjs +609 -605
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-coroutines-core.mjs +1828 -1828
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +32 -32
- package/kotlinx-io-kotlinx-io-core.mjs +443 -443
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1763 -1763
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1322 -1322
- package/ktor-ktor-client-auth.mjs +257 -257
- package/ktor-ktor-client-content-negotiation.mjs +127 -127
- package/ktor-ktor-client-core.mjs +2676 -2676
- package/ktor-ktor-client-logging.mjs +615 -615
- package/ktor-ktor-client-mock.mjs +53 -53
- package/ktor-ktor-events.mjs +6 -6
- package/ktor-ktor-http-cio.mjs +312 -312
- package/ktor-ktor-http.mjs +945 -945
- package/ktor-ktor-io.mjs +628 -628
- package/ktor-ktor-serialization-kotlinx-json.mjs +6 -6
- package/ktor-ktor-serialization-kotlinx.mjs +128 -128
- package/ktor-ktor-serialization.mjs +56 -56
- package/ktor-ktor-utils.mjs +695 -695
- package/ktor-ktor-websockets.mjs +386 -386
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.mjs +42054 -42054
- package/solibo-sdk-sdk.d.mts +1 -1
- package/solibo-sdk-sdk.mjs +3377 -3483
- package/solibo-sdk-sdk.mjs.map +1 -1
package/ktor-ktor-websockets.mjs
CHANGED
|
@@ -71,8 +71,8 @@ import {
|
|
|
71
71
|
_ChannelResult___get_isClosed__impl__mg7kuu1xlv81pnrlsg7 as _ChannelResult___get_isClosed__impl__mg7kuu,
|
|
72
72
|
close$default29t9kascifp5w as close$default,
|
|
73
73
|
cancel$default3ekkkwpkem73o as cancel$default,
|
|
74
|
-
ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
|
|
75
74
|
SendChannel38sllbxw662ws as SendChannel,
|
|
75
|
+
ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
|
|
76
76
|
} from './kotlinx-coroutines-core.mjs';
|
|
77
77
|
import {
|
|
78
78
|
get_isTraceEnabled82xibuu04nxp as get_isTraceEnabled,
|
|
@@ -111,7 +111,7 @@ initMetadataForCompanion(Companion);
|
|
|
111
111
|
initMetadataForClass(Codes, 'Codes', VOID, Enum);
|
|
112
112
|
initMetadataForClass(CloseReason, 'CloseReason');
|
|
113
113
|
function send(frame, $completion) {
|
|
114
|
-
return this.
|
|
114
|
+
return this.n49().s2p(frame, $completion);
|
|
115
115
|
}
|
|
116
116
|
initMetadataForInterface(WebSocketSession, 'WebSocketSession', VOID, VOID, [CoroutineScope], [1, 0]);
|
|
117
117
|
initMetadataForInterface(DefaultWebSocketSession, 'DefaultWebSocketSession', VOID, VOID, [WebSocketSession], [1, 0]);
|
|
@@ -138,7 +138,7 @@ initMetadataForCompanion(Companion_3);
|
|
|
138
138
|
initMetadataForClass(ChannelConfig, 'ChannelConfig');
|
|
139
139
|
initMetadataForClass(ChannelOverflow, 'ChannelOverflow', VOID, Enum);
|
|
140
140
|
initMetadataForCompanion(Companion_4);
|
|
141
|
-
initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [
|
|
141
|
+
initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [SendChannel, ReceiveChannel], [1, 0]);
|
|
142
142
|
initMetadataForClass(ChannelOverflowException, 'ChannelOverflowException', VOID, RuntimeException);
|
|
143
143
|
initMetadataForInterface(WebSocketExtension, 'WebSocketExtension');
|
|
144
144
|
initMetadataForClass(WebSocketExtensionsConfig, 'WebSocketExtensionsConfig', WebSocketExtensionsConfig);
|
|
@@ -175,14 +175,14 @@ function Companion() {
|
|
|
175
175
|
var _iterator__ex2g4s = this_0.t();
|
|
176
176
|
while (_iterator__ex2g4s.u()) {
|
|
177
177
|
var element = _iterator__ex2g4s.v();
|
|
178
|
-
var tmp$ret$0 = element.
|
|
178
|
+
var tmp$ret$0 = element.c49_1;
|
|
179
179
|
destination.c3(tmp$ret$0, element);
|
|
180
180
|
}
|
|
181
|
-
tmp.
|
|
182
|
-
this.
|
|
181
|
+
tmp.d49_1 = destination;
|
|
182
|
+
this.e49_1 = Codes_INTERNAL_ERROR_getInstance();
|
|
183
183
|
}
|
|
184
|
-
protoOf(Companion).
|
|
185
|
-
return this.
|
|
184
|
+
protoOf(Companion).f49 = function (code) {
|
|
185
|
+
return this.d49_1.z2(code);
|
|
186
186
|
};
|
|
187
187
|
var Companion_instance;
|
|
188
188
|
function Companion_getInstance() {
|
|
@@ -220,7 +220,7 @@ function Codes_initEntries() {
|
|
|
220
220
|
}
|
|
221
221
|
var $ENTRIES;
|
|
222
222
|
function CloseReason_init_$Init$(code, message, $this) {
|
|
223
|
-
CloseReason.call($this, code.
|
|
223
|
+
CloseReason.call($this, code.c49_1, message);
|
|
224
224
|
return $this;
|
|
225
225
|
}
|
|
226
226
|
function CloseReason_init_$Create$(code, message) {
|
|
@@ -228,7 +228,7 @@ function CloseReason_init_$Create$(code, message) {
|
|
|
228
228
|
}
|
|
229
229
|
function Codes(name, ordinal, code) {
|
|
230
230
|
Enum.call(this, name, ordinal);
|
|
231
|
-
this.
|
|
231
|
+
this.c49_1 = code;
|
|
232
232
|
}
|
|
233
233
|
function Codes_NORMAL_getInstance() {
|
|
234
234
|
Codes_initEntries();
|
|
@@ -279,19 +279,19 @@ function Codes_TRY_AGAIN_LATER_getInstance() {
|
|
|
279
279
|
return Codes_TRY_AGAIN_LATER_instance;
|
|
280
280
|
}
|
|
281
281
|
function CloseReason(code, message) {
|
|
282
|
-
this.
|
|
283
|
-
this.
|
|
282
|
+
this.g49_1 = code;
|
|
283
|
+
this.h49_1 = message;
|
|
284
284
|
}
|
|
285
|
-
protoOf(CloseReason).
|
|
286
|
-
return Companion_getInstance().
|
|
285
|
+
protoOf(CloseReason).i49 = function () {
|
|
286
|
+
return Companion_getInstance().f49(this.g49_1);
|
|
287
287
|
};
|
|
288
288
|
protoOf(CloseReason).toString = function () {
|
|
289
|
-
var tmp0_elvis_lhs = this.
|
|
290
|
-
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.
|
|
289
|
+
var tmp0_elvis_lhs = this.i49();
|
|
290
|
+
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.g49_1 : tmp0_elvis_lhs) + ', message=' + this.h49_1 + ')';
|
|
291
291
|
};
|
|
292
292
|
protoOf(CloseReason).hashCode = function () {
|
|
293
|
-
var result = this.
|
|
294
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
293
|
+
var result = this.g49_1;
|
|
294
|
+
result = imul(result, 31) + getStringHashCode(this.h49_1) | 0;
|
|
295
295
|
return result;
|
|
296
296
|
};
|
|
297
297
|
protoOf(CloseReason).equals = function (other) {
|
|
@@ -299,10 +299,10 @@ protoOf(CloseReason).equals = function (other) {
|
|
|
299
299
|
return true;
|
|
300
300
|
if (!(other instanceof CloseReason))
|
|
301
301
|
return false;
|
|
302
|
-
if (!(this.f49_1 === other.f49_1))
|
|
303
|
-
return false;
|
|
304
302
|
if (!(this.g49_1 === other.g49_1))
|
|
305
303
|
return false;
|
|
304
|
+
if (!(this.h49_1 === other.h49_1))
|
|
305
|
+
return false;
|
|
306
306
|
return true;
|
|
307
307
|
};
|
|
308
308
|
function get_LOGGER() {
|
|
@@ -331,21 +331,21 @@ function DefaultWebSocketSession() {
|
|
|
331
331
|
function DefaultWebSocketSession_0(session, pingIntervalMillis, timeoutMillis, channelsConfig) {
|
|
332
332
|
pingIntervalMillis = pingIntervalMillis === VOID ? 0n : pingIntervalMillis;
|
|
333
333
|
timeoutMillis = timeoutMillis === VOID ? 15000n : timeoutMillis;
|
|
334
|
-
channelsConfig = channelsConfig === VOID ? Companion_getInstance_2().
|
|
334
|
+
channelsConfig = channelsConfig === VOID ? Companion_getInstance_2().p49_1 : channelsConfig;
|
|
335
335
|
_init_properties_DefaultWebSocketSession_kt__469s0y();
|
|
336
336
|
// Inline function 'kotlin.require' call
|
|
337
337
|
if (!!isInterface(session, DefaultWebSocketSession)) {
|
|
338
338
|
var message = 'Cannot wrap other DefaultWebSocketSession';
|
|
339
339
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
340
340
|
}
|
|
341
|
-
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.
|
|
341
|
+
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.q49_1, channelsConfig.r49_1);
|
|
342
342
|
}
|
|
343
343
|
function runIncomingProcessor($this, ponger) {
|
|
344
|
-
var tmp = get_IncomingProcessorCoroutineName().yj(Dispatchers_getInstance().
|
|
344
|
+
var tmp = get_IncomingProcessorCoroutineName().yj(Dispatchers_getInstance().n2j_1);
|
|
345
345
|
return launch($this, tmp, VOID, DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0($this, ponger, null));
|
|
346
346
|
}
|
|
347
347
|
function runOutgoingProcessor($this) {
|
|
348
|
-
var tmp = get_OutgoingProcessorCoroutineName().yj(Dispatchers_getInstance().
|
|
348
|
+
var tmp = get_OutgoingProcessorCoroutineName().yj(Dispatchers_getInstance().n2j_1);
|
|
349
349
|
var tmp_0 = CoroutineStart_UNDISPATCHED_getInstance();
|
|
350
350
|
return launch($this, tmp, tmp_0, DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0($this, null));
|
|
351
351
|
}
|
|
@@ -366,32 +366,32 @@ function sendCloseSequence$default($this, reason, exception, $completion, $super
|
|
|
366
366
|
return sendCloseSequence($this, reason, exception, $completion);
|
|
367
367
|
}
|
|
368
368
|
function tryClose($this) {
|
|
369
|
-
return $this.
|
|
369
|
+
return $this.w4a_1.atomicfu$compareAndSet(false, true);
|
|
370
370
|
}
|
|
371
371
|
function runOrCancelPinger($this) {
|
|
372
|
-
var interval = $this.
|
|
372
|
+
var interval = $this.z4a_1;
|
|
373
373
|
var tmp;
|
|
374
|
-
if ($this.
|
|
374
|
+
if ($this.w4a_1.kotlinx$atomicfu$value) {
|
|
375
375
|
tmp = null;
|
|
376
376
|
} else if (interval > 0n) {
|
|
377
|
-
var tmp_0 = $this.
|
|
378
|
-
var tmp_1 = $this.
|
|
377
|
+
var tmp_0 = $this.p4a_1.n49();
|
|
378
|
+
var tmp_1 = $this.a4b_1;
|
|
379
379
|
tmp = pinger($this, tmp_0, interval, tmp_1, DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0($this, null));
|
|
380
380
|
} else {
|
|
381
381
|
tmp = null;
|
|
382
382
|
}
|
|
383
383
|
var newPinger = tmp;
|
|
384
|
-
var tmp0_safe_receiver = $this.
|
|
384
|
+
var tmp0_safe_receiver = $this.q4a_1.atomicfu$getAndSet(newPinger);
|
|
385
385
|
if (tmp0_safe_receiver == null)
|
|
386
386
|
null;
|
|
387
387
|
else
|
|
388
|
-
tmp0_safe_receiver.
|
|
389
|
-
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.
|
|
388
|
+
tmp0_safe_receiver.a2q();
|
|
389
|
+
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.t2p(Companion_getInstance_0().c4b_1));
|
|
390
390
|
if (tmp2_safe_receiver == null)
|
|
391
391
|
null;
|
|
392
392
|
else
|
|
393
|
-
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.
|
|
394
|
-
if ($this.
|
|
393
|
+
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.d2o_1);
|
|
394
|
+
if ($this.w4a_1.kotlinx$atomicfu$value && !(newPinger == null)) {
|
|
395
395
|
runOrCancelPinger($this);
|
|
396
396
|
}
|
|
397
397
|
}
|
|
@@ -404,28 +404,28 @@ function checkMaxFrameSize($this, packet, frame, $completion) {
|
|
|
404
404
|
function processIncomingExtensions($this, frame) {
|
|
405
405
|
// Inline function 'kotlin.collections.fold' call
|
|
406
406
|
var accumulator = frame;
|
|
407
|
-
var _iterator__ex2g4s = $this.
|
|
407
|
+
var _iterator__ex2g4s = $this.p4b().t();
|
|
408
408
|
while (_iterator__ex2g4s.u()) {
|
|
409
409
|
var element = _iterator__ex2g4s.v();
|
|
410
410
|
var current = accumulator;
|
|
411
|
-
accumulator = element.
|
|
411
|
+
accumulator = element.q4b(current);
|
|
412
412
|
}
|
|
413
413
|
return accumulator;
|
|
414
414
|
}
|
|
415
415
|
function processOutgoingExtensions($this, frame) {
|
|
416
416
|
// Inline function 'kotlin.collections.fold' call
|
|
417
417
|
var accumulator = frame;
|
|
418
|
-
var _iterator__ex2g4s = $this.
|
|
418
|
+
var _iterator__ex2g4s = $this.p4b().t();
|
|
419
419
|
while (_iterator__ex2g4s.u()) {
|
|
420
420
|
var element = _iterator__ex2g4s.v();
|
|
421
421
|
var current = accumulator;
|
|
422
|
-
accumulator = element.
|
|
422
|
+
accumulator = element.r4b(current);
|
|
423
423
|
}
|
|
424
424
|
return accumulator;
|
|
425
425
|
}
|
|
426
426
|
function Companion_0() {
|
|
427
427
|
Companion_instance_0 = this;
|
|
428
|
-
this.
|
|
428
|
+
this.c4b_1 = new Pong(new Int8Array(0), NonDisposableHandle_instance);
|
|
429
429
|
}
|
|
430
430
|
var Companion_instance_0;
|
|
431
431
|
function Companion_getInstance_0() {
|
|
@@ -434,19 +434,19 @@ function Companion_getInstance_0() {
|
|
|
434
434
|
return Companion_instance_0;
|
|
435
435
|
}
|
|
436
436
|
function DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
439
|
-
this.
|
|
437
|
+
this.a4c_1 = $incomingJob;
|
|
438
|
+
this.b4c_1 = $outgoingJob;
|
|
439
|
+
this.c4c_1 = this$0;
|
|
440
440
|
CoroutineImpl.call(this, resultContinuation);
|
|
441
441
|
}
|
|
442
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
443
|
-
var tmp = this.
|
|
442
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).d3c = function ($this$launch, $completion) {
|
|
443
|
+
var tmp = this.e3c($this$launch, $completion);
|
|
444
444
|
tmp.n9_1 = Unit_instance;
|
|
445
445
|
tmp.o9_1 = null;
|
|
446
446
|
return tmp.t9();
|
|
447
447
|
};
|
|
448
448
|
protoOf(DefaultWebSocketSessionImpl$start$slambda).fa = function (p1, $completion) {
|
|
449
|
-
return this.
|
|
449
|
+
return this.d3c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
450
450
|
};
|
|
451
451
|
protoOf(DefaultWebSocketSessionImpl$start$slambda).t9 = function () {
|
|
452
452
|
var suspendResult = this.n9_1;
|
|
@@ -457,7 +457,7 @@ protoOf(DefaultWebSocketSessionImpl$start$slambda).t9 = function () {
|
|
|
457
457
|
case 0:
|
|
458
458
|
this.m9_1 = 3;
|
|
459
459
|
this.l9_1 = 1;
|
|
460
|
-
suspendResult = this.
|
|
460
|
+
suspendResult = this.a4c_1.o28(this);
|
|
461
461
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
462
462
|
return suspendResult;
|
|
463
463
|
}
|
|
@@ -465,14 +465,14 @@ protoOf(DefaultWebSocketSessionImpl$start$slambda).t9 = function () {
|
|
|
465
465
|
continue $sm;
|
|
466
466
|
case 1:
|
|
467
467
|
this.l9_1 = 2;
|
|
468
|
-
suspendResult = this.
|
|
468
|
+
suspendResult = this.b4c_1.o28(this);
|
|
469
469
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
470
470
|
return suspendResult;
|
|
471
471
|
}
|
|
472
472
|
|
|
473
473
|
continue $sm;
|
|
474
474
|
case 2:
|
|
475
|
-
this.
|
|
475
|
+
this.c4c_1.s4a_1.s28();
|
|
476
476
|
return Unit_instance;
|
|
477
477
|
case 3:
|
|
478
478
|
throw this.o9_1;
|
|
@@ -488,32 +488,32 @@ protoOf(DefaultWebSocketSessionImpl$start$slambda).t9 = function () {
|
|
|
488
488
|
}
|
|
489
489
|
while (true);
|
|
490
490
|
};
|
|
491
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
492
|
-
var i = new DefaultWebSocketSessionImpl$start$slambda(this.
|
|
493
|
-
i.
|
|
491
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).e3c = function ($this$launch, completion) {
|
|
492
|
+
var i = new DefaultWebSocketSessionImpl$start$slambda(this.a4c_1, this.b4c_1, this.c4c_1, completion);
|
|
493
|
+
i.d4c_1 = $this$launch;
|
|
494
494
|
return i;
|
|
495
495
|
};
|
|
496
496
|
function DefaultWebSocketSessionImpl$start$slambda_0($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
497
497
|
var i = new DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation);
|
|
498
498
|
var l = function ($this$launch, $completion) {
|
|
499
|
-
return i.
|
|
499
|
+
return i.d3c($this$launch, $completion);
|
|
500
500
|
};
|
|
501
501
|
l.$arity = 1;
|
|
502
502
|
return l;
|
|
503
503
|
}
|
|
504
504
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation) {
|
|
505
|
-
this.
|
|
506
|
-
this.
|
|
505
|
+
this.m4c_1 = this$0;
|
|
506
|
+
this.n4c_1 = $ponger;
|
|
507
507
|
CoroutineImpl.call(this, resultContinuation);
|
|
508
508
|
}
|
|
509
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
510
|
-
var tmp = this.
|
|
509
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d3c = function ($this$launch, $completion) {
|
|
510
|
+
var tmp = this.e3c($this$launch, $completion);
|
|
511
511
|
tmp.n9_1 = Unit_instance;
|
|
512
512
|
tmp.o9_1 = null;
|
|
513
513
|
return tmp.t9();
|
|
514
514
|
};
|
|
515
515
|
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).fa = function (p1, $completion) {
|
|
516
|
-
return this.
|
|
516
|
+
return this.d3c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
517
517
|
};
|
|
518
518
|
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function () {
|
|
519
519
|
var suspendResult = this.n9_1;
|
|
@@ -523,10 +523,10 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
523
523
|
switch (tmp) {
|
|
524
524
|
case 0:
|
|
525
525
|
this.m9_1 = 39;
|
|
526
|
-
this.
|
|
527
|
-
this.
|
|
528
|
-
this.
|
|
529
|
-
this.
|
|
526
|
+
this.y4c_1 = null;
|
|
527
|
+
this.r4c_1 = null;
|
|
528
|
+
this.q4c_1 = false;
|
|
529
|
+
this.s4c_1 = Unit_instance;
|
|
530
530
|
this.l9_1 = 1;
|
|
531
531
|
continue $sm;
|
|
532
532
|
case 1:
|
|
@@ -535,12 +535,12 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
535
535
|
case 2:
|
|
536
536
|
this.m9_1 = 33;
|
|
537
537
|
this.m9_1 = 32;
|
|
538
|
-
this.
|
|
538
|
+
this.c4d_1 = this.m4c_1.p4a_1.m49();
|
|
539
539
|
this.l9_1 = 3;
|
|
540
540
|
continue $sm;
|
|
541
541
|
case 3:
|
|
542
|
-
this.
|
|
543
|
-
this.
|
|
542
|
+
this.v4c_1 = this.c4d_1;
|
|
543
|
+
this.u4c_1 = null;
|
|
544
544
|
this.l9_1 = 4;
|
|
545
545
|
continue $sm;
|
|
546
546
|
case 4:
|
|
@@ -552,12 +552,12 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
552
552
|
case 6:
|
|
553
553
|
this.m9_1 = 29;
|
|
554
554
|
this.m9_1 = 28;
|
|
555
|
-
this.
|
|
555
|
+
this.b4d_1 = this.v4c_1.t();
|
|
556
556
|
this.l9_1 = 7;
|
|
557
557
|
continue $sm;
|
|
558
558
|
case 7:
|
|
559
559
|
this.l9_1 = 8;
|
|
560
|
-
suspendResult = this.
|
|
560
|
+
suspendResult = this.b4d_1.v2n(this);
|
|
561
561
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
562
562
|
return suspendResult;
|
|
563
563
|
}
|
|
@@ -569,24 +569,24 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
569
569
|
continue $sm;
|
|
570
570
|
}
|
|
571
571
|
|
|
572
|
-
var e = this.
|
|
573
|
-
this.
|
|
572
|
+
var e = this.b4d_1.v();
|
|
573
|
+
this.a4d_1 = e;
|
|
574
574
|
this.l9_1 = 9;
|
|
575
575
|
continue $sm;
|
|
576
576
|
case 9:
|
|
577
|
-
this.
|
|
577
|
+
this.z4c_1 = this.a4d_1;
|
|
578
578
|
var this_0 = get_LOGGER();
|
|
579
579
|
if (get_isTraceEnabled(this_0)) {
|
|
580
|
-
this_0.
|
|
580
|
+
this_0.x3n('WebSocketSession(' + toString(this.o4c_1) + ') receiving frame ' + this.z4c_1.toString());
|
|
581
581
|
}
|
|
582
582
|
|
|
583
|
-
var tmp0_subject = this.
|
|
583
|
+
var tmp0_subject = this.z4c_1;
|
|
584
584
|
if (tmp0_subject instanceof Close) {
|
|
585
|
-
if (!this.
|
|
585
|
+
if (!this.m4c_1.n49().x2n()) {
|
|
586
586
|
this.l9_1 = 18;
|
|
587
|
-
var tmp_0 = this.
|
|
588
|
-
var tmp1_elvis_lhs = readReason(this.
|
|
589
|
-
suspendResult = tmp_0.
|
|
587
|
+
var tmp_0 = this.m4c_1.n49();
|
|
588
|
+
var tmp1_elvis_lhs = readReason(this.z4c_1);
|
|
589
|
+
suspendResult = tmp_0.s2p(Close_init_$Create$(tmp1_elvis_lhs == null ? get_NORMAL_CLOSE() : tmp1_elvis_lhs), this);
|
|
590
590
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
591
591
|
return suspendResult;
|
|
592
592
|
}
|
|
@@ -597,14 +597,14 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
597
597
|
}
|
|
598
598
|
} else {
|
|
599
599
|
if (tmp0_subject instanceof Pong) {
|
|
600
|
-
var tmp2_safe_receiver = this.
|
|
600
|
+
var tmp2_safe_receiver = this.m4c_1.q4a_1.kotlinx$atomicfu$value;
|
|
601
601
|
if (tmp2_safe_receiver == null) {
|
|
602
|
-
this.
|
|
602
|
+
this.x4c_1 = null;
|
|
603
603
|
this.l9_1 = 17;
|
|
604
604
|
continue $sm;
|
|
605
605
|
} else {
|
|
606
606
|
this.l9_1 = 16;
|
|
607
|
-
suspendResult = tmp2_safe_receiver.
|
|
607
|
+
suspendResult = tmp2_safe_receiver.s2p(this.z4c_1, this);
|
|
608
608
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
609
609
|
return suspendResult;
|
|
610
610
|
}
|
|
@@ -613,14 +613,14 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
613
613
|
} else {
|
|
614
614
|
if (tmp0_subject instanceof Ping) {
|
|
615
615
|
this.l9_1 = 15;
|
|
616
|
-
suspendResult = this.
|
|
616
|
+
suspendResult = this.n4c_1.s2p(this.z4c_1, this);
|
|
617
617
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
618
618
|
return suspendResult;
|
|
619
619
|
}
|
|
620
620
|
continue $sm;
|
|
621
621
|
} else {
|
|
622
622
|
this.l9_1 = 10;
|
|
623
|
-
suspendResult = checkMaxFrameSize(this.
|
|
623
|
+
suspendResult = checkMaxFrameSize(this.m4c_1, this.r4c_1, this.z4c_1, this);
|
|
624
624
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
625
625
|
return suspendResult;
|
|
626
626
|
}
|
|
@@ -630,14 +630,14 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
630
630
|
}
|
|
631
631
|
|
|
632
632
|
case 10:
|
|
633
|
-
if (!this.
|
|
634
|
-
if (this.
|
|
635
|
-
this.
|
|
633
|
+
if (!this.z4c_1.d4d_1) {
|
|
634
|
+
if (this.y4c_1 == null) {
|
|
635
|
+
this.y4c_1 = this.z4c_1;
|
|
636
636
|
}
|
|
637
|
-
if (this.
|
|
638
|
-
this.
|
|
637
|
+
if (this.r4c_1 == null) {
|
|
638
|
+
this.r4c_1 = BytePacketBuilder();
|
|
639
639
|
}
|
|
640
|
-
writeFully(this.
|
|
640
|
+
writeFully(this.r4c_1, this.z4c_1.f4d_1);
|
|
641
641
|
this.l9_1 = 21;
|
|
642
642
|
continue $sm;
|
|
643
643
|
} else {
|
|
@@ -646,9 +646,9 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
646
646
|
}
|
|
647
647
|
|
|
648
648
|
case 11:
|
|
649
|
-
if (this.
|
|
649
|
+
if (this.y4c_1 == null) {
|
|
650
650
|
this.l9_1 = 14;
|
|
651
|
-
suspendResult = this.
|
|
651
|
+
suspendResult = this.m4c_1.u4a_1.s2p(processIncomingExtensions(this.m4c_1, this.z4c_1), this);
|
|
652
652
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
653
653
|
return suspendResult;
|
|
654
654
|
}
|
|
@@ -659,11 +659,11 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
659
659
|
}
|
|
660
660
|
|
|
661
661
|
case 12:
|
|
662
|
-
writeFully(ensureNotNull(this.
|
|
663
|
-
var defragmented = Companion_getInstance_5().
|
|
664
|
-
this.
|
|
662
|
+
writeFully(ensureNotNull(this.r4c_1), this.z4c_1.f4d_1);
|
|
663
|
+
var defragmented = Companion_getInstance_5().l4d(true, this.y4c_1.e4d_1, readByteArray(build(this.r4c_1)), this.y4c_1.h4d_1, this.y4c_1.i4d_1, this.y4c_1.j4d_1);
|
|
664
|
+
this.y4c_1 = null;
|
|
665
665
|
this.l9_1 = 13;
|
|
666
|
-
suspendResult = this.
|
|
666
|
+
suspendResult = this.m4c_1.u4a_1.s2p(processIncomingExtensions(this.m4c_1, defragmented), this);
|
|
667
667
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
668
668
|
return suspendResult;
|
|
669
669
|
}
|
|
@@ -671,7 +671,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
671
671
|
continue $sm;
|
|
672
672
|
case 13:
|
|
673
673
|
var tmp_1 = this;
|
|
674
|
-
tmp_1.
|
|
674
|
+
tmp_1.w4c_1 = Unit_instance;
|
|
675
675
|
this.l9_1 = 20;
|
|
676
676
|
continue $sm;
|
|
677
677
|
case 14:
|
|
@@ -679,23 +679,23 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
679
679
|
continue $sm;
|
|
680
680
|
case 15:
|
|
681
681
|
var tmp_2 = this;
|
|
682
|
-
tmp_2.
|
|
682
|
+
tmp_2.w4c_1 = Unit_instance;
|
|
683
683
|
this.l9_1 = 20;
|
|
684
684
|
continue $sm;
|
|
685
685
|
case 16:
|
|
686
686
|
var tmp_3 = this;
|
|
687
|
-
tmp_3.
|
|
687
|
+
tmp_3.x4c_1 = Unit_instance;
|
|
688
688
|
this.l9_1 = 17;
|
|
689
689
|
continue $sm;
|
|
690
690
|
case 17:
|
|
691
|
-
this.
|
|
691
|
+
this.w4c_1 = this.x4c_1;
|
|
692
692
|
this.l9_1 = 20;
|
|
693
693
|
continue $sm;
|
|
694
694
|
case 18:
|
|
695
695
|
this.l9_1 = 19;
|
|
696
696
|
continue $sm;
|
|
697
697
|
case 19:
|
|
698
|
-
this.
|
|
698
|
+
this.q4c_1 = true;
|
|
699
699
|
this.l9_1 = 22;
|
|
700
700
|
var tmp_4 = this;
|
|
701
701
|
continue $sm;
|
|
@@ -712,24 +712,24 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
712
712
|
continue $sm;
|
|
713
713
|
case 22:
|
|
714
714
|
this.m9_1 = 32;
|
|
715
|
-
cancelConsumed(this.
|
|
715
|
+
cancelConsumed(this.v4c_1, this.u4c_1);
|
|
716
716
|
this.m9_1 = 39;
|
|
717
717
|
this.l9_1 = 23;
|
|
718
718
|
continue $sm;
|
|
719
719
|
case 23:
|
|
720
720
|
this.m9_1 = 39;
|
|
721
|
-
this.
|
|
722
|
-
var tmp0_safe_receiver = this.
|
|
721
|
+
this.n4c_1.a2q();
|
|
722
|
+
var tmp0_safe_receiver = this.r4c_1;
|
|
723
723
|
if (tmp0_safe_receiver == null)
|
|
724
724
|
null;
|
|
725
725
|
else {
|
|
726
726
|
tmp0_safe_receiver.c5();
|
|
727
727
|
}
|
|
728
728
|
|
|
729
|
-
this.
|
|
730
|
-
if (!this.
|
|
729
|
+
this.m4c_1.u4a_1.a2q();
|
|
730
|
+
if (!this.q4c_1) {
|
|
731
731
|
this.l9_1 = 24;
|
|
732
|
-
suspendResult = close(this.
|
|
732
|
+
suspendResult = close(this.m4c_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
733
733
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
734
734
|
return suspendResult;
|
|
735
735
|
}
|
|
@@ -751,7 +751,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
751
751
|
continue $sm;
|
|
752
752
|
case 27:
|
|
753
753
|
this.m9_1 = 32;
|
|
754
|
-
cancelConsumed(this.
|
|
754
|
+
cancelConsumed(this.v4c_1, this.u4c_1);
|
|
755
755
|
this.l9_1 = 31;
|
|
756
756
|
continue $sm;
|
|
757
757
|
case 28:
|
|
@@ -760,7 +760,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
760
760
|
if (tmp_7 instanceof Error) {
|
|
761
761
|
var e_0 = this.o9_1;
|
|
762
762
|
var tmp_8 = this;
|
|
763
|
-
this.
|
|
763
|
+
this.u4c_1 = e_0;
|
|
764
764
|
throw e_0;
|
|
765
765
|
} else {
|
|
766
766
|
throw this.o9_1;
|
|
@@ -769,11 +769,11 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
769
769
|
case 29:
|
|
770
770
|
this.m9_1 = 32;
|
|
771
771
|
var t = this.o9_1;
|
|
772
|
-
cancelConsumed(this.
|
|
772
|
+
cancelConsumed(this.v4c_1, this.u4c_1);
|
|
773
773
|
throw t;
|
|
774
774
|
case 30:
|
|
775
775
|
this.m9_1 = 32;
|
|
776
|
-
cancelConsumed(this.
|
|
776
|
+
cancelConsumed(this.v4c_1, this.u4c_1);
|
|
777
777
|
if (false) {
|
|
778
778
|
this.l9_1 = 3;
|
|
779
779
|
continue $sm;
|
|
@@ -782,7 +782,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
782
782
|
this.l9_1 = 31;
|
|
783
783
|
continue $sm;
|
|
784
784
|
case 31:
|
|
785
|
-
this.
|
|
785
|
+
this.s4c_1 = Unit_instance;
|
|
786
786
|
this.m9_1 = 39;
|
|
787
787
|
this.l9_1 = 36;
|
|
788
788
|
continue $sm;
|
|
@@ -792,7 +792,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
792
792
|
if (tmp_9 instanceof ClosedSendChannelException) {
|
|
793
793
|
var _unused_var__etf5q3 = this.o9_1;
|
|
794
794
|
var tmp_10 = this;
|
|
795
|
-
tmp_10.
|
|
795
|
+
tmp_10.s4c_1 = Unit_instance;
|
|
796
796
|
this.m9_1 = 39;
|
|
797
797
|
this.l9_1 = 36;
|
|
798
798
|
continue $sm;
|
|
@@ -801,8 +801,8 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
801
801
|
if (tmp_11 instanceof Error) {
|
|
802
802
|
var cause = this.o9_1;
|
|
803
803
|
var tmp_12 = this;
|
|
804
|
-
this.
|
|
805
|
-
tmp_12.
|
|
804
|
+
this.n4c_1.a2q();
|
|
805
|
+
tmp_12.s4c_1 = this.m4c_1.u4a_1.y2p(cause);
|
|
806
806
|
this.m9_1 = 39;
|
|
807
807
|
this.l9_1 = 36;
|
|
808
808
|
continue $sm;
|
|
@@ -813,19 +813,19 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
813
813
|
|
|
814
814
|
case 33:
|
|
815
815
|
this.m9_1 = 39;
|
|
816
|
-
this.
|
|
817
|
-
this.
|
|
818
|
-
var tmp0_safe_receiver_0 = this.
|
|
816
|
+
this.t4c_1 = this.o9_1;
|
|
817
|
+
this.n4c_1.a2q();
|
|
818
|
+
var tmp0_safe_receiver_0 = this.r4c_1;
|
|
819
819
|
if (tmp0_safe_receiver_0 == null)
|
|
820
820
|
null;
|
|
821
821
|
else {
|
|
822
822
|
tmp0_safe_receiver_0.c5();
|
|
823
823
|
}
|
|
824
824
|
|
|
825
|
-
this.
|
|
826
|
-
if (!this.
|
|
825
|
+
this.m4c_1.u4a_1.a2q();
|
|
826
|
+
if (!this.q4c_1) {
|
|
827
827
|
this.l9_1 = 34;
|
|
828
|
-
suspendResult = close(this.
|
|
828
|
+
suspendResult = close(this.m4c_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
829
829
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
830
830
|
return suspendResult;
|
|
831
831
|
}
|
|
@@ -839,22 +839,22 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
839
839
|
this.l9_1 = 35;
|
|
840
840
|
continue $sm;
|
|
841
841
|
case 35:
|
|
842
|
-
throw this.
|
|
842
|
+
throw this.t4c_1;
|
|
843
843
|
case 36:
|
|
844
|
-
this.
|
|
844
|
+
this.p4c_1 = this.s4c_1;
|
|
845
845
|
this.m9_1 = 39;
|
|
846
|
-
this.
|
|
847
|
-
var tmp0_safe_receiver_1 = this.
|
|
846
|
+
this.n4c_1.a2q();
|
|
847
|
+
var tmp0_safe_receiver_1 = this.r4c_1;
|
|
848
848
|
if (tmp0_safe_receiver_1 == null)
|
|
849
849
|
null;
|
|
850
850
|
else {
|
|
851
851
|
tmp0_safe_receiver_1.c5();
|
|
852
852
|
}
|
|
853
853
|
|
|
854
|
-
this.
|
|
855
|
-
if (!this.
|
|
854
|
+
this.m4c_1.u4a_1.a2q();
|
|
855
|
+
if (!this.q4c_1) {
|
|
856
856
|
this.l9_1 = 37;
|
|
857
|
-
suspendResult = close(this.
|
|
857
|
+
suspendResult = close(this.m4c_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
858
858
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
859
859
|
return suspendResult;
|
|
860
860
|
}
|
|
@@ -883,31 +883,31 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t9 = function
|
|
|
883
883
|
}
|
|
884
884
|
while (true);
|
|
885
885
|
};
|
|
886
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
887
|
-
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.
|
|
888
|
-
i.
|
|
886
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).e3c = function ($this$launch, completion) {
|
|
887
|
+
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.m4c_1, this.n4c_1, completion);
|
|
888
|
+
i.o4c_1 = $this$launch;
|
|
889
889
|
return i;
|
|
890
890
|
};
|
|
891
891
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0(this$0, $ponger, resultContinuation) {
|
|
892
892
|
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation);
|
|
893
893
|
var l = function ($this$launch, $completion) {
|
|
894
|
-
return i.
|
|
894
|
+
return i.d3c($this$launch, $completion);
|
|
895
895
|
};
|
|
896
896
|
l.$arity = 1;
|
|
897
897
|
return l;
|
|
898
898
|
}
|
|
899
899
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation) {
|
|
900
|
-
this.
|
|
900
|
+
this.u4d_1 = this$0;
|
|
901
901
|
CoroutineImpl.call(this, resultContinuation);
|
|
902
902
|
}
|
|
903
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
904
|
-
var tmp = this.
|
|
903
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).d3c = function ($this$launch, $completion) {
|
|
904
|
+
var tmp = this.e3c($this$launch, $completion);
|
|
905
905
|
tmp.n9_1 = Unit_instance;
|
|
906
906
|
tmp.o9_1 = null;
|
|
907
907
|
return tmp.t9();
|
|
908
908
|
};
|
|
909
909
|
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).fa = function (p1, $completion) {
|
|
910
|
-
return this.
|
|
910
|
+
return this.d3c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
911
911
|
};
|
|
912
912
|
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).t9 = function () {
|
|
913
913
|
var suspendResult = this.n9_1;
|
|
@@ -926,7 +926,7 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).t9 = function
|
|
|
926
926
|
this.m9_1 = 9;
|
|
927
927
|
this.m9_1 = 4;
|
|
928
928
|
this.l9_1 = 3;
|
|
929
|
-
suspendResult = outgoingProcessorLoop(this.
|
|
929
|
+
suspendResult = outgoingProcessorLoop(this.u4d_1, this);
|
|
930
930
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
931
931
|
return suspendResult;
|
|
932
932
|
}
|
|
@@ -956,7 +956,7 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).t9 = function
|
|
|
956
956
|
if (tmp_2 instanceof CancellationException) {
|
|
957
957
|
var _unused_var__etf5q3_1 = this.o9_1;
|
|
958
958
|
this.l9_1 = 5;
|
|
959
|
-
suspendResult = sendCloseSequence$default(this.
|
|
959
|
+
suspendResult = sendCloseSequence$default(this.u4d_1, CloseReason_init_$Create$(Codes_NORMAL_getInstance(), ''), VOID, this);
|
|
960
960
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
961
961
|
return suspendResult;
|
|
962
962
|
}
|
|
@@ -972,9 +972,9 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).t9 = function
|
|
|
972
972
|
var tmp_4 = this.o9_1;
|
|
973
973
|
if (tmp_4 instanceof Error) {
|
|
974
974
|
var cause = this.o9_1;
|
|
975
|
-
this.
|
|
975
|
+
this.u4d_1.v4a_1.r28(CancellationException_init_$Create$('Failed to send frame', cause));
|
|
976
976
|
this.l9_1 = 6;
|
|
977
|
-
suspendResult = closeExceptionally(this.
|
|
977
|
+
suspendResult = closeExceptionally(this.u4d_1.p4a_1, cause, this);
|
|
978
978
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
979
979
|
return suspendResult;
|
|
980
980
|
}
|
|
@@ -997,9 +997,9 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).t9 = function
|
|
|
997
997
|
continue $sm;
|
|
998
998
|
case 7:
|
|
999
999
|
this.m9_1 = 13;
|
|
1000
|
-
this.
|
|
1000
|
+
this.u4d_1.v4a_1.c2q();
|
|
1001
1001
|
this.l9_1 = 8;
|
|
1002
|
-
suspendResult = close(this.
|
|
1002
|
+
suspendResult = close(this.u4d_1.p4a_1, VOID, this);
|
|
1003
1003
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1004
1004
|
return suspendResult;
|
|
1005
1005
|
}
|
|
@@ -1009,22 +1009,22 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).t9 = function
|
|
|
1009
1009
|
return Unit_instance;
|
|
1010
1010
|
case 9:
|
|
1011
1011
|
this.m9_1 = 13;
|
|
1012
|
-
this.
|
|
1013
|
-
this.
|
|
1012
|
+
this.w4d_1 = this.o9_1;
|
|
1013
|
+
this.u4d_1.v4a_1.c2q();
|
|
1014
1014
|
this.l9_1 = 10;
|
|
1015
|
-
suspendResult = close(this.
|
|
1015
|
+
suspendResult = close(this.u4d_1.p4a_1, VOID, this);
|
|
1016
1016
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1017
1017
|
return suspendResult;
|
|
1018
1018
|
}
|
|
1019
1019
|
|
|
1020
1020
|
continue $sm;
|
|
1021
1021
|
case 10:
|
|
1022
|
-
throw this.
|
|
1022
|
+
throw this.w4d_1;
|
|
1023
1023
|
case 11:
|
|
1024
1024
|
this.m9_1 = 13;
|
|
1025
|
-
this.
|
|
1025
|
+
this.u4d_1.v4a_1.c2q();
|
|
1026
1026
|
this.l9_1 = 12;
|
|
1027
|
-
suspendResult = close(this.
|
|
1027
|
+
suspendResult = close(this.u4d_1.p4a_1, VOID, this);
|
|
1028
1028
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1029
1029
|
return suspendResult;
|
|
1030
1030
|
}
|
|
@@ -1046,31 +1046,31 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).t9 = function
|
|
|
1046
1046
|
}
|
|
1047
1047
|
while (true);
|
|
1048
1048
|
};
|
|
1049
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
1050
|
-
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.
|
|
1051
|
-
i.
|
|
1049
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).e3c = function ($this$launch, completion) {
|
|
1050
|
+
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.u4d_1, completion);
|
|
1051
|
+
i.v4d_1 = $this$launch;
|
|
1052
1052
|
return i;
|
|
1053
1053
|
};
|
|
1054
1054
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0(this$0, resultContinuation) {
|
|
1055
1055
|
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation);
|
|
1056
1056
|
var l = function ($this$launch, $completion) {
|
|
1057
|
-
return i.
|
|
1057
|
+
return i.d3c($this$launch, $completion);
|
|
1058
1058
|
};
|
|
1059
1059
|
l.$arity = 1;
|
|
1060
1060
|
return l;
|
|
1061
1061
|
}
|
|
1062
1062
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation) {
|
|
1063
|
-
this.
|
|
1063
|
+
this.f4e_1 = this$0;
|
|
1064
1064
|
CoroutineImpl.call(this, resultContinuation);
|
|
1065
1065
|
}
|
|
1066
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1067
|
-
var tmp = this.
|
|
1066
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).h4e = function (it, $completion) {
|
|
1067
|
+
var tmp = this.i4e(it, $completion);
|
|
1068
1068
|
tmp.n9_1 = Unit_instance;
|
|
1069
1069
|
tmp.o9_1 = null;
|
|
1070
1070
|
return tmp.t9();
|
|
1071
1071
|
};
|
|
1072
1072
|
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).fa = function (p1, $completion) {
|
|
1073
|
-
return this.
|
|
1073
|
+
return this.h4e(p1 instanceof CloseReason ? p1 : THROW_CCE(), $completion);
|
|
1074
1074
|
};
|
|
1075
1075
|
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).t9 = function () {
|
|
1076
1076
|
var suspendResult = this.n9_1;
|
|
@@ -1081,7 +1081,7 @@ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).t9 = function ()
|
|
|
1081
1081
|
case 0:
|
|
1082
1082
|
this.m9_1 = 2;
|
|
1083
1083
|
this.l9_1 = 1;
|
|
1084
|
-
suspendResult = sendCloseSequence(this.
|
|
1084
|
+
suspendResult = sendCloseSequence(this.f4e_1, this.g4e_1, IOException_init_$Create$('Ping timeout'), this);
|
|
1085
1085
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1086
1086
|
return suspendResult;
|
|
1087
1087
|
}
|
|
@@ -1103,22 +1103,22 @@ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).t9 = function ()
|
|
|
1103
1103
|
}
|
|
1104
1104
|
while (true);
|
|
1105
1105
|
};
|
|
1106
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1107
|
-
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.
|
|
1108
|
-
i.
|
|
1106
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).i4e = function (it, completion) {
|
|
1107
|
+
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.f4e_1, completion);
|
|
1108
|
+
i.g4e_1 = it;
|
|
1109
1109
|
return i;
|
|
1110
1110
|
};
|
|
1111
1111
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0(this$0, resultContinuation) {
|
|
1112
1112
|
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation);
|
|
1113
1113
|
var l = function (it, $completion) {
|
|
1114
|
-
return i.
|
|
1114
|
+
return i.h4e(it, $completion);
|
|
1115
1115
|
};
|
|
1116
1116
|
l.$arity = 1;
|
|
1117
1117
|
return l;
|
|
1118
1118
|
}
|
|
1119
1119
|
function $outgoingProcessorLoopCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1120
1120
|
CoroutineImpl.call(this, resultContinuation);
|
|
1121
|
-
this.
|
|
1121
|
+
this.a4a_1 = _this__u8e3s4;
|
|
1122
1122
|
}
|
|
1123
1123
|
protoOf($outgoingProcessorLoopCOROUTINE$).t9 = function () {
|
|
1124
1124
|
var suspendResult = this.n9_1;
|
|
@@ -1128,12 +1128,12 @@ protoOf($outgoingProcessorLoopCOROUTINE$).t9 = function () {
|
|
|
1128
1128
|
switch (tmp) {
|
|
1129
1129
|
case 0:
|
|
1130
1130
|
this.m9_1 = 7;
|
|
1131
|
-
this.
|
|
1131
|
+
this.c4a_1 = this.a4a_1.v4a_1.t();
|
|
1132
1132
|
this.l9_1 = 1;
|
|
1133
1133
|
continue $sm;
|
|
1134
1134
|
case 1:
|
|
1135
1135
|
this.l9_1 = 2;
|
|
1136
|
-
suspendResult = this.
|
|
1136
|
+
suspendResult = this.c4a_1.v2n(this);
|
|
1137
1137
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1138
1138
|
return suspendResult;
|
|
1139
1139
|
}
|
|
@@ -1145,15 +1145,15 @@ protoOf($outgoingProcessorLoopCOROUTINE$).t9 = function () {
|
|
|
1145
1145
|
continue $sm;
|
|
1146
1146
|
}
|
|
1147
1147
|
|
|
1148
|
-
var frame = this.
|
|
1148
|
+
var frame = this.c4a_1.v();
|
|
1149
1149
|
var this_0 = get_LOGGER();
|
|
1150
1150
|
if (get_isTraceEnabled(this_0)) {
|
|
1151
|
-
this_0.
|
|
1151
|
+
this_0.x3n('Sending ' + frame.toString() + ' from session ' + toString(this.a4a_1));
|
|
1152
1152
|
}
|
|
1153
1153
|
|
|
1154
1154
|
if (frame instanceof Close) {
|
|
1155
1155
|
this.l9_1 = 3;
|
|
1156
|
-
suspendResult = sendCloseSequence$default(this.
|
|
1156
|
+
suspendResult = sendCloseSequence$default(this.a4a_1, readReason(frame), VOID, this);
|
|
1157
1157
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1158
1158
|
return suspendResult;
|
|
1159
1159
|
}
|
|
@@ -1166,11 +1166,11 @@ protoOf($outgoingProcessorLoopCOROUTINE$).t9 = function () {
|
|
|
1166
1166
|
tmp_0 = frame instanceof Binary;
|
|
1167
1167
|
}
|
|
1168
1168
|
if (tmp_0) {
|
|
1169
|
-
this.
|
|
1169
|
+
this.b4a_1 = processOutgoingExtensions(this.a4a_1, frame);
|
|
1170
1170
|
this.l9_1 = 4;
|
|
1171
1171
|
continue $sm;
|
|
1172
1172
|
} else {
|
|
1173
|
-
this.
|
|
1173
|
+
this.b4a_1 = frame;
|
|
1174
1174
|
this.l9_1 = 4;
|
|
1175
1175
|
continue $sm;
|
|
1176
1176
|
}
|
|
@@ -1181,9 +1181,9 @@ protoOf($outgoingProcessorLoopCOROUTINE$).t9 = function () {
|
|
|
1181
1181
|
var tmp_1 = this;
|
|
1182
1182
|
continue $sm;
|
|
1183
1183
|
case 4:
|
|
1184
|
-
var processedFrame = this.
|
|
1184
|
+
var processedFrame = this.b4a_1;
|
|
1185
1185
|
this.l9_1 = 5;
|
|
1186
|
-
suspendResult = this.
|
|
1186
|
+
suspendResult = this.a4a_1.p4a_1.n49().s2p(processedFrame, this);
|
|
1187
1187
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1188
1188
|
return suspendResult;
|
|
1189
1189
|
}
|
|
@@ -1210,9 +1210,9 @@ protoOf($outgoingProcessorLoopCOROUTINE$).t9 = function () {
|
|
|
1210
1210
|
};
|
|
1211
1211
|
function $sendCloseSequenceCOROUTINE$(_this__u8e3s4, reason, exception, resultContinuation) {
|
|
1212
1212
|
CoroutineImpl.call(this, resultContinuation);
|
|
1213
|
-
this.
|
|
1214
|
-
this.
|
|
1215
|
-
this.
|
|
1213
|
+
this.l4a_1 = _this__u8e3s4;
|
|
1214
|
+
this.m4a_1 = reason;
|
|
1215
|
+
this.n4a_1 = exception;
|
|
1216
1216
|
}
|
|
1217
1217
|
protoOf($sendCloseSequenceCOROUTINE$).t9 = function () {
|
|
1218
1218
|
var suspendResult = this.n9_1;
|
|
@@ -1222,25 +1222,25 @@ protoOf($sendCloseSequenceCOROUTINE$).t9 = function () {
|
|
|
1222
1222
|
switch (tmp) {
|
|
1223
1223
|
case 0:
|
|
1224
1224
|
this.m9_1 = 6;
|
|
1225
|
-
if (!tryClose(this.
|
|
1225
|
+
if (!tryClose(this.l4a_1))
|
|
1226
1226
|
return Unit_instance;
|
|
1227
1227
|
var this_0 = get_LOGGER();
|
|
1228
1228
|
if (get_isTraceEnabled(this_0)) {
|
|
1229
|
-
this_0.
|
|
1229
|
+
this_0.x3n('Sending Close Sequence for session ' + toString(this.l4a_1) + ' with reason ' + toString_0(this.m4a_1) + ' and exception ' + toString_0(this.n4a_1));
|
|
1230
1230
|
}
|
|
1231
1231
|
|
|
1232
|
-
this.
|
|
1232
|
+
this.l4a_1.s4a_1.p2f();
|
|
1233
1233
|
var tmp_0 = this;
|
|
1234
|
-
var tmp0_elvis_lhs = this.
|
|
1235
|
-
tmp_0.
|
|
1234
|
+
var tmp0_elvis_lhs = this.m4a_1;
|
|
1235
|
+
tmp_0.o4a_1 = tmp0_elvis_lhs == null ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : tmp0_elvis_lhs;
|
|
1236
1236
|
this.l9_1 = 1;
|
|
1237
1237
|
continue $sm;
|
|
1238
1238
|
case 1:
|
|
1239
1239
|
this.m9_1 = 5;
|
|
1240
|
-
runOrCancelPinger(this.
|
|
1241
|
-
if (!(this.
|
|
1240
|
+
runOrCancelPinger(this.l4a_1);
|
|
1241
|
+
if (!(this.o4a_1.g49_1 === Codes_CLOSED_ABNORMALLY_getInstance().c49_1)) {
|
|
1242
1242
|
this.l9_1 = 2;
|
|
1243
|
-
suspendResult = this.
|
|
1243
|
+
suspendResult = this.l4a_1.p4a_1.n49().s2p(Close_init_$Create$(this.o4a_1), this);
|
|
1244
1244
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1245
1245
|
return suspendResult;
|
|
1246
1246
|
}
|
|
@@ -1259,20 +1259,20 @@ protoOf($sendCloseSequenceCOROUTINE$).t9 = function () {
|
|
|
1259
1259
|
continue $sm;
|
|
1260
1260
|
case 4:
|
|
1261
1261
|
this.m9_1 = 6;
|
|
1262
|
-
this.
|
|
1263
|
-
if (!(this.
|
|
1264
|
-
this.
|
|
1265
|
-
this.
|
|
1262
|
+
this.l4a_1.r4a_1.n2f(this.o4a_1);
|
|
1263
|
+
if (!(this.n4a_1 == null)) {
|
|
1264
|
+
this.l4a_1.v4a_1.y2p(this.n4a_1);
|
|
1265
|
+
this.l4a_1.u4a_1.y2p(this.n4a_1);
|
|
1266
1266
|
}
|
|
1267
1267
|
|
|
1268
1268
|
return Unit_instance;
|
|
1269
1269
|
case 5:
|
|
1270
1270
|
this.m9_1 = 6;
|
|
1271
1271
|
var t = this.o9_1;
|
|
1272
|
-
this.
|
|
1273
|
-
if (!(this.
|
|
1274
|
-
this.
|
|
1275
|
-
this.
|
|
1272
|
+
this.l4a_1.r4a_1.n2f(this.o4a_1);
|
|
1273
|
+
if (!(this.n4a_1 == null)) {
|
|
1274
|
+
this.l4a_1.v4a_1.y2p(this.n4a_1);
|
|
1275
|
+
this.l4a_1.u4a_1.y2p(this.n4a_1);
|
|
1276
1276
|
}
|
|
1277
1277
|
|
|
1278
1278
|
throw t;
|
|
@@ -1292,9 +1292,9 @@ protoOf($sendCloseSequenceCOROUTINE$).t9 = function () {
|
|
|
1292
1292
|
};
|
|
1293
1293
|
function $checkMaxFrameSizeCOROUTINE$(_this__u8e3s4, packet, frame, resultContinuation) {
|
|
1294
1294
|
CoroutineImpl.call(this, resultContinuation);
|
|
1295
|
-
this.
|
|
1296
|
-
this.
|
|
1297
|
-
this.
|
|
1295
|
+
this.l4b_1 = _this__u8e3s4;
|
|
1296
|
+
this.m4b_1 = packet;
|
|
1297
|
+
this.n4b_1 = frame;
|
|
1298
1298
|
}
|
|
1299
1299
|
protoOf($checkMaxFrameSizeCOROUTINE$).t9 = function () {
|
|
1300
1300
|
var suspendResult = this.n9_1;
|
|
@@ -1305,19 +1305,19 @@ protoOf($checkMaxFrameSizeCOROUTINE$).t9 = function () {
|
|
|
1305
1305
|
case 0:
|
|
1306
1306
|
this.m9_1 = 3;
|
|
1307
1307
|
var tmp_0 = this;
|
|
1308
|
-
var tmp_1 = this.
|
|
1309
|
-
var tmp0_safe_receiver = this.
|
|
1308
|
+
var tmp_1 = this.n4b_1.f4d_1.length;
|
|
1309
|
+
var tmp0_safe_receiver = this.m4b_1;
|
|
1310
1310
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_size(tmp0_safe_receiver);
|
|
1311
|
-
tmp_0.
|
|
1312
|
-
if (fromInt(this.
|
|
1313
|
-
var tmp2_safe_receiver = this.
|
|
1311
|
+
tmp_0.o4b_1 = tmp_1 + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
1312
|
+
if (fromInt(this.o4b_1) > this.l4b_1.l49()) {
|
|
1313
|
+
var tmp2_safe_receiver = this.m4b_1;
|
|
1314
1314
|
if (tmp2_safe_receiver == null)
|
|
1315
1315
|
null;
|
|
1316
1316
|
else {
|
|
1317
1317
|
tmp2_safe_receiver.c5();
|
|
1318
1318
|
}
|
|
1319
1319
|
this.l9_1 = 2;
|
|
1320
|
-
suspendResult = close(this.
|
|
1320
|
+
suspendResult = close(this.l4b_1, CloseReason_init_$Create$(Codes_TOO_BIG_getInstance(), 'Frame is too big: ' + this.o4b_1 + '. Max size is ' + this.l4b_1.l49().toString()), this);
|
|
1321
1321
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1322
1322
|
return suspendResult;
|
|
1323
1323
|
}
|
|
@@ -1330,7 +1330,7 @@ protoOf($checkMaxFrameSizeCOROUTINE$).t9 = function () {
|
|
|
1330
1330
|
case 1:
|
|
1331
1331
|
return Unit_instance;
|
|
1332
1332
|
case 2:
|
|
1333
|
-
throw new FrameTooBigException(fromInt(this.
|
|
1333
|
+
throw new FrameTooBigException(fromInt(this.o4b_1));
|
|
1334
1334
|
case 3:
|
|
1335
1335
|
throw this.o9_1;
|
|
1336
1336
|
}
|
|
@@ -1347,42 +1347,42 @@ protoOf($checkMaxFrameSizeCOROUTINE$).t9 = function () {
|
|
|
1347
1347
|
};
|
|
1348
1348
|
function DefaultWebSocketSessionImpl(raw, pingIntervalMillis, timeoutMillis, incomingFramesConfig, outgoingFramesConfig) {
|
|
1349
1349
|
Companion_getInstance_0();
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1353
|
-
this.
|
|
1354
|
-
this.
|
|
1355
|
-
this.
|
|
1356
|
-
this.
|
|
1357
|
-
this.
|
|
1350
|
+
this.p4a_1 = raw;
|
|
1351
|
+
this.q4a_1 = atomic$ref$1(null);
|
|
1352
|
+
this.r4a_1 = CompletableDeferred();
|
|
1353
|
+
this.s4a_1 = Job();
|
|
1354
|
+
this.t4a_1 = this.p4a_1.i27().wj(Key_instance).yj(this.s4a_1).yj(new CoroutineName('ws-default'));
|
|
1355
|
+
this.u4a_1 = from(Factory_getInstance(), incomingFramesConfig);
|
|
1356
|
+
this.v4a_1 = from(Factory_getInstance(), outgoingFramesConfig);
|
|
1357
|
+
this.w4a_1 = atomic$boolean$1(false);
|
|
1358
1358
|
var tmp = this;
|
|
1359
1359
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1360
|
-
tmp.
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1363
|
-
this.
|
|
1364
|
-
this.
|
|
1360
|
+
tmp.x4a_1 = ArrayList_init_$Create$();
|
|
1361
|
+
this.y4a_1 = atomic$boolean$1(false);
|
|
1362
|
+
this.z4a_1 = pingIntervalMillis;
|
|
1363
|
+
this.a4b_1 = timeoutMillis;
|
|
1364
|
+
this.b4b_1 = this.r4a_1;
|
|
1365
1365
|
}
|
|
1366
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1367
|
-
return this.s4a_1;
|
|
1368
|
-
};
|
|
1369
|
-
protoOf(DefaultWebSocketSessionImpl).l49 = function () {
|
|
1366
|
+
protoOf(DefaultWebSocketSessionImpl).i27 = function () {
|
|
1370
1367
|
return this.t4a_1;
|
|
1371
1368
|
};
|
|
1372
1369
|
protoOf(DefaultWebSocketSessionImpl).m49 = function () {
|
|
1373
1370
|
return this.u4a_1;
|
|
1374
1371
|
};
|
|
1375
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1376
|
-
return this.
|
|
1372
|
+
protoOf(DefaultWebSocketSessionImpl).n49 = function () {
|
|
1373
|
+
return this.v4a_1;
|
|
1377
1374
|
};
|
|
1378
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1379
|
-
this.
|
|
1375
|
+
protoOf(DefaultWebSocketSessionImpl).p4b = function () {
|
|
1376
|
+
return this.x4a_1;
|
|
1380
1377
|
};
|
|
1381
|
-
protoOf(DefaultWebSocketSessionImpl).k49 = function () {
|
|
1382
|
-
|
|
1378
|
+
protoOf(DefaultWebSocketSessionImpl).k49 = function (value) {
|
|
1379
|
+
this.p4a_1.k49(value);
|
|
1380
|
+
};
|
|
1381
|
+
protoOf(DefaultWebSocketSessionImpl).l49 = function () {
|
|
1382
|
+
return this.p4a_1.l49();
|
|
1383
1383
|
};
|
|
1384
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1385
|
-
if (!this.
|
|
1384
|
+
protoOf(DefaultWebSocketSessionImpl).j49 = function (negotiatedExtensions) {
|
|
1385
|
+
if (!this.y4a_1.atomicfu$compareAndSet(false, true)) {
|
|
1386
1386
|
// Inline function 'kotlin.error' call
|
|
1387
1387
|
var message = 'WebSocket session ' + toString(this) + ' is already started.';
|
|
1388
1388
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -1391,16 +1391,16 @@ protoOf(DefaultWebSocketSessionImpl).i49 = function (negotiatedExtensions) {
|
|
|
1391
1391
|
var this_0 = get_LOGGER();
|
|
1392
1392
|
if (get_isTraceEnabled(this_0)) {
|
|
1393
1393
|
var tmp$ret$0 = 'Starting default WebSocketSession(' + toString(this) + ') ' + ('with negotiated extensions: ' + joinToString(negotiatedExtensions));
|
|
1394
|
-
this_0.
|
|
1394
|
+
this_0.x3n(tmp$ret$0);
|
|
1395
1395
|
}
|
|
1396
|
-
this.
|
|
1396
|
+
this.x4a_1.j1(negotiatedExtensions);
|
|
1397
1397
|
runOrCancelPinger(this);
|
|
1398
|
-
var incomingJob = runIncomingProcessor(this, ponger(this, this.
|
|
1398
|
+
var incomingJob = runIncomingProcessor(this, ponger(this, this.n49()));
|
|
1399
1399
|
var outgoingJob = runOutgoingProcessor(this);
|
|
1400
1400
|
launch(this, VOID, VOID, DefaultWebSocketSessionImpl$start$slambda_0(incomingJob, outgoingJob, this, null));
|
|
1401
1401
|
};
|
|
1402
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1403
|
-
return this.
|
|
1402
|
+
protoOf(DefaultWebSocketSessionImpl).l32 = function ($completion) {
|
|
1403
|
+
return this.p4a_1.l32($completion);
|
|
1404
1404
|
};
|
|
1405
1405
|
var properties_initialized_DefaultWebSocketSession_kt_6cjlhc;
|
|
1406
1406
|
function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
@@ -1422,20 +1422,20 @@ function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
|
1422
1422
|
}
|
|
1423
1423
|
}
|
|
1424
1424
|
function readReason(_this__u8e3s4) {
|
|
1425
|
-
if (_this__u8e3s4.
|
|
1425
|
+
if (_this__u8e3s4.f4d_1.length < 2) {
|
|
1426
1426
|
return null;
|
|
1427
1427
|
}
|
|
1428
1428
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1429
1429
|
var builder = new Buffer();
|
|
1430
|
-
writeFully(builder, _this__u8e3s4.
|
|
1430
|
+
writeFully(builder, _this__u8e3s4.f4d_1);
|
|
1431
1431
|
var packet = builder;
|
|
1432
|
-
var code = packet.
|
|
1432
|
+
var code = packet.z2x();
|
|
1433
1433
|
var message = readText(packet);
|
|
1434
1434
|
return new CloseReason(code, message);
|
|
1435
1435
|
}
|
|
1436
1436
|
function NonDisposableHandle() {
|
|
1437
1437
|
}
|
|
1438
|
-
protoOf(NonDisposableHandle).
|
|
1438
|
+
protoOf(NonDisposableHandle).e2a = function () {
|
|
1439
1439
|
return Unit_instance;
|
|
1440
1440
|
};
|
|
1441
1441
|
protoOf(NonDisposableHandle).toString = function () {
|
|
@@ -1457,28 +1457,28 @@ function NonDisposableHandle_getInstance() {
|
|
|
1457
1457
|
}
|
|
1458
1458
|
function readText_0(_this__u8e3s4) {
|
|
1459
1459
|
// Inline function 'kotlin.require' call
|
|
1460
|
-
if (!_this__u8e3s4.
|
|
1460
|
+
if (!_this__u8e3s4.d4d_1) {
|
|
1461
1461
|
var message = 'Text could be only extracted from non-fragmented frame';
|
|
1462
1462
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1463
1463
|
}
|
|
1464
|
-
var tmp = Charsets_getInstance().
|
|
1464
|
+
var tmp = Charsets_getInstance().d3d_1.g3d();
|
|
1465
1465
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1466
1466
|
var builder = new Buffer();
|
|
1467
|
-
writeFully(builder, _this__u8e3s4.
|
|
1467
|
+
writeFully(builder, _this__u8e3s4.f4d_1);
|
|
1468
1468
|
return decode(tmp, builder);
|
|
1469
1469
|
}
|
|
1470
1470
|
function FrameTooBigException(frameSize) {
|
|
1471
1471
|
Exception_init_$Init$(this);
|
|
1472
1472
|
captureStack(this, FrameTooBigException);
|
|
1473
|
-
this.
|
|
1473
|
+
this.j4e_1 = frameSize;
|
|
1474
1474
|
delete this.message;
|
|
1475
1475
|
}
|
|
1476
1476
|
protoOf(FrameTooBigException).e = function () {
|
|
1477
|
-
return 'Frame is too big: ' + this.
|
|
1477
|
+
return 'Frame is too big: ' + this.j4e_1.toString();
|
|
1478
1478
|
};
|
|
1479
|
-
protoOf(FrameTooBigException).
|
|
1479
|
+
protoOf(FrameTooBigException).y2f = function () {
|
|
1480
1480
|
// Inline function 'kotlin.also' call
|
|
1481
|
-
var this_0 = new FrameTooBigException(this.
|
|
1481
|
+
var this_0 = new FrameTooBigException(this.j4e_1);
|
|
1482
1482
|
initCauseBridge(this_0, this);
|
|
1483
1483
|
return this_0;
|
|
1484
1484
|
};
|
|
@@ -1504,10 +1504,10 @@ function Companion_1() {
|
|
|
1504
1504
|
tmp$ret$0 = maxElem;
|
|
1505
1505
|
break $l$block_0;
|
|
1506
1506
|
}
|
|
1507
|
-
var maxValue = maxElem.
|
|
1507
|
+
var maxValue = maxElem.n4e_1;
|
|
1508
1508
|
do {
|
|
1509
1509
|
var e = iterator.v();
|
|
1510
|
-
var v = e.
|
|
1510
|
+
var v = e.n4e_1;
|
|
1511
1511
|
if (compareTo(maxValue, v) < 0) {
|
|
1512
1512
|
maxElem = e;
|
|
1513
1513
|
maxValue = v;
|
|
@@ -1516,10 +1516,10 @@ function Companion_1() {
|
|
|
1516
1516
|
while (iterator.u());
|
|
1517
1517
|
tmp$ret$0 = maxElem;
|
|
1518
1518
|
}
|
|
1519
|
-
tmp.
|
|
1519
|
+
tmp.o4e_1 = ensureNotNull(tmp$ret$0).n4e_1;
|
|
1520
1520
|
var tmp_0 = this;
|
|
1521
1521
|
var tmp_1 = 0;
|
|
1522
|
-
var tmp_2 = this.
|
|
1522
|
+
var tmp_2 = this.o4e_1 + 1 | 0;
|
|
1523
1523
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1524
1524
|
var tmp_3 = Array(tmp_2);
|
|
1525
1525
|
while (tmp_1 < tmp_2) {
|
|
@@ -1533,7 +1533,7 @@ function Companion_1() {
|
|
|
1533
1533
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
1534
1534
|
while (_iterator__ex2g4s.u()) {
|
|
1535
1535
|
var element = _iterator__ex2g4s.v();
|
|
1536
|
-
if (element.
|
|
1536
|
+
if (element.n4e_1 === tmp_4) {
|
|
1537
1537
|
if (found) {
|
|
1538
1538
|
tmp$ret$5 = null;
|
|
1539
1539
|
break $l$block_2;
|
|
@@ -1551,7 +1551,7 @@ function Companion_1() {
|
|
|
1551
1551
|
tmp_3[tmp_4] = tmp$ret$5;
|
|
1552
1552
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1553
1553
|
}
|
|
1554
|
-
tmp_0.
|
|
1554
|
+
tmp_0.p4e_1 = tmp_3;
|
|
1555
1555
|
}
|
|
1556
1556
|
var Companion_instance_1;
|
|
1557
1557
|
function Companion_getInstance_1() {
|
|
@@ -1583,8 +1583,8 @@ function FrameType_initEntries() {
|
|
|
1583
1583
|
var $ENTRIES_0;
|
|
1584
1584
|
function FrameType(name, ordinal, controlFrame, opcode) {
|
|
1585
1585
|
Enum.call(this, name, ordinal);
|
|
1586
|
-
this.
|
|
1587
|
-
this.
|
|
1586
|
+
this.m4e_1 = controlFrame;
|
|
1587
|
+
this.n4e_1 = opcode;
|
|
1588
1588
|
}
|
|
1589
1589
|
function FrameType_TEXT_getInstance() {
|
|
1590
1590
|
FrameType_initEntries();
|
|
@@ -1629,23 +1629,23 @@ function pinger(_this__u8e3s4, outgoing, periodMillis, timeoutMillis, onTimeout)
|
|
|
1629
1629
|
var channel = Channel(2147483647);
|
|
1630
1630
|
var tmp = actorJob.yj(get_PingerCoroutineName());
|
|
1631
1631
|
launch(_this__u8e3s4, tmp, VOID, pinger$slambda_0(periodMillis, timeoutMillis, onTimeout, channel, outgoing, null));
|
|
1632
|
-
var tmp_0 = ensureNotNull(_this__u8e3s4.
|
|
1633
|
-
tmp_0.
|
|
1632
|
+
var tmp_0 = ensureNotNull(_this__u8e3s4.i27().y9(Key_instance));
|
|
1633
|
+
tmp_0.k28(pinger$lambda(actorJob));
|
|
1634
1634
|
return channel;
|
|
1635
1635
|
}
|
|
1636
1636
|
function ponger$slambda($channel, $outgoing, resultContinuation) {
|
|
1637
|
-
this.
|
|
1638
|
-
this.
|
|
1637
|
+
this.y4e_1 = $channel;
|
|
1638
|
+
this.z4e_1 = $outgoing;
|
|
1639
1639
|
CoroutineImpl.call(this, resultContinuation);
|
|
1640
1640
|
}
|
|
1641
|
-
protoOf(ponger$slambda).
|
|
1642
|
-
var tmp = this.
|
|
1641
|
+
protoOf(ponger$slambda).d3c = function ($this$launch, $completion) {
|
|
1642
|
+
var tmp = this.e3c($this$launch, $completion);
|
|
1643
1643
|
tmp.n9_1 = Unit_instance;
|
|
1644
1644
|
tmp.o9_1 = null;
|
|
1645
1645
|
return tmp.t9();
|
|
1646
1646
|
};
|
|
1647
1647
|
protoOf(ponger$slambda).fa = function (p1, $completion) {
|
|
1648
|
-
return this.
|
|
1648
|
+
return this.d3c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1649
1649
|
};
|
|
1650
1650
|
protoOf(ponger$slambda).t9 = function () {
|
|
1651
1651
|
var suspendResult = this.n9_1;
|
|
@@ -1656,12 +1656,12 @@ protoOf(ponger$slambda).t9 = function () {
|
|
|
1656
1656
|
case 0:
|
|
1657
1657
|
this.m9_1 = 14;
|
|
1658
1658
|
this.m9_1 = 13;
|
|
1659
|
-
this.
|
|
1659
|
+
this.e4f_1 = this.y4e_1;
|
|
1660
1660
|
this.l9_1 = 1;
|
|
1661
1661
|
continue $sm;
|
|
1662
1662
|
case 1:
|
|
1663
|
-
this.
|
|
1664
|
-
this.
|
|
1663
|
+
this.c4f_1 = this.e4f_1;
|
|
1664
|
+
this.b4f_1 = null;
|
|
1665
1665
|
this.l9_1 = 2;
|
|
1666
1666
|
continue $sm;
|
|
1667
1667
|
case 2:
|
|
@@ -1670,12 +1670,12 @@ protoOf(ponger$slambda).t9 = function () {
|
|
|
1670
1670
|
case 3:
|
|
1671
1671
|
this.m9_1 = 10;
|
|
1672
1672
|
this.m9_1 = 9;
|
|
1673
|
-
this.
|
|
1673
|
+
this.d4f_1 = this.c4f_1.t();
|
|
1674
1674
|
this.l9_1 = 4;
|
|
1675
1675
|
continue $sm;
|
|
1676
1676
|
case 4:
|
|
1677
1677
|
this.l9_1 = 5;
|
|
1678
|
-
suspendResult = this.
|
|
1678
|
+
suspendResult = this.d4f_1.v2n(this);
|
|
1679
1679
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1680
1680
|
return suspendResult;
|
|
1681
1681
|
}
|
|
@@ -1687,10 +1687,10 @@ protoOf(ponger$slambda).t9 = function () {
|
|
|
1687
1687
|
continue $sm;
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
1690
|
-
var e = this.
|
|
1691
|
-
get_LOGGER().
|
|
1690
|
+
var e = this.d4f_1.v();
|
|
1691
|
+
get_LOGGER().x3n('Received ping message, sending pong message');
|
|
1692
1692
|
this.l9_1 = 6;
|
|
1693
|
-
suspendResult = this.
|
|
1693
|
+
suspendResult = this.z4e_1.s2p(new Pong(e.f4d_1), this);
|
|
1694
1694
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1695
1695
|
return suspendResult;
|
|
1696
1696
|
}
|
|
@@ -1705,7 +1705,7 @@ protoOf(ponger$slambda).t9 = function () {
|
|
|
1705
1705
|
continue $sm;
|
|
1706
1706
|
case 8:
|
|
1707
1707
|
this.m9_1 = 13;
|
|
1708
|
-
cancelConsumed(this.
|
|
1708
|
+
cancelConsumed(this.c4f_1, this.b4f_1);
|
|
1709
1709
|
this.l9_1 = 12;
|
|
1710
1710
|
continue $sm;
|
|
1711
1711
|
case 9:
|
|
@@ -1714,7 +1714,7 @@ protoOf(ponger$slambda).t9 = function () {
|
|
|
1714
1714
|
if (tmp_1 instanceof Error) {
|
|
1715
1715
|
var e_0 = this.o9_1;
|
|
1716
1716
|
var tmp_2 = this;
|
|
1717
|
-
this.
|
|
1717
|
+
this.b4f_1 = e_0;
|
|
1718
1718
|
throw e_0;
|
|
1719
1719
|
} else {
|
|
1720
1720
|
throw this.o9_1;
|
|
@@ -1723,11 +1723,11 @@ protoOf(ponger$slambda).t9 = function () {
|
|
|
1723
1723
|
case 10:
|
|
1724
1724
|
this.m9_1 = 13;
|
|
1725
1725
|
var t = this.o9_1;
|
|
1726
|
-
cancelConsumed(this.
|
|
1726
|
+
cancelConsumed(this.c4f_1, this.b4f_1);
|
|
1727
1727
|
throw t;
|
|
1728
1728
|
case 11:
|
|
1729
1729
|
this.m9_1 = 13;
|
|
1730
|
-
cancelConsumed(this.
|
|
1730
|
+
cancelConsumed(this.c4f_1, this.b4f_1);
|
|
1731
1731
|
if (false) {
|
|
1732
1732
|
this.l9_1 = 1;
|
|
1733
1733
|
continue $sm;
|
|
@@ -1767,31 +1767,31 @@ protoOf(ponger$slambda).t9 = function () {
|
|
|
1767
1767
|
}
|
|
1768
1768
|
while (true);
|
|
1769
1769
|
};
|
|
1770
|
-
protoOf(ponger$slambda).
|
|
1771
|
-
var i = new ponger$slambda(this.
|
|
1772
|
-
i.
|
|
1770
|
+
protoOf(ponger$slambda).e3c = function ($this$launch, completion) {
|
|
1771
|
+
var i = new ponger$slambda(this.y4e_1, this.z4e_1, completion);
|
|
1772
|
+
i.a4f_1 = $this$launch;
|
|
1773
1773
|
return i;
|
|
1774
1774
|
};
|
|
1775
1775
|
function ponger$slambda_0($channel, $outgoing, resultContinuation) {
|
|
1776
1776
|
var i = new ponger$slambda($channel, $outgoing, resultContinuation);
|
|
1777
1777
|
var l = function ($this$launch, $completion) {
|
|
1778
|
-
return i.
|
|
1778
|
+
return i.d3c($this$launch, $completion);
|
|
1779
1779
|
};
|
|
1780
1780
|
l.$arity = 1;
|
|
1781
1781
|
return l;
|
|
1782
1782
|
}
|
|
1783
1783
|
function pinger$slambda$slambda($channel, resultContinuation) {
|
|
1784
|
-
this.
|
|
1784
|
+
this.n4f_1 = $channel;
|
|
1785
1785
|
CoroutineImpl.call(this, resultContinuation);
|
|
1786
1786
|
}
|
|
1787
|
-
protoOf(pinger$slambda$slambda).
|
|
1788
|
-
var tmp = this.
|
|
1787
|
+
protoOf(pinger$slambda$slambda).d3c = function ($this$withTimeoutOrNull, $completion) {
|
|
1788
|
+
var tmp = this.e3c($this$withTimeoutOrNull, $completion);
|
|
1789
1789
|
tmp.n9_1 = Unit_instance;
|
|
1790
1790
|
tmp.o9_1 = null;
|
|
1791
1791
|
return tmp.t9();
|
|
1792
1792
|
};
|
|
1793
1793
|
protoOf(pinger$slambda$slambda).fa = function (p1, $completion) {
|
|
1794
|
-
return this.
|
|
1794
|
+
return this.d3c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1795
1795
|
};
|
|
1796
1796
|
protoOf(pinger$slambda$slambda).t9 = function () {
|
|
1797
1797
|
var suspendResult = this.n9_1;
|
|
@@ -1810,7 +1810,7 @@ protoOf(pinger$slambda$slambda).t9 = function () {
|
|
|
1810
1810
|
}
|
|
1811
1811
|
|
|
1812
1812
|
this.l9_1 = 2;
|
|
1813
|
-
suspendResult = this.
|
|
1813
|
+
suspendResult = this.n4f_1.w2p(this);
|
|
1814
1814
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1815
1815
|
return suspendResult;
|
|
1816
1816
|
}
|
|
@@ -1835,33 +1835,33 @@ protoOf(pinger$slambda$slambda).t9 = function () {
|
|
|
1835
1835
|
}
|
|
1836
1836
|
while (true);
|
|
1837
1837
|
};
|
|
1838
|
-
protoOf(pinger$slambda$slambda).
|
|
1839
|
-
var i = new pinger$slambda$slambda(this.
|
|
1840
|
-
i.
|
|
1838
|
+
protoOf(pinger$slambda$slambda).e3c = function ($this$withTimeoutOrNull, completion) {
|
|
1839
|
+
var i = new pinger$slambda$slambda(this.n4f_1, completion);
|
|
1840
|
+
i.o4f_1 = $this$withTimeoutOrNull;
|
|
1841
1841
|
return i;
|
|
1842
1842
|
};
|
|
1843
1843
|
function pinger$slambda$slambda_0($channel, resultContinuation) {
|
|
1844
1844
|
var i = new pinger$slambda$slambda($channel, resultContinuation);
|
|
1845
1845
|
var l = function ($this$withTimeoutOrNull, $completion) {
|
|
1846
|
-
return i.
|
|
1846
|
+
return i.d3c($this$withTimeoutOrNull, $completion);
|
|
1847
1847
|
};
|
|
1848
1848
|
l.$arity = 1;
|
|
1849
1849
|
return l;
|
|
1850
1850
|
}
|
|
1851
1851
|
function pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1852
|
-
this.
|
|
1853
|
-
this.
|
|
1854
|
-
this.
|
|
1852
|
+
this.x4f_1 = $outgoing;
|
|
1853
|
+
this.y4f_1 = $pingMessage;
|
|
1854
|
+
this.z4f_1 = $channel;
|
|
1855
1855
|
CoroutineImpl.call(this, resultContinuation);
|
|
1856
1856
|
}
|
|
1857
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1858
|
-
var tmp = this.
|
|
1857
|
+
protoOf(pinger$slambda$slambda_1).d3c = function ($this$withTimeoutOrNull, $completion) {
|
|
1858
|
+
var tmp = this.e3c($this$withTimeoutOrNull, $completion);
|
|
1859
1859
|
tmp.n9_1 = Unit_instance;
|
|
1860
1860
|
tmp.o9_1 = null;
|
|
1861
1861
|
return tmp.t9();
|
|
1862
1862
|
};
|
|
1863
1863
|
protoOf(pinger$slambda$slambda_1).fa = function (p1, $completion) {
|
|
1864
|
-
return this.
|
|
1864
|
+
return this.d3c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1865
1865
|
};
|
|
1866
1866
|
protoOf(pinger$slambda$slambda_1).t9 = function () {
|
|
1867
1867
|
var suspendResult = this.n9_1;
|
|
@@ -1871,9 +1871,9 @@ protoOf(pinger$slambda$slambda_1).t9 = function () {
|
|
|
1871
1871
|
switch (tmp) {
|
|
1872
1872
|
case 0:
|
|
1873
1873
|
this.m9_1 = 6;
|
|
1874
|
-
get_LOGGER().
|
|
1874
|
+
get_LOGGER().x3n('WebSocket Pinger: sending ping frame');
|
|
1875
1875
|
this.l9_1 = 1;
|
|
1876
|
-
suspendResult = this.
|
|
1876
|
+
suspendResult = this.x4f_1.s2p(new Ping(toByteArray(this.y4f_1, Charsets_getInstance().e3d_1)), this);
|
|
1877
1877
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1878
1878
|
return suspendResult;
|
|
1879
1879
|
}
|
|
@@ -1889,16 +1889,16 @@ protoOf(pinger$slambda$slambda_1).t9 = function () {
|
|
|
1889
1889
|
}
|
|
1890
1890
|
|
|
1891
1891
|
this.l9_1 = 3;
|
|
1892
|
-
suspendResult = this.
|
|
1892
|
+
suspendResult = this.z4f_1.w2p(this);
|
|
1893
1893
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1894
1894
|
return suspendResult;
|
|
1895
1895
|
}
|
|
1896
1896
|
|
|
1897
1897
|
continue $sm;
|
|
1898
1898
|
case 3:
|
|
1899
|
-
this.
|
|
1900
|
-
if (decodeToString(this.
|
|
1901
|
-
get_LOGGER().
|
|
1899
|
+
this.b4g_1 = suspendResult;
|
|
1900
|
+
if (decodeToString(this.b4g_1.f4d_1, 0, 0 + this.b4g_1.f4d_1.length | 0) === this.y4f_1) {
|
|
1901
|
+
get_LOGGER().x3n('WebSocket Pinger: received valid pong frame ' + this.b4g_1.toString());
|
|
1902
1902
|
this.l9_1 = 5;
|
|
1903
1903
|
continue $sm;
|
|
1904
1904
|
} else {
|
|
@@ -1907,7 +1907,7 @@ protoOf(pinger$slambda$slambda_1).t9 = function () {
|
|
|
1907
1907
|
}
|
|
1908
1908
|
|
|
1909
1909
|
case 4:
|
|
1910
|
-
get_LOGGER().
|
|
1910
|
+
get_LOGGER().x3n('WebSocket Pinger: received invalid pong frame ' + this.b4g_1.toString() + ', continue waiting');
|
|
1911
1911
|
this.l9_1 = 2;
|
|
1912
1912
|
continue $sm;
|
|
1913
1913
|
case 5:
|
|
@@ -1926,35 +1926,35 @@ protoOf(pinger$slambda$slambda_1).t9 = function () {
|
|
|
1926
1926
|
}
|
|
1927
1927
|
while (true);
|
|
1928
1928
|
};
|
|
1929
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1930
|
-
var i = new pinger$slambda$slambda_1(this.
|
|
1931
|
-
i.
|
|
1929
|
+
protoOf(pinger$slambda$slambda_1).e3c = function ($this$withTimeoutOrNull, completion) {
|
|
1930
|
+
var i = new pinger$slambda$slambda_1(this.x4f_1, this.y4f_1, this.z4f_1, completion);
|
|
1931
|
+
i.a4g_1 = $this$withTimeoutOrNull;
|
|
1932
1932
|
return i;
|
|
1933
1933
|
};
|
|
1934
1934
|
function pinger$slambda$slambda_2($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1935
1935
|
var i = new pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation);
|
|
1936
1936
|
var l = function ($this$withTimeoutOrNull, $completion) {
|
|
1937
|
-
return i.
|
|
1937
|
+
return i.d3c($this$withTimeoutOrNull, $completion);
|
|
1938
1938
|
};
|
|
1939
1939
|
l.$arity = 1;
|
|
1940
1940
|
return l;
|
|
1941
1941
|
}
|
|
1942
1942
|
function pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
1943
|
-
this.
|
|
1944
|
-
this.
|
|
1945
|
-
this.
|
|
1946
|
-
this.
|
|
1947
|
-
this.
|
|
1943
|
+
this.k4g_1 = $periodMillis;
|
|
1944
|
+
this.l4g_1 = $timeoutMillis;
|
|
1945
|
+
this.m4g_1 = $onTimeout;
|
|
1946
|
+
this.n4g_1 = $channel;
|
|
1947
|
+
this.o4g_1 = $outgoing;
|
|
1948
1948
|
CoroutineImpl.call(this, resultContinuation);
|
|
1949
1949
|
}
|
|
1950
|
-
protoOf(pinger$slambda).
|
|
1951
|
-
var tmp = this.
|
|
1950
|
+
protoOf(pinger$slambda).d3c = function ($this$launch, $completion) {
|
|
1951
|
+
var tmp = this.e3c($this$launch, $completion);
|
|
1952
1952
|
tmp.n9_1 = Unit_instance;
|
|
1953
1953
|
tmp.o9_1 = null;
|
|
1954
1954
|
return tmp.t9();
|
|
1955
1955
|
};
|
|
1956
1956
|
protoOf(pinger$slambda).fa = function (p1, $completion) {
|
|
1957
|
-
return this.
|
|
1957
|
+
return this.d3c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1958
1958
|
};
|
|
1959
1959
|
protoOf(pinger$slambda).t9 = function () {
|
|
1960
1960
|
var suspendResult = this.n9_1;
|
|
@@ -1964,9 +1964,9 @@ protoOf(pinger$slambda).t9 = function () {
|
|
|
1964
1964
|
switch (tmp) {
|
|
1965
1965
|
case 0:
|
|
1966
1966
|
this.m9_1 = 9;
|
|
1967
|
-
get_LOGGER().
|
|
1968
|
-
this.
|
|
1969
|
-
this.
|
|
1967
|
+
get_LOGGER().x3n('Starting WebSocket pinger coroutine with period ' + this.k4g_1.toString() + ' ms and timeout ' + this.l4g_1.toString() + ' ms');
|
|
1968
|
+
this.r4g_1 = Random(getTimeMillis());
|
|
1969
|
+
this.q4g_1 = new Int8Array(32);
|
|
1970
1970
|
this.m9_1 = 7;
|
|
1971
1971
|
this.l9_1 = 1;
|
|
1972
1972
|
continue $sm;
|
|
@@ -1977,17 +1977,17 @@ protoOf(pinger$slambda).t9 = function () {
|
|
|
1977
1977
|
}
|
|
1978
1978
|
|
|
1979
1979
|
this.l9_1 = 2;
|
|
1980
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1980
|
+
suspendResult = withTimeoutOrNull(this.k4g_1, pinger$slambda$slambda_0(this.n4g_1, null), this);
|
|
1981
1981
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1982
1982
|
return suspendResult;
|
|
1983
1983
|
}
|
|
1984
1984
|
|
|
1985
1985
|
continue $sm;
|
|
1986
1986
|
case 2:
|
|
1987
|
-
this.
|
|
1988
|
-
var pingMessage = '[ping ' + hex(this.
|
|
1987
|
+
this.r4g_1.vl(this.q4g_1);
|
|
1988
|
+
var pingMessage = '[ping ' + hex(this.q4g_1) + ' ping]';
|
|
1989
1989
|
this.l9_1 = 3;
|
|
1990
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1990
|
+
suspendResult = withTimeoutOrNull(this.l4g_1, pinger$slambda$slambda_2(this.o4g_1, pingMessage, this.n4g_1, null), this);
|
|
1991
1991
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1992
1992
|
return suspendResult;
|
|
1993
1993
|
}
|
|
@@ -1996,9 +1996,9 @@ protoOf(pinger$slambda).t9 = function () {
|
|
|
1996
1996
|
case 3:
|
|
1997
1997
|
var rc = suspendResult;
|
|
1998
1998
|
if (rc == null) {
|
|
1999
|
-
get_LOGGER().
|
|
1999
|
+
get_LOGGER().x3n('WebSocket pinger has timed out');
|
|
2000
2000
|
this.l9_1 = 5;
|
|
2001
|
-
suspendResult = this.
|
|
2001
|
+
suspendResult = this.m4g_1(CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), 'Ping timeout'), this);
|
|
2002
2002
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2003
2003
|
return suspendResult;
|
|
2004
2004
|
}
|
|
@@ -2067,22 +2067,22 @@ protoOf(pinger$slambda).t9 = function () {
|
|
|
2067
2067
|
}
|
|
2068
2068
|
while (true);
|
|
2069
2069
|
};
|
|
2070
|
-
protoOf(pinger$slambda).
|
|
2071
|
-
var i = new pinger$slambda(this.
|
|
2072
|
-
i.
|
|
2070
|
+
protoOf(pinger$slambda).e3c = function ($this$launch, completion) {
|
|
2071
|
+
var i = new pinger$slambda(this.k4g_1, this.l4g_1, this.m4g_1, this.n4g_1, this.o4g_1, completion);
|
|
2072
|
+
i.p4g_1 = $this$launch;
|
|
2073
2073
|
return i;
|
|
2074
2074
|
};
|
|
2075
2075
|
function pinger$slambda_0($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
2076
2076
|
var i = new pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation);
|
|
2077
2077
|
var l = function ($this$launch, $completion) {
|
|
2078
|
-
return i.
|
|
2078
|
+
return i.d3c($this$launch, $completion);
|
|
2079
2079
|
};
|
|
2080
2080
|
l.$arity = 1;
|
|
2081
2081
|
return l;
|
|
2082
2082
|
}
|
|
2083
2083
|
function pinger$lambda($actorJob) {
|
|
2084
2084
|
return function (it) {
|
|
2085
|
-
$actorJob.
|
|
2085
|
+
$actorJob.s28();
|
|
2086
2086
|
return Unit_instance;
|
|
2087
2087
|
};
|
|
2088
2088
|
}
|
|
@@ -2099,9 +2099,9 @@ function Companion_2() {
|
|
|
2099
2099
|
var tmp = this;
|
|
2100
2100
|
// Inline function 'kotlin.apply' call
|
|
2101
2101
|
var this_0 = new WebSocketChannelsConfig();
|
|
2102
|
-
this_0.
|
|
2103
|
-
this_0.
|
|
2104
|
-
tmp.
|
|
2102
|
+
this_0.q49_1 = this_0.s4g();
|
|
2103
|
+
this_0.r49_1 = this_0.s4g();
|
|
2104
|
+
tmp.p49_1 = this_0;
|
|
2105
2105
|
}
|
|
2106
2106
|
var Companion_instance_2;
|
|
2107
2107
|
function Companion_getInstance_2() {
|
|
@@ -2111,21 +2111,21 @@ function Companion_getInstance_2() {
|
|
|
2111
2111
|
}
|
|
2112
2112
|
function WebSocketChannelsConfig() {
|
|
2113
2113
|
Companion_getInstance_2();
|
|
2114
|
-
this.
|
|
2115
|
-
this.
|
|
2114
|
+
this.q49_1 = Companion_getInstance_3().t4g_1;
|
|
2115
|
+
this.r49_1 = Companion_getInstance_3().t4g_1;
|
|
2116
2116
|
}
|
|
2117
|
-
protoOf(WebSocketChannelsConfig).
|
|
2118
|
-
return Companion_getInstance_3().
|
|
2117
|
+
protoOf(WebSocketChannelsConfig).s4g = function () {
|
|
2118
|
+
return Companion_getInstance_3().t4g_1;
|
|
2119
2119
|
};
|
|
2120
2120
|
function from(_this__u8e3s4, config) {
|
|
2121
2121
|
// Inline function 'kotlin.with' call
|
|
2122
2122
|
var tmp;
|
|
2123
|
-
if (config.
|
|
2123
|
+
if (config.u4g_1 === 2147483647) {
|
|
2124
2124
|
tmp = Channel(2147483647);
|
|
2125
|
-
} else if (config.
|
|
2126
|
-
tmp = Channel(config.
|
|
2127
|
-
} else if (config.
|
|
2128
|
-
tmp = new BoundedChannel(config.
|
|
2125
|
+
} else if (config.v4g_1.equals(ChannelOverflow_SUSPEND_getInstance())) {
|
|
2126
|
+
tmp = Channel(config.u4g_1, BufferOverflow_SUSPEND_getInstance());
|
|
2127
|
+
} else if (config.v4g_1.equals(ChannelOverflow_CLOSE_getInstance())) {
|
|
2128
|
+
tmp = new BoundedChannel(config.u4g_1);
|
|
2129
2129
|
} else {
|
|
2130
2130
|
var message = 'Unsupported channel config.';
|
|
2131
2131
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -2134,7 +2134,7 @@ function from(_this__u8e3s4, config) {
|
|
|
2134
2134
|
}
|
|
2135
2135
|
function Companion_3() {
|
|
2136
2136
|
Companion_instance_3 = this;
|
|
2137
|
-
this.
|
|
2137
|
+
this.t4g_1 = new ChannelConfig(2147483647, ChannelOverflow_SUSPEND_getInstance());
|
|
2138
2138
|
}
|
|
2139
2139
|
var Companion_instance_3;
|
|
2140
2140
|
function Companion_getInstance_3() {
|
|
@@ -2144,11 +2144,11 @@ function Companion_getInstance_3() {
|
|
|
2144
2144
|
}
|
|
2145
2145
|
function ChannelConfig(capacity, onOverflow) {
|
|
2146
2146
|
Companion_getInstance_3();
|
|
2147
|
-
this.
|
|
2148
|
-
this.
|
|
2147
|
+
this.u4g_1 = capacity;
|
|
2148
|
+
this.v4g_1 = onOverflow;
|
|
2149
2149
|
}
|
|
2150
|
-
protoOf(ChannelConfig).
|
|
2151
|
-
return this.
|
|
2150
|
+
protoOf(ChannelConfig).w4g = function () {
|
|
2151
|
+
return this.v4g_1.equals(ChannelOverflow_SUSPEND_getInstance()) && !(this.u4g_1 === 2147483647);
|
|
2152
2152
|
};
|
|
2153
2153
|
var ChannelOverflow_SUSPEND_instance;
|
|
2154
2154
|
var ChannelOverflow_CLOSE_instance;
|
|
@@ -2172,14 +2172,14 @@ function BoundedChannel$Companion$createDelegate$lambda($channel) {
|
|
|
2172
2172
|
} else {
|
|
2173
2173
|
tmp_0 = $channel._v;
|
|
2174
2174
|
}
|
|
2175
|
-
if (!tmp_0.
|
|
2175
|
+
if (!tmp_0.x2n()) {
|
|
2176
2176
|
var tmp_1;
|
|
2177
2177
|
if ($channel._v == null) {
|
|
2178
2178
|
throwUninitializedPropertyAccessException('channel');
|
|
2179
2179
|
} else {
|
|
2180
2180
|
tmp_1 = $channel._v;
|
|
2181
2181
|
}
|
|
2182
|
-
tmp_1.
|
|
2182
|
+
tmp_1.y2p(new ChannelOverflowException('Channel overflowed'));
|
|
2183
2183
|
tmp = Unit_instance;
|
|
2184
2184
|
}
|
|
2185
2185
|
return Unit_instance;
|
|
@@ -2187,7 +2187,7 @@ function BoundedChannel$Companion$createDelegate$lambda($channel) {
|
|
|
2187
2187
|
}
|
|
2188
2188
|
function Companion_4() {
|
|
2189
2189
|
}
|
|
2190
|
-
protoOf(Companion_4).
|
|
2190
|
+
protoOf(Companion_4).x4g = function (capacity) {
|
|
2191
2191
|
var channel = {_v: null};
|
|
2192
2192
|
var tmp = BufferOverflow_DROP_OLDEST_getInstance();
|
|
2193
2193
|
// Inline function 'kotlin.also' call
|
|
@@ -2200,42 +2200,42 @@ function Companion_getInstance_4() {
|
|
|
2200
2200
|
return Companion_instance_4;
|
|
2201
2201
|
}
|
|
2202
2202
|
function BoundedChannel(capacity, delegate) {
|
|
2203
|
-
delegate = delegate === VOID ? Companion_instance_4.
|
|
2204
|
-
this.
|
|
2203
|
+
delegate = delegate === VOID ? Companion_instance_4.x4g(capacity) : delegate;
|
|
2204
|
+
this.y4g_1 = delegate;
|
|
2205
2205
|
}
|
|
2206
|
-
protoOf(BoundedChannel).
|
|
2207
|
-
var result = this.
|
|
2206
|
+
protoOf(BoundedChannel).z4g = function (element) {
|
|
2207
|
+
var result = this.y4g_1.t2p(element);
|
|
2208
2208
|
if (!_ChannelResult___get_isSuccess__impl__odq1z9(result) && !_ChannelResult___get_isClosed__impl__mg7kuu(result)) {
|
|
2209
|
-
this.
|
|
2209
|
+
this.y2p(new ChannelOverflowException('Channel overflowed'));
|
|
2210
2210
|
}
|
|
2211
2211
|
return result;
|
|
2212
2212
|
};
|
|
2213
|
-
protoOf(BoundedChannel).
|
|
2214
|
-
return this.
|
|
2213
|
+
protoOf(BoundedChannel).t2p = function (element) {
|
|
2214
|
+
return this.z4g((element == null ? true : !(element == null)) ? element : THROW_CCE());
|
|
2215
2215
|
};
|
|
2216
|
-
protoOf(BoundedChannel).
|
|
2217
|
-
return this.
|
|
2216
|
+
protoOf(BoundedChannel).a4h = function (element, $completion) {
|
|
2217
|
+
return this.y4g_1.s2p(element, $completion);
|
|
2218
2218
|
};
|
|
2219
|
-
protoOf(BoundedChannel).
|
|
2220
|
-
return this.
|
|
2219
|
+
protoOf(BoundedChannel).s2p = function (element, $completion) {
|
|
2220
|
+
return this.a4h((element == null ? true : !(element == null)) ? element : THROW_CCE(), $completion);
|
|
2221
2221
|
};
|
|
2222
|
-
protoOf(BoundedChannel).
|
|
2223
|
-
return this.
|
|
2222
|
+
protoOf(BoundedChannel).y2p = function (cause) {
|
|
2223
|
+
return this.y4g_1.y2p(cause);
|
|
2224
2224
|
};
|
|
2225
|
-
protoOf(BoundedChannel).
|
|
2226
|
-
return this.
|
|
2225
|
+
protoOf(BoundedChannel).x2n = function () {
|
|
2226
|
+
return this.y4g_1.x2n();
|
|
2227
2227
|
};
|
|
2228
|
-
protoOf(BoundedChannel).
|
|
2229
|
-
return this.
|
|
2228
|
+
protoOf(BoundedChannel).b4h = function ($completion) {
|
|
2229
|
+
return this.y4g_1.w2p($completion);
|
|
2230
2230
|
};
|
|
2231
|
-
protoOf(BoundedChannel).
|
|
2232
|
-
return this.
|
|
2231
|
+
protoOf(BoundedChannel).w2p = function ($completion) {
|
|
2232
|
+
return this.b4h($completion);
|
|
2233
2233
|
};
|
|
2234
2234
|
protoOf(BoundedChannel).t = function () {
|
|
2235
|
-
return this.
|
|
2235
|
+
return this.y4g_1.t();
|
|
2236
2236
|
};
|
|
2237
|
-
protoOf(BoundedChannel).
|
|
2238
|
-
this.
|
|
2237
|
+
protoOf(BoundedChannel).r28 = function (cause) {
|
|
2238
|
+
this.y4g_1.r28(cause);
|
|
2239
2239
|
};
|
|
2240
2240
|
function ChannelOverflowException(message) {
|
|
2241
2241
|
RuntimeException_init_$Init$(message, this);
|
|
@@ -2254,16 +2254,16 @@ function WebSocketExtension() {
|
|
|
2254
2254
|
function WebSocketExtensionsConfig() {
|
|
2255
2255
|
var tmp = this;
|
|
2256
2256
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2257
|
-
tmp.
|
|
2257
|
+
tmp.e4h_1 = ArrayList_init_$Create$();
|
|
2258
2258
|
var tmp_0 = this;
|
|
2259
2259
|
// Inline function 'kotlin.arrayOf' call
|
|
2260
2260
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2261
2261
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2262
|
-
tmp_0.
|
|
2262
|
+
tmp_0.f4h_1 = [false, false, false];
|
|
2263
2263
|
}
|
|
2264
|
-
protoOf(WebSocketExtensionsConfig).
|
|
2264
|
+
protoOf(WebSocketExtensionsConfig).h1s = function () {
|
|
2265
2265
|
// Inline function 'kotlin.collections.map' call
|
|
2266
|
-
var this_0 = this.
|
|
2266
|
+
var this_0 = this.e4h_1;
|
|
2267
2267
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2268
2268
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2269
2269
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2275,14 +2275,14 @@ protoOf(WebSocketExtensionsConfig).g1s = function () {
|
|
|
2275
2275
|
return destination;
|
|
2276
2276
|
};
|
|
2277
2277
|
function parametersToString($this) {
|
|
2278
|
-
return $this.
|
|
2278
|
+
return $this.h4h_1.r() ? '' : '; ' + joinToString($this.h4h_1, ';');
|
|
2279
2279
|
}
|
|
2280
2280
|
function WebSocketExtensionHeader(name, parameters) {
|
|
2281
|
-
this.
|
|
2282
|
-
this.
|
|
2281
|
+
this.g4h_1 = name;
|
|
2282
|
+
this.h4h_1 = parameters;
|
|
2283
2283
|
}
|
|
2284
2284
|
protoOf(WebSocketExtensionHeader).toString = function () {
|
|
2285
|
-
return this.
|
|
2285
|
+
return this.g4h_1 + ' ' + parametersToString(this);
|
|
2286
2286
|
};
|
|
2287
2287
|
function parseWebSocketExtensions(value) {
|
|
2288
2288
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2334,8 +2334,8 @@ function closeExceptionally(_this__u8e3s4, cause, $completion) {
|
|
|
2334
2334
|
}
|
|
2335
2335
|
function $closeCOROUTINE$(_this__u8e3s4, reason, resultContinuation) {
|
|
2336
2336
|
CoroutineImpl.call(this, resultContinuation);
|
|
2337
|
-
this.
|
|
2338
|
-
this.
|
|
2337
|
+
this.q4h_1 = _this__u8e3s4;
|
|
2338
|
+
this.r4h_1 = reason;
|
|
2339
2339
|
}
|
|
2340
2340
|
protoOf($closeCOROUTINE$).t9 = function () {
|
|
2341
2341
|
var suspendResult = this.n9_1;
|
|
@@ -2347,7 +2347,7 @@ protoOf($closeCOROUTINE$).t9 = function () {
|
|
|
2347
2347
|
this.m9_1 = 4;
|
|
2348
2348
|
this.m9_1 = 3;
|
|
2349
2349
|
this.l9_1 = 1;
|
|
2350
|
-
suspendResult = this.
|
|
2350
|
+
suspendResult = this.q4h_1.o49(Close_init_$Create$(this.r4h_1), this);
|
|
2351
2351
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2352
2352
|
return suspendResult;
|
|
2353
2353
|
}
|
|
@@ -2355,7 +2355,7 @@ protoOf($closeCOROUTINE$).t9 = function () {
|
|
|
2355
2355
|
continue $sm;
|
|
2356
2356
|
case 1:
|
|
2357
2357
|
this.l9_1 = 2;
|
|
2358
|
-
suspendResult = this.
|
|
2358
|
+
suspendResult = this.q4h_1.l32(this);
|
|
2359
2359
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2360
2360
|
return suspendResult;
|
|
2361
2361
|
}
|
|
@@ -2414,8 +2414,8 @@ function Text_init_$Create$(text) {
|
|
|
2414
2414
|
function Close_init_$Init$(reason, $this) {
|
|
2415
2415
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
2416
2416
|
var builder = new Buffer();
|
|
2417
|
-
builder.
|
|
2418
|
-
writeText(builder, reason.
|
|
2417
|
+
builder.h2z(reason.g49_1);
|
|
2418
|
+
writeText(builder, reason.h49_1);
|
|
2419
2419
|
Close_init_$Init$_0(builder, $this);
|
|
2420
2420
|
return $this;
|
|
2421
2421
|
}
|
|
@@ -2427,7 +2427,7 @@ function Close_init_$Init$_0(packet, $this) {
|
|
|
2427
2427
|
return $this;
|
|
2428
2428
|
}
|
|
2429
2429
|
function Close_init_$Init$_1($this) {
|
|
2430
|
-
Close.call($this, Companion_getInstance_5().
|
|
2430
|
+
Close.call($this, Companion_getInstance_5().k4d_1);
|
|
2431
2431
|
return $this;
|
|
2432
2432
|
}
|
|
2433
2433
|
function Close_init_$Create$_0() {
|
|
@@ -2457,9 +2457,9 @@ function Pong(data, disposableHandle) {
|
|
|
2457
2457
|
}
|
|
2458
2458
|
function Companion_5() {
|
|
2459
2459
|
Companion_instance_5 = this;
|
|
2460
|
-
this.
|
|
2460
|
+
this.k4d_1 = new Int8Array(0);
|
|
2461
2461
|
}
|
|
2462
|
-
protoOf(Companion_5).
|
|
2462
|
+
protoOf(Companion_5).l4d = function (fin, frameType, data, rsv1, rsv2, rsv3) {
|
|
2463
2463
|
var tmp;
|
|
2464
2464
|
switch (frameType.a1_1) {
|
|
2465
2465
|
case 1:
|
|
@@ -2495,28 +2495,28 @@ function Frame(fin, frameType, data, disposableHandle, rsv1, rsv2, rsv3) {
|
|
|
2495
2495
|
rsv1 = rsv1 === VOID ? false : rsv1;
|
|
2496
2496
|
rsv2 = rsv2 === VOID ? false : rsv2;
|
|
2497
2497
|
rsv3 = rsv3 === VOID ? false : rsv3;
|
|
2498
|
-
this.
|
|
2499
|
-
this.
|
|
2500
|
-
this.
|
|
2501
|
-
this.
|
|
2502
|
-
this.
|
|
2503
|
-
this.
|
|
2504
|
-
this.
|
|
2498
|
+
this.d4d_1 = fin;
|
|
2499
|
+
this.e4d_1 = frameType;
|
|
2500
|
+
this.f4d_1 = data;
|
|
2501
|
+
this.g4d_1 = disposableHandle;
|
|
2502
|
+
this.h4d_1 = rsv1;
|
|
2503
|
+
this.i4d_1 = rsv2;
|
|
2504
|
+
this.j4d_1 = rsv3;
|
|
2505
2505
|
}
|
|
2506
2506
|
protoOf(Frame).toString = function () {
|
|
2507
|
-
return 'Frame ' + this.
|
|
2507
|
+
return 'Frame ' + this.e4d_1.toString() + ' (fin=' + this.d4d_1 + ', buffer len = ' + this.f4d_1.length + ')';
|
|
2508
2508
|
};
|
|
2509
2509
|
function get_OUTGOING_CHANNEL_CAPACITY() {
|
|
2510
2510
|
return OUTGOING_CHANNEL_CAPACITY;
|
|
2511
2511
|
}
|
|
2512
2512
|
var OUTGOING_CHANNEL_CAPACITY;
|
|
2513
2513
|
//region block: post-declaration
|
|
2514
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
2514
|
+
protoOf(DefaultWebSocketSessionImpl).o49 = send;
|
|
2515
2515
|
defineProp(protoOf(FrameTooBigException), 'message', function () {
|
|
2516
2516
|
return this.e();
|
|
2517
2517
|
});
|
|
2518
|
-
protoOf(BoundedChannel).
|
|
2519
|
-
protoOf(BoundedChannel).
|
|
2518
|
+
protoOf(BoundedChannel).a2q = close$default;
|
|
2519
|
+
protoOf(BoundedChannel).c2q = cancel$default;
|
|
2520
2520
|
//endregion
|
|
2521
2521
|
//region block: init
|
|
2522
2522
|
NonDisposableHandle_instance = new NonDisposableHandle();
|