@dmarket/p2p-tracker-core 0.1.0-SNAPSHOT.99 → 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +14 -0
- package/dmarket-p2p-tracker-core-domain.mjs +10678 -4377
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +3172 -2659
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-coroutines-core.mjs +2763 -2433
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +44 -44
- package/kotlinx-io-kotlinx-io-core.mjs +496 -496
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1791 -1790
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1586 -1564
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/ktor-ktor-client-core.mjs +3008 -3000
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-events.mjs +6 -6
- package/ktor-ktor-http-cio.mjs +491 -491
- package/ktor-ktor-http.mjs +646 -646
- package/ktor-ktor-io.mjs +1015 -1015
- package/ktor-ktor-utils.mjs +794 -786
- package/ktor-ktor-utils.mjs.map +1 -1
- package/ktor-ktor-websockets.mjs +747 -747
- package/p2p-tracker-core.d.mts +107 -40
- package/p2p-tracker-core.mjs +26723 -10673
- package/p2p-tracker-core.mjs.map +1 -1
- package/package.json +2 -4
- package/pkg/README.md +92 -0
- package/pkg/client_wasm.d.ts +312 -0
- package/pkg/client_wasm.js +1187 -0
- package/pkg/client_wasm_bg.wasm +0 -0
- package/pkg/client_wasm_bg.wasm.d.ts +32 -0
- package/pkg/package.json +19 -0
- package/pkg/snippets/web-spawn-05868593a72e2d44/js/spawn.js +73 -0
- package/pkg/spawn.js +73 -0
- package/transport/README.md +172 -0
- package/transport/dist/channel.d.ts +48 -0
- package/transport/dist/channel.d.ts.map +1 -0
- package/transport/dist/channel.js +150 -0
- package/transport/dist/channel.js.map +1 -0
- package/transport/dist/index.d.ts +8 -0
- package/transport/dist/index.d.ts.map +1 -0
- package/transport/dist/index.js +18 -0
- package/transport/dist/index.js.map +1 -0
- package/transport/dist/prover.d.ts +103 -0
- package/transport/dist/prover.d.ts.map +1 -0
- package/transport/dist/prover.js +139 -0
- package/transport/dist/prover.js.map +1 -0
- package/transport/dist/transport.d.ts +31 -0
- package/transport/dist/transport.d.ts.map +1 -0
- package/transport/dist/transport.js +75 -0
- package/transport/dist/transport.js.map +1 -0
- package/transport/dist/types.d.ts +162 -0
- package/transport/dist/types.d.ts.map +1 -0
- package/transport/dist/types.js +21 -0
- package/transport/dist/types.js.map +1 -0
- package/transport/dist/wasm-compat.d.ts +2 -0
- package/transport/dist/wasm-compat.d.ts.map +1 -0
- package/transport/dist/wasm-compat.js +15 -0
- package/transport/dist/wasm-compat.js.map +1 -0
- package/transport/package.json +28 -0
package/ktor-ktor-websockets.mjs
CHANGED
|
@@ -76,8 +76,8 @@ import {
|
|
|
76
76
|
_ChannelResult___get_isClosed__impl__mg7kuu3a26on4apn4j4 as _ChannelResult___get_isClosed__impl__mg7kuu,
|
|
77
77
|
close$defaultlxi0kykibhye as close$default,
|
|
78
78
|
cancel$default2imfx8rp1ubvu as cancel$default,
|
|
79
|
-
SendChannel38sllbxw662ws as SendChannel,
|
|
80
79
|
ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
|
|
80
|
+
SendChannel38sllbxw662ws as SendChannel,
|
|
81
81
|
} from './kotlinx-coroutines-core.mjs';
|
|
82
82
|
import {
|
|
83
83
|
get_isTraceEnabled82xibuu04nxp as get_isTraceEnabled,
|
|
@@ -113,7 +113,7 @@ initMetadataForCompanion(Companion);
|
|
|
113
113
|
initMetadataForClass(Codes, 'Codes', VOID, Enum);
|
|
114
114
|
initMetadataForClass(CloseReason, 'CloseReason');
|
|
115
115
|
function send(frame, $completion) {
|
|
116
|
-
return this.
|
|
116
|
+
return this.w4e().i25(frame, $completion);
|
|
117
117
|
}
|
|
118
118
|
initMetadataForInterface(WebSocketSession, 'WebSocketSession', VOID, VOID, [CoroutineScope], [1, 0]);
|
|
119
119
|
initMetadataForInterface(DefaultWebSocketSession, 'DefaultWebSocketSession', VOID, VOID, [WebSocketSession], [1, 0]);
|
|
@@ -140,7 +140,7 @@ initMetadataForCompanion(Companion_3);
|
|
|
140
140
|
initMetadataForClass(ChannelConfig, 'ChannelConfig');
|
|
141
141
|
initMetadataForClass(ChannelOverflow, 'ChannelOverflow', VOID, Enum);
|
|
142
142
|
initMetadataForCompanion(Companion_4);
|
|
143
|
-
initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [
|
|
143
|
+
initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [ReceiveChannel, SendChannel], [1, 0]);
|
|
144
144
|
initMetadataForClass(ChannelOverflowException, 'ChannelOverflowException', VOID, RuntimeException);
|
|
145
145
|
initMetadataForInterface(WebSocketExtension, 'WebSocketExtension');
|
|
146
146
|
initMetadataForClass(WebSocketExtensionsConfig, 'WebSocketExtensionsConfig', WebSocketExtensionsConfig);
|
|
@@ -177,14 +177,14 @@ function Companion() {
|
|
|
177
177
|
var _iterator__ex2g4s = this_0.t();
|
|
178
178
|
while (_iterator__ex2g4s.u()) {
|
|
179
179
|
var element = _iterator__ex2g4s.v();
|
|
180
|
-
var tmp$ret$2 = element.
|
|
181
|
-
destination.
|
|
180
|
+
var tmp$ret$2 = element.l4e_1;
|
|
181
|
+
destination.b3(tmp$ret$2, element);
|
|
182
182
|
}
|
|
183
|
-
tmp.
|
|
184
|
-
this.
|
|
183
|
+
tmp.m4e_1 = destination;
|
|
184
|
+
this.n4e_1 = Codes_INTERNAL_ERROR_getInstance();
|
|
185
185
|
}
|
|
186
|
-
protoOf(Companion).
|
|
187
|
-
return this.
|
|
186
|
+
protoOf(Companion).o4e = function (code) {
|
|
187
|
+
return this.m4e_1.s2(code);
|
|
188
188
|
};
|
|
189
189
|
var Companion_instance;
|
|
190
190
|
function Companion_getInstance() {
|
|
@@ -222,7 +222,7 @@ function Codes_initEntries() {
|
|
|
222
222
|
}
|
|
223
223
|
var $ENTRIES;
|
|
224
224
|
function CloseReason_init_$Init$(code, message, $this) {
|
|
225
|
-
CloseReason.call($this, code.
|
|
225
|
+
CloseReason.call($this, code.l4e_1, message);
|
|
226
226
|
return $this;
|
|
227
227
|
}
|
|
228
228
|
function CloseReason_init_$Create$(code, message) {
|
|
@@ -230,7 +230,7 @@ function CloseReason_init_$Create$(code, message) {
|
|
|
230
230
|
}
|
|
231
231
|
function Codes(name, ordinal, code) {
|
|
232
232
|
Enum.call(this, name, ordinal);
|
|
233
|
-
this.
|
|
233
|
+
this.l4e_1 = code;
|
|
234
234
|
}
|
|
235
235
|
function Codes_NORMAL_getInstance() {
|
|
236
236
|
Codes_initEntries();
|
|
@@ -281,19 +281,19 @@ function Codes_TRY_AGAIN_LATER_getInstance() {
|
|
|
281
281
|
return Codes_TRY_AGAIN_LATER_instance;
|
|
282
282
|
}
|
|
283
283
|
function CloseReason(code, message) {
|
|
284
|
-
this.
|
|
285
|
-
this.
|
|
284
|
+
this.p4e_1 = code;
|
|
285
|
+
this.q4e_1 = message;
|
|
286
286
|
}
|
|
287
|
-
protoOf(CloseReason).
|
|
288
|
-
return Companion_getInstance().
|
|
287
|
+
protoOf(CloseReason).r4e = function () {
|
|
288
|
+
return Companion_getInstance().o4e(this.p4e_1);
|
|
289
289
|
};
|
|
290
290
|
protoOf(CloseReason).toString = function () {
|
|
291
|
-
var tmp0_elvis_lhs = this.
|
|
292
|
-
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.
|
|
291
|
+
var tmp0_elvis_lhs = this.r4e();
|
|
292
|
+
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.p4e_1 : tmp0_elvis_lhs) + ', message=' + this.q4e_1 + ')';
|
|
293
293
|
};
|
|
294
294
|
protoOf(CloseReason).hashCode = function () {
|
|
295
|
-
var result = this.
|
|
296
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
295
|
+
var result = this.p4e_1;
|
|
296
|
+
result = imul(result, 31) + getStringHashCode(this.q4e_1) | 0;
|
|
297
297
|
return result;
|
|
298
298
|
};
|
|
299
299
|
protoOf(CloseReason).equals = function (other) {
|
|
@@ -301,9 +301,9 @@ protoOf(CloseReason).equals = function (other) {
|
|
|
301
301
|
return true;
|
|
302
302
|
if (!(other instanceof CloseReason))
|
|
303
303
|
return false;
|
|
304
|
-
if (!(this.
|
|
304
|
+
if (!(this.p4e_1 === other.p4e_1))
|
|
305
305
|
return false;
|
|
306
|
-
if (!(this.
|
|
306
|
+
if (!(this.q4e_1 === other.q4e_1))
|
|
307
307
|
return false;
|
|
308
308
|
return true;
|
|
309
309
|
};
|
|
@@ -333,98 +333,98 @@ function DefaultWebSocketSession() {
|
|
|
333
333
|
function DefaultWebSocketSession_0(session, pingIntervalMillis, timeoutMillis, channelsConfig) {
|
|
334
334
|
pingIntervalMillis = pingIntervalMillis === VOID ? new Long(0, 0) : pingIntervalMillis;
|
|
335
335
|
timeoutMillis = timeoutMillis === VOID ? new Long(15000, 0) : timeoutMillis;
|
|
336
|
-
channelsConfig = channelsConfig === VOID ? Companion_getInstance_2().
|
|
336
|
+
channelsConfig = channelsConfig === VOID ? Companion_getInstance_2().y4e_1 : channelsConfig;
|
|
337
337
|
_init_properties_DefaultWebSocketSession_kt__469s0y();
|
|
338
338
|
// Inline function 'kotlin.require' call
|
|
339
339
|
if (!!isInterface(session, DefaultWebSocketSession)) {
|
|
340
340
|
var message = 'Cannot wrap other DefaultWebSocketSession';
|
|
341
341
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
342
342
|
}
|
|
343
|
-
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.
|
|
343
|
+
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.z4e_1, channelsConfig.a4f_1);
|
|
344
344
|
}
|
|
345
345
|
function runIncomingProcessor($this, ponger) {
|
|
346
|
-
var tmp = get_IncomingProcessorCoroutineName().
|
|
346
|
+
var tmp = get_IncomingProcessorCoroutineName().wh(Dispatchers_getInstance().d1z_1);
|
|
347
347
|
return launch($this, tmp, VOID, DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0($this, ponger, null));
|
|
348
348
|
}
|
|
349
349
|
function runOutgoingProcessor($this) {
|
|
350
|
-
var tmp = get_OutgoingProcessorCoroutineName().
|
|
350
|
+
var tmp = get_OutgoingProcessorCoroutineName().wh(Dispatchers_getInstance().d1z_1);
|
|
351
351
|
var tmp_0 = CoroutineStart_UNDISPATCHED_getInstance();
|
|
352
352
|
return launch($this, tmp, tmp_0, DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0($this, null));
|
|
353
353
|
}
|
|
354
354
|
function outgoingProcessorLoop($this, $completion) {
|
|
355
355
|
var tmp = new $outgoingProcessorLoopCOROUTINE$($this, $completion);
|
|
356
|
-
tmp.
|
|
357
|
-
tmp.
|
|
358
|
-
return tmp.
|
|
356
|
+
tmp.x8_1 = Unit_instance;
|
|
357
|
+
tmp.y8_1 = null;
|
|
358
|
+
return tmp.d9();
|
|
359
359
|
}
|
|
360
360
|
function sendCloseSequence($this, reason, exception, $completion) {
|
|
361
361
|
exception = exception === VOID ? null : exception;
|
|
362
362
|
var tmp = new $sendCloseSequenceCOROUTINE$($this, reason, exception, $completion);
|
|
363
|
-
tmp.
|
|
364
|
-
tmp.
|
|
365
|
-
return tmp.
|
|
363
|
+
tmp.x8_1 = Unit_instance;
|
|
364
|
+
tmp.y8_1 = null;
|
|
365
|
+
return tmp.d9();
|
|
366
366
|
}
|
|
367
367
|
function tryClose($this) {
|
|
368
|
-
return $this.
|
|
368
|
+
return $this.f4g_1.atomicfu$compareAndSet(false, true);
|
|
369
369
|
}
|
|
370
370
|
function runOrCancelPinger($this) {
|
|
371
|
-
var interval = $this.
|
|
371
|
+
var interval = $this.i4g_1;
|
|
372
372
|
var tmp;
|
|
373
|
-
if ($this.
|
|
373
|
+
if ($this.f4g_1.kotlinx$atomicfu$value) {
|
|
374
374
|
tmp = null;
|
|
375
375
|
} else if (compare(interval, new Long(0, 0)) > 0) {
|
|
376
|
-
var tmp_0 = $this.
|
|
377
|
-
var tmp_1 = $this.
|
|
376
|
+
var tmp_0 = $this.y4f_1.w4e();
|
|
377
|
+
var tmp_1 = $this.j4g_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.z4f_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.p25();
|
|
388
|
+
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.j25(Companion_getInstance_0().l4g_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.t23_1);
|
|
393
|
+
if ($this.f4g_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.x8_1 = Unit_instance;
|
|
400
|
+
tmp.y8_1 = null;
|
|
401
|
+
return tmp.d9();
|
|
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.y4g().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.z4g(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.y4g().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.a4h(current);
|
|
422
422
|
}
|
|
423
423
|
return accumulator;
|
|
424
424
|
}
|
|
425
425
|
function Companion_0() {
|
|
426
426
|
Companion_instance_0 = this;
|
|
427
|
-
this.
|
|
427
|
+
this.l4g_1 = new Pong(new Int8Array(0), NonDisposableHandle_instance);
|
|
428
428
|
}
|
|
429
429
|
var Companion_instance_0;
|
|
430
430
|
function Companion_getInstance_0() {
|
|
@@ -433,128 +433,128 @@ 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.j4h_1 = $incomingJob;
|
|
437
|
+
this.k4h_1 = $outgoingJob;
|
|
438
|
+
this.l4h_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).i3s = function ($this$launch, $completion) {
|
|
442
|
+
var tmp = this.j3s($this$launch, $completion);
|
|
443
|
+
tmp.x8_1 = Unit_instance;
|
|
444
|
+
tmp.y8_1 = null;
|
|
445
|
+
return tmp.d9();
|
|
446
446
|
};
|
|
447
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
448
|
-
return this.
|
|
447
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).q9 = function (p1, $completion) {
|
|
448
|
+
return this.i3s((!(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).d9 = function () {
|
|
451
|
+
var suspendResult = this.x8_1;
|
|
452
452
|
$sm: do
|
|
453
453
|
try {
|
|
454
|
-
var tmp = this.
|
|
454
|
+
var tmp = this.v8_1;
|
|
455
455
|
switch (tmp) {
|
|
456
456
|
case 0:
|
|
457
|
-
this.
|
|
458
|
-
this.
|
|
459
|
-
suspendResult = this.
|
|
457
|
+
this.w8_1 = 3;
|
|
458
|
+
this.v8_1 = 1;
|
|
459
|
+
suspendResult = this.j4h_1.d1o(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.v8_1 = 2;
|
|
467
|
+
suspendResult = this.k4h_1.d1o(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.l4h_1.b4g_1.h1o();
|
|
475
475
|
return Unit_instance;
|
|
476
476
|
case 3:
|
|
477
|
-
throw this.
|
|
477
|
+
throw this.y8_1;
|
|
478
478
|
}
|
|
479
479
|
} catch ($p) {
|
|
480
480
|
var e = $p;
|
|
481
|
-
if (this.
|
|
481
|
+
if (this.w8_1 === 3) {
|
|
482
482
|
throw e;
|
|
483
483
|
} else {
|
|
484
|
-
this.
|
|
485
|
-
this.
|
|
484
|
+
this.v8_1 = this.w8_1;
|
|
485
|
+
this.y8_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).j3s = function ($this$launch, completion) {
|
|
491
|
+
var i = new DefaultWebSocketSessionImpl$start$slambda(this.j4h_1, this.k4h_1, this.l4h_1, completion);
|
|
492
|
+
i.m4h_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
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
498
|
-
return i.
|
|
498
|
+
return i.i3s($this$launch, $completion);
|
|
499
499
|
}, 1);
|
|
500
500
|
}
|
|
501
501
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation) {
|
|
502
|
-
this.
|
|
503
|
-
this.
|
|
502
|
+
this.v4h_1 = this$0;
|
|
503
|
+
this.w4h_1 = $ponger;
|
|
504
504
|
CoroutineImpl.call(this, resultContinuation);
|
|
505
505
|
}
|
|
506
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
507
|
-
var tmp = this.
|
|
508
|
-
tmp.
|
|
509
|
-
tmp.
|
|
510
|
-
return tmp.
|
|
506
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).i3s = function ($this$launch, $completion) {
|
|
507
|
+
var tmp = this.j3s($this$launch, $completion);
|
|
508
|
+
tmp.x8_1 = Unit_instance;
|
|
509
|
+
tmp.y8_1 = null;
|
|
510
|
+
return tmp.d9();
|
|
511
511
|
};
|
|
512
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
513
|
-
return this.
|
|
512
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).q9 = function (p1, $completion) {
|
|
513
|
+
return this.i3s((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
514
514
|
};
|
|
515
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
516
|
-
var suspendResult = this.
|
|
515
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function () {
|
|
516
|
+
var suspendResult = this.x8_1;
|
|
517
517
|
$sm: do
|
|
518
518
|
try {
|
|
519
|
-
var tmp = this.
|
|
519
|
+
var tmp = this.v8_1;
|
|
520
520
|
switch (tmp) {
|
|
521
521
|
case 0:
|
|
522
|
-
this.
|
|
523
|
-
this.
|
|
524
|
-
this.
|
|
525
|
-
this.
|
|
526
|
-
this.
|
|
527
|
-
this.
|
|
522
|
+
this.w8_1 = 39;
|
|
523
|
+
this.h4i_1 = null;
|
|
524
|
+
this.a4i_1 = null;
|
|
525
|
+
this.z4h_1 = false;
|
|
526
|
+
this.b4i_1 = Unit_instance;
|
|
527
|
+
this.v8_1 = 1;
|
|
528
528
|
continue $sm;
|
|
529
529
|
case 1:
|
|
530
|
-
this.
|
|
530
|
+
this.v8_1 = 2;
|
|
531
531
|
continue $sm;
|
|
532
532
|
case 2:
|
|
533
|
-
this.
|
|
534
|
-
this.
|
|
535
|
-
this.
|
|
536
|
-
this.
|
|
533
|
+
this.w8_1 = 33;
|
|
534
|
+
this.w8_1 = 32;
|
|
535
|
+
this.l4i_1 = this.v4h_1.y4f_1.v4e();
|
|
536
|
+
this.v8_1 = 3;
|
|
537
537
|
continue $sm;
|
|
538
538
|
case 3:
|
|
539
|
-
this.
|
|
540
|
-
this.
|
|
541
|
-
this.
|
|
539
|
+
this.e4i_1 = this.l4i_1;
|
|
540
|
+
this.d4i_1 = null;
|
|
541
|
+
this.v8_1 = 4;
|
|
542
542
|
continue $sm;
|
|
543
543
|
case 4:
|
|
544
|
-
this.
|
|
544
|
+
this.v8_1 = 5;
|
|
545
545
|
continue $sm;
|
|
546
546
|
case 5:
|
|
547
|
-
this.
|
|
547
|
+
this.v8_1 = 6;
|
|
548
548
|
continue $sm;
|
|
549
549
|
case 6:
|
|
550
|
-
this.
|
|
551
|
-
this.
|
|
552
|
-
this.
|
|
553
|
-
this.
|
|
550
|
+
this.w8_1 = 29;
|
|
551
|
+
this.w8_1 = 28;
|
|
552
|
+
this.k4i_1 = this.e4i_1.t();
|
|
553
|
+
this.v8_1 = 7;
|
|
554
554
|
continue $sm;
|
|
555
555
|
case 7:
|
|
556
|
-
this.
|
|
557
|
-
suspendResult = this.
|
|
556
|
+
this.v8_1 = 8;
|
|
557
|
+
suspendResult = this.k4i_1.l23(this);
|
|
558
558
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
559
559
|
return suspendResult;
|
|
560
560
|
}
|
|
@@ -562,46 +562,46 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).v8 = function
|
|
|
562
562
|
continue $sm;
|
|
563
563
|
case 8:
|
|
564
564
|
if (!suspendResult) {
|
|
565
|
-
this.
|
|
565
|
+
this.v8_1 = 26;
|
|
566
566
|
continue $sm;
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
-
var e = this.
|
|
570
|
-
this.
|
|
571
|
-
this.
|
|
569
|
+
var e = this.k4i_1.v();
|
|
570
|
+
this.j4i_1 = e;
|
|
571
|
+
this.v8_1 = 9;
|
|
572
572
|
continue $sm;
|
|
573
573
|
case 9:
|
|
574
|
-
this.
|
|
574
|
+
this.i4i_1 = this.j4i_1;
|
|
575
575
|
var this_0 = get_LOGGER();
|
|
576
576
|
if (get_isTraceEnabled(this_0)) {
|
|
577
|
-
this_0.
|
|
577
|
+
this_0.b41('WebSocketSession(' + toString(this.x4h_1) + ') receiving frame ' + this.i4i_1.toString());
|
|
578
578
|
}
|
|
579
579
|
|
|
580
|
-
var tmp0_subject = this.
|
|
580
|
+
var tmp0_subject = this.i4i_1;
|
|
581
581
|
if (tmp0_subject instanceof Close) {
|
|
582
|
-
if (!this.
|
|
583
|
-
this.
|
|
584
|
-
var tmp_0 = this.
|
|
585
|
-
var tmp1_elvis_lhs = readReason(this.
|
|
586
|
-
suspendResult = tmp_0.
|
|
582
|
+
if (!this.v4h_1.w4e().n23()) {
|
|
583
|
+
this.v8_1 = 18;
|
|
584
|
+
var tmp_0 = this.v4h_1.w4e();
|
|
585
|
+
var tmp1_elvis_lhs = readReason(this.i4i_1);
|
|
586
|
+
suspendResult = tmp_0.i25(Close_init_$Create$(tmp1_elvis_lhs == null ? get_NORMAL_CLOSE() : tmp1_elvis_lhs), this);
|
|
587
587
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
588
588
|
return suspendResult;
|
|
589
589
|
}
|
|
590
590
|
continue $sm;
|
|
591
591
|
} else {
|
|
592
|
-
this.
|
|
592
|
+
this.v8_1 = 19;
|
|
593
593
|
continue $sm;
|
|
594
594
|
}
|
|
595
595
|
} else {
|
|
596
596
|
if (tmp0_subject instanceof Pong) {
|
|
597
|
-
var tmp2_safe_receiver = this.
|
|
597
|
+
var tmp2_safe_receiver = this.v4h_1.z4f_1.kotlinx$atomicfu$value;
|
|
598
598
|
if (tmp2_safe_receiver == null) {
|
|
599
|
-
this.
|
|
600
|
-
this.
|
|
599
|
+
this.g4i_1 = null;
|
|
600
|
+
this.v8_1 = 17;
|
|
601
601
|
continue $sm;
|
|
602
602
|
} else {
|
|
603
|
-
this.
|
|
604
|
-
suspendResult = tmp2_safe_receiver.
|
|
603
|
+
this.v8_1 = 16;
|
|
604
|
+
suspendResult = tmp2_safe_receiver.i25(this.i4i_1, this);
|
|
605
605
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
606
606
|
return suspendResult;
|
|
607
607
|
}
|
|
@@ -609,15 +609,15 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).v8 = function
|
|
|
609
609
|
}
|
|
610
610
|
} else {
|
|
611
611
|
if (tmp0_subject instanceof Ping) {
|
|
612
|
-
this.
|
|
613
|
-
suspendResult = this.
|
|
612
|
+
this.v8_1 = 15;
|
|
613
|
+
suspendResult = this.w4h_1.i25(this.i4i_1, this);
|
|
614
614
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
615
615
|
return suspendResult;
|
|
616
616
|
}
|
|
617
617
|
continue $sm;
|
|
618
618
|
} else {
|
|
619
|
-
this.
|
|
620
|
-
suspendResult = checkMaxFrameSize(this.
|
|
619
|
+
this.v8_1 = 10;
|
|
620
|
+
suspendResult = checkMaxFrameSize(this.v4h_1, this.a4i_1, this.i4i_1, this);
|
|
621
621
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
622
622
|
return suspendResult;
|
|
623
623
|
}
|
|
@@ -627,40 +627,40 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).v8 = function
|
|
|
627
627
|
}
|
|
628
628
|
|
|
629
629
|
case 10:
|
|
630
|
-
if (!this.
|
|
631
|
-
if (this.
|
|
632
|
-
this.
|
|
630
|
+
if (!this.i4i_1.m4i_1) {
|
|
631
|
+
if (this.h4i_1 == null) {
|
|
632
|
+
this.h4i_1 = this.i4i_1;
|
|
633
633
|
}
|
|
634
|
-
if (this.
|
|
635
|
-
this.
|
|
634
|
+
if (this.a4i_1 == null) {
|
|
635
|
+
this.a4i_1 = BytePacketBuilder();
|
|
636
636
|
}
|
|
637
|
-
writeFully(this.
|
|
638
|
-
this.
|
|
637
|
+
writeFully(this.a4i_1, this.i4i_1.o4i_1);
|
|
638
|
+
this.v8_1 = 21;
|
|
639
639
|
continue $sm;
|
|
640
640
|
} else {
|
|
641
|
-
this.
|
|
641
|
+
this.v8_1 = 11;
|
|
642
642
|
continue $sm;
|
|
643
643
|
}
|
|
644
644
|
|
|
645
645
|
case 11:
|
|
646
|
-
if (this.
|
|
647
|
-
this.
|
|
648
|
-
suspendResult = this.
|
|
646
|
+
if (this.h4i_1 == null) {
|
|
647
|
+
this.v8_1 = 14;
|
|
648
|
+
suspendResult = this.v4h_1.d4g_1.i25(processIncomingExtensions(this.v4h_1, this.i4i_1), this);
|
|
649
649
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
650
650
|
return suspendResult;
|
|
651
651
|
}
|
|
652
652
|
continue $sm;
|
|
653
653
|
} else {
|
|
654
|
-
this.
|
|
654
|
+
this.v8_1 = 12;
|
|
655
655
|
continue $sm;
|
|
656
656
|
}
|
|
657
657
|
|
|
658
658
|
case 12:
|
|
659
|
-
writeFully(ensureNotNull(this.
|
|
660
|
-
var defragmented = Companion_getInstance_5().
|
|
661
|
-
this.
|
|
662
|
-
this.
|
|
663
|
-
suspendResult = this.
|
|
659
|
+
writeFully(ensureNotNull(this.a4i_1), this.i4i_1.o4i_1);
|
|
660
|
+
var defragmented = Companion_getInstance_5().u4i(true, this.h4i_1.n4i_1, readByteArray(build(this.a4i_1)), this.h4i_1.q4i_1, this.h4i_1.r4i_1, this.h4i_1.s4i_1);
|
|
661
|
+
this.h4i_1 = null;
|
|
662
|
+
this.v8_1 = 13;
|
|
663
|
+
suspendResult = this.v4h_1.d4g_1.i25(processIncomingExtensions(this.v4h_1, defragmented), this);
|
|
664
664
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
665
665
|
return suspendResult;
|
|
666
666
|
}
|
|
@@ -668,314 +668,314 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).v8 = function
|
|
|
668
668
|
continue $sm;
|
|
669
669
|
case 13:
|
|
670
670
|
var tmp_1 = this;
|
|
671
|
-
tmp_1.
|
|
672
|
-
this.
|
|
671
|
+
tmp_1.f4i_1 = Unit_instance;
|
|
672
|
+
this.v8_1 = 20;
|
|
673
673
|
continue $sm;
|
|
674
674
|
case 14:
|
|
675
|
-
this.
|
|
675
|
+
this.v8_1 = 21;
|
|
676
676
|
continue $sm;
|
|
677
677
|
case 15:
|
|
678
678
|
var tmp_2 = this;
|
|
679
|
-
tmp_2.
|
|
680
|
-
this.
|
|
679
|
+
tmp_2.f4i_1 = Unit_instance;
|
|
680
|
+
this.v8_1 = 20;
|
|
681
681
|
continue $sm;
|
|
682
682
|
case 16:
|
|
683
683
|
var tmp_3 = this;
|
|
684
|
-
tmp_3.
|
|
685
|
-
this.
|
|
684
|
+
tmp_3.g4i_1 = Unit_instance;
|
|
685
|
+
this.v8_1 = 17;
|
|
686
686
|
continue $sm;
|
|
687
687
|
case 17:
|
|
688
|
-
this.
|
|
689
|
-
this.
|
|
688
|
+
this.f4i_1 = this.g4i_1;
|
|
689
|
+
this.v8_1 = 20;
|
|
690
690
|
continue $sm;
|
|
691
691
|
case 18:
|
|
692
|
-
this.
|
|
692
|
+
this.v8_1 = 19;
|
|
693
693
|
continue $sm;
|
|
694
694
|
case 19:
|
|
695
|
-
this.
|
|
696
|
-
this.
|
|
695
|
+
this.z4h_1 = true;
|
|
696
|
+
this.v8_1 = 22;
|
|
697
697
|
var tmp_4 = this;
|
|
698
698
|
continue $sm;
|
|
699
699
|
case 20:
|
|
700
700
|
if (false) {
|
|
701
|
-
this.
|
|
701
|
+
this.v8_1 = 9;
|
|
702
702
|
continue $sm;
|
|
703
703
|
}
|
|
704
704
|
|
|
705
|
-
this.
|
|
705
|
+
this.v8_1 = 21;
|
|
706
706
|
continue $sm;
|
|
707
707
|
case 21:
|
|
708
|
-
this.
|
|
708
|
+
this.v8_1 = 7;
|
|
709
709
|
continue $sm;
|
|
710
710
|
case 22:
|
|
711
|
-
this.
|
|
712
|
-
cancelConsumed(this.
|
|
713
|
-
this.
|
|
714
|
-
this.
|
|
711
|
+
this.w8_1 = 32;
|
|
712
|
+
cancelConsumed(this.e4i_1, this.d4i_1);
|
|
713
|
+
this.w8_1 = 39;
|
|
714
|
+
this.v8_1 = 23;
|
|
715
715
|
continue $sm;
|
|
716
716
|
case 23:
|
|
717
|
-
this.
|
|
718
|
-
this.
|
|
719
|
-
var tmp0_safe_receiver = this.
|
|
717
|
+
this.w8_1 = 39;
|
|
718
|
+
this.w4h_1.p25();
|
|
719
|
+
var tmp0_safe_receiver = this.a4i_1;
|
|
720
720
|
if (tmp0_safe_receiver == null)
|
|
721
721
|
null;
|
|
722
722
|
else {
|
|
723
|
-
tmp0_safe_receiver.
|
|
723
|
+
tmp0_safe_receiver.d4();
|
|
724
724
|
}
|
|
725
725
|
|
|
726
|
-
this.
|
|
727
|
-
if (!this.
|
|
728
|
-
this.
|
|
729
|
-
suspendResult = close(this.
|
|
726
|
+
this.v4h_1.d4g_1.p25();
|
|
727
|
+
if (!this.z4h_1) {
|
|
728
|
+
this.v8_1 = 24;
|
|
729
|
+
suspendResult = close(this.v4h_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
730
730
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
731
731
|
return suspendResult;
|
|
732
732
|
}
|
|
733
733
|
continue $sm;
|
|
734
734
|
} else {
|
|
735
|
-
this.
|
|
735
|
+
this.v8_1 = 25;
|
|
736
736
|
continue $sm;
|
|
737
737
|
}
|
|
738
738
|
|
|
739
739
|
case 24:
|
|
740
|
-
this.
|
|
740
|
+
this.v8_1 = 25;
|
|
741
741
|
continue $sm;
|
|
742
742
|
case 25:
|
|
743
743
|
var tmp_5 = this;
|
|
744
744
|
return Unit_instance;
|
|
745
745
|
case 26:
|
|
746
|
-
this.
|
|
746
|
+
this.v8_1 = 27;
|
|
747
747
|
var tmp_6 = this;
|
|
748
748
|
continue $sm;
|
|
749
749
|
case 27:
|
|
750
|
-
this.
|
|
751
|
-
cancelConsumed(this.
|
|
752
|
-
this.
|
|
750
|
+
this.w8_1 = 32;
|
|
751
|
+
cancelConsumed(this.e4i_1, this.d4i_1);
|
|
752
|
+
this.v8_1 = 31;
|
|
753
753
|
continue $sm;
|
|
754
754
|
case 28:
|
|
755
|
-
this.
|
|
756
|
-
var tmp_7 = this.
|
|
755
|
+
this.w8_1 = 29;
|
|
756
|
+
var tmp_7 = this.y8_1;
|
|
757
757
|
if (tmp_7 instanceof Error) {
|
|
758
|
-
var e_0 = this.
|
|
758
|
+
var e_0 = this.y8_1;
|
|
759
759
|
var tmp_8 = this;
|
|
760
|
-
this.
|
|
760
|
+
this.d4i_1 = e_0;
|
|
761
761
|
throw e_0;
|
|
762
762
|
} else {
|
|
763
|
-
throw this.
|
|
763
|
+
throw this.y8_1;
|
|
764
764
|
}
|
|
765
765
|
|
|
766
766
|
case 29:
|
|
767
|
-
this.
|
|
768
|
-
var t = this.
|
|
769
|
-
cancelConsumed(this.
|
|
767
|
+
this.w8_1 = 32;
|
|
768
|
+
var t = this.y8_1;
|
|
769
|
+
cancelConsumed(this.e4i_1, this.d4i_1);
|
|
770
770
|
throw t;
|
|
771
771
|
case 30:
|
|
772
|
-
this.
|
|
773
|
-
cancelConsumed(this.
|
|
772
|
+
this.w8_1 = 32;
|
|
773
|
+
cancelConsumed(this.e4i_1, this.d4i_1);
|
|
774
774
|
if (false) {
|
|
775
|
-
this.
|
|
775
|
+
this.v8_1 = 3;
|
|
776
776
|
continue $sm;
|
|
777
777
|
}
|
|
778
778
|
|
|
779
|
-
this.
|
|
779
|
+
this.v8_1 = 31;
|
|
780
780
|
continue $sm;
|
|
781
781
|
case 31:
|
|
782
|
-
this.
|
|
783
|
-
this.
|
|
784
|
-
this.
|
|
782
|
+
this.b4i_1 = Unit_instance;
|
|
783
|
+
this.w8_1 = 39;
|
|
784
|
+
this.v8_1 = 36;
|
|
785
785
|
continue $sm;
|
|
786
786
|
case 32:
|
|
787
|
-
this.
|
|
788
|
-
var tmp_9 = this.
|
|
787
|
+
this.w8_1 = 33;
|
|
788
|
+
var tmp_9 = this.y8_1;
|
|
789
789
|
if (tmp_9 instanceof ClosedSendChannelException) {
|
|
790
|
-
var _unused_var__etf5q3 = this.
|
|
790
|
+
var _unused_var__etf5q3 = this.y8_1;
|
|
791
791
|
var tmp_10 = this;
|
|
792
|
-
tmp_10.
|
|
793
|
-
this.
|
|
794
|
-
this.
|
|
792
|
+
tmp_10.b4i_1 = Unit_instance;
|
|
793
|
+
this.w8_1 = 39;
|
|
794
|
+
this.v8_1 = 36;
|
|
795
795
|
continue $sm;
|
|
796
796
|
} else {
|
|
797
|
-
var tmp_11 = this.
|
|
797
|
+
var tmp_11 = this.y8_1;
|
|
798
798
|
if (tmp_11 instanceof Error) {
|
|
799
|
-
var cause = this.
|
|
799
|
+
var cause = this.y8_1;
|
|
800
800
|
var tmp_12 = this;
|
|
801
|
-
this.
|
|
802
|
-
tmp_12.
|
|
803
|
-
this.
|
|
804
|
-
this.
|
|
801
|
+
this.w4h_1.p25();
|
|
802
|
+
tmp_12.b4i_1 = this.v4h_1.d4g_1.n25(cause);
|
|
803
|
+
this.w8_1 = 39;
|
|
804
|
+
this.v8_1 = 36;
|
|
805
805
|
continue $sm;
|
|
806
806
|
} else {
|
|
807
|
-
throw this.
|
|
807
|
+
throw this.y8_1;
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
810
|
|
|
811
811
|
case 33:
|
|
812
|
-
this.
|
|
813
|
-
this.
|
|
814
|
-
this.
|
|
815
|
-
var tmp0_safe_receiver_0 = this.
|
|
812
|
+
this.w8_1 = 39;
|
|
813
|
+
this.c4i_1 = this.y8_1;
|
|
814
|
+
this.w4h_1.p25();
|
|
815
|
+
var tmp0_safe_receiver_0 = this.a4i_1;
|
|
816
816
|
if (tmp0_safe_receiver_0 == null)
|
|
817
817
|
null;
|
|
818
818
|
else {
|
|
819
|
-
tmp0_safe_receiver_0.
|
|
819
|
+
tmp0_safe_receiver_0.d4();
|
|
820
820
|
}
|
|
821
821
|
|
|
822
|
-
this.
|
|
823
|
-
if (!this.
|
|
824
|
-
this.
|
|
825
|
-
suspendResult = close(this.
|
|
822
|
+
this.v4h_1.d4g_1.p25();
|
|
823
|
+
if (!this.z4h_1) {
|
|
824
|
+
this.v8_1 = 34;
|
|
825
|
+
suspendResult = close(this.v4h_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
826
826
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
827
827
|
return suspendResult;
|
|
828
828
|
}
|
|
829
829
|
continue $sm;
|
|
830
830
|
} else {
|
|
831
|
-
this.
|
|
831
|
+
this.v8_1 = 35;
|
|
832
832
|
continue $sm;
|
|
833
833
|
}
|
|
834
834
|
|
|
835
835
|
case 34:
|
|
836
|
-
this.
|
|
836
|
+
this.v8_1 = 35;
|
|
837
837
|
continue $sm;
|
|
838
838
|
case 35:
|
|
839
|
-
throw this.
|
|
839
|
+
throw this.c4i_1;
|
|
840
840
|
case 36:
|
|
841
|
-
this.
|
|
842
|
-
this.
|
|
843
|
-
this.
|
|
844
|
-
var tmp0_safe_receiver_1 = this.
|
|
841
|
+
this.y4h_1 = this.b4i_1;
|
|
842
|
+
this.w8_1 = 39;
|
|
843
|
+
this.w4h_1.p25();
|
|
844
|
+
var tmp0_safe_receiver_1 = this.a4i_1;
|
|
845
845
|
if (tmp0_safe_receiver_1 == null)
|
|
846
846
|
null;
|
|
847
847
|
else {
|
|
848
|
-
tmp0_safe_receiver_1.
|
|
848
|
+
tmp0_safe_receiver_1.d4();
|
|
849
849
|
}
|
|
850
850
|
|
|
851
|
-
this.
|
|
852
|
-
if (!this.
|
|
853
|
-
this.
|
|
854
|
-
suspendResult = close(this.
|
|
851
|
+
this.v4h_1.d4g_1.p25();
|
|
852
|
+
if (!this.z4h_1) {
|
|
853
|
+
this.v8_1 = 37;
|
|
854
|
+
suspendResult = close(this.v4h_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
855
855
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
856
856
|
return suspendResult;
|
|
857
857
|
}
|
|
858
858
|
continue $sm;
|
|
859
859
|
} else {
|
|
860
|
-
this.
|
|
860
|
+
this.v8_1 = 38;
|
|
861
861
|
continue $sm;
|
|
862
862
|
}
|
|
863
863
|
|
|
864
864
|
case 37:
|
|
865
|
-
this.
|
|
865
|
+
this.v8_1 = 38;
|
|
866
866
|
continue $sm;
|
|
867
867
|
case 38:
|
|
868
868
|
return Unit_instance;
|
|
869
869
|
case 39:
|
|
870
|
-
throw this.
|
|
870
|
+
throw this.y8_1;
|
|
871
871
|
}
|
|
872
872
|
} catch ($p) {
|
|
873
873
|
var e_1 = $p;
|
|
874
|
-
if (this.
|
|
874
|
+
if (this.w8_1 === 39) {
|
|
875
875
|
throw e_1;
|
|
876
876
|
} else {
|
|
877
|
-
this.
|
|
878
|
-
this.
|
|
877
|
+
this.v8_1 = this.w8_1;
|
|
878
|
+
this.y8_1 = e_1;
|
|
879
879
|
}
|
|
880
880
|
}
|
|
881
881
|
while (true);
|
|
882
882
|
};
|
|
883
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
884
|
-
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.
|
|
885
|
-
i.
|
|
883
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j3s = function ($this$launch, completion) {
|
|
884
|
+
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.v4h_1, this.w4h_1, completion);
|
|
885
|
+
i.x4h_1 = $this$launch;
|
|
886
886
|
return i;
|
|
887
887
|
};
|
|
888
888
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0(this$0, $ponger, resultContinuation) {
|
|
889
889
|
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation);
|
|
890
890
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
891
|
-
return i.
|
|
891
|
+
return i.i3s($this$launch, $completion);
|
|
892
892
|
}, 1);
|
|
893
893
|
}
|
|
894
894
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation) {
|
|
895
|
-
this.
|
|
895
|
+
this.d4j_1 = this$0;
|
|
896
896
|
CoroutineImpl.call(this, resultContinuation);
|
|
897
897
|
}
|
|
898
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
899
|
-
var tmp = this.
|
|
900
|
-
tmp.
|
|
901
|
-
tmp.
|
|
902
|
-
return tmp.
|
|
898
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).i3s = function ($this$launch, $completion) {
|
|
899
|
+
var tmp = this.j3s($this$launch, $completion);
|
|
900
|
+
tmp.x8_1 = Unit_instance;
|
|
901
|
+
tmp.y8_1 = null;
|
|
902
|
+
return tmp.d9();
|
|
903
903
|
};
|
|
904
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
905
|
-
return this.
|
|
904
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).q9 = function (p1, $completion) {
|
|
905
|
+
return this.i3s((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
906
906
|
};
|
|
907
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
908
|
-
var suspendResult = this.
|
|
907
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).d9 = function () {
|
|
908
|
+
var suspendResult = this.x8_1;
|
|
909
909
|
$sm: do
|
|
910
910
|
try {
|
|
911
|
-
var tmp = this.
|
|
911
|
+
var tmp = this.v8_1;
|
|
912
912
|
switch (tmp) {
|
|
913
913
|
case 0:
|
|
914
|
-
this.
|
|
915
|
-
this.
|
|
914
|
+
this.w8_1 = 13;
|
|
915
|
+
this.v8_1 = 1;
|
|
916
916
|
continue $sm;
|
|
917
917
|
case 1:
|
|
918
|
-
this.
|
|
918
|
+
this.v8_1 = 2;
|
|
919
919
|
continue $sm;
|
|
920
920
|
case 2:
|
|
921
|
-
this.
|
|
922
|
-
this.
|
|
923
|
-
this.
|
|
924
|
-
suspendResult = outgoingProcessorLoop(this.
|
|
921
|
+
this.w8_1 = 9;
|
|
922
|
+
this.w8_1 = 4;
|
|
923
|
+
this.v8_1 = 3;
|
|
924
|
+
suspendResult = outgoingProcessorLoop(this.d4j_1, this);
|
|
925
925
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
926
926
|
return suspendResult;
|
|
927
927
|
}
|
|
928
928
|
|
|
929
929
|
continue $sm;
|
|
930
930
|
case 3:
|
|
931
|
-
this.
|
|
932
|
-
this.
|
|
931
|
+
this.w8_1 = 13;
|
|
932
|
+
this.v8_1 = 11;
|
|
933
933
|
continue $sm;
|
|
934
934
|
case 4:
|
|
935
|
-
this.
|
|
936
|
-
var tmp_0 = this.
|
|
935
|
+
this.w8_1 = 9;
|
|
936
|
+
var tmp_0 = this.y8_1;
|
|
937
937
|
if (tmp_0 instanceof ClosedSendChannelException) {
|
|
938
|
-
var _unused_var__etf5q3 = this.
|
|
939
|
-
this.
|
|
940
|
-
this.
|
|
938
|
+
var _unused_var__etf5q3 = this.y8_1;
|
|
939
|
+
this.w8_1 = 13;
|
|
940
|
+
this.v8_1 = 11;
|
|
941
941
|
continue $sm;
|
|
942
942
|
} else {
|
|
943
|
-
var tmp_1 = this.
|
|
943
|
+
var tmp_1 = this.y8_1;
|
|
944
944
|
if (tmp_1 instanceof ClosedReceiveChannelException) {
|
|
945
|
-
var _unused_var__etf5q3_0 = this.
|
|
946
|
-
this.
|
|
947
|
-
this.
|
|
945
|
+
var _unused_var__etf5q3_0 = this.y8_1;
|
|
946
|
+
this.w8_1 = 13;
|
|
947
|
+
this.v8_1 = 11;
|
|
948
948
|
continue $sm;
|
|
949
949
|
} else {
|
|
950
|
-
var tmp_2 = this.
|
|
950
|
+
var tmp_2 = this.y8_1;
|
|
951
951
|
if (tmp_2 instanceof CancellationException) {
|
|
952
|
-
var _unused_var__etf5q3_1 = this.
|
|
953
|
-
this.
|
|
954
|
-
suspendResult = sendCloseSequence(this.
|
|
952
|
+
var _unused_var__etf5q3_1 = this.y8_1;
|
|
953
|
+
this.v8_1 = 5;
|
|
954
|
+
suspendResult = sendCloseSequence(this.d4j_1, CloseReason_init_$Create$(Codes_NORMAL_getInstance(), ''), VOID, this);
|
|
955
955
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
956
956
|
return suspendResult;
|
|
957
957
|
}
|
|
958
958
|
continue $sm;
|
|
959
959
|
} else {
|
|
960
|
-
var tmp_3 = this.
|
|
960
|
+
var tmp_3 = this.y8_1;
|
|
961
961
|
if (tmp_3 instanceof ChannelIOException) {
|
|
962
|
-
var _unused_var__etf5q3_2 = this.
|
|
963
|
-
this.
|
|
964
|
-
this.
|
|
962
|
+
var _unused_var__etf5q3_2 = this.y8_1;
|
|
963
|
+
this.w8_1 = 13;
|
|
964
|
+
this.v8_1 = 11;
|
|
965
965
|
continue $sm;
|
|
966
966
|
} else {
|
|
967
|
-
var tmp_4 = this.
|
|
967
|
+
var tmp_4 = this.y8_1;
|
|
968
968
|
if (tmp_4 instanceof Error) {
|
|
969
|
-
var cause = this.
|
|
970
|
-
this.
|
|
971
|
-
this.
|
|
972
|
-
suspendResult = closeExceptionally(this.
|
|
969
|
+
var cause = this.y8_1;
|
|
970
|
+
this.d4j_1.e4g_1.g1o(CancellationException_init_$Create$('Failed to send frame', cause));
|
|
971
|
+
this.v8_1 = 6;
|
|
972
|
+
suspendResult = closeExceptionally(this.d4j_1.y4f_1, cause, this);
|
|
973
973
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
974
974
|
return suspendResult;
|
|
975
975
|
}
|
|
976
976
|
continue $sm;
|
|
977
977
|
} else {
|
|
978
|
-
throw this.
|
|
978
|
+
throw this.y8_1;
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
981
|
}
|
|
@@ -983,18 +983,18 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).v8 = function
|
|
|
983
983
|
}
|
|
984
984
|
|
|
985
985
|
case 5:
|
|
986
|
-
this.
|
|
987
|
-
this.
|
|
986
|
+
this.w8_1 = 13;
|
|
987
|
+
this.v8_1 = 11;
|
|
988
988
|
continue $sm;
|
|
989
989
|
case 6:
|
|
990
|
-
this.
|
|
991
|
-
this.
|
|
990
|
+
this.w8_1 = 13;
|
|
991
|
+
this.v8_1 = 7;
|
|
992
992
|
continue $sm;
|
|
993
993
|
case 7:
|
|
994
|
-
this.
|
|
995
|
-
this.
|
|
996
|
-
this.
|
|
997
|
-
suspendResult = close(this.
|
|
994
|
+
this.w8_1 = 13;
|
|
995
|
+
this.d4j_1.e4g_1.r25();
|
|
996
|
+
this.v8_1 = 8;
|
|
997
|
+
suspendResult = close(this.d4j_1.y4f_1, VOID, this);
|
|
998
998
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
999
999
|
return suspendResult;
|
|
1000
1000
|
}
|
|
@@ -1003,23 +1003,23 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).v8 = function
|
|
|
1003
1003
|
case 8:
|
|
1004
1004
|
return Unit_instance;
|
|
1005
1005
|
case 9:
|
|
1006
|
-
this.
|
|
1007
|
-
this.
|
|
1008
|
-
this.
|
|
1009
|
-
this.
|
|
1010
|
-
suspendResult = close(this.
|
|
1006
|
+
this.w8_1 = 13;
|
|
1007
|
+
this.f4j_1 = this.y8_1;
|
|
1008
|
+
this.d4j_1.e4g_1.r25();
|
|
1009
|
+
this.v8_1 = 10;
|
|
1010
|
+
suspendResult = close(this.d4j_1.y4f_1, VOID, this);
|
|
1011
1011
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1012
1012
|
return suspendResult;
|
|
1013
1013
|
}
|
|
1014
1014
|
|
|
1015
1015
|
continue $sm;
|
|
1016
1016
|
case 10:
|
|
1017
|
-
throw this.
|
|
1017
|
+
throw this.f4j_1;
|
|
1018
1018
|
case 11:
|
|
1019
|
-
this.
|
|
1020
|
-
this.
|
|
1021
|
-
this.
|
|
1022
|
-
suspendResult = close(this.
|
|
1019
|
+
this.w8_1 = 13;
|
|
1020
|
+
this.d4j_1.e4g_1.r25();
|
|
1021
|
+
this.v8_1 = 12;
|
|
1022
|
+
suspendResult = close(this.d4j_1.y4f_1, VOID, this);
|
|
1023
1023
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1024
1024
|
return suspendResult;
|
|
1025
1025
|
}
|
|
@@ -1028,53 +1028,53 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).v8 = function
|
|
|
1028
1028
|
case 12:
|
|
1029
1029
|
return Unit_instance;
|
|
1030
1030
|
case 13:
|
|
1031
|
-
throw this.
|
|
1031
|
+
throw this.y8_1;
|
|
1032
1032
|
}
|
|
1033
1033
|
} catch ($p) {
|
|
1034
1034
|
var e = $p;
|
|
1035
|
-
if (this.
|
|
1035
|
+
if (this.w8_1 === 13) {
|
|
1036
1036
|
throw e;
|
|
1037
1037
|
} else {
|
|
1038
|
-
this.
|
|
1039
|
-
this.
|
|
1038
|
+
this.v8_1 = this.w8_1;
|
|
1039
|
+
this.y8_1 = e;
|
|
1040
1040
|
}
|
|
1041
1041
|
}
|
|
1042
1042
|
while (true);
|
|
1043
1043
|
};
|
|
1044
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
1045
|
-
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.
|
|
1046
|
-
i.
|
|
1044
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).j3s = function ($this$launch, completion) {
|
|
1045
|
+
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.d4j_1, completion);
|
|
1046
|
+
i.e4j_1 = $this$launch;
|
|
1047
1047
|
return i;
|
|
1048
1048
|
};
|
|
1049
1049
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0(this$0, resultContinuation) {
|
|
1050
1050
|
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation);
|
|
1051
1051
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
1052
|
-
return i.
|
|
1052
|
+
return i.i3s($this$launch, $completion);
|
|
1053
1053
|
}, 1);
|
|
1054
1054
|
}
|
|
1055
1055
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation) {
|
|
1056
|
-
this.
|
|
1056
|
+
this.o4j_1 = this$0;
|
|
1057
1057
|
CoroutineImpl.call(this, resultContinuation);
|
|
1058
1058
|
}
|
|
1059
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1060
|
-
var tmp = this.
|
|
1061
|
-
tmp.
|
|
1062
|
-
tmp.
|
|
1063
|
-
return tmp.
|
|
1059
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).q4j = function (it, $completion) {
|
|
1060
|
+
var tmp = this.r4j(it, $completion);
|
|
1061
|
+
tmp.x8_1 = Unit_instance;
|
|
1062
|
+
tmp.y8_1 = null;
|
|
1063
|
+
return tmp.d9();
|
|
1064
1064
|
};
|
|
1065
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1066
|
-
return this.
|
|
1065
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).q9 = function (p1, $completion) {
|
|
1066
|
+
return this.q4j(p1 instanceof CloseReason ? p1 : THROW_CCE(), $completion);
|
|
1067
1067
|
};
|
|
1068
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1069
|
-
var suspendResult = this.
|
|
1068
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).d9 = function () {
|
|
1069
|
+
var suspendResult = this.x8_1;
|
|
1070
1070
|
$sm: do
|
|
1071
1071
|
try {
|
|
1072
|
-
var tmp = this.
|
|
1072
|
+
var tmp = this.v8_1;
|
|
1073
1073
|
switch (tmp) {
|
|
1074
1074
|
case 0:
|
|
1075
|
-
this.
|
|
1076
|
-
this.
|
|
1077
|
-
suspendResult = sendCloseSequence(this.
|
|
1075
|
+
this.w8_1 = 2;
|
|
1076
|
+
this.v8_1 = 1;
|
|
1077
|
+
suspendResult = sendCloseSequence(this.o4j_1, this.p4j_1, IOException_init_$Create$('Ping timeout'), this);
|
|
1078
1078
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1079
1079
|
return suspendResult;
|
|
1080
1080
|
}
|
|
@@ -1083,48 +1083,48 @@ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).v8 = function ()
|
|
|
1083
1083
|
case 1:
|
|
1084
1084
|
return Unit_instance;
|
|
1085
1085
|
case 2:
|
|
1086
|
-
throw this.
|
|
1086
|
+
throw this.y8_1;
|
|
1087
1087
|
}
|
|
1088
1088
|
} catch ($p) {
|
|
1089
1089
|
var e = $p;
|
|
1090
|
-
if (this.
|
|
1090
|
+
if (this.w8_1 === 2) {
|
|
1091
1091
|
throw e;
|
|
1092
1092
|
} else {
|
|
1093
|
-
this.
|
|
1094
|
-
this.
|
|
1093
|
+
this.v8_1 = this.w8_1;
|
|
1094
|
+
this.y8_1 = e;
|
|
1095
1095
|
}
|
|
1096
1096
|
}
|
|
1097
1097
|
while (true);
|
|
1098
1098
|
};
|
|
1099
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1100
|
-
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.
|
|
1101
|
-
i.
|
|
1099
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).r4j = function (it, completion) {
|
|
1100
|
+
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.o4j_1, completion);
|
|
1101
|
+
i.p4j_1 = it;
|
|
1102
1102
|
return i;
|
|
1103
1103
|
};
|
|
1104
1104
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0(this$0, resultContinuation) {
|
|
1105
1105
|
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation);
|
|
1106
1106
|
return constructCallableReference(function (it, $completion) {
|
|
1107
|
-
return i.
|
|
1107
|
+
return i.q4j(it, $completion);
|
|
1108
1108
|
}, 1);
|
|
1109
1109
|
}
|
|
1110
1110
|
function $outgoingProcessorLoopCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1111
1111
|
CoroutineImpl.call(this, resultContinuation);
|
|
1112
|
-
this.
|
|
1112
|
+
this.j4f_1 = _this__u8e3s4;
|
|
1113
1113
|
}
|
|
1114
|
-
protoOf($outgoingProcessorLoopCOROUTINE$).
|
|
1115
|
-
var suspendResult = this.
|
|
1114
|
+
protoOf($outgoingProcessorLoopCOROUTINE$).d9 = function () {
|
|
1115
|
+
var suspendResult = this.x8_1;
|
|
1116
1116
|
$sm: do
|
|
1117
1117
|
try {
|
|
1118
|
-
var tmp = this.
|
|
1118
|
+
var tmp = this.v8_1;
|
|
1119
1119
|
switch (tmp) {
|
|
1120
1120
|
case 0:
|
|
1121
|
-
this.
|
|
1122
|
-
this.
|
|
1123
|
-
this.
|
|
1121
|
+
this.w8_1 = 7;
|
|
1122
|
+
this.l4f_1 = this.j4f_1.e4g_1.t();
|
|
1123
|
+
this.v8_1 = 1;
|
|
1124
1124
|
continue $sm;
|
|
1125
1125
|
case 1:
|
|
1126
|
-
this.
|
|
1127
|
-
suspendResult = this.
|
|
1126
|
+
this.v8_1 = 2;
|
|
1127
|
+
suspendResult = this.l4f_1.l23(this);
|
|
1128
1128
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1129
1129
|
return suspendResult;
|
|
1130
1130
|
}
|
|
@@ -1132,19 +1132,19 @@ protoOf($outgoingProcessorLoopCOROUTINE$).v8 = function () {
|
|
|
1132
1132
|
continue $sm;
|
|
1133
1133
|
case 2:
|
|
1134
1134
|
if (!suspendResult) {
|
|
1135
|
-
this.
|
|
1135
|
+
this.v8_1 = 6;
|
|
1136
1136
|
continue $sm;
|
|
1137
1137
|
}
|
|
1138
1138
|
|
|
1139
|
-
var frame = this.
|
|
1139
|
+
var frame = this.l4f_1.v();
|
|
1140
1140
|
var this_0 = get_LOGGER();
|
|
1141
1141
|
if (get_isTraceEnabled(this_0)) {
|
|
1142
|
-
this_0.
|
|
1142
|
+
this_0.b41('Sending ' + frame.toString() + ' from session ' + toString(this.j4f_1));
|
|
1143
1143
|
}
|
|
1144
1144
|
|
|
1145
1145
|
if (frame instanceof Close) {
|
|
1146
|
-
this.
|
|
1147
|
-
suspendResult = sendCloseSequence(this.
|
|
1146
|
+
this.v8_1 = 3;
|
|
1147
|
+
suspendResult = sendCloseSequence(this.j4f_1, readReason(frame), VOID, this);
|
|
1148
1148
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1149
1149
|
return suspendResult;
|
|
1150
1150
|
}
|
|
@@ -1157,223 +1157,223 @@ protoOf($outgoingProcessorLoopCOROUTINE$).v8 = function () {
|
|
|
1157
1157
|
tmp_0 = frame instanceof Binary;
|
|
1158
1158
|
}
|
|
1159
1159
|
if (tmp_0) {
|
|
1160
|
-
this.
|
|
1161
|
-
this.
|
|
1160
|
+
this.k4f_1 = processOutgoingExtensions(this.j4f_1, frame);
|
|
1161
|
+
this.v8_1 = 4;
|
|
1162
1162
|
continue $sm;
|
|
1163
1163
|
} else {
|
|
1164
|
-
this.
|
|
1165
|
-
this.
|
|
1164
|
+
this.k4f_1 = frame;
|
|
1165
|
+
this.v8_1 = 4;
|
|
1166
1166
|
continue $sm;
|
|
1167
1167
|
}
|
|
1168
1168
|
}
|
|
1169
1169
|
|
|
1170
1170
|
case 3:
|
|
1171
|
-
this.
|
|
1171
|
+
this.v8_1 = 6;
|
|
1172
1172
|
var tmp_1 = this;
|
|
1173
1173
|
continue $sm;
|
|
1174
1174
|
case 4:
|
|
1175
|
-
var processedFrame = this.
|
|
1176
|
-
this.
|
|
1177
|
-
suspendResult = this.
|
|
1175
|
+
var processedFrame = this.k4f_1;
|
|
1176
|
+
this.v8_1 = 5;
|
|
1177
|
+
suspendResult = this.j4f_1.y4f_1.w4e().i25(processedFrame, this);
|
|
1178
1178
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1179
1179
|
return suspendResult;
|
|
1180
1180
|
}
|
|
1181
1181
|
|
|
1182
1182
|
continue $sm;
|
|
1183
1183
|
case 5:
|
|
1184
|
-
this.
|
|
1184
|
+
this.v8_1 = 1;
|
|
1185
1185
|
continue $sm;
|
|
1186
1186
|
case 6:
|
|
1187
1187
|
return Unit_instance;
|
|
1188
1188
|
case 7:
|
|
1189
|
-
throw this.
|
|
1189
|
+
throw this.y8_1;
|
|
1190
1190
|
}
|
|
1191
1191
|
} catch ($p) {
|
|
1192
1192
|
var e = $p;
|
|
1193
|
-
if (this.
|
|
1193
|
+
if (this.w8_1 === 7) {
|
|
1194
1194
|
throw e;
|
|
1195
1195
|
} else {
|
|
1196
|
-
this.
|
|
1197
|
-
this.
|
|
1196
|
+
this.v8_1 = this.w8_1;
|
|
1197
|
+
this.y8_1 = e;
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
1200
|
while (true);
|
|
1201
1201
|
};
|
|
1202
1202
|
function $sendCloseSequenceCOROUTINE$(_this__u8e3s4, reason, exception, resultContinuation) {
|
|
1203
1203
|
CoroutineImpl.call(this, resultContinuation);
|
|
1204
|
-
this.
|
|
1205
|
-
this.
|
|
1206
|
-
this.
|
|
1204
|
+
this.u4f_1 = _this__u8e3s4;
|
|
1205
|
+
this.v4f_1 = reason;
|
|
1206
|
+
this.w4f_1 = exception;
|
|
1207
1207
|
}
|
|
1208
|
-
protoOf($sendCloseSequenceCOROUTINE$).
|
|
1209
|
-
var suspendResult = this.
|
|
1208
|
+
protoOf($sendCloseSequenceCOROUTINE$).d9 = function () {
|
|
1209
|
+
var suspendResult = this.x8_1;
|
|
1210
1210
|
$sm: do
|
|
1211
1211
|
try {
|
|
1212
|
-
var tmp = this.
|
|
1212
|
+
var tmp = this.v8_1;
|
|
1213
1213
|
switch (tmp) {
|
|
1214
1214
|
case 0:
|
|
1215
|
-
this.
|
|
1216
|
-
if (!tryClose(this.
|
|
1215
|
+
this.w8_1 = 6;
|
|
1216
|
+
if (!tryClose(this.u4f_1))
|
|
1217
1217
|
return Unit_instance;
|
|
1218
1218
|
var this_0 = get_LOGGER();
|
|
1219
1219
|
if (get_isTraceEnabled(this_0)) {
|
|
1220
|
-
this_0.
|
|
1220
|
+
this_0.b41('Sending Close Sequence for session ' + toString(this.u4f_1) + ' with reason ' + toString_0(this.v4f_1) + ' and exception ' + toString_0(this.w4f_1));
|
|
1221
1221
|
}
|
|
1222
1222
|
|
|
1223
|
-
this.
|
|
1223
|
+
this.u4f_1.b4g_1.f1v();
|
|
1224
1224
|
var tmp_0 = this;
|
|
1225
|
-
var tmp0_elvis_lhs = this.
|
|
1226
|
-
tmp_0.
|
|
1227
|
-
this.
|
|
1225
|
+
var tmp0_elvis_lhs = this.v4f_1;
|
|
1226
|
+
tmp_0.x4f_1 = tmp0_elvis_lhs == null ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : tmp0_elvis_lhs;
|
|
1227
|
+
this.v8_1 = 1;
|
|
1228
1228
|
continue $sm;
|
|
1229
1229
|
case 1:
|
|
1230
|
-
this.
|
|
1231
|
-
runOrCancelPinger(this.
|
|
1232
|
-
if (!(this.
|
|
1233
|
-
this.
|
|
1234
|
-
suspendResult = this.
|
|
1230
|
+
this.w8_1 = 5;
|
|
1231
|
+
runOrCancelPinger(this.u4f_1);
|
|
1232
|
+
if (!(this.x4f_1.p4e_1 === Codes_CLOSED_ABNORMALLY_getInstance().l4e_1)) {
|
|
1233
|
+
this.v8_1 = 2;
|
|
1234
|
+
suspendResult = this.u4f_1.y4f_1.w4e().i25(Close_init_$Create$(this.x4f_1), this);
|
|
1235
1235
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1236
1236
|
return suspendResult;
|
|
1237
1237
|
}
|
|
1238
1238
|
continue $sm;
|
|
1239
1239
|
} else {
|
|
1240
|
-
this.
|
|
1240
|
+
this.v8_1 = 3;
|
|
1241
1241
|
continue $sm;
|
|
1242
1242
|
}
|
|
1243
1243
|
|
|
1244
1244
|
case 2:
|
|
1245
|
-
this.
|
|
1245
|
+
this.v8_1 = 3;
|
|
1246
1246
|
continue $sm;
|
|
1247
1247
|
case 3:
|
|
1248
|
-
this.
|
|
1249
|
-
this.
|
|
1248
|
+
this.w8_1 = 6;
|
|
1249
|
+
this.v8_1 = 4;
|
|
1250
1250
|
continue $sm;
|
|
1251
1251
|
case 4:
|
|
1252
|
-
this.
|
|
1253
|
-
this.
|
|
1254
|
-
if (!(this.
|
|
1255
|
-
this.
|
|
1256
|
-
this.
|
|
1252
|
+
this.w8_1 = 6;
|
|
1253
|
+
this.u4f_1.a4g_1.d1v(this.x4f_1);
|
|
1254
|
+
if (!(this.w4f_1 == null)) {
|
|
1255
|
+
this.u4f_1.e4g_1.n25(this.w4f_1);
|
|
1256
|
+
this.u4f_1.d4g_1.n25(this.w4f_1);
|
|
1257
1257
|
}
|
|
1258
1258
|
|
|
1259
1259
|
return Unit_instance;
|
|
1260
1260
|
case 5:
|
|
1261
|
-
this.
|
|
1262
|
-
var t = this.
|
|
1263
|
-
this.
|
|
1264
|
-
if (!(this.
|
|
1265
|
-
this.
|
|
1266
|
-
this.
|
|
1261
|
+
this.w8_1 = 6;
|
|
1262
|
+
var t = this.y8_1;
|
|
1263
|
+
this.u4f_1.a4g_1.d1v(this.x4f_1);
|
|
1264
|
+
if (!(this.w4f_1 == null)) {
|
|
1265
|
+
this.u4f_1.e4g_1.n25(this.w4f_1);
|
|
1266
|
+
this.u4f_1.d4g_1.n25(this.w4f_1);
|
|
1267
1267
|
}
|
|
1268
1268
|
|
|
1269
1269
|
throw t;
|
|
1270
1270
|
case 6:
|
|
1271
|
-
throw this.
|
|
1271
|
+
throw this.y8_1;
|
|
1272
1272
|
}
|
|
1273
1273
|
} catch ($p) {
|
|
1274
1274
|
var e = $p;
|
|
1275
|
-
if (this.
|
|
1275
|
+
if (this.w8_1 === 6) {
|
|
1276
1276
|
throw e;
|
|
1277
1277
|
} else {
|
|
1278
|
-
this.
|
|
1279
|
-
this.
|
|
1278
|
+
this.v8_1 = this.w8_1;
|
|
1279
|
+
this.y8_1 = e;
|
|
1280
1280
|
}
|
|
1281
1281
|
}
|
|
1282
1282
|
while (true);
|
|
1283
1283
|
};
|
|
1284
1284
|
function $checkMaxFrameSizeCOROUTINE$(_this__u8e3s4, packet, frame, resultContinuation) {
|
|
1285
1285
|
CoroutineImpl.call(this, resultContinuation);
|
|
1286
|
-
this.
|
|
1287
|
-
this.
|
|
1288
|
-
this.
|
|
1286
|
+
this.u4g_1 = _this__u8e3s4;
|
|
1287
|
+
this.v4g_1 = packet;
|
|
1288
|
+
this.w4g_1 = frame;
|
|
1289
1289
|
}
|
|
1290
|
-
protoOf($checkMaxFrameSizeCOROUTINE$).
|
|
1291
|
-
var suspendResult = this.
|
|
1290
|
+
protoOf($checkMaxFrameSizeCOROUTINE$).d9 = function () {
|
|
1291
|
+
var suspendResult = this.x8_1;
|
|
1292
1292
|
$sm: do
|
|
1293
1293
|
try {
|
|
1294
|
-
var tmp = this.
|
|
1294
|
+
var tmp = this.v8_1;
|
|
1295
1295
|
switch (tmp) {
|
|
1296
1296
|
case 0:
|
|
1297
|
-
this.
|
|
1297
|
+
this.w8_1 = 3;
|
|
1298
1298
|
var tmp_0 = this;
|
|
1299
|
-
var tmp_1 = this.
|
|
1300
|
-
var tmp0_safe_receiver = this.
|
|
1299
|
+
var tmp_1 = this.w4g_1.o4i_1.length;
|
|
1300
|
+
var tmp0_safe_receiver = this.v4g_1;
|
|
1301
1301
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_size(tmp0_safe_receiver);
|
|
1302
|
-
tmp_0.
|
|
1303
|
-
if (compare(fromInt(this.
|
|
1304
|
-
var tmp2_safe_receiver = this.
|
|
1302
|
+
tmp_0.x4g_1 = tmp_1 + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
1303
|
+
if (compare(fromInt(this.x4g_1), this.u4g_1.u4e()) > 0) {
|
|
1304
|
+
var tmp2_safe_receiver = this.v4g_1;
|
|
1305
1305
|
if (tmp2_safe_receiver == null)
|
|
1306
1306
|
null;
|
|
1307
1307
|
else {
|
|
1308
|
-
tmp2_safe_receiver.
|
|
1308
|
+
tmp2_safe_receiver.d4();
|
|
1309
1309
|
}
|
|
1310
|
-
this.
|
|
1311
|
-
suspendResult = close(this.
|
|
1310
|
+
this.v8_1 = 2;
|
|
1311
|
+
suspendResult = close(this.u4g_1, CloseReason_init_$Create$(Codes_TOO_BIG_getInstance(), 'Frame is too big: ' + this.x4g_1 + '. Max size is ' + this.u4g_1.u4e().toString()), this);
|
|
1312
1312
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1313
1313
|
return suspendResult;
|
|
1314
1314
|
}
|
|
1315
1315
|
continue $sm;
|
|
1316
1316
|
} else {
|
|
1317
|
-
this.
|
|
1317
|
+
this.v8_1 = 1;
|
|
1318
1318
|
continue $sm;
|
|
1319
1319
|
}
|
|
1320
1320
|
|
|
1321
1321
|
case 1:
|
|
1322
1322
|
return Unit_instance;
|
|
1323
1323
|
case 2:
|
|
1324
|
-
throw new FrameTooBigException(fromInt(this.
|
|
1324
|
+
throw new FrameTooBigException(fromInt(this.x4g_1));
|
|
1325
1325
|
case 3:
|
|
1326
|
-
throw this.
|
|
1326
|
+
throw this.y8_1;
|
|
1327
1327
|
}
|
|
1328
1328
|
} catch ($p) {
|
|
1329
1329
|
var e = $p;
|
|
1330
|
-
if (this.
|
|
1330
|
+
if (this.w8_1 === 3) {
|
|
1331
1331
|
throw e;
|
|
1332
1332
|
} else {
|
|
1333
|
-
this.
|
|
1334
|
-
this.
|
|
1333
|
+
this.v8_1 = this.w8_1;
|
|
1334
|
+
this.y8_1 = e;
|
|
1335
1335
|
}
|
|
1336
1336
|
}
|
|
1337
1337
|
while (true);
|
|
1338
1338
|
};
|
|
1339
1339
|
function DefaultWebSocketSessionImpl(raw, pingIntervalMillis, timeoutMillis, incomingFramesConfig, outgoingFramesConfig) {
|
|
1340
1340
|
Companion_getInstance_0();
|
|
1341
|
-
this.
|
|
1342
|
-
this.
|
|
1343
|
-
this.
|
|
1344
|
-
this.
|
|
1345
|
-
this.
|
|
1346
|
-
this.
|
|
1347
|
-
this.
|
|
1348
|
-
this.
|
|
1341
|
+
this.y4f_1 = raw;
|
|
1342
|
+
this.z4f_1 = atomic$ref$1(null);
|
|
1343
|
+
this.a4g_1 = CompletableDeferred();
|
|
1344
|
+
this.b4g_1 = Job();
|
|
1345
|
+
this.c4g_1 = this.y4f_1.w1m().uh(Key_instance).wh(this.b4g_1).wh(new CoroutineName('ws-default'));
|
|
1346
|
+
this.d4g_1 = from(Factory_getInstance(), incomingFramesConfig);
|
|
1347
|
+
this.e4g_1 = from(Factory_getInstance(), outgoingFramesConfig);
|
|
1348
|
+
this.f4g_1 = atomic$boolean$1(false);
|
|
1349
1349
|
var tmp = this;
|
|
1350
1350
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1351
|
-
tmp.
|
|
1352
|
-
this.
|
|
1353
|
-
this.
|
|
1354
|
-
this.
|
|
1355
|
-
this.
|
|
1351
|
+
tmp.g4g_1 = ArrayList_init_$Create$();
|
|
1352
|
+
this.h4g_1 = atomic$boolean$1(false);
|
|
1353
|
+
this.i4g_1 = pingIntervalMillis;
|
|
1354
|
+
this.j4g_1 = timeoutMillis;
|
|
1355
|
+
this.k4g_1 = this.a4g_1;
|
|
1356
1356
|
}
|
|
1357
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1358
|
-
return this.
|
|
1357
|
+
protoOf(DefaultWebSocketSessionImpl).w1m = function () {
|
|
1358
|
+
return this.c4g_1;
|
|
1359
1359
|
};
|
|
1360
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1361
|
-
return this.
|
|
1360
|
+
protoOf(DefaultWebSocketSessionImpl).v4e = function () {
|
|
1361
|
+
return this.d4g_1;
|
|
1362
1362
|
};
|
|
1363
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1364
|
-
return this.
|
|
1363
|
+
protoOf(DefaultWebSocketSessionImpl).w4e = function () {
|
|
1364
|
+
return this.e4g_1;
|
|
1365
1365
|
};
|
|
1366
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1367
|
-
return this.
|
|
1366
|
+
protoOf(DefaultWebSocketSessionImpl).y4g = function () {
|
|
1367
|
+
return this.g4g_1;
|
|
1368
1368
|
};
|
|
1369
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1370
|
-
this.
|
|
1369
|
+
protoOf(DefaultWebSocketSessionImpl).t4e = function (value) {
|
|
1370
|
+
this.y4f_1.t4e(value);
|
|
1371
1371
|
};
|
|
1372
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1373
|
-
return this.
|
|
1372
|
+
protoOf(DefaultWebSocketSessionImpl).u4e = function () {
|
|
1373
|
+
return this.y4f_1.u4e();
|
|
1374
1374
|
};
|
|
1375
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1376
|
-
if (!this.
|
|
1375
|
+
protoOf(DefaultWebSocketSessionImpl).s4e = function (negotiatedExtensions) {
|
|
1376
|
+
if (!this.h4g_1.atomicfu$compareAndSet(false, true)) {
|
|
1377
1377
|
// Inline function 'kotlin.error' call
|
|
1378
1378
|
var message = 'WebSocket session ' + toString(this) + ' is already started.';
|
|
1379
1379
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -1382,16 +1382,16 @@ protoOf(DefaultWebSocketSessionImpl).a3y = function (negotiatedExtensions) {
|
|
|
1382
1382
|
var this_0 = get_LOGGER();
|
|
1383
1383
|
if (get_isTraceEnabled(this_0)) {
|
|
1384
1384
|
var tmp$ret$2 = 'Starting default WebSocketSession(' + toString(this) + ') ' + ('with negotiated extensions: ' + joinToString(negotiatedExtensions));
|
|
1385
|
-
this_0.
|
|
1385
|
+
this_0.b41(tmp$ret$2);
|
|
1386
1386
|
}
|
|
1387
|
-
this.
|
|
1387
|
+
this.g4g_1.j1(negotiatedExtensions);
|
|
1388
1388
|
runOrCancelPinger(this);
|
|
1389
|
-
var incomingJob = runIncomingProcessor(this, ponger(this, this.
|
|
1389
|
+
var incomingJob = runIncomingProcessor(this, ponger(this, this.w4e()));
|
|
1390
1390
|
var outgoingJob = runOutgoingProcessor(this);
|
|
1391
1391
|
launch(this, VOID, VOID, DefaultWebSocketSessionImpl$start$slambda_0(incomingJob, outgoingJob, this, null));
|
|
1392
1392
|
};
|
|
1393
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1394
|
-
return this.
|
|
1393
|
+
protoOf(DefaultWebSocketSessionImpl).x3j = function ($completion) {
|
|
1394
|
+
return this.y4f_1.x3j($completion);
|
|
1395
1395
|
};
|
|
1396
1396
|
var properties_initialized_DefaultWebSocketSession_kt_6cjlhc;
|
|
1397
1397
|
function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
@@ -1413,20 +1413,20 @@ function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
1415
1415
|
function readReason(_this__u8e3s4) {
|
|
1416
|
-
if (_this__u8e3s4.
|
|
1416
|
+
if (_this__u8e3s4.o4i_1.length < 2) {
|
|
1417
1417
|
return null;
|
|
1418
1418
|
}
|
|
1419
1419
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1420
1420
|
var builder = new Buffer();
|
|
1421
|
-
writeFully(builder, _this__u8e3s4.
|
|
1421
|
+
writeFully(builder, _this__u8e3s4.o4i_1);
|
|
1422
1422
|
var packet = builder;
|
|
1423
|
-
var code = packet.
|
|
1423
|
+
var code = packet.j3f();
|
|
1424
1424
|
var message = readText(packet);
|
|
1425
1425
|
return new CloseReason(code, message);
|
|
1426
1426
|
}
|
|
1427
1427
|
function NonDisposableHandle() {
|
|
1428
1428
|
}
|
|
1429
|
-
protoOf(NonDisposableHandle).
|
|
1429
|
+
protoOf(NonDisposableHandle).u1p = function () {
|
|
1430
1430
|
return Unit_instance;
|
|
1431
1431
|
};
|
|
1432
1432
|
protoOf(NonDisposableHandle).toString = function () {
|
|
@@ -1450,15 +1450,15 @@ function FrameTooBigException(frameSize, cause) {
|
|
|
1450
1450
|
cause = cause === VOID ? null : cause;
|
|
1451
1451
|
Exception_init_$Init$(cause, this);
|
|
1452
1452
|
captureStack(this, FrameTooBigException);
|
|
1453
|
-
this.
|
|
1453
|
+
this.s4j_1 = frameSize;
|
|
1454
1454
|
delete this.message;
|
|
1455
1455
|
}
|
|
1456
1456
|
protoOf(FrameTooBigException).e = function () {
|
|
1457
|
-
var sizeSuffix = compare(this.
|
|
1457
|
+
var sizeSuffix = compare(this.s4j_1, new Long(0, 0)) >= 0 ? ': ' + this.s4j_1.toString() : '';
|
|
1458
1458
|
return 'Frame is too big' + sizeSuffix;
|
|
1459
1459
|
};
|
|
1460
|
-
protoOf(FrameTooBigException).
|
|
1461
|
-
return new FrameTooBigException(this.
|
|
1460
|
+
protoOf(FrameTooBigException).o1v = function () {
|
|
1461
|
+
return new FrameTooBigException(this.s4j_1, this);
|
|
1462
1462
|
};
|
|
1463
1463
|
var FrameType_TEXT_instance;
|
|
1464
1464
|
var FrameType_BINARY_instance;
|
|
@@ -1482,10 +1482,10 @@ function Companion_1() {
|
|
|
1482
1482
|
tmp$ret$0 = maxElem;
|
|
1483
1483
|
break $l$block_0;
|
|
1484
1484
|
}
|
|
1485
|
-
var maxValue = maxElem.
|
|
1485
|
+
var maxValue = maxElem.w4j_1;
|
|
1486
1486
|
do {
|
|
1487
1487
|
var e = iterator.v();
|
|
1488
|
-
var v = e.
|
|
1488
|
+
var v = e.w4j_1;
|
|
1489
1489
|
if (compareTo(maxValue, v) < 0) {
|
|
1490
1490
|
maxElem = e;
|
|
1491
1491
|
maxValue = v;
|
|
@@ -1494,10 +1494,10 @@ function Companion_1() {
|
|
|
1494
1494
|
while (iterator.u());
|
|
1495
1495
|
tmp$ret$0 = maxElem;
|
|
1496
1496
|
}
|
|
1497
|
-
tmp.
|
|
1497
|
+
tmp.x4j_1 = ensureNotNull(tmp$ret$0).w4j_1;
|
|
1498
1498
|
var tmp_0 = this;
|
|
1499
1499
|
var tmp_1 = 0;
|
|
1500
|
-
var tmp_2 = this.
|
|
1500
|
+
var tmp_2 = this.x4j_1 + 1 | 0;
|
|
1501
1501
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1502
1502
|
var tmp_3 = Array(tmp_2);
|
|
1503
1503
|
while (tmp_1 < tmp_2) {
|
|
@@ -1511,7 +1511,7 @@ function Companion_1() {
|
|
|
1511
1511
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
1512
1512
|
while (_iterator__ex2g4s.u()) {
|
|
1513
1513
|
var element = _iterator__ex2g4s.v();
|
|
1514
|
-
if (element.
|
|
1514
|
+
if (element.w4j_1 === tmp_4) {
|
|
1515
1515
|
if (found) {
|
|
1516
1516
|
tmp$ret$5 = null;
|
|
1517
1517
|
break $l$block_2;
|
|
@@ -1529,7 +1529,7 @@ function Companion_1() {
|
|
|
1529
1529
|
tmp_3[tmp_4] = tmp$ret$5;
|
|
1530
1530
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1531
1531
|
}
|
|
1532
|
-
tmp_0.
|
|
1532
|
+
tmp_0.y4j_1 = tmp_3;
|
|
1533
1533
|
}
|
|
1534
1534
|
var Companion_instance_1;
|
|
1535
1535
|
function Companion_getInstance_1() {
|
|
@@ -1561,8 +1561,8 @@ function FrameType_initEntries() {
|
|
|
1561
1561
|
var $ENTRIES_0;
|
|
1562
1562
|
function FrameType(name, ordinal, controlFrame, opcode) {
|
|
1563
1563
|
Enum.call(this, name, ordinal);
|
|
1564
|
-
this.
|
|
1565
|
-
this.
|
|
1564
|
+
this.v4j_1 = controlFrame;
|
|
1565
|
+
this.w4j_1 = opcode;
|
|
1566
1566
|
}
|
|
1567
1567
|
function FrameType_TEXT_getInstance() {
|
|
1568
1568
|
FrameType_initEntries();
|
|
@@ -1605,55 +1605,55 @@ function pinger(_this__u8e3s4, outgoing, periodMillis, timeoutMillis, onTimeout)
|
|
|
1605
1605
|
_init_properties_PingPong_kt__9aqxey();
|
|
1606
1606
|
var actorJob = Job();
|
|
1607
1607
|
var channel = Channel(2147483647);
|
|
1608
|
-
var tmp = actorJob.
|
|
1608
|
+
var tmp = actorJob.wh(get_PingerCoroutineName());
|
|
1609
1609
|
launch(_this__u8e3s4, tmp, VOID, pinger$slambda_0(periodMillis, timeoutMillis, onTimeout, channel, outgoing, null));
|
|
1610
|
-
var tmp_0 = ensureNotNull(_this__u8e3s4.
|
|
1611
|
-
tmp_0.
|
|
1610
|
+
var tmp_0 = ensureNotNull(_this__u8e3s4.w1m().i9(Key_instance));
|
|
1611
|
+
tmp_0.z1n(pinger$lambda(actorJob));
|
|
1612
1612
|
return channel;
|
|
1613
1613
|
}
|
|
1614
1614
|
function ponger$slambda($channel, $outgoing, resultContinuation) {
|
|
1615
|
-
this.
|
|
1616
|
-
this.
|
|
1615
|
+
this.h4k_1 = $channel;
|
|
1616
|
+
this.i4k_1 = $outgoing;
|
|
1617
1617
|
CoroutineImpl.call(this, resultContinuation);
|
|
1618
1618
|
}
|
|
1619
|
-
protoOf(ponger$slambda).
|
|
1620
|
-
var tmp = this.
|
|
1621
|
-
tmp.
|
|
1622
|
-
tmp.
|
|
1623
|
-
return tmp.
|
|
1619
|
+
protoOf(ponger$slambda).i3s = function ($this$launch, $completion) {
|
|
1620
|
+
var tmp = this.j3s($this$launch, $completion);
|
|
1621
|
+
tmp.x8_1 = Unit_instance;
|
|
1622
|
+
tmp.y8_1 = null;
|
|
1623
|
+
return tmp.d9();
|
|
1624
1624
|
};
|
|
1625
|
-
protoOf(ponger$slambda).
|
|
1626
|
-
return this.
|
|
1625
|
+
protoOf(ponger$slambda).q9 = function (p1, $completion) {
|
|
1626
|
+
return this.i3s((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1627
1627
|
};
|
|
1628
|
-
protoOf(ponger$slambda).
|
|
1629
|
-
var suspendResult = this.
|
|
1628
|
+
protoOf(ponger$slambda).d9 = function () {
|
|
1629
|
+
var suspendResult = this.x8_1;
|
|
1630
1630
|
$sm: do
|
|
1631
1631
|
try {
|
|
1632
|
-
var tmp = this.
|
|
1632
|
+
var tmp = this.v8_1;
|
|
1633
1633
|
switch (tmp) {
|
|
1634
1634
|
case 0:
|
|
1635
|
-
this.
|
|
1636
|
-
this.
|
|
1637
|
-
this.
|
|
1638
|
-
this.
|
|
1635
|
+
this.w8_1 = 14;
|
|
1636
|
+
this.w8_1 = 13;
|
|
1637
|
+
this.n4k_1 = this.h4k_1;
|
|
1638
|
+
this.v8_1 = 1;
|
|
1639
1639
|
continue $sm;
|
|
1640
1640
|
case 1:
|
|
1641
|
-
this.
|
|
1642
|
-
this.
|
|
1643
|
-
this.
|
|
1641
|
+
this.l4k_1 = this.n4k_1;
|
|
1642
|
+
this.k4k_1 = null;
|
|
1643
|
+
this.v8_1 = 2;
|
|
1644
1644
|
continue $sm;
|
|
1645
1645
|
case 2:
|
|
1646
|
-
this.
|
|
1646
|
+
this.v8_1 = 3;
|
|
1647
1647
|
continue $sm;
|
|
1648
1648
|
case 3:
|
|
1649
|
-
this.
|
|
1650
|
-
this.
|
|
1651
|
-
this.
|
|
1652
|
-
this.
|
|
1649
|
+
this.w8_1 = 10;
|
|
1650
|
+
this.w8_1 = 9;
|
|
1651
|
+
this.m4k_1 = this.l4k_1.t();
|
|
1652
|
+
this.v8_1 = 4;
|
|
1653
1653
|
continue $sm;
|
|
1654
1654
|
case 4:
|
|
1655
|
-
this.
|
|
1656
|
-
suspendResult = this.
|
|
1655
|
+
this.v8_1 = 5;
|
|
1656
|
+
suspendResult = this.m4k_1.l23(this);
|
|
1657
1657
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1658
1658
|
return suspendResult;
|
|
1659
1659
|
}
|
|
@@ -1661,305 +1661,305 @@ protoOf(ponger$slambda).v8 = function () {
|
|
|
1661
1661
|
continue $sm;
|
|
1662
1662
|
case 5:
|
|
1663
1663
|
if (!suspendResult) {
|
|
1664
|
-
this.
|
|
1664
|
+
this.v8_1 = 7;
|
|
1665
1665
|
continue $sm;
|
|
1666
1666
|
}
|
|
1667
1667
|
|
|
1668
|
-
var e = this.
|
|
1669
|
-
get_LOGGER().
|
|
1670
|
-
this.
|
|
1671
|
-
suspendResult = this.
|
|
1668
|
+
var e = this.m4k_1.v();
|
|
1669
|
+
get_LOGGER().b41('Received ping message, sending pong message');
|
|
1670
|
+
this.v8_1 = 6;
|
|
1671
|
+
suspendResult = this.i4k_1.i25(new Pong(e.o4i_1), this);
|
|
1672
1672
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1673
1673
|
return suspendResult;
|
|
1674
1674
|
}
|
|
1675
1675
|
|
|
1676
1676
|
continue $sm;
|
|
1677
1677
|
case 6:
|
|
1678
|
-
this.
|
|
1678
|
+
this.v8_1 = 4;
|
|
1679
1679
|
continue $sm;
|
|
1680
1680
|
case 7:
|
|
1681
|
-
this.
|
|
1681
|
+
this.v8_1 = 8;
|
|
1682
1682
|
var tmp_0 = this;
|
|
1683
1683
|
continue $sm;
|
|
1684
1684
|
case 8:
|
|
1685
|
-
this.
|
|
1686
|
-
cancelConsumed(this.
|
|
1687
|
-
this.
|
|
1685
|
+
this.w8_1 = 13;
|
|
1686
|
+
cancelConsumed(this.l4k_1, this.k4k_1);
|
|
1687
|
+
this.v8_1 = 12;
|
|
1688
1688
|
continue $sm;
|
|
1689
1689
|
case 9:
|
|
1690
|
-
this.
|
|
1691
|
-
var tmp_1 = this.
|
|
1690
|
+
this.w8_1 = 10;
|
|
1691
|
+
var tmp_1 = this.y8_1;
|
|
1692
1692
|
if (tmp_1 instanceof Error) {
|
|
1693
|
-
var e_0 = this.
|
|
1693
|
+
var e_0 = this.y8_1;
|
|
1694
1694
|
var tmp_2 = this;
|
|
1695
|
-
this.
|
|
1695
|
+
this.k4k_1 = e_0;
|
|
1696
1696
|
throw e_0;
|
|
1697
1697
|
} else {
|
|
1698
|
-
throw this.
|
|
1698
|
+
throw this.y8_1;
|
|
1699
1699
|
}
|
|
1700
1700
|
|
|
1701
1701
|
case 10:
|
|
1702
|
-
this.
|
|
1703
|
-
var t = this.
|
|
1704
|
-
cancelConsumed(this.
|
|
1702
|
+
this.w8_1 = 13;
|
|
1703
|
+
var t = this.y8_1;
|
|
1704
|
+
cancelConsumed(this.l4k_1, this.k4k_1);
|
|
1705
1705
|
throw t;
|
|
1706
1706
|
case 11:
|
|
1707
|
-
this.
|
|
1708
|
-
cancelConsumed(this.
|
|
1707
|
+
this.w8_1 = 13;
|
|
1708
|
+
cancelConsumed(this.l4k_1, this.k4k_1);
|
|
1709
1709
|
if (false) {
|
|
1710
|
-
this.
|
|
1710
|
+
this.v8_1 = 1;
|
|
1711
1711
|
continue $sm;
|
|
1712
1712
|
}
|
|
1713
1713
|
|
|
1714
|
-
this.
|
|
1714
|
+
this.v8_1 = 12;
|
|
1715
1715
|
continue $sm;
|
|
1716
1716
|
case 12:
|
|
1717
|
-
this.
|
|
1718
|
-
this.
|
|
1717
|
+
this.w8_1 = 14;
|
|
1718
|
+
this.v8_1 = 15;
|
|
1719
1719
|
continue $sm;
|
|
1720
1720
|
case 13:
|
|
1721
|
-
this.
|
|
1722
|
-
var tmp_3 = this.
|
|
1721
|
+
this.w8_1 = 14;
|
|
1722
|
+
var tmp_3 = this.y8_1;
|
|
1723
1723
|
if (tmp_3 instanceof ClosedSendChannelException) {
|
|
1724
|
-
var _unused_var__etf5q3 = this.
|
|
1725
|
-
this.
|
|
1724
|
+
var _unused_var__etf5q3 = this.y8_1;
|
|
1725
|
+
this.v8_1 = 15;
|
|
1726
1726
|
continue $sm;
|
|
1727
1727
|
} else {
|
|
1728
|
-
throw this.
|
|
1728
|
+
throw this.y8_1;
|
|
1729
1729
|
}
|
|
1730
1730
|
|
|
1731
1731
|
case 14:
|
|
1732
|
-
throw this.
|
|
1732
|
+
throw this.y8_1;
|
|
1733
1733
|
case 15:
|
|
1734
|
-
this.
|
|
1734
|
+
this.w8_1 = 14;
|
|
1735
1735
|
return Unit_instance;
|
|
1736
1736
|
}
|
|
1737
1737
|
} catch ($p) {
|
|
1738
1738
|
var e_1 = $p;
|
|
1739
|
-
if (this.
|
|
1739
|
+
if (this.w8_1 === 14) {
|
|
1740
1740
|
throw e_1;
|
|
1741
1741
|
} else {
|
|
1742
|
-
this.
|
|
1743
|
-
this.
|
|
1742
|
+
this.v8_1 = this.w8_1;
|
|
1743
|
+
this.y8_1 = e_1;
|
|
1744
1744
|
}
|
|
1745
1745
|
}
|
|
1746
1746
|
while (true);
|
|
1747
1747
|
};
|
|
1748
|
-
protoOf(ponger$slambda).
|
|
1749
|
-
var i = new ponger$slambda(this.
|
|
1750
|
-
i.
|
|
1748
|
+
protoOf(ponger$slambda).j3s = function ($this$launch, completion) {
|
|
1749
|
+
var i = new ponger$slambda(this.h4k_1, this.i4k_1, completion);
|
|
1750
|
+
i.j4k_1 = $this$launch;
|
|
1751
1751
|
return i;
|
|
1752
1752
|
};
|
|
1753
1753
|
function ponger$slambda_0($channel, $outgoing, resultContinuation) {
|
|
1754
1754
|
var i = new ponger$slambda($channel, $outgoing, resultContinuation);
|
|
1755
1755
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
1756
|
-
return i.
|
|
1756
|
+
return i.i3s($this$launch, $completion);
|
|
1757
1757
|
}, 1);
|
|
1758
1758
|
}
|
|
1759
1759
|
function pinger$slambda$slambda($channel, resultContinuation) {
|
|
1760
|
-
this.
|
|
1760
|
+
this.w4k_1 = $channel;
|
|
1761
1761
|
CoroutineImpl.call(this, resultContinuation);
|
|
1762
1762
|
}
|
|
1763
|
-
protoOf(pinger$slambda$slambda).
|
|
1764
|
-
var tmp = this.
|
|
1765
|
-
tmp.
|
|
1766
|
-
tmp.
|
|
1767
|
-
return tmp.
|
|
1763
|
+
protoOf(pinger$slambda$slambda).i3s = function ($this$withTimeoutOrNull, $completion) {
|
|
1764
|
+
var tmp = this.j3s($this$withTimeoutOrNull, $completion);
|
|
1765
|
+
tmp.x8_1 = Unit_instance;
|
|
1766
|
+
tmp.y8_1 = null;
|
|
1767
|
+
return tmp.d9();
|
|
1768
1768
|
};
|
|
1769
|
-
protoOf(pinger$slambda$slambda).
|
|
1770
|
-
return this.
|
|
1769
|
+
protoOf(pinger$slambda$slambda).q9 = function (p1, $completion) {
|
|
1770
|
+
return this.i3s((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1771
1771
|
};
|
|
1772
|
-
protoOf(pinger$slambda$slambda).
|
|
1773
|
-
var suspendResult = this.
|
|
1772
|
+
protoOf(pinger$slambda$slambda).d9 = function () {
|
|
1773
|
+
var suspendResult = this.x8_1;
|
|
1774
1774
|
$sm: do
|
|
1775
1775
|
try {
|
|
1776
|
-
var tmp = this.
|
|
1776
|
+
var tmp = this.v8_1;
|
|
1777
1777
|
switch (tmp) {
|
|
1778
1778
|
case 0:
|
|
1779
|
-
this.
|
|
1780
|
-
this.
|
|
1779
|
+
this.w8_1 = 3;
|
|
1780
|
+
this.v8_1 = 1;
|
|
1781
1781
|
continue $sm;
|
|
1782
1782
|
case 1:
|
|
1783
1783
|
if (!true) {
|
|
1784
|
-
this.
|
|
1784
|
+
this.v8_1 = 4;
|
|
1785
1785
|
continue $sm;
|
|
1786
1786
|
}
|
|
1787
1787
|
|
|
1788
|
-
this.
|
|
1789
|
-
suspendResult = this.
|
|
1788
|
+
this.v8_1 = 2;
|
|
1789
|
+
suspendResult = this.w4k_1.l25(this);
|
|
1790
1790
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1791
1791
|
return suspendResult;
|
|
1792
1792
|
}
|
|
1793
1793
|
|
|
1794
1794
|
continue $sm;
|
|
1795
1795
|
case 2:
|
|
1796
|
-
this.
|
|
1796
|
+
this.v8_1 = 1;
|
|
1797
1797
|
continue $sm;
|
|
1798
1798
|
case 3:
|
|
1799
|
-
throw this.
|
|
1799
|
+
throw this.y8_1;
|
|
1800
1800
|
case 4:
|
|
1801
1801
|
return Unit_instance;
|
|
1802
1802
|
}
|
|
1803
1803
|
} catch ($p) {
|
|
1804
1804
|
var e = $p;
|
|
1805
|
-
if (this.
|
|
1805
|
+
if (this.w8_1 === 3) {
|
|
1806
1806
|
throw e;
|
|
1807
1807
|
} else {
|
|
1808
|
-
this.
|
|
1809
|
-
this.
|
|
1808
|
+
this.v8_1 = this.w8_1;
|
|
1809
|
+
this.y8_1 = e;
|
|
1810
1810
|
}
|
|
1811
1811
|
}
|
|
1812
1812
|
while (true);
|
|
1813
1813
|
};
|
|
1814
|
-
protoOf(pinger$slambda$slambda).
|
|
1815
|
-
var i = new pinger$slambda$slambda(this.
|
|
1816
|
-
i.
|
|
1814
|
+
protoOf(pinger$slambda$slambda).j3s = function ($this$withTimeoutOrNull, completion) {
|
|
1815
|
+
var i = new pinger$slambda$slambda(this.w4k_1, completion);
|
|
1816
|
+
i.x4k_1 = $this$withTimeoutOrNull;
|
|
1817
1817
|
return i;
|
|
1818
1818
|
};
|
|
1819
1819
|
function pinger$slambda$slambda_0($channel, resultContinuation) {
|
|
1820
1820
|
var i = new pinger$slambda$slambda($channel, resultContinuation);
|
|
1821
1821
|
return constructCallableReference(function ($this$withTimeoutOrNull, $completion) {
|
|
1822
|
-
return i.
|
|
1822
|
+
return i.i3s($this$withTimeoutOrNull, $completion);
|
|
1823
1823
|
}, 1);
|
|
1824
1824
|
}
|
|
1825
1825
|
function pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1826
|
-
this.
|
|
1827
|
-
this.
|
|
1828
|
-
this.
|
|
1826
|
+
this.g4l_1 = $outgoing;
|
|
1827
|
+
this.h4l_1 = $pingMessage;
|
|
1828
|
+
this.i4l_1 = $channel;
|
|
1829
1829
|
CoroutineImpl.call(this, resultContinuation);
|
|
1830
1830
|
}
|
|
1831
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1832
|
-
var tmp = this.
|
|
1833
|
-
tmp.
|
|
1834
|
-
tmp.
|
|
1835
|
-
return tmp.
|
|
1831
|
+
protoOf(pinger$slambda$slambda_1).i3s = function ($this$withTimeoutOrNull, $completion) {
|
|
1832
|
+
var tmp = this.j3s($this$withTimeoutOrNull, $completion);
|
|
1833
|
+
tmp.x8_1 = Unit_instance;
|
|
1834
|
+
tmp.y8_1 = null;
|
|
1835
|
+
return tmp.d9();
|
|
1836
1836
|
};
|
|
1837
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1838
|
-
return this.
|
|
1837
|
+
protoOf(pinger$slambda$slambda_1).q9 = function (p1, $completion) {
|
|
1838
|
+
return this.i3s((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1839
1839
|
};
|
|
1840
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1841
|
-
var suspendResult = this.
|
|
1840
|
+
protoOf(pinger$slambda$slambda_1).d9 = function () {
|
|
1841
|
+
var suspendResult = this.x8_1;
|
|
1842
1842
|
$sm: do
|
|
1843
1843
|
try {
|
|
1844
|
-
var tmp = this.
|
|
1844
|
+
var tmp = this.v8_1;
|
|
1845
1845
|
switch (tmp) {
|
|
1846
1846
|
case 0:
|
|
1847
|
-
this.
|
|
1848
|
-
get_LOGGER().
|
|
1849
|
-
this.
|
|
1850
|
-
suspendResult = this.
|
|
1847
|
+
this.w8_1 = 6;
|
|
1848
|
+
get_LOGGER().b41('WebSocket Pinger: sending ping frame');
|
|
1849
|
+
this.v8_1 = 1;
|
|
1850
|
+
suspendResult = this.g4l_1.i25(new Ping(toByteArray(this.h4l_1, Charsets_getInstance().j3t_1)), this);
|
|
1851
1851
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1852
1852
|
return suspendResult;
|
|
1853
1853
|
}
|
|
1854
1854
|
|
|
1855
1855
|
continue $sm;
|
|
1856
1856
|
case 1:
|
|
1857
|
-
this.
|
|
1857
|
+
this.v8_1 = 2;
|
|
1858
1858
|
continue $sm;
|
|
1859
1859
|
case 2:
|
|
1860
1860
|
if (!true) {
|
|
1861
|
-
this.
|
|
1861
|
+
this.v8_1 = 5;
|
|
1862
1862
|
continue $sm;
|
|
1863
1863
|
}
|
|
1864
1864
|
|
|
1865
|
-
this.
|
|
1866
|
-
suspendResult = this.
|
|
1865
|
+
this.v8_1 = 3;
|
|
1866
|
+
suspendResult = this.i4l_1.l25(this);
|
|
1867
1867
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1868
1868
|
return suspendResult;
|
|
1869
1869
|
}
|
|
1870
1870
|
|
|
1871
1871
|
continue $sm;
|
|
1872
1872
|
case 3:
|
|
1873
|
-
this.
|
|
1874
|
-
if (decodeToString(this.
|
|
1875
|
-
get_LOGGER().
|
|
1876
|
-
this.
|
|
1873
|
+
this.k4l_1 = suspendResult;
|
|
1874
|
+
if (decodeToString(this.k4l_1.o4i_1, 0, 0 + this.k4l_1.o4i_1.length | 0) === this.h4l_1) {
|
|
1875
|
+
get_LOGGER().b41('WebSocket Pinger: received valid pong frame ' + this.k4l_1.toString());
|
|
1876
|
+
this.v8_1 = 5;
|
|
1877
1877
|
continue $sm;
|
|
1878
1878
|
} else {
|
|
1879
|
-
this.
|
|
1879
|
+
this.v8_1 = 4;
|
|
1880
1880
|
continue $sm;
|
|
1881
1881
|
}
|
|
1882
1882
|
|
|
1883
1883
|
case 4:
|
|
1884
|
-
get_LOGGER().
|
|
1885
|
-
this.
|
|
1884
|
+
get_LOGGER().b41('WebSocket Pinger: received invalid pong frame ' + this.k4l_1.toString() + ', continue waiting');
|
|
1885
|
+
this.v8_1 = 2;
|
|
1886
1886
|
continue $sm;
|
|
1887
1887
|
case 5:
|
|
1888
1888
|
return Unit_instance;
|
|
1889
1889
|
case 6:
|
|
1890
|
-
throw this.
|
|
1890
|
+
throw this.y8_1;
|
|
1891
1891
|
}
|
|
1892
1892
|
} catch ($p) {
|
|
1893
1893
|
var e = $p;
|
|
1894
|
-
if (this.
|
|
1894
|
+
if (this.w8_1 === 6) {
|
|
1895
1895
|
throw e;
|
|
1896
1896
|
} else {
|
|
1897
|
-
this.
|
|
1898
|
-
this.
|
|
1897
|
+
this.v8_1 = this.w8_1;
|
|
1898
|
+
this.y8_1 = e;
|
|
1899
1899
|
}
|
|
1900
1900
|
}
|
|
1901
1901
|
while (true);
|
|
1902
1902
|
};
|
|
1903
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1904
|
-
var i = new pinger$slambda$slambda_1(this.
|
|
1905
|
-
i.
|
|
1903
|
+
protoOf(pinger$slambda$slambda_1).j3s = function ($this$withTimeoutOrNull, completion) {
|
|
1904
|
+
var i = new pinger$slambda$slambda_1(this.g4l_1, this.h4l_1, this.i4l_1, completion);
|
|
1905
|
+
i.j4l_1 = $this$withTimeoutOrNull;
|
|
1906
1906
|
return i;
|
|
1907
1907
|
};
|
|
1908
1908
|
function pinger$slambda$slambda_2($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1909
1909
|
var i = new pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation);
|
|
1910
1910
|
return constructCallableReference(function ($this$withTimeoutOrNull, $completion) {
|
|
1911
|
-
return i.
|
|
1911
|
+
return i.i3s($this$withTimeoutOrNull, $completion);
|
|
1912
1912
|
}, 1);
|
|
1913
1913
|
}
|
|
1914
1914
|
function pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
1915
|
-
this.
|
|
1916
|
-
this.
|
|
1917
|
-
this.
|
|
1918
|
-
this.
|
|
1919
|
-
this.
|
|
1915
|
+
this.t4l_1 = $periodMillis;
|
|
1916
|
+
this.u4l_1 = $timeoutMillis;
|
|
1917
|
+
this.v4l_1 = $onTimeout;
|
|
1918
|
+
this.w4l_1 = $channel;
|
|
1919
|
+
this.x4l_1 = $outgoing;
|
|
1920
1920
|
CoroutineImpl.call(this, resultContinuation);
|
|
1921
1921
|
}
|
|
1922
|
-
protoOf(pinger$slambda).
|
|
1923
|
-
var tmp = this.
|
|
1924
|
-
tmp.
|
|
1925
|
-
tmp.
|
|
1926
|
-
return tmp.
|
|
1922
|
+
protoOf(pinger$slambda).i3s = function ($this$launch, $completion) {
|
|
1923
|
+
var tmp = this.j3s($this$launch, $completion);
|
|
1924
|
+
tmp.x8_1 = Unit_instance;
|
|
1925
|
+
tmp.y8_1 = null;
|
|
1926
|
+
return tmp.d9();
|
|
1927
1927
|
};
|
|
1928
|
-
protoOf(pinger$slambda).
|
|
1929
|
-
return this.
|
|
1928
|
+
protoOf(pinger$slambda).q9 = function (p1, $completion) {
|
|
1929
|
+
return this.i3s((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1930
1930
|
};
|
|
1931
|
-
protoOf(pinger$slambda).
|
|
1932
|
-
var suspendResult = this.
|
|
1931
|
+
protoOf(pinger$slambda).d9 = function () {
|
|
1932
|
+
var suspendResult = this.x8_1;
|
|
1933
1933
|
$sm: do
|
|
1934
1934
|
try {
|
|
1935
|
-
var tmp = this.
|
|
1935
|
+
var tmp = this.v8_1;
|
|
1936
1936
|
switch (tmp) {
|
|
1937
1937
|
case 0:
|
|
1938
|
-
this.
|
|
1939
|
-
get_LOGGER().
|
|
1940
|
-
this.
|
|
1941
|
-
this.
|
|
1942
|
-
this.
|
|
1943
|
-
this.
|
|
1938
|
+
this.w8_1 = 9;
|
|
1939
|
+
get_LOGGER().b41('Starting WebSocket pinger coroutine with period ' + this.t4l_1.toString() + ' ms and timeout ' + this.u4l_1.toString() + ' ms');
|
|
1940
|
+
this.a4m_1 = Random(getTimeMillis());
|
|
1941
|
+
this.z4l_1 = new Int8Array(32);
|
|
1942
|
+
this.w8_1 = 7;
|
|
1943
|
+
this.v8_1 = 1;
|
|
1944
1944
|
continue $sm;
|
|
1945
1945
|
case 1:
|
|
1946
1946
|
if (!true) {
|
|
1947
|
-
this.
|
|
1947
|
+
this.v8_1 = 6;
|
|
1948
1948
|
continue $sm;
|
|
1949
1949
|
}
|
|
1950
1950
|
|
|
1951
|
-
this.
|
|
1952
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1951
|
+
this.v8_1 = 2;
|
|
1952
|
+
suspendResult = withTimeoutOrNull(this.t4l_1, pinger$slambda$slambda_0(this.w4l_1, null), this);
|
|
1953
1953
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1954
1954
|
return suspendResult;
|
|
1955
1955
|
}
|
|
1956
1956
|
|
|
1957
1957
|
continue $sm;
|
|
1958
1958
|
case 2:
|
|
1959
|
-
this.
|
|
1960
|
-
var pingMessage = '[ping ' + toHexString(this.
|
|
1961
|
-
this.
|
|
1962
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1959
|
+
this.a4m_1.mj(this.z4l_1);
|
|
1960
|
+
var pingMessage = '[ping ' + toHexString(this.z4l_1) + ' ping]';
|
|
1961
|
+
this.v8_1 = 3;
|
|
1962
|
+
suspendResult = withTimeoutOrNull(this.u4l_1, pinger$slambda$slambda_2(this.x4l_1, pingMessage, this.w4l_1, null), this);
|
|
1963
1963
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1964
1964
|
return suspendResult;
|
|
1965
1965
|
}
|
|
@@ -1968,91 +1968,91 @@ protoOf(pinger$slambda).v8 = function () {
|
|
|
1968
1968
|
case 3:
|
|
1969
1969
|
var rc = suspendResult;
|
|
1970
1970
|
if (rc == null) {
|
|
1971
|
-
get_LOGGER().
|
|
1972
|
-
this.
|
|
1973
|
-
suspendResult = this.
|
|
1971
|
+
get_LOGGER().b41('WebSocket pinger has timed out');
|
|
1972
|
+
this.v8_1 = 5;
|
|
1973
|
+
suspendResult = this.v4l_1(CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), 'Ping timeout'), this);
|
|
1974
1974
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1975
1975
|
return suspendResult;
|
|
1976
1976
|
}
|
|
1977
1977
|
continue $sm;
|
|
1978
1978
|
} else {
|
|
1979
|
-
this.
|
|
1979
|
+
this.v8_1 = 4;
|
|
1980
1980
|
continue $sm;
|
|
1981
1981
|
}
|
|
1982
1982
|
|
|
1983
1983
|
case 4:
|
|
1984
|
-
this.
|
|
1984
|
+
this.v8_1 = 1;
|
|
1985
1985
|
continue $sm;
|
|
1986
1986
|
case 5:
|
|
1987
|
-
this.
|
|
1987
|
+
this.v8_1 = 6;
|
|
1988
1988
|
continue $sm;
|
|
1989
1989
|
case 6:
|
|
1990
|
-
this.
|
|
1991
|
-
this.
|
|
1990
|
+
this.w8_1 = 9;
|
|
1991
|
+
this.v8_1 = 8;
|
|
1992
1992
|
continue $sm;
|
|
1993
1993
|
case 7:
|
|
1994
|
-
this.
|
|
1995
|
-
var tmp_0 = this.
|
|
1994
|
+
this.w8_1 = 9;
|
|
1995
|
+
var tmp_0 = this.y8_1;
|
|
1996
1996
|
if (tmp_0 instanceof CancellationException) {
|
|
1997
|
-
var ignore = this.
|
|
1998
|
-
this.
|
|
1997
|
+
var ignore = this.y8_1;
|
|
1998
|
+
this.v8_1 = 8;
|
|
1999
1999
|
continue $sm;
|
|
2000
2000
|
} else {
|
|
2001
|
-
var tmp_1 = this.
|
|
2001
|
+
var tmp_1 = this.y8_1;
|
|
2002
2002
|
if (tmp_1 instanceof ClosedReceiveChannelException) {
|
|
2003
|
-
var ignore_0 = this.
|
|
2004
|
-
this.
|
|
2003
|
+
var ignore_0 = this.y8_1;
|
|
2004
|
+
this.v8_1 = 8;
|
|
2005
2005
|
continue $sm;
|
|
2006
2006
|
} else {
|
|
2007
|
-
var tmp_2 = this.
|
|
2007
|
+
var tmp_2 = this.y8_1;
|
|
2008
2008
|
if (tmp_2 instanceof ClosedSendChannelException) {
|
|
2009
|
-
var ignore_1 = this.
|
|
2010
|
-
this.
|
|
2009
|
+
var ignore_1 = this.y8_1;
|
|
2010
|
+
this.v8_1 = 8;
|
|
2011
2011
|
continue $sm;
|
|
2012
2012
|
} else {
|
|
2013
|
-
var tmp_3 = this.
|
|
2013
|
+
var tmp_3 = this.y8_1;
|
|
2014
2014
|
if (tmp_3 instanceof ClosedByteChannelException) {
|
|
2015
|
-
var ignore_2 = this.
|
|
2016
|
-
this.
|
|
2015
|
+
var ignore_2 = this.y8_1;
|
|
2016
|
+
this.v8_1 = 8;
|
|
2017
2017
|
continue $sm;
|
|
2018
2018
|
} else {
|
|
2019
|
-
throw this.
|
|
2019
|
+
throw this.y8_1;
|
|
2020
2020
|
}
|
|
2021
2021
|
}
|
|
2022
2022
|
}
|
|
2023
2023
|
}
|
|
2024
2024
|
|
|
2025
2025
|
case 8:
|
|
2026
|
-
this.
|
|
2026
|
+
this.w8_1 = 9;
|
|
2027
2027
|
return Unit_instance;
|
|
2028
2028
|
case 9:
|
|
2029
|
-
throw this.
|
|
2029
|
+
throw this.y8_1;
|
|
2030
2030
|
}
|
|
2031
2031
|
} catch ($p) {
|
|
2032
2032
|
var e = $p;
|
|
2033
|
-
if (this.
|
|
2033
|
+
if (this.w8_1 === 9) {
|
|
2034
2034
|
throw e;
|
|
2035
2035
|
} else {
|
|
2036
|
-
this.
|
|
2037
|
-
this.
|
|
2036
|
+
this.v8_1 = this.w8_1;
|
|
2037
|
+
this.y8_1 = e;
|
|
2038
2038
|
}
|
|
2039
2039
|
}
|
|
2040
2040
|
while (true);
|
|
2041
2041
|
};
|
|
2042
|
-
protoOf(pinger$slambda).
|
|
2043
|
-
var i = new pinger$slambda(this.
|
|
2044
|
-
i.
|
|
2042
|
+
protoOf(pinger$slambda).j3s = function ($this$launch, completion) {
|
|
2043
|
+
var i = new pinger$slambda(this.t4l_1, this.u4l_1, this.v4l_1, this.w4l_1, this.x4l_1, completion);
|
|
2044
|
+
i.y4l_1 = $this$launch;
|
|
2045
2045
|
return i;
|
|
2046
2046
|
};
|
|
2047
2047
|
function pinger$slambda_0($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
2048
2048
|
var i = new pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation);
|
|
2049
2049
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
2050
|
-
return i.
|
|
2050
|
+
return i.i3s($this$launch, $completion);
|
|
2051
2051
|
}, 1);
|
|
2052
2052
|
}
|
|
2053
2053
|
function pinger$lambda($actorJob) {
|
|
2054
2054
|
return function (it) {
|
|
2055
|
-
$actorJob.
|
|
2055
|
+
$actorJob.h1o();
|
|
2056
2056
|
return Unit_instance;
|
|
2057
2057
|
};
|
|
2058
2058
|
}
|
|
@@ -2069,9 +2069,9 @@ function Companion_2() {
|
|
|
2069
2069
|
var tmp = this;
|
|
2070
2070
|
// Inline function 'kotlin.apply' call
|
|
2071
2071
|
var this_0 = new WebSocketChannelsConfig();
|
|
2072
|
-
this_0.
|
|
2073
|
-
this_0.
|
|
2074
|
-
tmp.
|
|
2072
|
+
this_0.z4e_1 = this_0.b4m();
|
|
2073
|
+
this_0.a4f_1 = this_0.b4m();
|
|
2074
|
+
tmp.y4e_1 = this_0;
|
|
2075
2075
|
}
|
|
2076
2076
|
var Companion_instance_2;
|
|
2077
2077
|
function Companion_getInstance_2() {
|
|
@@ -2081,21 +2081,21 @@ function Companion_getInstance_2() {
|
|
|
2081
2081
|
}
|
|
2082
2082
|
function WebSocketChannelsConfig() {
|
|
2083
2083
|
Companion_getInstance_2();
|
|
2084
|
-
this.
|
|
2085
|
-
this.
|
|
2084
|
+
this.z4e_1 = Companion_getInstance_3().c4m_1;
|
|
2085
|
+
this.a4f_1 = Companion_getInstance_3().c4m_1;
|
|
2086
2086
|
}
|
|
2087
|
-
protoOf(WebSocketChannelsConfig).
|
|
2088
|
-
return Companion_getInstance_3().
|
|
2087
|
+
protoOf(WebSocketChannelsConfig).b4m = function () {
|
|
2088
|
+
return Companion_getInstance_3().c4m_1;
|
|
2089
2089
|
};
|
|
2090
2090
|
function from(_this__u8e3s4, config) {
|
|
2091
2091
|
// Inline function 'kotlin.with' call
|
|
2092
2092
|
var tmp;
|
|
2093
|
-
if (config.
|
|
2093
|
+
if (config.d4m_1 === 2147483647) {
|
|
2094
2094
|
tmp = Channel(2147483647);
|
|
2095
|
-
} else if (config.
|
|
2096
|
-
tmp = Channel(config.
|
|
2097
|
-
} else if (config.
|
|
2098
|
-
tmp = new BoundedChannel(config.
|
|
2095
|
+
} else if (config.e4m_1.equals(ChannelOverflow_SUSPEND_getInstance())) {
|
|
2096
|
+
tmp = Channel(config.d4m_1, BufferOverflow_SUSPEND_getInstance());
|
|
2097
|
+
} else if (config.e4m_1.equals(ChannelOverflow_CLOSE_getInstance())) {
|
|
2098
|
+
tmp = new BoundedChannel(config.d4m_1);
|
|
2099
2099
|
} else {
|
|
2100
2100
|
// Inline function 'kotlin.error' call
|
|
2101
2101
|
var message = 'Unsupported channel config.';
|
|
@@ -2105,7 +2105,7 @@ function from(_this__u8e3s4, config) {
|
|
|
2105
2105
|
}
|
|
2106
2106
|
function Companion_3() {
|
|
2107
2107
|
Companion_instance_3 = this;
|
|
2108
|
-
this.
|
|
2108
|
+
this.c4m_1 = new ChannelConfig(2147483647, ChannelOverflow_SUSPEND_getInstance());
|
|
2109
2109
|
}
|
|
2110
2110
|
var Companion_instance_3;
|
|
2111
2111
|
function Companion_getInstance_3() {
|
|
@@ -2115,11 +2115,11 @@ function Companion_getInstance_3() {
|
|
|
2115
2115
|
}
|
|
2116
2116
|
function ChannelConfig(capacity, onOverflow) {
|
|
2117
2117
|
Companion_getInstance_3();
|
|
2118
|
-
this.
|
|
2119
|
-
this.
|
|
2118
|
+
this.d4m_1 = capacity;
|
|
2119
|
+
this.e4m_1 = onOverflow;
|
|
2120
2120
|
}
|
|
2121
|
-
protoOf(ChannelConfig).
|
|
2122
|
-
return this.
|
|
2121
|
+
protoOf(ChannelConfig).f4m = function () {
|
|
2122
|
+
return this.e4m_1.equals(ChannelOverflow_SUSPEND_getInstance()) && !(this.d4m_1 === 2147483647);
|
|
2123
2123
|
};
|
|
2124
2124
|
var ChannelOverflow_SUSPEND_instance;
|
|
2125
2125
|
var ChannelOverflow_CLOSE_instance;
|
|
@@ -2143,14 +2143,14 @@ function BoundedChannel$Companion$createDelegate$lambda($channel) {
|
|
|
2143
2143
|
} else {
|
|
2144
2144
|
tmp_0 = $channel._v;
|
|
2145
2145
|
}
|
|
2146
|
-
if (!tmp_0.
|
|
2146
|
+
if (!tmp_0.n23()) {
|
|
2147
2147
|
var tmp_1;
|
|
2148
2148
|
if ($channel._v == null) {
|
|
2149
2149
|
throwUninitializedPropertyAccessException('channel');
|
|
2150
2150
|
} else {
|
|
2151
2151
|
tmp_1 = $channel._v;
|
|
2152
2152
|
}
|
|
2153
|
-
tmp_1.
|
|
2153
|
+
tmp_1.n25(new ChannelOverflowException('Channel overflowed'));
|
|
2154
2154
|
tmp = Unit_instance;
|
|
2155
2155
|
}
|
|
2156
2156
|
return Unit_instance;
|
|
@@ -2158,7 +2158,7 @@ function BoundedChannel$Companion$createDelegate$lambda($channel) {
|
|
|
2158
2158
|
}
|
|
2159
2159
|
function Companion_4() {
|
|
2160
2160
|
}
|
|
2161
|
-
protoOf(Companion_4).
|
|
2161
|
+
protoOf(Companion_4).g4m = function (capacity) {
|
|
2162
2162
|
var channel = {_v: null};
|
|
2163
2163
|
var tmp = BufferOverflow_DROP_OLDEST_getInstance();
|
|
2164
2164
|
// Inline function 'kotlin.also' call
|
|
@@ -2171,45 +2171,45 @@ function Companion_getInstance_4() {
|
|
|
2171
2171
|
return Companion_instance_4;
|
|
2172
2172
|
}
|
|
2173
2173
|
function BoundedChannel(capacity, delegate) {
|
|
2174
|
-
delegate = delegate === VOID ? Companion_instance_4.
|
|
2175
|
-
this.
|
|
2174
|
+
delegate = delegate === VOID ? Companion_instance_4.g4m(capacity) : delegate;
|
|
2175
|
+
this.h4m_1 = delegate;
|
|
2176
2176
|
}
|
|
2177
|
-
protoOf(BoundedChannel).
|
|
2178
|
-
var result = this.
|
|
2177
|
+
protoOf(BoundedChannel).i4m = function (element) {
|
|
2178
|
+
var result = this.h4m_1.j25(element);
|
|
2179
2179
|
if (!_ChannelResult___get_isSuccess__impl__odq1z9(result) && !_ChannelResult___get_isClosed__impl__mg7kuu(result)) {
|
|
2180
|
-
this.
|
|
2180
|
+
this.n25(new ChannelOverflowException('Channel overflowed'));
|
|
2181
2181
|
}
|
|
2182
2182
|
return result;
|
|
2183
2183
|
};
|
|
2184
|
-
protoOf(BoundedChannel).
|
|
2185
|
-
return this.
|
|
2184
|
+
protoOf(BoundedChannel).j25 = function (element) {
|
|
2185
|
+
return this.i4m(element);
|
|
2186
2186
|
};
|
|
2187
|
-
protoOf(BoundedChannel).
|
|
2188
|
-
return this.
|
|
2187
|
+
protoOf(BoundedChannel).j4m = function (element, $completion) {
|
|
2188
|
+
return this.h4m_1.i25(element, $completion);
|
|
2189
2189
|
};
|
|
2190
|
-
protoOf(BoundedChannel).
|
|
2191
|
-
return this.
|
|
2190
|
+
protoOf(BoundedChannel).i25 = function (element, $completion) {
|
|
2191
|
+
return this.j4m(element, $completion);
|
|
2192
2192
|
};
|
|
2193
|
-
protoOf(BoundedChannel).
|
|
2194
|
-
return this.
|
|
2193
|
+
protoOf(BoundedChannel).n25 = function (cause) {
|
|
2194
|
+
return this.h4m_1.n25(cause);
|
|
2195
2195
|
};
|
|
2196
|
-
protoOf(BoundedChannel).
|
|
2197
|
-
this.
|
|
2196
|
+
protoOf(BoundedChannel).s25 = function (handler) {
|
|
2197
|
+
this.h4m_1.s25(handler);
|
|
2198
2198
|
};
|
|
2199
|
-
protoOf(BoundedChannel).
|
|
2200
|
-
return this.
|
|
2199
|
+
protoOf(BoundedChannel).n23 = function () {
|
|
2200
|
+
return this.h4m_1.n23();
|
|
2201
2201
|
};
|
|
2202
|
-
protoOf(BoundedChannel).
|
|
2203
|
-
return this.
|
|
2202
|
+
protoOf(BoundedChannel).k4m = function ($completion) {
|
|
2203
|
+
return this.h4m_1.l25($completion);
|
|
2204
2204
|
};
|
|
2205
|
-
protoOf(BoundedChannel).
|
|
2206
|
-
return this.
|
|
2205
|
+
protoOf(BoundedChannel).l25 = function ($completion) {
|
|
2206
|
+
return this.k4m($completion);
|
|
2207
2207
|
};
|
|
2208
2208
|
protoOf(BoundedChannel).t = function () {
|
|
2209
|
-
return this.
|
|
2209
|
+
return this.h4m_1.t();
|
|
2210
2210
|
};
|
|
2211
|
-
protoOf(BoundedChannel).
|
|
2212
|
-
this.
|
|
2211
|
+
protoOf(BoundedChannel).g1o = function (cause) {
|
|
2212
|
+
this.h4m_1.g1o(cause);
|
|
2213
2213
|
};
|
|
2214
2214
|
function ChannelOverflowException(message) {
|
|
2215
2215
|
RuntimeException_init_$Init$(message, this);
|
|
@@ -2228,16 +2228,16 @@ function WebSocketExtension() {
|
|
|
2228
2228
|
function WebSocketExtensionsConfig() {
|
|
2229
2229
|
var tmp = this;
|
|
2230
2230
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2231
|
-
tmp.
|
|
2231
|
+
tmp.n4m_1 = ArrayList_init_$Create$();
|
|
2232
2232
|
var tmp_0 = this;
|
|
2233
2233
|
// Inline function 'kotlin.arrayOf' call
|
|
2234
2234
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2235
2235
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2236
|
-
tmp_0.
|
|
2236
|
+
tmp_0.o4m_1 = [false, false, false];
|
|
2237
2237
|
}
|
|
2238
|
-
protoOf(WebSocketExtensionsConfig).
|
|
2238
|
+
protoOf(WebSocketExtensionsConfig).y43 = function () {
|
|
2239
2239
|
// Inline function 'kotlin.collections.map' call
|
|
2240
|
-
var this_0 = this.
|
|
2240
|
+
var this_0 = this.n4m_1;
|
|
2241
2241
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2242
2242
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2243
2243
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2249,14 +2249,14 @@ protoOf(WebSocketExtensionsConfig).g3n = function () {
|
|
|
2249
2249
|
return destination;
|
|
2250
2250
|
};
|
|
2251
2251
|
function parametersToString($this) {
|
|
2252
|
-
return $this.
|
|
2252
|
+
return $this.q4m_1.r() ? '' : '; ' + joinToString($this.q4m_1, ';');
|
|
2253
2253
|
}
|
|
2254
2254
|
function WebSocketExtensionHeader(name, parameters) {
|
|
2255
|
-
this.
|
|
2256
|
-
this.
|
|
2255
|
+
this.p4m_1 = name;
|
|
2256
|
+
this.q4m_1 = parameters;
|
|
2257
2257
|
}
|
|
2258
2258
|
protoOf(WebSocketExtensionHeader).toString = function () {
|
|
2259
|
-
return this.
|
|
2259
|
+
return this.p4m_1 + ' ' + parametersToString(this);
|
|
2260
2260
|
};
|
|
2261
2261
|
function parseWebSocketExtensions(value) {
|
|
2262
2262
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2292,9 +2292,9 @@ function WebSocketSession() {
|
|
|
2292
2292
|
function close(_this__u8e3s4, reason, $completion) {
|
|
2293
2293
|
reason = reason === VOID ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : reason;
|
|
2294
2294
|
var tmp = new $closeCOROUTINE$(_this__u8e3s4, reason, $completion);
|
|
2295
|
-
tmp.
|
|
2296
|
-
tmp.
|
|
2297
|
-
return tmp.
|
|
2295
|
+
tmp.x8_1 = Unit_instance;
|
|
2296
|
+
tmp.y8_1 = null;
|
|
2297
|
+
return tmp.d9();
|
|
2298
2298
|
}
|
|
2299
2299
|
function closeExceptionally(_this__u8e3s4, cause, $completion) {
|
|
2300
2300
|
var tmp;
|
|
@@ -2308,61 +2308,61 @@ function closeExceptionally(_this__u8e3s4, cause, $completion) {
|
|
|
2308
2308
|
}
|
|
2309
2309
|
function $closeCOROUTINE$(_this__u8e3s4, reason, resultContinuation) {
|
|
2310
2310
|
CoroutineImpl.call(this, resultContinuation);
|
|
2311
|
-
this.
|
|
2312
|
-
this.
|
|
2311
|
+
this.z4m_1 = _this__u8e3s4;
|
|
2312
|
+
this.a4n_1 = reason;
|
|
2313
2313
|
}
|
|
2314
|
-
protoOf($closeCOROUTINE$).
|
|
2315
|
-
var suspendResult = this.
|
|
2314
|
+
protoOf($closeCOROUTINE$).d9 = function () {
|
|
2315
|
+
var suspendResult = this.x8_1;
|
|
2316
2316
|
$sm: do
|
|
2317
2317
|
try {
|
|
2318
|
-
var tmp = this.
|
|
2318
|
+
var tmp = this.v8_1;
|
|
2319
2319
|
switch (tmp) {
|
|
2320
2320
|
case 0:
|
|
2321
|
-
this.
|
|
2322
|
-
this.
|
|
2323
|
-
this.
|
|
2324
|
-
suspendResult = this.
|
|
2321
|
+
this.w8_1 = 4;
|
|
2322
|
+
this.w8_1 = 3;
|
|
2323
|
+
this.v8_1 = 1;
|
|
2324
|
+
suspendResult = this.z4m_1.x4e(Close_init_$Create$(this.a4n_1), this);
|
|
2325
2325
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2326
2326
|
return suspendResult;
|
|
2327
2327
|
}
|
|
2328
2328
|
|
|
2329
2329
|
continue $sm;
|
|
2330
2330
|
case 1:
|
|
2331
|
-
this.
|
|
2332
|
-
suspendResult = this.
|
|
2331
|
+
this.v8_1 = 2;
|
|
2332
|
+
suspendResult = this.z4m_1.x3j(this);
|
|
2333
2333
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2334
2334
|
return suspendResult;
|
|
2335
2335
|
}
|
|
2336
2336
|
|
|
2337
2337
|
continue $sm;
|
|
2338
2338
|
case 2:
|
|
2339
|
-
this.
|
|
2340
|
-
this.
|
|
2339
|
+
this.w8_1 = 4;
|
|
2340
|
+
this.v8_1 = 5;
|
|
2341
2341
|
continue $sm;
|
|
2342
2342
|
case 3:
|
|
2343
|
-
this.
|
|
2344
|
-
var tmp_0 = this.
|
|
2343
|
+
this.w8_1 = 4;
|
|
2344
|
+
var tmp_0 = this.y8_1;
|
|
2345
2345
|
if (tmp_0 instanceof Error) {
|
|
2346
|
-
var _unused_var__etf5q3 = this.
|
|
2347
|
-
this.
|
|
2346
|
+
var _unused_var__etf5q3 = this.y8_1;
|
|
2347
|
+
this.v8_1 = 5;
|
|
2348
2348
|
continue $sm;
|
|
2349
2349
|
} else {
|
|
2350
|
-
throw this.
|
|
2350
|
+
throw this.y8_1;
|
|
2351
2351
|
}
|
|
2352
2352
|
|
|
2353
2353
|
case 4:
|
|
2354
|
-
throw this.
|
|
2354
|
+
throw this.y8_1;
|
|
2355
2355
|
case 5:
|
|
2356
|
-
this.
|
|
2356
|
+
this.w8_1 = 4;
|
|
2357
2357
|
return Unit_instance;
|
|
2358
2358
|
}
|
|
2359
2359
|
} catch ($p) {
|
|
2360
2360
|
var e = $p;
|
|
2361
|
-
if (this.
|
|
2361
|
+
if (this.w8_1 === 4) {
|
|
2362
2362
|
throw e;
|
|
2363
2363
|
} else {
|
|
2364
|
-
this.
|
|
2365
|
-
this.
|
|
2364
|
+
this.v8_1 = this.w8_1;
|
|
2365
|
+
this.y8_1 = e;
|
|
2366
2366
|
}
|
|
2367
2367
|
}
|
|
2368
2368
|
while (true);
|
|
@@ -2388,8 +2388,8 @@ function Text_init_$Create$(text) {
|
|
|
2388
2388
|
function Close_init_$Init$(reason, $this) {
|
|
2389
2389
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
2390
2390
|
var builder = new Buffer();
|
|
2391
|
-
builder.
|
|
2392
|
-
writeText(builder, reason.
|
|
2391
|
+
builder.q3g(reason.p4e_1);
|
|
2392
|
+
writeText(builder, reason.q4e_1);
|
|
2393
2393
|
Close_init_$Init$_0(builder, $this);
|
|
2394
2394
|
return $this;
|
|
2395
2395
|
}
|
|
@@ -2401,7 +2401,7 @@ function Close_init_$Init$_0(packet, $this) {
|
|
|
2401
2401
|
return $this;
|
|
2402
2402
|
}
|
|
2403
2403
|
function Close_init_$Init$_1($this) {
|
|
2404
|
-
Close.call($this, Companion_getInstance_5().
|
|
2404
|
+
Close.call($this, Companion_getInstance_5().t4i_1);
|
|
2405
2405
|
return $this;
|
|
2406
2406
|
}
|
|
2407
2407
|
function Close_init_$Create$_0() {
|
|
@@ -2431,9 +2431,9 @@ function Pong(data, disposableHandle) {
|
|
|
2431
2431
|
}
|
|
2432
2432
|
function Companion_5() {
|
|
2433
2433
|
Companion_instance_5 = this;
|
|
2434
|
-
this.
|
|
2434
|
+
this.t4i_1 = new Int8Array(0);
|
|
2435
2435
|
}
|
|
2436
|
-
protoOf(Companion_5).
|
|
2436
|
+
protoOf(Companion_5).u4i = function (fin, frameType, data, rsv1, rsv2, rsv3) {
|
|
2437
2437
|
var tmp;
|
|
2438
2438
|
switch (frameType.a1_1) {
|
|
2439
2439
|
case 1:
|
|
@@ -2469,28 +2469,28 @@ function Frame(fin, frameType, data, disposableHandle, rsv1, rsv2, rsv3) {
|
|
|
2469
2469
|
rsv1 = rsv1 === VOID ? false : rsv1;
|
|
2470
2470
|
rsv2 = rsv2 === VOID ? false : rsv2;
|
|
2471
2471
|
rsv3 = rsv3 === VOID ? false : rsv3;
|
|
2472
|
-
this.
|
|
2473
|
-
this.
|
|
2474
|
-
this.
|
|
2475
|
-
this.
|
|
2476
|
-
this.
|
|
2477
|
-
this.
|
|
2478
|
-
this.
|
|
2472
|
+
this.m4i_1 = fin;
|
|
2473
|
+
this.n4i_1 = frameType;
|
|
2474
|
+
this.o4i_1 = data;
|
|
2475
|
+
this.p4i_1 = disposableHandle;
|
|
2476
|
+
this.q4i_1 = rsv1;
|
|
2477
|
+
this.r4i_1 = rsv2;
|
|
2478
|
+
this.s4i_1 = rsv3;
|
|
2479
2479
|
}
|
|
2480
2480
|
protoOf(Frame).toString = function () {
|
|
2481
|
-
return 'Frame ' + this.
|
|
2481
|
+
return 'Frame ' + this.n4i_1.toString() + ' (fin=' + this.m4i_1 + ', buffer len = ' + this.o4i_1.length + ')';
|
|
2482
2482
|
};
|
|
2483
2483
|
function get_OUTGOING_CHANNEL_CAPACITY() {
|
|
2484
2484
|
return OUTGOING_CHANNEL_CAPACITY;
|
|
2485
2485
|
}
|
|
2486
2486
|
var OUTGOING_CHANNEL_CAPACITY;
|
|
2487
2487
|
//region block: post-declaration
|
|
2488
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
2488
|
+
protoOf(DefaultWebSocketSessionImpl).x4e = send;
|
|
2489
2489
|
defineProp(protoOf(FrameTooBigException), 'message', function () {
|
|
2490
2490
|
return this.e();
|
|
2491
2491
|
});
|
|
2492
|
-
protoOf(BoundedChannel).
|
|
2493
|
-
protoOf(BoundedChannel).
|
|
2492
|
+
protoOf(BoundedChannel).p25 = close$default;
|
|
2493
|
+
protoOf(BoundedChannel).r25 = cancel$default;
|
|
2494
2494
|
//endregion
|
|
2495
2495
|
//region block: init
|
|
2496
2496
|
NonDisposableHandle_instance = new NonDisposableHandle();
|