@solibo/home-api 1.1.110 → 1.1.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +777 -778
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +1329 -1746
- package/kotlin-kotlin-stdlib.mjs.map +1 -0
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-atomicfu.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +2004 -1993
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +42 -42
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +629 -625
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1934 -1944
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1497 -1496
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/ktor-ktor-client-content-negotiation.mjs +142 -142
- package/ktor-ktor-client-content-negotiation.mjs.map +1 -1
- package/ktor-ktor-client-core.mjs +2181 -2080
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-events.mjs +7 -7
- package/ktor-ktor-events.mjs.map +1 -1
- package/ktor-ktor-http-cio.mjs +380 -380
- package/ktor-ktor-http-cio.mjs.map +1 -1
- package/ktor-ktor-http.mjs +728 -728
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +658 -658
- package/ktor-ktor-io.mjs.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.mjs +7 -7
- package/ktor-ktor-serialization-kotlinx.mjs +147 -146
- package/ktor-ktor-serialization-kotlinx.mjs.map +1 -1
- package/ktor-ktor-serialization.mjs +65 -66
- package/ktor-ktor-serialization.mjs.map +1 -1
- package/ktor-ktor-utils.mjs +1354 -788
- package/ktor-ktor-utils.mjs.map +1 -1
- package/ktor-ktor-websockets.mjs +425 -427
- package/ktor-ktor-websockets.mjs.map +1 -1
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.d.mts +152 -151
- package/solibo-sdk-sdk-home-api.mjs +48826 -48700
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
package/ktor-ktor-websockets.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
3
3
|
mapCapacity1h45rc3eh9p2l as mapCapacity,
|
|
4
4
|
coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
|
|
5
|
-
LinkedHashMap_init_$Create$
|
|
6
|
-
|
|
5
|
+
LinkedHashMap_init_$Create$1gzy1x4a46gd4 as LinkedHashMap_init_$Create$,
|
|
6
|
+
Unit_instancev9v8hjid95df as Unit_instance,
|
|
7
7
|
protoOf180f3jzyo7rfj as protoOf,
|
|
8
8
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
9
9
|
enumEntries20mr21zbe3az4 as enumEntries,
|
|
@@ -15,23 +15,23 @@ import {
|
|
|
15
15
|
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
16
16
|
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
17
17
|
isInterface3d6p8outrmvmk as isInterface,
|
|
18
|
-
IllegalArgumentException_init_$Create$
|
|
18
|
+
IllegalArgumentException_init_$Create$i4126l9nkbuo as IllegalArgumentException_init_$Create$,
|
|
19
19
|
CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
|
|
20
20
|
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
21
21
|
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
|
|
22
22
|
initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
|
|
23
23
|
ensureNotNull1e947j3ixpazm as ensureNotNull,
|
|
24
|
-
CancellationException_init_$Create$
|
|
24
|
+
CancellationException_init_$Create$3ch6sfo7bilrl as CancellationException_init_$Create$,
|
|
25
25
|
CancellationException3b36o9qz53rgr as CancellationException,
|
|
26
26
|
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
27
27
|
toString30pk9tzaqopn as toString_0,
|
|
28
28
|
fromInt2ii0rejb1w62w as fromInt,
|
|
29
|
-
ArrayList_init_$Create$
|
|
30
|
-
IllegalStateException_init_$Create$
|
|
29
|
+
ArrayList_init_$Create$37gc04va6yfo2 as ArrayList_init_$Create$,
|
|
30
|
+
IllegalStateException_init_$Create$1h4bcfod21ri0 as IllegalStateException_init_$Create$,
|
|
31
31
|
joinToString1cxrrlmo0chqs as joinToString,
|
|
32
32
|
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
33
33
|
Exceptiondt2hlxn7j7vw as Exception,
|
|
34
|
-
Exception_init_$Init$
|
|
34
|
+
Exception_init_$Init$1giio8zw2zqqc as Exception_init_$Init$,
|
|
35
35
|
captureStack1fzi4aczwc4hg as captureStack,
|
|
36
36
|
defineProp3ur6h3slcvq4x as defineProp,
|
|
37
37
|
compareTo3ankvs086tmwq as compareTo,
|
|
@@ -39,8 +39,8 @@ import {
|
|
|
39
39
|
Randomei1bbeye8rr8 as Random,
|
|
40
40
|
throwUninitializedPropertyAccessException14fok093f3k3t as throwUninitializedPropertyAccessException,
|
|
41
41
|
RuntimeException1r3t0zl97011n as RuntimeException,
|
|
42
|
-
RuntimeException_init_$Init$
|
|
43
|
-
ArrayList_init_$Create$
|
|
42
|
+
RuntimeException_init_$Init$2o5rfs7mzby0b as RuntimeException_init_$Init$,
|
|
43
|
+
ArrayList_init_$Create$2byt5m5yn22yy as ArrayList_init_$Create$_0,
|
|
44
44
|
split2bvyvnrlcifjv as split,
|
|
45
45
|
first58ocm7j58k3q as first,
|
|
46
46
|
isCharSequence1ju9jr1w86plq as isCharSequence,
|
|
@@ -49,28 +49,28 @@ import {
|
|
|
49
49
|
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
50
50
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
51
51
|
import {
|
|
52
|
-
|
|
52
|
+
Dispatchers_getInstance2p2r3ndn98nn as Dispatchers_getInstance,
|
|
53
53
|
launch1c91vkjzdi9sd as launch,
|
|
54
|
-
|
|
54
|
+
CoroutineStart_UNDISPATCHED_getInstance3vhik5zct4e74 as CoroutineStart_UNDISPATCHED_getInstance,
|
|
55
55
|
ChannelResult2y4k69ac6y3du as ChannelResult,
|
|
56
|
-
|
|
56
|
+
_ChannelResult___get_isSuccess__impl__odq1z912b5ogo8613be as _ChannelResult___get_isSuccess__impl__odq1z9,
|
|
57
57
|
CoroutineScopefcb5f5dwqcas as CoroutineScope,
|
|
58
58
|
cancelConsumed2i0oizqhmljf6 as cancelConsumed,
|
|
59
59
|
ClosedSendChannelException29m33prpq9jaw as ClosedSendChannelException,
|
|
60
60
|
ClosedReceiveChannelException3ofg6gf5f5b38 as ClosedReceiveChannelException,
|
|
61
61
|
CompletableDeferred2lnqvsbvx74d3 as CompletableDeferred,
|
|
62
62
|
Job13y4jkazwjho0 as Job,
|
|
63
|
-
|
|
63
|
+
Key_instance2rlngjw9v1qsd as Key_instance,
|
|
64
64
|
CoroutineName2g5zosw74tf0f as CoroutineName,
|
|
65
|
-
|
|
65
|
+
Factory_getInstance3boxsed5qz5iy as Factory_getInstance,
|
|
66
66
|
CopyableThrowable1mvc99jcyvivf as CopyableThrowable,
|
|
67
67
|
Channel3r72atmcithql as Channel,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
close$
|
|
73
|
-
cancel$
|
|
68
|
+
withTimeoutOrNull3fn9ef0keo2ht as withTimeoutOrNull,
|
|
69
|
+
BufferOverflow_SUSPEND_getInstance3j24qbb4wnzlq as BufferOverflow_SUSPEND_getInstance,
|
|
70
|
+
BufferOverflow_DROP_OLDEST_getInstance3u1027cpcc1wz as BufferOverflow_DROP_OLDEST_getInstance,
|
|
71
|
+
_ChannelResult___get_isClosed__impl__mg7kuu1g5u2zmbzbfb4 as _ChannelResult___get_isClosed__impl__mg7kuu,
|
|
72
|
+
close$default1evna6yun3t5h as close$default,
|
|
73
|
+
cancel$default1fq6eekptkf7a as cancel$default,
|
|
74
74
|
SendChannel38sllbxw662ws as SendChannel,
|
|
75
75
|
ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
|
|
76
76
|
} from './kotlinx-coroutines-core.mjs';
|
|
@@ -88,14 +88,14 @@ import {
|
|
|
88
88
|
buildjygoh729rhy8 as build,
|
|
89
89
|
get_size2imoy2jq11jxl as get_size,
|
|
90
90
|
readText27783kyxjxi1g as readText,
|
|
91
|
-
|
|
91
|
+
Charsets_getInstanceqkyjyusuh1b0 as Charsets_getInstance,
|
|
92
92
|
toByteArray1i3ns5jnoqlv6 as toByteArray,
|
|
93
93
|
ClosedByteChannelException3il8gfpye60w as ClosedByteChannelException,
|
|
94
94
|
writeText19qfzm98fbm4l as writeText,
|
|
95
95
|
} from './ktor-ktor-io.mjs';
|
|
96
96
|
import {
|
|
97
97
|
readByteArray1ri21h2rciakw as readByteArray,
|
|
98
|
-
IOException_init_$Create$
|
|
98
|
+
IOException_init_$Create$1sfdrtkx2q59o as IOException_init_$Create$,
|
|
99
99
|
Buffergs925ekssbch as Buffer,
|
|
100
100
|
} from './kotlinx-io-kotlinx-io-core.mjs';
|
|
101
101
|
import {
|
|
@@ -110,7 +110,7 @@ initMetadataForCompanion(Companion);
|
|
|
110
110
|
initMetadataForClass(Codes, 'Codes', VOID, Enum);
|
|
111
111
|
initMetadataForClass(CloseReason, 'CloseReason');
|
|
112
112
|
function send(frame, $completion) {
|
|
113
|
-
return this.
|
|
113
|
+
return this.s32().s18(frame, $completion);
|
|
114
114
|
}
|
|
115
115
|
initMetadataForInterface(WebSocketSession, 'WebSocketSession', VOID, VOID, [CoroutineScope], [1, 0]);
|
|
116
116
|
initMetadataForInterface(DefaultWebSocketSession, 'DefaultWebSocketSession', VOID, VOID, [WebSocketSession], [1, 0]);
|
|
@@ -124,7 +124,7 @@ initMetadataForCoroutine($sendCloseSequenceCOROUTINE$, CoroutineImpl);
|
|
|
124
124
|
initMetadataForCoroutine($checkMaxFrameSizeCOROUTINE$, CoroutineImpl);
|
|
125
125
|
initMetadataForClass(DefaultWebSocketSessionImpl, 'DefaultWebSocketSessionImpl', VOID, VOID, [DefaultWebSocketSession, WebSocketSession], [1, 0, 2]);
|
|
126
126
|
initMetadataForObject(NonDisposableHandle, 'NonDisposableHandle');
|
|
127
|
-
initMetadataForClass(FrameTooBigException, 'FrameTooBigException', VOID, Exception, [
|
|
127
|
+
initMetadataForClass(FrameTooBigException, 'FrameTooBigException', VOID, Exception, [CopyableThrowable]);
|
|
128
128
|
initMetadataForCompanion(Companion_1);
|
|
129
129
|
initMetadataForClass(FrameType, 'FrameType', VOID, Enum);
|
|
130
130
|
initMetadataForLambda(ponger$slambda, CoroutineImpl, VOID, [1]);
|
|
@@ -174,14 +174,14 @@ function Companion() {
|
|
|
174
174
|
var _iterator__ex2g4s = this_0.t();
|
|
175
175
|
while (_iterator__ex2g4s.u()) {
|
|
176
176
|
var element = _iterator__ex2g4s.v();
|
|
177
|
-
var tmp$ret$
|
|
178
|
-
destination.s2(tmp$ret$
|
|
177
|
+
var tmp$ret$2 = element.h32_1;
|
|
178
|
+
destination.s2(tmp$ret$2, element);
|
|
179
179
|
}
|
|
180
|
-
tmp.
|
|
181
|
-
this.
|
|
180
|
+
tmp.i32_1 = destination;
|
|
181
|
+
this.j32_1 = Codes_INTERNAL_ERROR_getInstance();
|
|
182
182
|
}
|
|
183
|
-
protoOf(Companion).
|
|
184
|
-
return this.
|
|
183
|
+
protoOf(Companion).k32 = function (code) {
|
|
184
|
+
return this.i32_1.z2(code);
|
|
185
185
|
};
|
|
186
186
|
var Companion_instance;
|
|
187
187
|
function Companion_getInstance() {
|
|
@@ -219,7 +219,7 @@ function Codes_initEntries() {
|
|
|
219
219
|
}
|
|
220
220
|
var $ENTRIES;
|
|
221
221
|
function CloseReason_init_$Init$(code, message, $this) {
|
|
222
|
-
CloseReason.call($this, code.
|
|
222
|
+
CloseReason.call($this, code.h32_1, message);
|
|
223
223
|
return $this;
|
|
224
224
|
}
|
|
225
225
|
function CloseReason_init_$Create$(code, message) {
|
|
@@ -227,7 +227,7 @@ function CloseReason_init_$Create$(code, message) {
|
|
|
227
227
|
}
|
|
228
228
|
function Codes(name, ordinal, code) {
|
|
229
229
|
Enum.call(this, name, ordinal);
|
|
230
|
-
this.
|
|
230
|
+
this.h32_1 = code;
|
|
231
231
|
}
|
|
232
232
|
function Codes_NORMAL_getInstance() {
|
|
233
233
|
Codes_initEntries();
|
|
@@ -278,19 +278,19 @@ function Codes_TRY_AGAIN_LATER_getInstance() {
|
|
|
278
278
|
return Codes_TRY_AGAIN_LATER_instance;
|
|
279
279
|
}
|
|
280
280
|
function CloseReason(code, message) {
|
|
281
|
-
this.
|
|
282
|
-
this.
|
|
281
|
+
this.l32_1 = code;
|
|
282
|
+
this.m32_1 = message;
|
|
283
283
|
}
|
|
284
|
-
protoOf(CloseReason).
|
|
285
|
-
return Companion_getInstance().
|
|
284
|
+
protoOf(CloseReason).n32 = function () {
|
|
285
|
+
return Companion_getInstance().k32(this.l32_1);
|
|
286
286
|
};
|
|
287
287
|
protoOf(CloseReason).toString = function () {
|
|
288
|
-
var tmp0_elvis_lhs = this.
|
|
289
|
-
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.
|
|
288
|
+
var tmp0_elvis_lhs = this.n32();
|
|
289
|
+
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.l32_1 : tmp0_elvis_lhs) + ', message=' + this.m32_1 + ')';
|
|
290
290
|
};
|
|
291
291
|
protoOf(CloseReason).hashCode = function () {
|
|
292
|
-
var result = this.
|
|
293
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
292
|
+
var result = this.l32_1;
|
|
293
|
+
result = imul(result, 31) + getStringHashCode(this.m32_1) | 0;
|
|
294
294
|
return result;
|
|
295
295
|
};
|
|
296
296
|
protoOf(CloseReason).equals = function (other) {
|
|
@@ -298,9 +298,9 @@ protoOf(CloseReason).equals = function (other) {
|
|
|
298
298
|
return true;
|
|
299
299
|
if (!(other instanceof CloseReason))
|
|
300
300
|
return false;
|
|
301
|
-
if (!(this.
|
|
301
|
+
if (!(this.l32_1 === other.l32_1))
|
|
302
302
|
return false;
|
|
303
|
-
if (!(this.
|
|
303
|
+
if (!(this.m32_1 === other.m32_1))
|
|
304
304
|
return false;
|
|
305
305
|
return true;
|
|
306
306
|
};
|
|
@@ -330,21 +330,21 @@ function DefaultWebSocketSession() {
|
|
|
330
330
|
function DefaultWebSocketSession_0(session, pingIntervalMillis, timeoutMillis, channelsConfig) {
|
|
331
331
|
pingIntervalMillis = pingIntervalMillis === VOID ? 0n : pingIntervalMillis;
|
|
332
332
|
timeoutMillis = timeoutMillis === VOID ? 15000n : timeoutMillis;
|
|
333
|
-
channelsConfig = channelsConfig === VOID ? Companion_getInstance_2().
|
|
333
|
+
channelsConfig = channelsConfig === VOID ? Companion_getInstance_2().u32_1 : channelsConfig;
|
|
334
334
|
_init_properties_DefaultWebSocketSession_kt__469s0y();
|
|
335
335
|
// Inline function 'kotlin.require' call
|
|
336
336
|
if (!!isInterface(session, DefaultWebSocketSession)) {
|
|
337
337
|
var message = 'Cannot wrap other DefaultWebSocketSession';
|
|
338
338
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
339
339
|
}
|
|
340
|
-
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.
|
|
340
|
+
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.v32_1, channelsConfig.w32_1);
|
|
341
341
|
}
|
|
342
342
|
function runIncomingProcessor($this, ponger) {
|
|
343
|
-
var tmp = get_IncomingProcessorCoroutineName().
|
|
343
|
+
var tmp = get_IncomingProcessorCoroutineName().hf(Dispatchers_getInstance().k12_1);
|
|
344
344
|
return launch($this, tmp, VOID, DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0($this, ponger, null));
|
|
345
345
|
}
|
|
346
346
|
function runOutgoingProcessor($this) {
|
|
347
|
-
var tmp = get_OutgoingProcessorCoroutineName().
|
|
347
|
+
var tmp = get_OutgoingProcessorCoroutineName().hf(Dispatchers_getInstance().k12_1);
|
|
348
348
|
var tmp_0 = CoroutineStart_UNDISPATCHED_getInstance();
|
|
349
349
|
return launch($this, tmp, tmp_0, DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0($this, null));
|
|
350
350
|
}
|
|
@@ -355,42 +355,39 @@ function outgoingProcessorLoop($this, $completion) {
|
|
|
355
355
|
return tmp.r8();
|
|
356
356
|
}
|
|
357
357
|
function sendCloseSequence($this, reason, exception, $completion) {
|
|
358
|
+
exception = exception === VOID ? null : exception;
|
|
358
359
|
var tmp = new $sendCloseSequenceCOROUTINE$($this, reason, exception, $completion);
|
|
359
360
|
tmp.l8_1 = Unit_instance;
|
|
360
361
|
tmp.m8_1 = null;
|
|
361
362
|
return tmp.r8();
|
|
362
363
|
}
|
|
363
|
-
function sendCloseSequence$default($this, reason, exception, $completion, $super) {
|
|
364
|
-
exception = exception === VOID ? null : exception;
|
|
365
|
-
return sendCloseSequence($this, reason, exception, $completion);
|
|
366
|
-
}
|
|
367
364
|
function tryClose($this) {
|
|
368
|
-
return $this.
|
|
365
|
+
return $this.b34_1.atomicfu$compareAndSet(false, true);
|
|
369
366
|
}
|
|
370
367
|
function runOrCancelPinger($this) {
|
|
371
|
-
var interval = $this.
|
|
368
|
+
var interval = $this.e34_1;
|
|
372
369
|
var tmp;
|
|
373
|
-
if ($this.
|
|
370
|
+
if ($this.b34_1.kotlinx$atomicfu$value) {
|
|
374
371
|
tmp = null;
|
|
375
372
|
} else if (interval > 0n) {
|
|
376
|
-
var tmp_0 = $this.
|
|
377
|
-
var tmp_1 = $this.
|
|
373
|
+
var tmp_0 = $this.u33_1.s32();
|
|
374
|
+
var tmp_1 = $this.f34_1;
|
|
378
375
|
tmp = pinger($this, tmp_0, interval, tmp_1, DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0($this, null));
|
|
379
376
|
} else {
|
|
380
377
|
tmp = null;
|
|
381
378
|
}
|
|
382
379
|
var newPinger = tmp;
|
|
383
|
-
var tmp0_safe_receiver = $this.
|
|
380
|
+
var tmp0_safe_receiver = $this.v33_1.atomicfu$getAndSet(newPinger);
|
|
384
381
|
if (tmp0_safe_receiver == null)
|
|
385
382
|
null;
|
|
386
383
|
else
|
|
387
|
-
tmp0_safe_receiver.
|
|
388
|
-
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.
|
|
384
|
+
tmp0_safe_receiver.a19();
|
|
385
|
+
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.t18(Companion_getInstance_0().h34_1));
|
|
389
386
|
if (tmp2_safe_receiver == null)
|
|
390
387
|
null;
|
|
391
388
|
else
|
|
392
|
-
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.
|
|
393
|
-
if ($this.
|
|
389
|
+
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.d17_1);
|
|
390
|
+
if ($this.b34_1.kotlinx$atomicfu$value && !(newPinger == null)) {
|
|
394
391
|
runOrCancelPinger($this);
|
|
395
392
|
}
|
|
396
393
|
}
|
|
@@ -403,28 +400,28 @@ function checkMaxFrameSize($this, packet, frame, $completion) {
|
|
|
403
400
|
function processIncomingExtensions($this, frame) {
|
|
404
401
|
// Inline function 'kotlin.collections.fold' call
|
|
405
402
|
var accumulator = frame;
|
|
406
|
-
var _iterator__ex2g4s = $this.
|
|
403
|
+
var _iterator__ex2g4s = $this.u34().t();
|
|
407
404
|
while (_iterator__ex2g4s.u()) {
|
|
408
405
|
var element = _iterator__ex2g4s.v();
|
|
409
406
|
var current = accumulator;
|
|
410
|
-
accumulator = element.
|
|
407
|
+
accumulator = element.v34(current);
|
|
411
408
|
}
|
|
412
409
|
return accumulator;
|
|
413
410
|
}
|
|
414
411
|
function processOutgoingExtensions($this, frame) {
|
|
415
412
|
// Inline function 'kotlin.collections.fold' call
|
|
416
413
|
var accumulator = frame;
|
|
417
|
-
var _iterator__ex2g4s = $this.
|
|
414
|
+
var _iterator__ex2g4s = $this.u34().t();
|
|
418
415
|
while (_iterator__ex2g4s.u()) {
|
|
419
416
|
var element = _iterator__ex2g4s.v();
|
|
420
417
|
var current = accumulator;
|
|
421
|
-
accumulator = element.
|
|
418
|
+
accumulator = element.w34(current);
|
|
422
419
|
}
|
|
423
420
|
return accumulator;
|
|
424
421
|
}
|
|
425
422
|
function Companion_0() {
|
|
426
423
|
Companion_instance_0 = this;
|
|
427
|
-
this.
|
|
424
|
+
this.h34_1 = new Pong(new Int8Array(0), NonDisposableHandle_instance);
|
|
428
425
|
}
|
|
429
426
|
var Companion_instance_0;
|
|
430
427
|
function Companion_getInstance_0() {
|
|
@@ -433,19 +430,19 @@ function Companion_getInstance_0() {
|
|
|
433
430
|
return Companion_instance_0;
|
|
434
431
|
}
|
|
435
432
|
function DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
433
|
+
this.f35_1 = $incomingJob;
|
|
434
|
+
this.g35_1 = $outgoingJob;
|
|
435
|
+
this.h35_1 = this$0;
|
|
439
436
|
CoroutineImpl.call(this, resultContinuation);
|
|
440
437
|
}
|
|
441
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
442
|
-
var tmp = this.
|
|
438
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).o1p = function ($this$launch, $completion) {
|
|
439
|
+
var tmp = this.p1p($this$launch, $completion);
|
|
443
440
|
tmp.l8_1 = Unit_instance;
|
|
444
441
|
tmp.m8_1 = null;
|
|
445
442
|
return tmp.r8();
|
|
446
443
|
};
|
|
447
444
|
protoOf(DefaultWebSocketSessionImpl$start$slambda).d9 = function (p1, $completion) {
|
|
448
|
-
return this.
|
|
445
|
+
return this.o1p((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
449
446
|
};
|
|
450
447
|
protoOf(DefaultWebSocketSessionImpl$start$slambda).r8 = function () {
|
|
451
448
|
var suspendResult = this.l8_1;
|
|
@@ -456,7 +453,7 @@ protoOf(DefaultWebSocketSessionImpl$start$slambda).r8 = function () {
|
|
|
456
453
|
case 0:
|
|
457
454
|
this.k8_1 = 3;
|
|
458
455
|
this.j8_1 = 1;
|
|
459
|
-
suspendResult = this.
|
|
456
|
+
suspendResult = this.f35_1.at(this);
|
|
460
457
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
461
458
|
return suspendResult;
|
|
462
459
|
}
|
|
@@ -464,14 +461,14 @@ protoOf(DefaultWebSocketSessionImpl$start$slambda).r8 = function () {
|
|
|
464
461
|
continue $sm;
|
|
465
462
|
case 1:
|
|
466
463
|
this.j8_1 = 2;
|
|
467
|
-
suspendResult = this.
|
|
464
|
+
suspendResult = this.g35_1.at(this);
|
|
468
465
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
469
466
|
return suspendResult;
|
|
470
467
|
}
|
|
471
468
|
|
|
472
469
|
continue $sm;
|
|
473
470
|
case 2:
|
|
474
|
-
this.
|
|
471
|
+
this.h35_1.x33_1.et();
|
|
475
472
|
return Unit_instance;
|
|
476
473
|
case 3:
|
|
477
474
|
throw this.m8_1;
|
|
@@ -487,32 +484,32 @@ protoOf(DefaultWebSocketSessionImpl$start$slambda).r8 = function () {
|
|
|
487
484
|
}
|
|
488
485
|
while (true);
|
|
489
486
|
};
|
|
490
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
491
|
-
var i = new DefaultWebSocketSessionImpl$start$slambda(this.
|
|
492
|
-
i.
|
|
487
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).p1p = function ($this$launch, completion) {
|
|
488
|
+
var i = new DefaultWebSocketSessionImpl$start$slambda(this.f35_1, this.g35_1, this.h35_1, completion);
|
|
489
|
+
i.i35_1 = $this$launch;
|
|
493
490
|
return i;
|
|
494
491
|
};
|
|
495
492
|
function DefaultWebSocketSessionImpl$start$slambda_0($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
496
493
|
var i = new DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation);
|
|
497
494
|
var l = function ($this$launch, $completion) {
|
|
498
|
-
return i.
|
|
495
|
+
return i.o1p($this$launch, $completion);
|
|
499
496
|
};
|
|
500
497
|
l.$arity = 1;
|
|
501
498
|
return l;
|
|
502
499
|
}
|
|
503
500
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation) {
|
|
504
|
-
this.
|
|
505
|
-
this.
|
|
501
|
+
this.r35_1 = this$0;
|
|
502
|
+
this.s35_1 = $ponger;
|
|
506
503
|
CoroutineImpl.call(this, resultContinuation);
|
|
507
504
|
}
|
|
508
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
509
|
-
var tmp = this.
|
|
505
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).o1p = function ($this$launch, $completion) {
|
|
506
|
+
var tmp = this.p1p($this$launch, $completion);
|
|
510
507
|
tmp.l8_1 = Unit_instance;
|
|
511
508
|
tmp.m8_1 = null;
|
|
512
509
|
return tmp.r8();
|
|
513
510
|
};
|
|
514
511
|
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function (p1, $completion) {
|
|
515
|
-
return this.
|
|
512
|
+
return this.o1p((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
516
513
|
};
|
|
517
514
|
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function () {
|
|
518
515
|
var suspendResult = this.l8_1;
|
|
@@ -522,10 +519,10 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
522
519
|
switch (tmp) {
|
|
523
520
|
case 0:
|
|
524
521
|
this.k8_1 = 39;
|
|
525
|
-
this.
|
|
526
|
-
this.
|
|
527
|
-
this.
|
|
528
|
-
this.
|
|
522
|
+
this.d36_1 = null;
|
|
523
|
+
this.w35_1 = null;
|
|
524
|
+
this.v35_1 = false;
|
|
525
|
+
this.x35_1 = Unit_instance;
|
|
529
526
|
this.j8_1 = 1;
|
|
530
527
|
continue $sm;
|
|
531
528
|
case 1:
|
|
@@ -534,12 +531,12 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
534
531
|
case 2:
|
|
535
532
|
this.k8_1 = 33;
|
|
536
533
|
this.k8_1 = 32;
|
|
537
|
-
this.
|
|
534
|
+
this.h36_1 = this.r35_1.u33_1.r32();
|
|
538
535
|
this.j8_1 = 3;
|
|
539
536
|
continue $sm;
|
|
540
537
|
case 3:
|
|
541
|
-
this.
|
|
542
|
-
this.
|
|
538
|
+
this.a36_1 = this.h36_1;
|
|
539
|
+
this.z35_1 = null;
|
|
543
540
|
this.j8_1 = 4;
|
|
544
541
|
continue $sm;
|
|
545
542
|
case 4:
|
|
@@ -551,12 +548,12 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
551
548
|
case 6:
|
|
552
549
|
this.k8_1 = 29;
|
|
553
550
|
this.k8_1 = 28;
|
|
554
|
-
this.
|
|
551
|
+
this.g36_1 = this.a36_1.t();
|
|
555
552
|
this.j8_1 = 7;
|
|
556
553
|
continue $sm;
|
|
557
554
|
case 7:
|
|
558
555
|
this.j8_1 = 8;
|
|
559
|
-
suspendResult = this.
|
|
556
|
+
suspendResult = this.g36_1.v16(this);
|
|
560
557
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
561
558
|
return suspendResult;
|
|
562
559
|
}
|
|
@@ -568,24 +565,24 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
568
565
|
continue $sm;
|
|
569
566
|
}
|
|
570
567
|
|
|
571
|
-
var e = this.
|
|
572
|
-
this.
|
|
568
|
+
var e = this.g36_1.v();
|
|
569
|
+
this.f36_1 = e;
|
|
573
570
|
this.j8_1 = 9;
|
|
574
571
|
continue $sm;
|
|
575
572
|
case 9:
|
|
576
|
-
this.
|
|
573
|
+
this.e36_1 = this.f36_1;
|
|
577
574
|
var this_0 = get_LOGGER();
|
|
578
575
|
if (get_isTraceEnabled(this_0)) {
|
|
579
|
-
this_0.
|
|
576
|
+
this_0.h2j('WebSocketSession(' + toString(this.t35_1) + ') receiving frame ' + this.e36_1.toString());
|
|
580
577
|
}
|
|
581
578
|
|
|
582
|
-
var tmp0_subject = this.
|
|
579
|
+
var tmp0_subject = this.e36_1;
|
|
583
580
|
if (tmp0_subject instanceof Close) {
|
|
584
|
-
if (!this.
|
|
581
|
+
if (!this.r35_1.s32().x16()) {
|
|
585
582
|
this.j8_1 = 18;
|
|
586
|
-
var tmp_0 = this.
|
|
587
|
-
var tmp1_elvis_lhs = readReason(this.
|
|
588
|
-
suspendResult = tmp_0.
|
|
583
|
+
var tmp_0 = this.r35_1.s32();
|
|
584
|
+
var tmp1_elvis_lhs = readReason(this.e36_1);
|
|
585
|
+
suspendResult = tmp_0.s18(Close_init_$Create$(tmp1_elvis_lhs == null ? get_NORMAL_CLOSE() : tmp1_elvis_lhs), this);
|
|
589
586
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
590
587
|
return suspendResult;
|
|
591
588
|
}
|
|
@@ -596,14 +593,14 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
596
593
|
}
|
|
597
594
|
} else {
|
|
598
595
|
if (tmp0_subject instanceof Pong) {
|
|
599
|
-
var tmp2_safe_receiver = this.
|
|
596
|
+
var tmp2_safe_receiver = this.r35_1.v33_1.kotlinx$atomicfu$value;
|
|
600
597
|
if (tmp2_safe_receiver == null) {
|
|
601
|
-
this.
|
|
598
|
+
this.c36_1 = null;
|
|
602
599
|
this.j8_1 = 17;
|
|
603
600
|
continue $sm;
|
|
604
601
|
} else {
|
|
605
602
|
this.j8_1 = 16;
|
|
606
|
-
suspendResult = tmp2_safe_receiver.
|
|
603
|
+
suspendResult = tmp2_safe_receiver.s18(this.e36_1, this);
|
|
607
604
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
608
605
|
return suspendResult;
|
|
609
606
|
}
|
|
@@ -612,14 +609,14 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
612
609
|
} else {
|
|
613
610
|
if (tmp0_subject instanceof Ping) {
|
|
614
611
|
this.j8_1 = 15;
|
|
615
|
-
suspendResult = this.
|
|
612
|
+
suspendResult = this.s35_1.s18(this.e36_1, this);
|
|
616
613
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
617
614
|
return suspendResult;
|
|
618
615
|
}
|
|
619
616
|
continue $sm;
|
|
620
617
|
} else {
|
|
621
618
|
this.j8_1 = 10;
|
|
622
|
-
suspendResult = checkMaxFrameSize(this.
|
|
619
|
+
suspendResult = checkMaxFrameSize(this.r35_1, this.w35_1, this.e36_1, this);
|
|
623
620
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
624
621
|
return suspendResult;
|
|
625
622
|
}
|
|
@@ -629,14 +626,14 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
629
626
|
}
|
|
630
627
|
|
|
631
628
|
case 10:
|
|
632
|
-
if (!this.
|
|
633
|
-
if (this.
|
|
634
|
-
this.
|
|
629
|
+
if (!this.e36_1.i36_1) {
|
|
630
|
+
if (this.d36_1 == null) {
|
|
631
|
+
this.d36_1 = this.e36_1;
|
|
635
632
|
}
|
|
636
|
-
if (this.
|
|
637
|
-
this.
|
|
633
|
+
if (this.w35_1 == null) {
|
|
634
|
+
this.w35_1 = BytePacketBuilder();
|
|
638
635
|
}
|
|
639
|
-
writeFully(this.
|
|
636
|
+
writeFully(this.w35_1, this.e36_1.k36_1);
|
|
640
637
|
this.j8_1 = 21;
|
|
641
638
|
continue $sm;
|
|
642
639
|
} else {
|
|
@@ -645,9 +642,9 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
645
642
|
}
|
|
646
643
|
|
|
647
644
|
case 11:
|
|
648
|
-
if (this.
|
|
645
|
+
if (this.d36_1 == null) {
|
|
649
646
|
this.j8_1 = 14;
|
|
650
|
-
suspendResult = this.
|
|
647
|
+
suspendResult = this.r35_1.z33_1.s18(processIncomingExtensions(this.r35_1, this.e36_1), this);
|
|
651
648
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
652
649
|
return suspendResult;
|
|
653
650
|
}
|
|
@@ -658,11 +655,11 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
658
655
|
}
|
|
659
656
|
|
|
660
657
|
case 12:
|
|
661
|
-
writeFully(ensureNotNull(this.
|
|
662
|
-
var defragmented = Companion_getInstance_5().
|
|
663
|
-
this.
|
|
658
|
+
writeFully(ensureNotNull(this.w35_1), this.e36_1.k36_1);
|
|
659
|
+
var defragmented = Companion_getInstance_5().q36(true, this.d36_1.j36_1, readByteArray(build(this.w35_1)), this.d36_1.m36_1, this.d36_1.n36_1, this.d36_1.o36_1);
|
|
660
|
+
this.d36_1 = null;
|
|
664
661
|
this.j8_1 = 13;
|
|
665
|
-
suspendResult = this.
|
|
662
|
+
suspendResult = this.r35_1.z33_1.s18(processIncomingExtensions(this.r35_1, defragmented), this);
|
|
666
663
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
667
664
|
return suspendResult;
|
|
668
665
|
}
|
|
@@ -670,7 +667,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
670
667
|
continue $sm;
|
|
671
668
|
case 13:
|
|
672
669
|
var tmp_1 = this;
|
|
673
|
-
tmp_1.
|
|
670
|
+
tmp_1.b36_1 = Unit_instance;
|
|
674
671
|
this.j8_1 = 20;
|
|
675
672
|
continue $sm;
|
|
676
673
|
case 14:
|
|
@@ -678,23 +675,23 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
678
675
|
continue $sm;
|
|
679
676
|
case 15:
|
|
680
677
|
var tmp_2 = this;
|
|
681
|
-
tmp_2.
|
|
678
|
+
tmp_2.b36_1 = Unit_instance;
|
|
682
679
|
this.j8_1 = 20;
|
|
683
680
|
continue $sm;
|
|
684
681
|
case 16:
|
|
685
682
|
var tmp_3 = this;
|
|
686
|
-
tmp_3.
|
|
683
|
+
tmp_3.c36_1 = Unit_instance;
|
|
687
684
|
this.j8_1 = 17;
|
|
688
685
|
continue $sm;
|
|
689
686
|
case 17:
|
|
690
|
-
this.
|
|
687
|
+
this.b36_1 = this.c36_1;
|
|
691
688
|
this.j8_1 = 20;
|
|
692
689
|
continue $sm;
|
|
693
690
|
case 18:
|
|
694
691
|
this.j8_1 = 19;
|
|
695
692
|
continue $sm;
|
|
696
693
|
case 19:
|
|
697
|
-
this.
|
|
694
|
+
this.v35_1 = true;
|
|
698
695
|
this.j8_1 = 22;
|
|
699
696
|
var tmp_4 = this;
|
|
700
697
|
continue $sm;
|
|
@@ -711,24 +708,24 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
711
708
|
continue $sm;
|
|
712
709
|
case 22:
|
|
713
710
|
this.k8_1 = 32;
|
|
714
|
-
cancelConsumed(this.
|
|
711
|
+
cancelConsumed(this.a36_1, this.z35_1);
|
|
715
712
|
this.k8_1 = 39;
|
|
716
713
|
this.j8_1 = 23;
|
|
717
714
|
continue $sm;
|
|
718
715
|
case 23:
|
|
719
716
|
this.k8_1 = 39;
|
|
720
|
-
this.
|
|
721
|
-
var tmp0_safe_receiver = this.
|
|
717
|
+
this.s35_1.a19();
|
|
718
|
+
var tmp0_safe_receiver = this.w35_1;
|
|
722
719
|
if (tmp0_safe_receiver == null)
|
|
723
720
|
null;
|
|
724
721
|
else {
|
|
725
722
|
tmp0_safe_receiver.j4();
|
|
726
723
|
}
|
|
727
724
|
|
|
728
|
-
this.
|
|
729
|
-
if (!this.
|
|
725
|
+
this.r35_1.z33_1.a19();
|
|
726
|
+
if (!this.v35_1) {
|
|
730
727
|
this.j8_1 = 24;
|
|
731
|
-
suspendResult = close(this.
|
|
728
|
+
suspendResult = close(this.r35_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
732
729
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
733
730
|
return suspendResult;
|
|
734
731
|
}
|
|
@@ -750,7 +747,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
750
747
|
continue $sm;
|
|
751
748
|
case 27:
|
|
752
749
|
this.k8_1 = 32;
|
|
753
|
-
cancelConsumed(this.
|
|
750
|
+
cancelConsumed(this.a36_1, this.z35_1);
|
|
754
751
|
this.j8_1 = 31;
|
|
755
752
|
continue $sm;
|
|
756
753
|
case 28:
|
|
@@ -759,7 +756,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
759
756
|
if (tmp_7 instanceof Error) {
|
|
760
757
|
var e_0 = this.m8_1;
|
|
761
758
|
var tmp_8 = this;
|
|
762
|
-
this.
|
|
759
|
+
this.z35_1 = e_0;
|
|
763
760
|
throw e_0;
|
|
764
761
|
} else {
|
|
765
762
|
throw this.m8_1;
|
|
@@ -768,11 +765,11 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
768
765
|
case 29:
|
|
769
766
|
this.k8_1 = 32;
|
|
770
767
|
var t = this.m8_1;
|
|
771
|
-
cancelConsumed(this.
|
|
768
|
+
cancelConsumed(this.a36_1, this.z35_1);
|
|
772
769
|
throw t;
|
|
773
770
|
case 30:
|
|
774
771
|
this.k8_1 = 32;
|
|
775
|
-
cancelConsumed(this.
|
|
772
|
+
cancelConsumed(this.a36_1, this.z35_1);
|
|
776
773
|
if (false) {
|
|
777
774
|
this.j8_1 = 3;
|
|
778
775
|
continue $sm;
|
|
@@ -781,7 +778,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
781
778
|
this.j8_1 = 31;
|
|
782
779
|
continue $sm;
|
|
783
780
|
case 31:
|
|
784
|
-
this.
|
|
781
|
+
this.x35_1 = Unit_instance;
|
|
785
782
|
this.k8_1 = 39;
|
|
786
783
|
this.j8_1 = 36;
|
|
787
784
|
continue $sm;
|
|
@@ -791,7 +788,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
791
788
|
if (tmp_9 instanceof ClosedSendChannelException) {
|
|
792
789
|
var _unused_var__etf5q3 = this.m8_1;
|
|
793
790
|
var tmp_10 = this;
|
|
794
|
-
tmp_10.
|
|
791
|
+
tmp_10.x35_1 = Unit_instance;
|
|
795
792
|
this.k8_1 = 39;
|
|
796
793
|
this.j8_1 = 36;
|
|
797
794
|
continue $sm;
|
|
@@ -800,8 +797,8 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
800
797
|
if (tmp_11 instanceof Error) {
|
|
801
798
|
var cause = this.m8_1;
|
|
802
799
|
var tmp_12 = this;
|
|
803
|
-
this.
|
|
804
|
-
tmp_12.
|
|
800
|
+
this.s35_1.a19();
|
|
801
|
+
tmp_12.x35_1 = this.r35_1.z33_1.y18(cause);
|
|
805
802
|
this.k8_1 = 39;
|
|
806
803
|
this.j8_1 = 36;
|
|
807
804
|
continue $sm;
|
|
@@ -812,19 +809,19 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
812
809
|
|
|
813
810
|
case 33:
|
|
814
811
|
this.k8_1 = 39;
|
|
815
|
-
this.
|
|
816
|
-
this.
|
|
817
|
-
var tmp0_safe_receiver_0 = this.
|
|
812
|
+
this.y35_1 = this.m8_1;
|
|
813
|
+
this.s35_1.a19();
|
|
814
|
+
var tmp0_safe_receiver_0 = this.w35_1;
|
|
818
815
|
if (tmp0_safe_receiver_0 == null)
|
|
819
816
|
null;
|
|
820
817
|
else {
|
|
821
818
|
tmp0_safe_receiver_0.j4();
|
|
822
819
|
}
|
|
823
820
|
|
|
824
|
-
this.
|
|
825
|
-
if (!this.
|
|
821
|
+
this.r35_1.z33_1.a19();
|
|
822
|
+
if (!this.v35_1) {
|
|
826
823
|
this.j8_1 = 34;
|
|
827
|
-
suspendResult = close(this.
|
|
824
|
+
suspendResult = close(this.r35_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
828
825
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
829
826
|
return suspendResult;
|
|
830
827
|
}
|
|
@@ -838,22 +835,22 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
838
835
|
this.j8_1 = 35;
|
|
839
836
|
continue $sm;
|
|
840
837
|
case 35:
|
|
841
|
-
throw this.
|
|
838
|
+
throw this.y35_1;
|
|
842
839
|
case 36:
|
|
843
|
-
this.
|
|
840
|
+
this.u35_1 = this.x35_1;
|
|
844
841
|
this.k8_1 = 39;
|
|
845
|
-
this.
|
|
846
|
-
var tmp0_safe_receiver_1 = this.
|
|
842
|
+
this.s35_1.a19();
|
|
843
|
+
var tmp0_safe_receiver_1 = this.w35_1;
|
|
847
844
|
if (tmp0_safe_receiver_1 == null)
|
|
848
845
|
null;
|
|
849
846
|
else {
|
|
850
847
|
tmp0_safe_receiver_1.j4();
|
|
851
848
|
}
|
|
852
849
|
|
|
853
|
-
this.
|
|
854
|
-
if (!this.
|
|
850
|
+
this.r35_1.z33_1.a19();
|
|
851
|
+
if (!this.v35_1) {
|
|
855
852
|
this.j8_1 = 37;
|
|
856
|
-
suspendResult = close(this.
|
|
853
|
+
suspendResult = close(this.r35_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
857
854
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
858
855
|
return suspendResult;
|
|
859
856
|
}
|
|
@@ -882,31 +879,31 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
882
879
|
}
|
|
883
880
|
while (true);
|
|
884
881
|
};
|
|
885
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
886
|
-
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.
|
|
887
|
-
i.
|
|
882
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).p1p = function ($this$launch, completion) {
|
|
883
|
+
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.r35_1, this.s35_1, completion);
|
|
884
|
+
i.t35_1 = $this$launch;
|
|
888
885
|
return i;
|
|
889
886
|
};
|
|
890
887
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0(this$0, $ponger, resultContinuation) {
|
|
891
888
|
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation);
|
|
892
889
|
var l = function ($this$launch, $completion) {
|
|
893
|
-
return i.
|
|
890
|
+
return i.o1p($this$launch, $completion);
|
|
894
891
|
};
|
|
895
892
|
l.$arity = 1;
|
|
896
893
|
return l;
|
|
897
894
|
}
|
|
898
895
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation) {
|
|
899
|
-
this.
|
|
896
|
+
this.z36_1 = this$0;
|
|
900
897
|
CoroutineImpl.call(this, resultContinuation);
|
|
901
898
|
}
|
|
902
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
903
|
-
var tmp = this.
|
|
899
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).o1p = function ($this$launch, $completion) {
|
|
900
|
+
var tmp = this.p1p($this$launch, $completion);
|
|
904
901
|
tmp.l8_1 = Unit_instance;
|
|
905
902
|
tmp.m8_1 = null;
|
|
906
903
|
return tmp.r8();
|
|
907
904
|
};
|
|
908
905
|
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).d9 = function (p1, $completion) {
|
|
909
|
-
return this.
|
|
906
|
+
return this.o1p((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
910
907
|
};
|
|
911
908
|
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).r8 = function () {
|
|
912
909
|
var suspendResult = this.l8_1;
|
|
@@ -925,7 +922,7 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).r8 = function
|
|
|
925
922
|
this.k8_1 = 9;
|
|
926
923
|
this.k8_1 = 4;
|
|
927
924
|
this.j8_1 = 3;
|
|
928
|
-
suspendResult = outgoingProcessorLoop(this.
|
|
925
|
+
suspendResult = outgoingProcessorLoop(this.z36_1, this);
|
|
929
926
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
930
927
|
return suspendResult;
|
|
931
928
|
}
|
|
@@ -955,7 +952,7 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).r8 = function
|
|
|
955
952
|
if (tmp_2 instanceof CancellationException) {
|
|
956
953
|
var _unused_var__etf5q3_1 = this.m8_1;
|
|
957
954
|
this.j8_1 = 5;
|
|
958
|
-
suspendResult = sendCloseSequence
|
|
955
|
+
suspendResult = sendCloseSequence(this.z36_1, CloseReason_init_$Create$(Codes_NORMAL_getInstance(), ''), VOID, this);
|
|
959
956
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
960
957
|
return suspendResult;
|
|
961
958
|
}
|
|
@@ -971,9 +968,9 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).r8 = function
|
|
|
971
968
|
var tmp_4 = this.m8_1;
|
|
972
969
|
if (tmp_4 instanceof Error) {
|
|
973
970
|
var cause = this.m8_1;
|
|
974
|
-
this.
|
|
971
|
+
this.z36_1.a34_1.dt(CancellationException_init_$Create$('Failed to send frame', cause));
|
|
975
972
|
this.j8_1 = 6;
|
|
976
|
-
suspendResult = closeExceptionally(this.
|
|
973
|
+
suspendResult = closeExceptionally(this.z36_1.u33_1, cause, this);
|
|
977
974
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
978
975
|
return suspendResult;
|
|
979
976
|
}
|
|
@@ -996,9 +993,9 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).r8 = function
|
|
|
996
993
|
continue $sm;
|
|
997
994
|
case 7:
|
|
998
995
|
this.k8_1 = 13;
|
|
999
|
-
this.
|
|
996
|
+
this.z36_1.a34_1.c19();
|
|
1000
997
|
this.j8_1 = 8;
|
|
1001
|
-
suspendResult = close(this.
|
|
998
|
+
suspendResult = close(this.z36_1.u33_1, VOID, this);
|
|
1002
999
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1003
1000
|
return suspendResult;
|
|
1004
1001
|
}
|
|
@@ -1008,22 +1005,22 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).r8 = function
|
|
|
1008
1005
|
return Unit_instance;
|
|
1009
1006
|
case 9:
|
|
1010
1007
|
this.k8_1 = 13;
|
|
1011
|
-
this.
|
|
1012
|
-
this.
|
|
1008
|
+
this.b37_1 = this.m8_1;
|
|
1009
|
+
this.z36_1.a34_1.c19();
|
|
1013
1010
|
this.j8_1 = 10;
|
|
1014
|
-
suspendResult = close(this.
|
|
1011
|
+
suspendResult = close(this.z36_1.u33_1, VOID, this);
|
|
1015
1012
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1016
1013
|
return suspendResult;
|
|
1017
1014
|
}
|
|
1018
1015
|
|
|
1019
1016
|
continue $sm;
|
|
1020
1017
|
case 10:
|
|
1021
|
-
throw this.
|
|
1018
|
+
throw this.b37_1;
|
|
1022
1019
|
case 11:
|
|
1023
1020
|
this.k8_1 = 13;
|
|
1024
|
-
this.
|
|
1021
|
+
this.z36_1.a34_1.c19();
|
|
1025
1022
|
this.j8_1 = 12;
|
|
1026
|
-
suspendResult = close(this.
|
|
1023
|
+
suspendResult = close(this.z36_1.u33_1, VOID, this);
|
|
1027
1024
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1028
1025
|
return suspendResult;
|
|
1029
1026
|
}
|
|
@@ -1045,31 +1042,31 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).r8 = function
|
|
|
1045
1042
|
}
|
|
1046
1043
|
while (true);
|
|
1047
1044
|
};
|
|
1048
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
1049
|
-
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.
|
|
1050
|
-
i.
|
|
1045
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).p1p = function ($this$launch, completion) {
|
|
1046
|
+
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.z36_1, completion);
|
|
1047
|
+
i.a37_1 = $this$launch;
|
|
1051
1048
|
return i;
|
|
1052
1049
|
};
|
|
1053
1050
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0(this$0, resultContinuation) {
|
|
1054
1051
|
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation);
|
|
1055
1052
|
var l = function ($this$launch, $completion) {
|
|
1056
|
-
return i.
|
|
1053
|
+
return i.o1p($this$launch, $completion);
|
|
1057
1054
|
};
|
|
1058
1055
|
l.$arity = 1;
|
|
1059
1056
|
return l;
|
|
1060
1057
|
}
|
|
1061
1058
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation) {
|
|
1062
|
-
this.
|
|
1059
|
+
this.k37_1 = this$0;
|
|
1063
1060
|
CoroutineImpl.call(this, resultContinuation);
|
|
1064
1061
|
}
|
|
1065
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1066
|
-
var tmp = this.
|
|
1062
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).m37 = function (it, $completion) {
|
|
1063
|
+
var tmp = this.n37(it, $completion);
|
|
1067
1064
|
tmp.l8_1 = Unit_instance;
|
|
1068
1065
|
tmp.m8_1 = null;
|
|
1069
1066
|
return tmp.r8();
|
|
1070
1067
|
};
|
|
1071
1068
|
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).d9 = function (p1, $completion) {
|
|
1072
|
-
return this.
|
|
1069
|
+
return this.m37(p1 instanceof CloseReason ? p1 : THROW_CCE(), $completion);
|
|
1073
1070
|
};
|
|
1074
1071
|
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).r8 = function () {
|
|
1075
1072
|
var suspendResult = this.l8_1;
|
|
@@ -1080,7 +1077,7 @@ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).r8 = function ()
|
|
|
1080
1077
|
case 0:
|
|
1081
1078
|
this.k8_1 = 2;
|
|
1082
1079
|
this.j8_1 = 1;
|
|
1083
|
-
suspendResult = sendCloseSequence(this.
|
|
1080
|
+
suspendResult = sendCloseSequence(this.k37_1, this.l37_1, IOException_init_$Create$('Ping timeout'), this);
|
|
1084
1081
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1085
1082
|
return suspendResult;
|
|
1086
1083
|
}
|
|
@@ -1102,22 +1099,22 @@ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).r8 = function ()
|
|
|
1102
1099
|
}
|
|
1103
1100
|
while (true);
|
|
1104
1101
|
};
|
|
1105
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1106
|
-
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.
|
|
1107
|
-
i.
|
|
1102
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).n37 = function (it, completion) {
|
|
1103
|
+
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.k37_1, completion);
|
|
1104
|
+
i.l37_1 = it;
|
|
1108
1105
|
return i;
|
|
1109
1106
|
};
|
|
1110
1107
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0(this$0, resultContinuation) {
|
|
1111
1108
|
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation);
|
|
1112
1109
|
var l = function (it, $completion) {
|
|
1113
|
-
return i.
|
|
1110
|
+
return i.m37(it, $completion);
|
|
1114
1111
|
};
|
|
1115
1112
|
l.$arity = 1;
|
|
1116
1113
|
return l;
|
|
1117
1114
|
}
|
|
1118
1115
|
function $outgoingProcessorLoopCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1119
1116
|
CoroutineImpl.call(this, resultContinuation);
|
|
1120
|
-
this.
|
|
1117
|
+
this.f33_1 = _this__u8e3s4;
|
|
1121
1118
|
}
|
|
1122
1119
|
protoOf($outgoingProcessorLoopCOROUTINE$).r8 = function () {
|
|
1123
1120
|
var suspendResult = this.l8_1;
|
|
@@ -1127,12 +1124,12 @@ protoOf($outgoingProcessorLoopCOROUTINE$).r8 = function () {
|
|
|
1127
1124
|
switch (tmp) {
|
|
1128
1125
|
case 0:
|
|
1129
1126
|
this.k8_1 = 7;
|
|
1130
|
-
this.
|
|
1127
|
+
this.h33_1 = this.f33_1.a34_1.t();
|
|
1131
1128
|
this.j8_1 = 1;
|
|
1132
1129
|
continue $sm;
|
|
1133
1130
|
case 1:
|
|
1134
1131
|
this.j8_1 = 2;
|
|
1135
|
-
suspendResult = this.
|
|
1132
|
+
suspendResult = this.h33_1.v16(this);
|
|
1136
1133
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1137
1134
|
return suspendResult;
|
|
1138
1135
|
}
|
|
@@ -1144,15 +1141,15 @@ protoOf($outgoingProcessorLoopCOROUTINE$).r8 = function () {
|
|
|
1144
1141
|
continue $sm;
|
|
1145
1142
|
}
|
|
1146
1143
|
|
|
1147
|
-
var frame = this.
|
|
1144
|
+
var frame = this.h33_1.v();
|
|
1148
1145
|
var this_0 = get_LOGGER();
|
|
1149
1146
|
if (get_isTraceEnabled(this_0)) {
|
|
1150
|
-
this_0.
|
|
1147
|
+
this_0.h2j('Sending ' + frame.toString() + ' from session ' + toString(this.f33_1));
|
|
1151
1148
|
}
|
|
1152
1149
|
|
|
1153
1150
|
if (frame instanceof Close) {
|
|
1154
1151
|
this.j8_1 = 3;
|
|
1155
|
-
suspendResult = sendCloseSequence
|
|
1152
|
+
suspendResult = sendCloseSequence(this.f33_1, readReason(frame), VOID, this);
|
|
1156
1153
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1157
1154
|
return suspendResult;
|
|
1158
1155
|
}
|
|
@@ -1165,11 +1162,11 @@ protoOf($outgoingProcessorLoopCOROUTINE$).r8 = function () {
|
|
|
1165
1162
|
tmp_0 = frame instanceof Binary;
|
|
1166
1163
|
}
|
|
1167
1164
|
if (tmp_0) {
|
|
1168
|
-
this.
|
|
1165
|
+
this.g33_1 = processOutgoingExtensions(this.f33_1, frame);
|
|
1169
1166
|
this.j8_1 = 4;
|
|
1170
1167
|
continue $sm;
|
|
1171
1168
|
} else {
|
|
1172
|
-
this.
|
|
1169
|
+
this.g33_1 = frame;
|
|
1173
1170
|
this.j8_1 = 4;
|
|
1174
1171
|
continue $sm;
|
|
1175
1172
|
}
|
|
@@ -1180,9 +1177,9 @@ protoOf($outgoingProcessorLoopCOROUTINE$).r8 = function () {
|
|
|
1180
1177
|
var tmp_1 = this;
|
|
1181
1178
|
continue $sm;
|
|
1182
1179
|
case 4:
|
|
1183
|
-
var processedFrame = this.
|
|
1180
|
+
var processedFrame = this.g33_1;
|
|
1184
1181
|
this.j8_1 = 5;
|
|
1185
|
-
suspendResult = this.
|
|
1182
|
+
suspendResult = this.f33_1.u33_1.s32().s18(processedFrame, this);
|
|
1186
1183
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1187
1184
|
return suspendResult;
|
|
1188
1185
|
}
|
|
@@ -1209,9 +1206,9 @@ protoOf($outgoingProcessorLoopCOROUTINE$).r8 = function () {
|
|
|
1209
1206
|
};
|
|
1210
1207
|
function $sendCloseSequenceCOROUTINE$(_this__u8e3s4, reason, exception, resultContinuation) {
|
|
1211
1208
|
CoroutineImpl.call(this, resultContinuation);
|
|
1212
|
-
this.
|
|
1213
|
-
this.
|
|
1214
|
-
this.
|
|
1209
|
+
this.q33_1 = _this__u8e3s4;
|
|
1210
|
+
this.r33_1 = reason;
|
|
1211
|
+
this.s33_1 = exception;
|
|
1215
1212
|
}
|
|
1216
1213
|
protoOf($sendCloseSequenceCOROUTINE$).r8 = function () {
|
|
1217
1214
|
var suspendResult = this.l8_1;
|
|
@@ -1221,25 +1218,25 @@ protoOf($sendCloseSequenceCOROUTINE$).r8 = function () {
|
|
|
1221
1218
|
switch (tmp) {
|
|
1222
1219
|
case 0:
|
|
1223
1220
|
this.k8_1 = 6;
|
|
1224
|
-
if (!tryClose(this.
|
|
1221
|
+
if (!tryClose(this.q33_1))
|
|
1225
1222
|
return Unit_instance;
|
|
1226
1223
|
var this_0 = get_LOGGER();
|
|
1227
1224
|
if (get_isTraceEnabled(this_0)) {
|
|
1228
|
-
this_0.
|
|
1225
|
+
this_0.h2j('Sending Close Sequence for session ' + toString(this.q33_1) + ' with reason ' + toString_0(this.r33_1) + ' and exception ' + toString_0(this.s33_1));
|
|
1229
1226
|
}
|
|
1230
1227
|
|
|
1231
|
-
this.
|
|
1228
|
+
this.q33_1.x33_1.my();
|
|
1232
1229
|
var tmp_0 = this;
|
|
1233
|
-
var tmp0_elvis_lhs = this.
|
|
1234
|
-
tmp_0.
|
|
1230
|
+
var tmp0_elvis_lhs = this.r33_1;
|
|
1231
|
+
tmp_0.t33_1 = tmp0_elvis_lhs == null ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : tmp0_elvis_lhs;
|
|
1235
1232
|
this.j8_1 = 1;
|
|
1236
1233
|
continue $sm;
|
|
1237
1234
|
case 1:
|
|
1238
1235
|
this.k8_1 = 5;
|
|
1239
|
-
runOrCancelPinger(this.
|
|
1240
|
-
if (!(this.
|
|
1236
|
+
runOrCancelPinger(this.q33_1);
|
|
1237
|
+
if (!(this.t33_1.l32_1 === Codes_CLOSED_ABNORMALLY_getInstance().h32_1)) {
|
|
1241
1238
|
this.j8_1 = 2;
|
|
1242
|
-
suspendResult = this.
|
|
1239
|
+
suspendResult = this.q33_1.u33_1.s32().s18(Close_init_$Create$(this.t33_1), this);
|
|
1243
1240
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1244
1241
|
return suspendResult;
|
|
1245
1242
|
}
|
|
@@ -1258,20 +1255,20 @@ protoOf($sendCloseSequenceCOROUTINE$).r8 = function () {
|
|
|
1258
1255
|
continue $sm;
|
|
1259
1256
|
case 4:
|
|
1260
1257
|
this.k8_1 = 6;
|
|
1261
|
-
this.
|
|
1262
|
-
if (!(this.
|
|
1263
|
-
this.
|
|
1264
|
-
this.
|
|
1258
|
+
this.q33_1.w33_1.ky(this.t33_1);
|
|
1259
|
+
if (!(this.s33_1 == null)) {
|
|
1260
|
+
this.q33_1.a34_1.y18(this.s33_1);
|
|
1261
|
+
this.q33_1.z33_1.y18(this.s33_1);
|
|
1265
1262
|
}
|
|
1266
1263
|
|
|
1267
1264
|
return Unit_instance;
|
|
1268
1265
|
case 5:
|
|
1269
1266
|
this.k8_1 = 6;
|
|
1270
1267
|
var t = this.m8_1;
|
|
1271
|
-
this.
|
|
1272
|
-
if (!(this.
|
|
1273
|
-
this.
|
|
1274
|
-
this.
|
|
1268
|
+
this.q33_1.w33_1.ky(this.t33_1);
|
|
1269
|
+
if (!(this.s33_1 == null)) {
|
|
1270
|
+
this.q33_1.a34_1.y18(this.s33_1);
|
|
1271
|
+
this.q33_1.z33_1.y18(this.s33_1);
|
|
1275
1272
|
}
|
|
1276
1273
|
|
|
1277
1274
|
throw t;
|
|
@@ -1291,9 +1288,9 @@ protoOf($sendCloseSequenceCOROUTINE$).r8 = function () {
|
|
|
1291
1288
|
};
|
|
1292
1289
|
function $checkMaxFrameSizeCOROUTINE$(_this__u8e3s4, packet, frame, resultContinuation) {
|
|
1293
1290
|
CoroutineImpl.call(this, resultContinuation);
|
|
1294
|
-
this.
|
|
1295
|
-
this.
|
|
1296
|
-
this.
|
|
1291
|
+
this.q34_1 = _this__u8e3s4;
|
|
1292
|
+
this.r34_1 = packet;
|
|
1293
|
+
this.s34_1 = frame;
|
|
1297
1294
|
}
|
|
1298
1295
|
protoOf($checkMaxFrameSizeCOROUTINE$).r8 = function () {
|
|
1299
1296
|
var suspendResult = this.l8_1;
|
|
@@ -1304,19 +1301,19 @@ protoOf($checkMaxFrameSizeCOROUTINE$).r8 = function () {
|
|
|
1304
1301
|
case 0:
|
|
1305
1302
|
this.k8_1 = 3;
|
|
1306
1303
|
var tmp_0 = this;
|
|
1307
|
-
var tmp_1 = this.
|
|
1308
|
-
var tmp0_safe_receiver = this.
|
|
1304
|
+
var tmp_1 = this.s34_1.k36_1.length;
|
|
1305
|
+
var tmp0_safe_receiver = this.r34_1;
|
|
1309
1306
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_size(tmp0_safe_receiver);
|
|
1310
|
-
tmp_0.
|
|
1311
|
-
if (fromInt(this.
|
|
1312
|
-
var tmp2_safe_receiver = this.
|
|
1307
|
+
tmp_0.t34_1 = tmp_1 + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
1308
|
+
if (fromInt(this.t34_1) > this.q34_1.q32()) {
|
|
1309
|
+
var tmp2_safe_receiver = this.r34_1;
|
|
1313
1310
|
if (tmp2_safe_receiver == null)
|
|
1314
1311
|
null;
|
|
1315
1312
|
else {
|
|
1316
1313
|
tmp2_safe_receiver.j4();
|
|
1317
1314
|
}
|
|
1318
1315
|
this.j8_1 = 2;
|
|
1319
|
-
suspendResult = close(this.
|
|
1316
|
+
suspendResult = close(this.q34_1, CloseReason_init_$Create$(Codes_TOO_BIG_getInstance(), 'Frame is too big: ' + this.t34_1 + '. Max size is ' + this.q34_1.q32().toString()), this);
|
|
1320
1317
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1321
1318
|
return suspendResult;
|
|
1322
1319
|
}
|
|
@@ -1329,7 +1326,7 @@ protoOf($checkMaxFrameSizeCOROUTINE$).r8 = function () {
|
|
|
1329
1326
|
case 1:
|
|
1330
1327
|
return Unit_instance;
|
|
1331
1328
|
case 2:
|
|
1332
|
-
throw new FrameTooBigException(fromInt(this.
|
|
1329
|
+
throw new FrameTooBigException(fromInt(this.t34_1));
|
|
1333
1330
|
case 3:
|
|
1334
1331
|
throw this.m8_1;
|
|
1335
1332
|
}
|
|
@@ -1346,42 +1343,42 @@ protoOf($checkMaxFrameSizeCOROUTINE$).r8 = function () {
|
|
|
1346
1343
|
};
|
|
1347
1344
|
function DefaultWebSocketSessionImpl(raw, pingIntervalMillis, timeoutMillis, incomingFramesConfig, outgoingFramesConfig) {
|
|
1348
1345
|
Companion_getInstance_0();
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1353
|
-
this.
|
|
1354
|
-
this.
|
|
1355
|
-
this.
|
|
1356
|
-
this.
|
|
1346
|
+
this.u33_1 = raw;
|
|
1347
|
+
this.v33_1 = atomic$ref$1(null);
|
|
1348
|
+
this.w33_1 = CompletableDeferred();
|
|
1349
|
+
this.x33_1 = Job();
|
|
1350
|
+
this.y33_1 = this.u33_1.ur().ff(Key_instance).hf(this.x33_1).hf(new CoroutineName('ws-default'));
|
|
1351
|
+
this.z33_1 = from(Factory_getInstance(), incomingFramesConfig);
|
|
1352
|
+
this.a34_1 = from(Factory_getInstance(), outgoingFramesConfig);
|
|
1353
|
+
this.b34_1 = atomic$boolean$1(false);
|
|
1357
1354
|
var tmp = this;
|
|
1358
1355
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1359
|
-
tmp.
|
|
1360
|
-
this.
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1363
|
-
this.
|
|
1356
|
+
tmp.c34_1 = ArrayList_init_$Create$();
|
|
1357
|
+
this.d34_1 = atomic$boolean$1(false);
|
|
1358
|
+
this.e34_1 = pingIntervalMillis;
|
|
1359
|
+
this.f34_1 = timeoutMillis;
|
|
1360
|
+
this.g34_1 = this.w33_1;
|
|
1364
1361
|
}
|
|
1365
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1366
|
-
return this.
|
|
1362
|
+
protoOf(DefaultWebSocketSessionImpl).ur = function () {
|
|
1363
|
+
return this.y33_1;
|
|
1367
1364
|
};
|
|
1368
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1369
|
-
return this.
|
|
1365
|
+
protoOf(DefaultWebSocketSessionImpl).r32 = function () {
|
|
1366
|
+
return this.z33_1;
|
|
1370
1367
|
};
|
|
1371
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1372
|
-
return this.
|
|
1368
|
+
protoOf(DefaultWebSocketSessionImpl).s32 = function () {
|
|
1369
|
+
return this.a34_1;
|
|
1373
1370
|
};
|
|
1374
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1375
|
-
return this.
|
|
1371
|
+
protoOf(DefaultWebSocketSessionImpl).u34 = function () {
|
|
1372
|
+
return this.c34_1;
|
|
1376
1373
|
};
|
|
1377
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1378
|
-
this.
|
|
1374
|
+
protoOf(DefaultWebSocketSessionImpl).p32 = function (value) {
|
|
1375
|
+
this.u33_1.p32(value);
|
|
1379
1376
|
};
|
|
1380
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1381
|
-
return this.
|
|
1377
|
+
protoOf(DefaultWebSocketSessionImpl).q32 = function () {
|
|
1378
|
+
return this.u33_1.q32();
|
|
1382
1379
|
};
|
|
1383
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1384
|
-
if (!this.
|
|
1380
|
+
protoOf(DefaultWebSocketSessionImpl).o32 = function (negotiatedExtensions) {
|
|
1381
|
+
if (!this.d34_1.atomicfu$compareAndSet(false, true)) {
|
|
1385
1382
|
// Inline function 'kotlin.error' call
|
|
1386
1383
|
var message = 'WebSocket session ' + toString(this) + ' is already started.';
|
|
1387
1384
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -1389,17 +1386,17 @@ protoOf(DefaultWebSocketSessionImpl).c32 = function (negotiatedExtensions) {
|
|
|
1389
1386
|
// Inline function 'io.ktor.util.logging.trace' call
|
|
1390
1387
|
var this_0 = get_LOGGER();
|
|
1391
1388
|
if (get_isTraceEnabled(this_0)) {
|
|
1392
|
-
var tmp$ret$
|
|
1393
|
-
this_0.
|
|
1389
|
+
var tmp$ret$2 = 'Starting default WebSocketSession(' + toString(this) + ') ' + ('with negotiated extensions: ' + joinToString(negotiatedExtensions));
|
|
1390
|
+
this_0.h2j(tmp$ret$2);
|
|
1394
1391
|
}
|
|
1395
|
-
this.
|
|
1392
|
+
this.c34_1.j1(negotiatedExtensions);
|
|
1396
1393
|
runOrCancelPinger(this);
|
|
1397
|
-
var incomingJob = runIncomingProcessor(this, ponger(this, this.
|
|
1394
|
+
var incomingJob = runIncomingProcessor(this, ponger(this, this.s32()));
|
|
1398
1395
|
var outgoingJob = runOutgoingProcessor(this);
|
|
1399
1396
|
launch(this, VOID, VOID, DefaultWebSocketSessionImpl$start$slambda_0(incomingJob, outgoingJob, this, null));
|
|
1400
1397
|
};
|
|
1401
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1402
|
-
return this.
|
|
1398
|
+
protoOf(DefaultWebSocketSessionImpl).i1g = function ($completion) {
|
|
1399
|
+
return this.u33_1.i1g($completion);
|
|
1403
1400
|
};
|
|
1404
1401
|
var properties_initialized_DefaultWebSocketSession_kt_6cjlhc;
|
|
1405
1402
|
function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
@@ -1421,20 +1418,20 @@ function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
|
1421
1418
|
}
|
|
1422
1419
|
}
|
|
1423
1420
|
function readReason(_this__u8e3s4) {
|
|
1424
|
-
if (_this__u8e3s4.
|
|
1421
|
+
if (_this__u8e3s4.k36_1.length < 2) {
|
|
1425
1422
|
return null;
|
|
1426
1423
|
}
|
|
1427
1424
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1428
1425
|
var builder = new Buffer();
|
|
1429
|
-
writeFully(builder, _this__u8e3s4.
|
|
1426
|
+
writeFully(builder, _this__u8e3s4.k36_1);
|
|
1430
1427
|
var packet = builder;
|
|
1431
|
-
var code = packet.
|
|
1428
|
+
var code = packet.wo();
|
|
1432
1429
|
var message = readText(packet);
|
|
1433
1430
|
return new CloseReason(code, message);
|
|
1434
1431
|
}
|
|
1435
1432
|
function NonDisposableHandle() {
|
|
1436
1433
|
}
|
|
1437
|
-
protoOf(NonDisposableHandle).
|
|
1434
|
+
protoOf(NonDisposableHandle).fv = function () {
|
|
1438
1435
|
return Unit_instance;
|
|
1439
1436
|
};
|
|
1440
1437
|
protoOf(NonDisposableHandle).toString = function () {
|
|
@@ -1457,15 +1454,15 @@ function NonDisposableHandle_getInstance() {
|
|
|
1457
1454
|
function FrameTooBigException(frameSize) {
|
|
1458
1455
|
Exception_init_$Init$(this);
|
|
1459
1456
|
captureStack(this, FrameTooBigException);
|
|
1460
|
-
this.
|
|
1457
|
+
this.o37_1 = frameSize;
|
|
1461
1458
|
delete this.message;
|
|
1462
1459
|
}
|
|
1463
1460
|
protoOf(FrameTooBigException).e = function () {
|
|
1464
|
-
return 'Frame is too big: ' + this.
|
|
1461
|
+
return 'Frame is too big: ' + this.o37_1.toString();
|
|
1465
1462
|
};
|
|
1466
|
-
protoOf(FrameTooBigException).
|
|
1463
|
+
protoOf(FrameTooBigException).vy = function () {
|
|
1467
1464
|
// Inline function 'kotlin.also' call
|
|
1468
|
-
var this_0 = new FrameTooBigException(this.
|
|
1465
|
+
var this_0 = new FrameTooBigException(this.o37_1);
|
|
1469
1466
|
initCauseBridge(this_0, this);
|
|
1470
1467
|
return this_0;
|
|
1471
1468
|
};
|
|
@@ -1491,10 +1488,10 @@ function Companion_1() {
|
|
|
1491
1488
|
tmp$ret$0 = maxElem;
|
|
1492
1489
|
break $l$block_0;
|
|
1493
1490
|
}
|
|
1494
|
-
var maxValue = maxElem.
|
|
1491
|
+
var maxValue = maxElem.s37_1;
|
|
1495
1492
|
do {
|
|
1496
1493
|
var e = iterator.v();
|
|
1497
|
-
var v = e.
|
|
1494
|
+
var v = e.s37_1;
|
|
1498
1495
|
if (compareTo(maxValue, v) < 0) {
|
|
1499
1496
|
maxElem = e;
|
|
1500
1497
|
maxValue = v;
|
|
@@ -1503,10 +1500,10 @@ function Companion_1() {
|
|
|
1503
1500
|
while (iterator.u());
|
|
1504
1501
|
tmp$ret$0 = maxElem;
|
|
1505
1502
|
}
|
|
1506
|
-
tmp.
|
|
1503
|
+
tmp.t37_1 = ensureNotNull(tmp$ret$0).s37_1;
|
|
1507
1504
|
var tmp_0 = this;
|
|
1508
1505
|
var tmp_1 = 0;
|
|
1509
|
-
var tmp_2 = this.
|
|
1506
|
+
var tmp_2 = this.t37_1 + 1 | 0;
|
|
1510
1507
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1511
1508
|
var tmp_3 = Array(tmp_2);
|
|
1512
1509
|
while (tmp_1 < tmp_2) {
|
|
@@ -1520,7 +1517,7 @@ function Companion_1() {
|
|
|
1520
1517
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
1521
1518
|
while (_iterator__ex2g4s.u()) {
|
|
1522
1519
|
var element = _iterator__ex2g4s.v();
|
|
1523
|
-
if (element.
|
|
1520
|
+
if (element.s37_1 === tmp_4) {
|
|
1524
1521
|
if (found) {
|
|
1525
1522
|
tmp$ret$5 = null;
|
|
1526
1523
|
break $l$block_2;
|
|
@@ -1538,7 +1535,7 @@ function Companion_1() {
|
|
|
1538
1535
|
tmp_3[tmp_4] = tmp$ret$5;
|
|
1539
1536
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1540
1537
|
}
|
|
1541
|
-
tmp_0.
|
|
1538
|
+
tmp_0.u37_1 = tmp_3;
|
|
1542
1539
|
}
|
|
1543
1540
|
var Companion_instance_1;
|
|
1544
1541
|
function Companion_getInstance_1() {
|
|
@@ -1570,8 +1567,8 @@ function FrameType_initEntries() {
|
|
|
1570
1567
|
var $ENTRIES_0;
|
|
1571
1568
|
function FrameType(name, ordinal, controlFrame, opcode) {
|
|
1572
1569
|
Enum.call(this, name, ordinal);
|
|
1573
|
-
this.
|
|
1574
|
-
this.
|
|
1570
|
+
this.r37_1 = controlFrame;
|
|
1571
|
+
this.s37_1 = opcode;
|
|
1575
1572
|
}
|
|
1576
1573
|
function FrameType_TEXT_getInstance() {
|
|
1577
1574
|
FrameType_initEntries();
|
|
@@ -1614,25 +1611,25 @@ function pinger(_this__u8e3s4, outgoing, periodMillis, timeoutMillis, onTimeout)
|
|
|
1614
1611
|
_init_properties_PingPong_kt__9aqxey();
|
|
1615
1612
|
var actorJob = Job();
|
|
1616
1613
|
var channel = Channel(2147483647);
|
|
1617
|
-
var tmp = actorJob.
|
|
1614
|
+
var tmp = actorJob.hf(get_PingerCoroutineName());
|
|
1618
1615
|
launch(_this__u8e3s4, tmp, VOID, pinger$slambda_0(periodMillis, timeoutMillis, onTimeout, channel, outgoing, null));
|
|
1619
|
-
var tmp_0 = ensureNotNull(_this__u8e3s4.
|
|
1620
|
-
tmp_0.
|
|
1616
|
+
var tmp_0 = ensureNotNull(_this__u8e3s4.ur().w8(Key_instance));
|
|
1617
|
+
tmp_0.ws(pinger$lambda(actorJob));
|
|
1621
1618
|
return channel;
|
|
1622
1619
|
}
|
|
1623
1620
|
function ponger$slambda($channel, $outgoing, resultContinuation) {
|
|
1624
|
-
this.
|
|
1625
|
-
this.
|
|
1621
|
+
this.d38_1 = $channel;
|
|
1622
|
+
this.e38_1 = $outgoing;
|
|
1626
1623
|
CoroutineImpl.call(this, resultContinuation);
|
|
1627
1624
|
}
|
|
1628
|
-
protoOf(ponger$slambda).
|
|
1629
|
-
var tmp = this.
|
|
1625
|
+
protoOf(ponger$slambda).o1p = function ($this$launch, $completion) {
|
|
1626
|
+
var tmp = this.p1p($this$launch, $completion);
|
|
1630
1627
|
tmp.l8_1 = Unit_instance;
|
|
1631
1628
|
tmp.m8_1 = null;
|
|
1632
1629
|
return tmp.r8();
|
|
1633
1630
|
};
|
|
1634
1631
|
protoOf(ponger$slambda).d9 = function (p1, $completion) {
|
|
1635
|
-
return this.
|
|
1632
|
+
return this.o1p((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1636
1633
|
};
|
|
1637
1634
|
protoOf(ponger$slambda).r8 = function () {
|
|
1638
1635
|
var suspendResult = this.l8_1;
|
|
@@ -1643,12 +1640,12 @@ protoOf(ponger$slambda).r8 = function () {
|
|
|
1643
1640
|
case 0:
|
|
1644
1641
|
this.k8_1 = 14;
|
|
1645
1642
|
this.k8_1 = 13;
|
|
1646
|
-
this.
|
|
1643
|
+
this.j38_1 = this.d38_1;
|
|
1647
1644
|
this.j8_1 = 1;
|
|
1648
1645
|
continue $sm;
|
|
1649
1646
|
case 1:
|
|
1650
|
-
this.
|
|
1651
|
-
this.
|
|
1647
|
+
this.h38_1 = this.j38_1;
|
|
1648
|
+
this.g38_1 = null;
|
|
1652
1649
|
this.j8_1 = 2;
|
|
1653
1650
|
continue $sm;
|
|
1654
1651
|
case 2:
|
|
@@ -1657,12 +1654,12 @@ protoOf(ponger$slambda).r8 = function () {
|
|
|
1657
1654
|
case 3:
|
|
1658
1655
|
this.k8_1 = 10;
|
|
1659
1656
|
this.k8_1 = 9;
|
|
1660
|
-
this.
|
|
1657
|
+
this.i38_1 = this.h38_1.t();
|
|
1661
1658
|
this.j8_1 = 4;
|
|
1662
1659
|
continue $sm;
|
|
1663
1660
|
case 4:
|
|
1664
1661
|
this.j8_1 = 5;
|
|
1665
|
-
suspendResult = this.
|
|
1662
|
+
suspendResult = this.i38_1.v16(this);
|
|
1666
1663
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1667
1664
|
return suspendResult;
|
|
1668
1665
|
}
|
|
@@ -1674,10 +1671,10 @@ protoOf(ponger$slambda).r8 = function () {
|
|
|
1674
1671
|
continue $sm;
|
|
1675
1672
|
}
|
|
1676
1673
|
|
|
1677
|
-
var e = this.
|
|
1678
|
-
get_LOGGER().
|
|
1674
|
+
var e = this.i38_1.v();
|
|
1675
|
+
get_LOGGER().h2j('Received ping message, sending pong message');
|
|
1679
1676
|
this.j8_1 = 6;
|
|
1680
|
-
suspendResult = this.
|
|
1677
|
+
suspendResult = this.e38_1.s18(new Pong(e.k36_1), this);
|
|
1681
1678
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1682
1679
|
return suspendResult;
|
|
1683
1680
|
}
|
|
@@ -1692,7 +1689,7 @@ protoOf(ponger$slambda).r8 = function () {
|
|
|
1692
1689
|
continue $sm;
|
|
1693
1690
|
case 8:
|
|
1694
1691
|
this.k8_1 = 13;
|
|
1695
|
-
cancelConsumed(this.
|
|
1692
|
+
cancelConsumed(this.h38_1, this.g38_1);
|
|
1696
1693
|
this.j8_1 = 12;
|
|
1697
1694
|
continue $sm;
|
|
1698
1695
|
case 9:
|
|
@@ -1701,7 +1698,7 @@ protoOf(ponger$slambda).r8 = function () {
|
|
|
1701
1698
|
if (tmp_1 instanceof Error) {
|
|
1702
1699
|
var e_0 = this.m8_1;
|
|
1703
1700
|
var tmp_2 = this;
|
|
1704
|
-
this.
|
|
1701
|
+
this.g38_1 = e_0;
|
|
1705
1702
|
throw e_0;
|
|
1706
1703
|
} else {
|
|
1707
1704
|
throw this.m8_1;
|
|
@@ -1710,11 +1707,11 @@ protoOf(ponger$slambda).r8 = function () {
|
|
|
1710
1707
|
case 10:
|
|
1711
1708
|
this.k8_1 = 13;
|
|
1712
1709
|
var t = this.m8_1;
|
|
1713
|
-
cancelConsumed(this.
|
|
1710
|
+
cancelConsumed(this.h38_1, this.g38_1);
|
|
1714
1711
|
throw t;
|
|
1715
1712
|
case 11:
|
|
1716
1713
|
this.k8_1 = 13;
|
|
1717
|
-
cancelConsumed(this.
|
|
1714
|
+
cancelConsumed(this.h38_1, this.g38_1);
|
|
1718
1715
|
if (false) {
|
|
1719
1716
|
this.j8_1 = 1;
|
|
1720
1717
|
continue $sm;
|
|
@@ -1754,31 +1751,31 @@ protoOf(ponger$slambda).r8 = function () {
|
|
|
1754
1751
|
}
|
|
1755
1752
|
while (true);
|
|
1756
1753
|
};
|
|
1757
|
-
protoOf(ponger$slambda).
|
|
1758
|
-
var i = new ponger$slambda(this.
|
|
1759
|
-
i.
|
|
1754
|
+
protoOf(ponger$slambda).p1p = function ($this$launch, completion) {
|
|
1755
|
+
var i = new ponger$slambda(this.d38_1, this.e38_1, completion);
|
|
1756
|
+
i.f38_1 = $this$launch;
|
|
1760
1757
|
return i;
|
|
1761
1758
|
};
|
|
1762
1759
|
function ponger$slambda_0($channel, $outgoing, resultContinuation) {
|
|
1763
1760
|
var i = new ponger$slambda($channel, $outgoing, resultContinuation);
|
|
1764
1761
|
var l = function ($this$launch, $completion) {
|
|
1765
|
-
return i.
|
|
1762
|
+
return i.o1p($this$launch, $completion);
|
|
1766
1763
|
};
|
|
1767
1764
|
l.$arity = 1;
|
|
1768
1765
|
return l;
|
|
1769
1766
|
}
|
|
1770
1767
|
function pinger$slambda$slambda($channel, resultContinuation) {
|
|
1771
|
-
this.
|
|
1768
|
+
this.s38_1 = $channel;
|
|
1772
1769
|
CoroutineImpl.call(this, resultContinuation);
|
|
1773
1770
|
}
|
|
1774
|
-
protoOf(pinger$slambda$slambda).
|
|
1775
|
-
var tmp = this.
|
|
1771
|
+
protoOf(pinger$slambda$slambda).o1p = function ($this$withTimeoutOrNull, $completion) {
|
|
1772
|
+
var tmp = this.p1p($this$withTimeoutOrNull, $completion);
|
|
1776
1773
|
tmp.l8_1 = Unit_instance;
|
|
1777
1774
|
tmp.m8_1 = null;
|
|
1778
1775
|
return tmp.r8();
|
|
1779
1776
|
};
|
|
1780
1777
|
protoOf(pinger$slambda$slambda).d9 = function (p1, $completion) {
|
|
1781
|
-
return this.
|
|
1778
|
+
return this.o1p((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1782
1779
|
};
|
|
1783
1780
|
protoOf(pinger$slambda$slambda).r8 = function () {
|
|
1784
1781
|
var suspendResult = this.l8_1;
|
|
@@ -1797,7 +1794,7 @@ protoOf(pinger$slambda$slambda).r8 = function () {
|
|
|
1797
1794
|
}
|
|
1798
1795
|
|
|
1799
1796
|
this.j8_1 = 2;
|
|
1800
|
-
suspendResult = this.
|
|
1797
|
+
suspendResult = this.s38_1.w18(this);
|
|
1801
1798
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1802
1799
|
return suspendResult;
|
|
1803
1800
|
}
|
|
@@ -1822,33 +1819,33 @@ protoOf(pinger$slambda$slambda).r8 = function () {
|
|
|
1822
1819
|
}
|
|
1823
1820
|
while (true);
|
|
1824
1821
|
};
|
|
1825
|
-
protoOf(pinger$slambda$slambda).
|
|
1826
|
-
var i = new pinger$slambda$slambda(this.
|
|
1827
|
-
i.
|
|
1822
|
+
protoOf(pinger$slambda$slambda).p1p = function ($this$withTimeoutOrNull, completion) {
|
|
1823
|
+
var i = new pinger$slambda$slambda(this.s38_1, completion);
|
|
1824
|
+
i.t38_1 = $this$withTimeoutOrNull;
|
|
1828
1825
|
return i;
|
|
1829
1826
|
};
|
|
1830
1827
|
function pinger$slambda$slambda_0($channel, resultContinuation) {
|
|
1831
1828
|
var i = new pinger$slambda$slambda($channel, resultContinuation);
|
|
1832
1829
|
var l = function ($this$withTimeoutOrNull, $completion) {
|
|
1833
|
-
return i.
|
|
1830
|
+
return i.o1p($this$withTimeoutOrNull, $completion);
|
|
1834
1831
|
};
|
|
1835
1832
|
l.$arity = 1;
|
|
1836
1833
|
return l;
|
|
1837
1834
|
}
|
|
1838
1835
|
function pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1839
|
-
this.
|
|
1840
|
-
this.
|
|
1841
|
-
this.
|
|
1836
|
+
this.c39_1 = $outgoing;
|
|
1837
|
+
this.d39_1 = $pingMessage;
|
|
1838
|
+
this.e39_1 = $channel;
|
|
1842
1839
|
CoroutineImpl.call(this, resultContinuation);
|
|
1843
1840
|
}
|
|
1844
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1845
|
-
var tmp = this.
|
|
1841
|
+
protoOf(pinger$slambda$slambda_1).o1p = function ($this$withTimeoutOrNull, $completion) {
|
|
1842
|
+
var tmp = this.p1p($this$withTimeoutOrNull, $completion);
|
|
1846
1843
|
tmp.l8_1 = Unit_instance;
|
|
1847
1844
|
tmp.m8_1 = null;
|
|
1848
1845
|
return tmp.r8();
|
|
1849
1846
|
};
|
|
1850
1847
|
protoOf(pinger$slambda$slambda_1).d9 = function (p1, $completion) {
|
|
1851
|
-
return this.
|
|
1848
|
+
return this.o1p((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1852
1849
|
};
|
|
1853
1850
|
protoOf(pinger$slambda$slambda_1).r8 = function () {
|
|
1854
1851
|
var suspendResult = this.l8_1;
|
|
@@ -1858,9 +1855,9 @@ protoOf(pinger$slambda$slambda_1).r8 = function () {
|
|
|
1858
1855
|
switch (tmp) {
|
|
1859
1856
|
case 0:
|
|
1860
1857
|
this.k8_1 = 6;
|
|
1861
|
-
get_LOGGER().
|
|
1858
|
+
get_LOGGER().h2j('WebSocket Pinger: sending ping frame');
|
|
1862
1859
|
this.j8_1 = 1;
|
|
1863
|
-
suspendResult = this.
|
|
1860
|
+
suspendResult = this.c39_1.s18(new Ping(toByteArray(this.d39_1, Charsets_getInstance().p1q_1)), this);
|
|
1864
1861
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1865
1862
|
return suspendResult;
|
|
1866
1863
|
}
|
|
@@ -1876,16 +1873,16 @@ protoOf(pinger$slambda$slambda_1).r8 = function () {
|
|
|
1876
1873
|
}
|
|
1877
1874
|
|
|
1878
1875
|
this.j8_1 = 3;
|
|
1879
|
-
suspendResult = this.
|
|
1876
|
+
suspendResult = this.e39_1.w18(this);
|
|
1880
1877
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1881
1878
|
return suspendResult;
|
|
1882
1879
|
}
|
|
1883
1880
|
|
|
1884
1881
|
continue $sm;
|
|
1885
1882
|
case 3:
|
|
1886
|
-
this.
|
|
1887
|
-
if (decodeToString(this.
|
|
1888
|
-
get_LOGGER().
|
|
1883
|
+
this.g39_1 = suspendResult;
|
|
1884
|
+
if (decodeToString(this.g39_1.k36_1, 0, 0 + this.g39_1.k36_1.length | 0) === this.d39_1) {
|
|
1885
|
+
get_LOGGER().h2j('WebSocket Pinger: received valid pong frame ' + this.g39_1.toString());
|
|
1889
1886
|
this.j8_1 = 5;
|
|
1890
1887
|
continue $sm;
|
|
1891
1888
|
} else {
|
|
@@ -1894,7 +1891,7 @@ protoOf(pinger$slambda$slambda_1).r8 = function () {
|
|
|
1894
1891
|
}
|
|
1895
1892
|
|
|
1896
1893
|
case 4:
|
|
1897
|
-
get_LOGGER().
|
|
1894
|
+
get_LOGGER().h2j('WebSocket Pinger: received invalid pong frame ' + this.g39_1.toString() + ', continue waiting');
|
|
1898
1895
|
this.j8_1 = 2;
|
|
1899
1896
|
continue $sm;
|
|
1900
1897
|
case 5:
|
|
@@ -1913,35 +1910,35 @@ protoOf(pinger$slambda$slambda_1).r8 = function () {
|
|
|
1913
1910
|
}
|
|
1914
1911
|
while (true);
|
|
1915
1912
|
};
|
|
1916
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1917
|
-
var i = new pinger$slambda$slambda_1(this.
|
|
1918
|
-
i.
|
|
1913
|
+
protoOf(pinger$slambda$slambda_1).p1p = function ($this$withTimeoutOrNull, completion) {
|
|
1914
|
+
var i = new pinger$slambda$slambda_1(this.c39_1, this.d39_1, this.e39_1, completion);
|
|
1915
|
+
i.f39_1 = $this$withTimeoutOrNull;
|
|
1919
1916
|
return i;
|
|
1920
1917
|
};
|
|
1921
1918
|
function pinger$slambda$slambda_2($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1922
1919
|
var i = new pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation);
|
|
1923
1920
|
var l = function ($this$withTimeoutOrNull, $completion) {
|
|
1924
|
-
return i.
|
|
1921
|
+
return i.o1p($this$withTimeoutOrNull, $completion);
|
|
1925
1922
|
};
|
|
1926
1923
|
l.$arity = 1;
|
|
1927
1924
|
return l;
|
|
1928
1925
|
}
|
|
1929
1926
|
function pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
1930
|
-
this.
|
|
1931
|
-
this.
|
|
1932
|
-
this.
|
|
1933
|
-
this.
|
|
1934
|
-
this.
|
|
1927
|
+
this.p39_1 = $periodMillis;
|
|
1928
|
+
this.q39_1 = $timeoutMillis;
|
|
1929
|
+
this.r39_1 = $onTimeout;
|
|
1930
|
+
this.s39_1 = $channel;
|
|
1931
|
+
this.t39_1 = $outgoing;
|
|
1935
1932
|
CoroutineImpl.call(this, resultContinuation);
|
|
1936
1933
|
}
|
|
1937
|
-
protoOf(pinger$slambda).
|
|
1938
|
-
var tmp = this.
|
|
1934
|
+
protoOf(pinger$slambda).o1p = function ($this$launch, $completion) {
|
|
1935
|
+
var tmp = this.p1p($this$launch, $completion);
|
|
1939
1936
|
tmp.l8_1 = Unit_instance;
|
|
1940
1937
|
tmp.m8_1 = null;
|
|
1941
1938
|
return tmp.r8();
|
|
1942
1939
|
};
|
|
1943
1940
|
protoOf(pinger$slambda).d9 = function (p1, $completion) {
|
|
1944
|
-
return this.
|
|
1941
|
+
return this.o1p((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1945
1942
|
};
|
|
1946
1943
|
protoOf(pinger$slambda).r8 = function () {
|
|
1947
1944
|
var suspendResult = this.l8_1;
|
|
@@ -1951,9 +1948,9 @@ protoOf(pinger$slambda).r8 = function () {
|
|
|
1951
1948
|
switch (tmp) {
|
|
1952
1949
|
case 0:
|
|
1953
1950
|
this.k8_1 = 9;
|
|
1954
|
-
get_LOGGER().
|
|
1955
|
-
this.
|
|
1956
|
-
this.
|
|
1951
|
+
get_LOGGER().h2j('Starting WebSocket pinger coroutine with period ' + this.p39_1.toString() + ' ms and timeout ' + this.q39_1.toString() + ' ms');
|
|
1952
|
+
this.w39_1 = Random(getTimeMillis());
|
|
1953
|
+
this.v39_1 = new Int8Array(32);
|
|
1957
1954
|
this.k8_1 = 7;
|
|
1958
1955
|
this.j8_1 = 1;
|
|
1959
1956
|
continue $sm;
|
|
@@ -1964,17 +1961,17 @@ protoOf(pinger$slambda).r8 = function () {
|
|
|
1964
1961
|
}
|
|
1965
1962
|
|
|
1966
1963
|
this.j8_1 = 2;
|
|
1967
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1964
|
+
suspendResult = withTimeoutOrNull(this.p39_1, pinger$slambda$slambda_0(this.s39_1, null), this);
|
|
1968
1965
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1969
1966
|
return suspendResult;
|
|
1970
1967
|
}
|
|
1971
1968
|
|
|
1972
1969
|
continue $sm;
|
|
1973
1970
|
case 2:
|
|
1974
|
-
this.
|
|
1975
|
-
var pingMessage = '[ping ' + hex(this.
|
|
1971
|
+
this.w39_1.dh(this.v39_1);
|
|
1972
|
+
var pingMessage = '[ping ' + hex(this.v39_1) + ' ping]';
|
|
1976
1973
|
this.j8_1 = 3;
|
|
1977
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1974
|
+
suspendResult = withTimeoutOrNull(this.q39_1, pinger$slambda$slambda_2(this.t39_1, pingMessage, this.s39_1, null), this);
|
|
1978
1975
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1979
1976
|
return suspendResult;
|
|
1980
1977
|
}
|
|
@@ -1983,9 +1980,9 @@ protoOf(pinger$slambda).r8 = function () {
|
|
|
1983
1980
|
case 3:
|
|
1984
1981
|
var rc = suspendResult;
|
|
1985
1982
|
if (rc == null) {
|
|
1986
|
-
get_LOGGER().
|
|
1983
|
+
get_LOGGER().h2j('WebSocket pinger has timed out');
|
|
1987
1984
|
this.j8_1 = 5;
|
|
1988
|
-
suspendResult = this.
|
|
1985
|
+
suspendResult = this.r39_1(CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), 'Ping timeout'), this);
|
|
1989
1986
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1990
1987
|
return suspendResult;
|
|
1991
1988
|
}
|
|
@@ -2054,22 +2051,22 @@ protoOf(pinger$slambda).r8 = function () {
|
|
|
2054
2051
|
}
|
|
2055
2052
|
while (true);
|
|
2056
2053
|
};
|
|
2057
|
-
protoOf(pinger$slambda).
|
|
2058
|
-
var i = new pinger$slambda(this.
|
|
2059
|
-
i.
|
|
2054
|
+
protoOf(pinger$slambda).p1p = function ($this$launch, completion) {
|
|
2055
|
+
var i = new pinger$slambda(this.p39_1, this.q39_1, this.r39_1, this.s39_1, this.t39_1, completion);
|
|
2056
|
+
i.u39_1 = $this$launch;
|
|
2060
2057
|
return i;
|
|
2061
2058
|
};
|
|
2062
2059
|
function pinger$slambda_0($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
2063
2060
|
var i = new pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation);
|
|
2064
2061
|
var l = function ($this$launch, $completion) {
|
|
2065
|
-
return i.
|
|
2062
|
+
return i.o1p($this$launch, $completion);
|
|
2066
2063
|
};
|
|
2067
2064
|
l.$arity = 1;
|
|
2068
2065
|
return l;
|
|
2069
2066
|
}
|
|
2070
2067
|
function pinger$lambda($actorJob) {
|
|
2071
2068
|
return function (it) {
|
|
2072
|
-
$actorJob.
|
|
2069
|
+
$actorJob.et();
|
|
2073
2070
|
return Unit_instance;
|
|
2074
2071
|
};
|
|
2075
2072
|
}
|
|
@@ -2086,9 +2083,9 @@ function Companion_2() {
|
|
|
2086
2083
|
var tmp = this;
|
|
2087
2084
|
// Inline function 'kotlin.apply' call
|
|
2088
2085
|
var this_0 = new WebSocketChannelsConfig();
|
|
2089
|
-
this_0.
|
|
2090
|
-
this_0.
|
|
2091
|
-
tmp.
|
|
2086
|
+
this_0.v32_1 = this_0.x39();
|
|
2087
|
+
this_0.w32_1 = this_0.x39();
|
|
2088
|
+
tmp.u32_1 = this_0;
|
|
2092
2089
|
}
|
|
2093
2090
|
var Companion_instance_2;
|
|
2094
2091
|
function Companion_getInstance_2() {
|
|
@@ -2098,22 +2095,23 @@ function Companion_getInstance_2() {
|
|
|
2098
2095
|
}
|
|
2099
2096
|
function WebSocketChannelsConfig() {
|
|
2100
2097
|
Companion_getInstance_2();
|
|
2101
|
-
this.
|
|
2102
|
-
this.
|
|
2098
|
+
this.v32_1 = Companion_getInstance_3().y39_1;
|
|
2099
|
+
this.w32_1 = Companion_getInstance_3().y39_1;
|
|
2103
2100
|
}
|
|
2104
|
-
protoOf(WebSocketChannelsConfig).
|
|
2105
|
-
return Companion_getInstance_3().
|
|
2101
|
+
protoOf(WebSocketChannelsConfig).x39 = function () {
|
|
2102
|
+
return Companion_getInstance_3().y39_1;
|
|
2106
2103
|
};
|
|
2107
2104
|
function from(_this__u8e3s4, config) {
|
|
2108
2105
|
// Inline function 'kotlin.with' call
|
|
2109
2106
|
var tmp;
|
|
2110
|
-
if (config.
|
|
2107
|
+
if (config.z39_1 === 2147483647) {
|
|
2111
2108
|
tmp = Channel(2147483647);
|
|
2112
|
-
} else if (config.
|
|
2113
|
-
tmp = Channel(config.
|
|
2114
|
-
} else if (config.
|
|
2115
|
-
tmp = new BoundedChannel(config.
|
|
2109
|
+
} else if (config.a3a_1.equals(ChannelOverflow_SUSPEND_getInstance())) {
|
|
2110
|
+
tmp = Channel(config.z39_1, BufferOverflow_SUSPEND_getInstance());
|
|
2111
|
+
} else if (config.a3a_1.equals(ChannelOverflow_CLOSE_getInstance())) {
|
|
2112
|
+
tmp = new BoundedChannel(config.z39_1);
|
|
2116
2113
|
} else {
|
|
2114
|
+
// Inline function 'kotlin.error' call
|
|
2117
2115
|
var message = 'Unsupported channel config.';
|
|
2118
2116
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2119
2117
|
}
|
|
@@ -2121,7 +2119,7 @@ function from(_this__u8e3s4, config) {
|
|
|
2121
2119
|
}
|
|
2122
2120
|
function Companion_3() {
|
|
2123
2121
|
Companion_instance_3 = this;
|
|
2124
|
-
this.
|
|
2122
|
+
this.y39_1 = new ChannelConfig(2147483647, ChannelOverflow_SUSPEND_getInstance());
|
|
2125
2123
|
}
|
|
2126
2124
|
var Companion_instance_3;
|
|
2127
2125
|
function Companion_getInstance_3() {
|
|
@@ -2131,11 +2129,11 @@ function Companion_getInstance_3() {
|
|
|
2131
2129
|
}
|
|
2132
2130
|
function ChannelConfig(capacity, onOverflow) {
|
|
2133
2131
|
Companion_getInstance_3();
|
|
2134
|
-
this.
|
|
2135
|
-
this.
|
|
2132
|
+
this.z39_1 = capacity;
|
|
2133
|
+
this.a3a_1 = onOverflow;
|
|
2136
2134
|
}
|
|
2137
|
-
protoOf(ChannelConfig).
|
|
2138
|
-
return this.
|
|
2135
|
+
protoOf(ChannelConfig).b3a = function () {
|
|
2136
|
+
return this.a3a_1.equals(ChannelOverflow_SUSPEND_getInstance()) && !(this.z39_1 === 2147483647);
|
|
2139
2137
|
};
|
|
2140
2138
|
var ChannelOverflow_SUSPEND_instance;
|
|
2141
2139
|
var ChannelOverflow_CLOSE_instance;
|
|
@@ -2159,14 +2157,14 @@ function BoundedChannel$Companion$createDelegate$lambda($channel) {
|
|
|
2159
2157
|
} else {
|
|
2160
2158
|
tmp_0 = $channel._v;
|
|
2161
2159
|
}
|
|
2162
|
-
if (!tmp_0.
|
|
2160
|
+
if (!tmp_0.x16()) {
|
|
2163
2161
|
var tmp_1;
|
|
2164
2162
|
if ($channel._v == null) {
|
|
2165
2163
|
throwUninitializedPropertyAccessException('channel');
|
|
2166
2164
|
} else {
|
|
2167
2165
|
tmp_1 = $channel._v;
|
|
2168
2166
|
}
|
|
2169
|
-
tmp_1.
|
|
2167
|
+
tmp_1.y18(new ChannelOverflowException('Channel overflowed'));
|
|
2170
2168
|
tmp = Unit_instance;
|
|
2171
2169
|
}
|
|
2172
2170
|
return Unit_instance;
|
|
@@ -2174,7 +2172,7 @@ function BoundedChannel$Companion$createDelegate$lambda($channel) {
|
|
|
2174
2172
|
}
|
|
2175
2173
|
function Companion_4() {
|
|
2176
2174
|
}
|
|
2177
|
-
protoOf(Companion_4).
|
|
2175
|
+
protoOf(Companion_4).c3a = function (capacity) {
|
|
2178
2176
|
var channel = {_v: null};
|
|
2179
2177
|
var tmp = BufferOverflow_DROP_OLDEST_getInstance();
|
|
2180
2178
|
// Inline function 'kotlin.also' call
|
|
@@ -2187,42 +2185,42 @@ function Companion_getInstance_4() {
|
|
|
2187
2185
|
return Companion_instance_4;
|
|
2188
2186
|
}
|
|
2189
2187
|
function BoundedChannel(capacity, delegate) {
|
|
2190
|
-
delegate = delegate === VOID ? Companion_instance_4.
|
|
2191
|
-
this.
|
|
2188
|
+
delegate = delegate === VOID ? Companion_instance_4.c3a(capacity) : delegate;
|
|
2189
|
+
this.d3a_1 = delegate;
|
|
2192
2190
|
}
|
|
2193
|
-
protoOf(BoundedChannel).
|
|
2194
|
-
var result = this.
|
|
2191
|
+
protoOf(BoundedChannel).e3a = function (element) {
|
|
2192
|
+
var result = this.d3a_1.t18(element);
|
|
2195
2193
|
if (!_ChannelResult___get_isSuccess__impl__odq1z9(result) && !_ChannelResult___get_isClosed__impl__mg7kuu(result)) {
|
|
2196
|
-
this.
|
|
2194
|
+
this.y18(new ChannelOverflowException('Channel overflowed'));
|
|
2197
2195
|
}
|
|
2198
2196
|
return result;
|
|
2199
2197
|
};
|
|
2200
|
-
protoOf(BoundedChannel).
|
|
2201
|
-
return this.
|
|
2198
|
+
protoOf(BoundedChannel).t18 = function (element) {
|
|
2199
|
+
return this.e3a(element);
|
|
2202
2200
|
};
|
|
2203
|
-
protoOf(BoundedChannel).
|
|
2204
|
-
return this.
|
|
2201
|
+
protoOf(BoundedChannel).f3a = function (element, $completion) {
|
|
2202
|
+
return this.d3a_1.s18(element, $completion);
|
|
2205
2203
|
};
|
|
2206
|
-
protoOf(BoundedChannel).
|
|
2207
|
-
return this.
|
|
2204
|
+
protoOf(BoundedChannel).s18 = function (element, $completion) {
|
|
2205
|
+
return this.f3a(element, $completion);
|
|
2208
2206
|
};
|
|
2209
|
-
protoOf(BoundedChannel).
|
|
2210
|
-
return this.
|
|
2207
|
+
protoOf(BoundedChannel).y18 = function (cause) {
|
|
2208
|
+
return this.d3a_1.y18(cause);
|
|
2211
2209
|
};
|
|
2212
|
-
protoOf(BoundedChannel).
|
|
2213
|
-
return this.
|
|
2210
|
+
protoOf(BoundedChannel).x16 = function () {
|
|
2211
|
+
return this.d3a_1.x16();
|
|
2214
2212
|
};
|
|
2215
|
-
protoOf(BoundedChannel).
|
|
2216
|
-
return this.
|
|
2213
|
+
protoOf(BoundedChannel).g3a = function ($completion) {
|
|
2214
|
+
return this.d3a_1.w18($completion);
|
|
2217
2215
|
};
|
|
2218
|
-
protoOf(BoundedChannel).
|
|
2219
|
-
return this.
|
|
2216
|
+
protoOf(BoundedChannel).w18 = function ($completion) {
|
|
2217
|
+
return this.g3a($completion);
|
|
2220
2218
|
};
|
|
2221
2219
|
protoOf(BoundedChannel).t = function () {
|
|
2222
|
-
return this.
|
|
2220
|
+
return this.d3a_1.t();
|
|
2223
2221
|
};
|
|
2224
|
-
protoOf(BoundedChannel).
|
|
2225
|
-
this.
|
|
2222
|
+
protoOf(BoundedChannel).dt = function (cause) {
|
|
2223
|
+
this.d3a_1.dt(cause);
|
|
2226
2224
|
};
|
|
2227
2225
|
function ChannelOverflowException(message) {
|
|
2228
2226
|
RuntimeException_init_$Init$(message, this);
|
|
@@ -2241,35 +2239,35 @@ function WebSocketExtension() {
|
|
|
2241
2239
|
function WebSocketExtensionsConfig() {
|
|
2242
2240
|
var tmp = this;
|
|
2243
2241
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2244
|
-
tmp.
|
|
2242
|
+
tmp.j3a_1 = ArrayList_init_$Create$();
|
|
2245
2243
|
var tmp_0 = this;
|
|
2246
2244
|
// Inline function 'kotlin.arrayOf' call
|
|
2247
2245
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2248
2246
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2249
|
-
tmp_0.
|
|
2247
|
+
tmp_0.k3a_1 = [false, false, false];
|
|
2250
2248
|
}
|
|
2251
|
-
protoOf(WebSocketExtensionsConfig).
|
|
2249
|
+
protoOf(WebSocketExtensionsConfig).y2l = function () {
|
|
2252
2250
|
// Inline function 'kotlin.collections.map' call
|
|
2253
|
-
var this_0 = this.
|
|
2251
|
+
var this_0 = this.j3a_1;
|
|
2254
2252
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2255
2253
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2256
2254
|
var _iterator__ex2g4s = this_0.t();
|
|
2257
2255
|
while (_iterator__ex2g4s.u()) {
|
|
2258
2256
|
var item = _iterator__ex2g4s.v();
|
|
2259
|
-
var tmp$ret$
|
|
2260
|
-
destination.e1(tmp$ret$
|
|
2257
|
+
var tmp$ret$2 = item();
|
|
2258
|
+
destination.e1(tmp$ret$2);
|
|
2261
2259
|
}
|
|
2262
2260
|
return destination;
|
|
2263
2261
|
};
|
|
2264
2262
|
function parametersToString($this) {
|
|
2265
|
-
return $this.
|
|
2263
|
+
return $this.m3a_1.r() ? '' : '; ' + joinToString($this.m3a_1, ';');
|
|
2266
2264
|
}
|
|
2267
2265
|
function WebSocketExtensionHeader(name, parameters) {
|
|
2268
|
-
this.
|
|
2269
|
-
this.
|
|
2266
|
+
this.l3a_1 = name;
|
|
2267
|
+
this.m3a_1 = parameters;
|
|
2270
2268
|
}
|
|
2271
2269
|
protoOf(WebSocketExtensionHeader).toString = function () {
|
|
2272
|
-
return this.
|
|
2270
|
+
return this.l3a_1 + ' ' + parametersToString(this);
|
|
2273
2271
|
};
|
|
2274
2272
|
function parseWebSocketExtensions(value) {
|
|
2275
2273
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2291,12 +2289,12 @@ function parseWebSocketExtensions(value) {
|
|
|
2291
2289
|
while (_iterator__ex2g4s_0.u()) {
|
|
2292
2290
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
2293
2291
|
// Inline function 'kotlin.text.trim' call
|
|
2294
|
-
var tmp$ret$
|
|
2295
|
-
destination_0.e1(tmp$ret$
|
|
2292
|
+
var tmp$ret$6 = toString(trim(isCharSequence(item_0) ? item_0 : THROW_CCE()));
|
|
2293
|
+
destination_0.e1(tmp$ret$6);
|
|
2296
2294
|
}
|
|
2297
2295
|
var parameters = destination_0;
|
|
2298
|
-
var tmp$ret$
|
|
2299
|
-
destination.e1(tmp$ret$
|
|
2296
|
+
var tmp$ret$2 = new WebSocketExtensionHeader(name, parameters);
|
|
2297
|
+
destination.e1(tmp$ret$2);
|
|
2300
2298
|
}
|
|
2301
2299
|
return destination;
|
|
2302
2300
|
}
|
|
@@ -2321,8 +2319,8 @@ function closeExceptionally(_this__u8e3s4, cause, $completion) {
|
|
|
2321
2319
|
}
|
|
2322
2320
|
function $closeCOROUTINE$(_this__u8e3s4, reason, resultContinuation) {
|
|
2323
2321
|
CoroutineImpl.call(this, resultContinuation);
|
|
2324
|
-
this.
|
|
2325
|
-
this.
|
|
2322
|
+
this.v3a_1 = _this__u8e3s4;
|
|
2323
|
+
this.w3a_1 = reason;
|
|
2326
2324
|
}
|
|
2327
2325
|
protoOf($closeCOROUTINE$).r8 = function () {
|
|
2328
2326
|
var suspendResult = this.l8_1;
|
|
@@ -2334,7 +2332,7 @@ protoOf($closeCOROUTINE$).r8 = function () {
|
|
|
2334
2332
|
this.k8_1 = 4;
|
|
2335
2333
|
this.k8_1 = 3;
|
|
2336
2334
|
this.j8_1 = 1;
|
|
2337
|
-
suspendResult = this.
|
|
2335
|
+
suspendResult = this.v3a_1.t32(Close_init_$Create$(this.w3a_1), this);
|
|
2338
2336
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2339
2337
|
return suspendResult;
|
|
2340
2338
|
}
|
|
@@ -2342,7 +2340,7 @@ protoOf($closeCOROUTINE$).r8 = function () {
|
|
|
2342
2340
|
continue $sm;
|
|
2343
2341
|
case 1:
|
|
2344
2342
|
this.j8_1 = 2;
|
|
2345
|
-
suspendResult = this.
|
|
2343
|
+
suspendResult = this.v3a_1.i1g(this);
|
|
2346
2344
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2347
2345
|
return suspendResult;
|
|
2348
2346
|
}
|
|
@@ -2401,8 +2399,8 @@ function Text_init_$Create$(text) {
|
|
|
2401
2399
|
function Close_init_$Init$(reason, $this) {
|
|
2402
2400
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
2403
2401
|
var builder = new Buffer();
|
|
2404
|
-
builder.
|
|
2405
|
-
writeText(builder, reason.
|
|
2402
|
+
builder.eq(reason.l32_1);
|
|
2403
|
+
writeText(builder, reason.m32_1);
|
|
2406
2404
|
Close_init_$Init$_0(builder, $this);
|
|
2407
2405
|
return $this;
|
|
2408
2406
|
}
|
|
@@ -2414,7 +2412,7 @@ function Close_init_$Init$_0(packet, $this) {
|
|
|
2414
2412
|
return $this;
|
|
2415
2413
|
}
|
|
2416
2414
|
function Close_init_$Init$_1($this) {
|
|
2417
|
-
Close.call($this, Companion_getInstance_5().
|
|
2415
|
+
Close.call($this, Companion_getInstance_5().p36_1);
|
|
2418
2416
|
return $this;
|
|
2419
2417
|
}
|
|
2420
2418
|
function Close_init_$Create$_0() {
|
|
@@ -2444,9 +2442,9 @@ function Pong(data, disposableHandle) {
|
|
|
2444
2442
|
}
|
|
2445
2443
|
function Companion_5() {
|
|
2446
2444
|
Companion_instance_5 = this;
|
|
2447
|
-
this.
|
|
2445
|
+
this.p36_1 = new Int8Array(0);
|
|
2448
2446
|
}
|
|
2449
|
-
protoOf(Companion_5).
|
|
2447
|
+
protoOf(Companion_5).q36 = function (fin, frameType, data, rsv1, rsv2, rsv3) {
|
|
2450
2448
|
var tmp;
|
|
2451
2449
|
switch (frameType.a1_1) {
|
|
2452
2450
|
case 1:
|
|
@@ -2482,28 +2480,28 @@ function Frame(fin, frameType, data, disposableHandle, rsv1, rsv2, rsv3) {
|
|
|
2482
2480
|
rsv1 = rsv1 === VOID ? false : rsv1;
|
|
2483
2481
|
rsv2 = rsv2 === VOID ? false : rsv2;
|
|
2484
2482
|
rsv3 = rsv3 === VOID ? false : rsv3;
|
|
2485
|
-
this.
|
|
2486
|
-
this.
|
|
2487
|
-
this.
|
|
2488
|
-
this.
|
|
2489
|
-
this.
|
|
2490
|
-
this.
|
|
2491
|
-
this.
|
|
2483
|
+
this.i36_1 = fin;
|
|
2484
|
+
this.j36_1 = frameType;
|
|
2485
|
+
this.k36_1 = data;
|
|
2486
|
+
this.l36_1 = disposableHandle;
|
|
2487
|
+
this.m36_1 = rsv1;
|
|
2488
|
+
this.n36_1 = rsv2;
|
|
2489
|
+
this.o36_1 = rsv3;
|
|
2492
2490
|
}
|
|
2493
2491
|
protoOf(Frame).toString = function () {
|
|
2494
|
-
return 'Frame ' + this.
|
|
2492
|
+
return 'Frame ' + this.j36_1.toString() + ' (fin=' + this.i36_1 + ', buffer len = ' + this.k36_1.length + ')';
|
|
2495
2493
|
};
|
|
2496
2494
|
function get_OUTGOING_CHANNEL_CAPACITY() {
|
|
2497
2495
|
return OUTGOING_CHANNEL_CAPACITY;
|
|
2498
2496
|
}
|
|
2499
2497
|
var OUTGOING_CHANNEL_CAPACITY;
|
|
2500
2498
|
//region block: post-declaration
|
|
2501
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
2499
|
+
protoOf(DefaultWebSocketSessionImpl).t32 = send;
|
|
2502
2500
|
defineProp(protoOf(FrameTooBigException), 'message', function () {
|
|
2503
2501
|
return this.e();
|
|
2504
2502
|
});
|
|
2505
|
-
protoOf(BoundedChannel).
|
|
2506
|
-
protoOf(BoundedChannel).
|
|
2503
|
+
protoOf(BoundedChannel).a19 = close$default;
|
|
2504
|
+
protoOf(BoundedChannel).c19 = cancel$default;
|
|
2507
2505
|
//endregion
|
|
2508
2506
|
//region block: init
|
|
2509
2507
|
NonDisposableHandle_instance = new NonDisposableHandle();
|
|
@@ -2512,14 +2510,14 @@ OUTGOING_CHANNEL_CAPACITY = null;
|
|
|
2512
2510
|
//endregion
|
|
2513
2511
|
//region block: exports
|
|
2514
2512
|
export {
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2513
|
+
Companion_getInstance as Companion_getInstance2xymkrjuj4ub8,
|
|
2514
|
+
Companion_getInstance_2 as Companion_getInstance1u99479g32m9i,
|
|
2515
|
+
Codes_CLOSED_ABNORMALLY_getInstance as Codes_CLOSED_ABNORMALLY_getInstance2rjj5xk3ewrku,
|
|
2516
|
+
Codes_NORMAL_getInstance as Codes_NORMAL_getInstance1akc4vzdzyb59,
|
|
2517
|
+
send as send3kjrrxgwu0vpw,
|
|
2518
|
+
Binary_init_$Create$ as Binary_init_$Create$3ji9zus3m6s2e,
|
|
2519
|
+
Close_init_$Create$ as Close_init_$Create$lgyf6kdpsq84,
|
|
2520
|
+
Text_init_$Create$ as Text_init_$Create$33xdsiuzmxup1,
|
|
2523
2521
|
CloseReason as CloseReason10cphaqpp3ct7,
|
|
2524
2522
|
DefaultWebSocketSession_0 as DefaultWebSocketSessionmehckluw85jl,
|
|
2525
2523
|
DefaultWebSocketSession as DefaultWebSocketSession3h8506yqzs5fx,
|