@solibo/home-api 1.15.15 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1019 -943
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
- package/MultiplatformSettings-multiplatform-settings-no-arg.mjs +1 -1
- package/MultiplatformSettings-multiplatform-settings-no-arg.mjs.map +1 -0
- package/MultiplatformSettings-multiplatform-settings.mjs +1 -1
- package/MultiplatformSettings-multiplatform-settings.mjs.map +1 -0
- package/kotlin-kotlin-stdlib.mjs +2223 -1914
- package/kotlin-kotlin-stdlib.mjs.map +1 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map +1 -0
- package/kotlinx-atomicfu.mjs +14 -14
- package/kotlinx-atomicfu.mjs.map +1 -0
- package/kotlinx-browser.mjs +1 -1
- package/kotlinx-browser.mjs.map +1 -0
- package/kotlinx-coroutines-core.mjs +2307 -2247
- package/kotlinx-coroutines-core.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-bytestring.mjs +41 -41
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core.mjs +474 -470
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1909 -1910
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json-io.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1986 -1658
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
- package/ktor-ktor-client-auth.mjs +1 -1
- package/ktor-ktor-client-auth.mjs.map +1 -0
- package/ktor-ktor-client-content-negotiation.mjs +260 -234
- package/ktor-ktor-client-content-negotiation.mjs.map +1 -0
- package/ktor-ktor-client-core.mjs +3240 -3326
- package/ktor-ktor-client-core.mjs.map +1 -0
- package/ktor-ktor-client-encoding.mjs +1 -1
- package/ktor-ktor-client-encoding.mjs.map +1 -0
- package/ktor-ktor-client-logging.mjs +1 -1
- package/ktor-ktor-client-logging.mjs.map +1 -0
- package/ktor-ktor-client-websockets.mjs +1 -1
- package/ktor-ktor-client-websockets.mjs.map +1 -0
- package/ktor-ktor-events.mjs +8 -8
- package/ktor-ktor-events.mjs.map +1 -0
- package/ktor-ktor-http-cio.mjs +525 -530
- package/ktor-ktor-http-cio.mjs.map +1 -0
- package/ktor-ktor-http.mjs +735 -766
- package/ktor-ktor-http.mjs.map +1 -0
- package/ktor-ktor-io.mjs +1502 -1279
- package/ktor-ktor-io.mjs.map +1 -0
- package/ktor-ktor-serialization-kotlinx-json.mjs +10 -10
- package/ktor-ktor-serialization-kotlinx-json.mjs.map +1 -0
- package/ktor-ktor-serialization-kotlinx.mjs +272 -389
- package/ktor-ktor-serialization-kotlinx.mjs.map +1 -0
- package/ktor-ktor-serialization.mjs +113 -142
- package/ktor-ktor-serialization.mjs.map +1 -0
- package/ktor-ktor-sse.mjs +1 -1
- package/ktor-ktor-sse.mjs.map +1 -0
- package/ktor-ktor-utils.mjs +812 -787
- package/ktor-ktor-utils.mjs.map +1 -0
- package/ktor-ktor-websocket-serialization.mjs +1 -1
- package/ktor-ktor-websocket-serialization.mjs.map +1 -0
- package/ktor-ktor-websockets.mjs +901 -862
- package/ktor-ktor-websockets.mjs.map +1 -0
- package/package.json +2 -2
- package/solibo-sdk-sdk-home-api.d.mts +127 -14
- package/solibo-sdk-sdk-home-api.mjs +110003 -108257
- package/solibo-sdk-sdk-home-api.mjs.map +1 -0
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$1gaaqjdgvat9g as LinkedHashMap_init_$Create$,
|
|
6
|
+
Unit_instance3vdlo4e4f5ggx as Unit_instance,
|
|
7
7
|
protoOf180f3jzyo7rfj as protoOf,
|
|
8
8
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
9
9
|
enumEntries20mr21zbe3az4 as enumEntries,
|
|
@@ -12,35 +12,42 @@ import {
|
|
|
12
12
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
13
13
|
VOID3gxj6tk5isa35 as VOID,
|
|
14
14
|
toString1pkumu07cwy4m as toString,
|
|
15
|
+
IllegalArgumentException_init_$Create$1mgk48flhjim3 as IllegalArgumentException_init_$Create$,
|
|
15
16
|
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
17
|
+
substringiqarkczpya5m as substring,
|
|
18
|
+
charCodeAt1yspne1d8erbm as charCodeAt,
|
|
19
|
+
Char__toInt_impl_vasixd1ka89vowck9tn as Char__toInt_impl_vasixd,
|
|
20
|
+
isHighSurrogate11jfjw70ar0zf as isHighSurrogate,
|
|
21
|
+
isLowSurrogateujxcv7hjn4ma as isLowSurrogate,
|
|
16
22
|
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
17
23
|
isInterface3d6p8outrmvmk as isInterface,
|
|
18
|
-
IllegalArgumentException_init_$Create$i4126l9nkbuo as IllegalArgumentException_init_$Create$,
|
|
19
24
|
CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
|
|
20
25
|
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
21
26
|
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
|
|
22
27
|
initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
|
|
28
|
+
constructCallableReference23y65rf941mch as constructCallableReference,
|
|
23
29
|
ensureNotNull1e947j3ixpazm as ensureNotNull,
|
|
24
|
-
CancellationException_init_$Create$
|
|
30
|
+
CancellationException_init_$Create$3mozl5zk7b7i2 as CancellationException_init_$Create$,
|
|
25
31
|
CancellationException3b36o9qz53rgr as CancellationException,
|
|
26
32
|
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
27
33
|
toString30pk9tzaqopn as toString_0,
|
|
28
34
|
fromInt2ii0rejb1w62w as fromInt,
|
|
29
|
-
ArrayList_init_$Create$
|
|
30
|
-
IllegalStateException_init_$Create$
|
|
35
|
+
ArrayList_init_$Create$1z3aa4voswqq as ArrayList_init_$Create$,
|
|
36
|
+
IllegalStateException_init_$Create$3394faf8tdm0h as IllegalStateException_init_$Create$,
|
|
31
37
|
joinToString1cxrrlmo0chqs as joinToString,
|
|
32
38
|
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
33
39
|
Exceptiondt2hlxn7j7vw as Exception,
|
|
34
|
-
Exception_init_$Init$
|
|
40
|
+
Exception_init_$Init$3okdru6mzytq2 as Exception_init_$Init$,
|
|
35
41
|
captureStack1fzi4aczwc4hg as captureStack,
|
|
36
42
|
defineProp3ur6h3slcvq4x as defineProp,
|
|
37
43
|
compareTo3ankvs086tmwq as compareTo,
|
|
38
44
|
decodeToString1dbzcjd620q25 as decodeToString,
|
|
39
45
|
Randomei1bbeye8rr8 as Random,
|
|
46
|
+
toHexString5bhtjxqec7ow as toHexString,
|
|
40
47
|
throwUninitializedPropertyAccessException14fok093f3k3t as throwUninitializedPropertyAccessException,
|
|
41
48
|
RuntimeException1r3t0zl97011n as RuntimeException,
|
|
42
|
-
RuntimeException_init_$Init$
|
|
43
|
-
ArrayList_init_$Create$
|
|
49
|
+
RuntimeException_init_$Init$24zelexl34ubl as RuntimeException_init_$Init$,
|
|
50
|
+
ArrayList_init_$Create$3o344dm0ee4ws as ArrayList_init_$Create$_0,
|
|
44
51
|
split2bvyvnrlcifjv as split,
|
|
45
52
|
first58ocm7j58k3q as first,
|
|
46
53
|
isCharSequence1ju9jr1w86plq as isCharSequence,
|
|
@@ -49,39 +56,37 @@ import {
|
|
|
49
56
|
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
50
57
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
51
58
|
import {
|
|
52
|
-
|
|
59
|
+
Dispatchers_getInstance20p7pyqnrepag as Dispatchers_getInstance,
|
|
53
60
|
launch1c91vkjzdi9sd as launch,
|
|
54
|
-
|
|
61
|
+
CoroutineStart_UNDISPATCHED_getInstance2pq896dvru5v1 as CoroutineStart_UNDISPATCHED_getInstance,
|
|
55
62
|
ChannelResult2y4k69ac6y3du as ChannelResult,
|
|
56
|
-
|
|
63
|
+
_ChannelResult___get_isSuccess__impl__odq1z9t6ktwy0g0q0f as _ChannelResult___get_isSuccess__impl__odq1z9,
|
|
57
64
|
CoroutineScopefcb5f5dwqcas as CoroutineScope,
|
|
58
65
|
cancelConsumed2i0oizqhmljf6 as cancelConsumed,
|
|
59
66
|
ClosedSendChannelException29m33prpq9jaw as ClosedSendChannelException,
|
|
60
67
|
ClosedReceiveChannelException3ofg6gf5f5b38 as ClosedReceiveChannelException,
|
|
61
68
|
CompletableDeferred2lnqvsbvx74d3 as CompletableDeferred,
|
|
62
69
|
Job13y4jkazwjho0 as Job,
|
|
63
|
-
|
|
70
|
+
Key_instancebefxze3q9f64 as Key_instance,
|
|
64
71
|
CoroutineName2g5zosw74tf0f as CoroutineName,
|
|
65
|
-
|
|
72
|
+
Factory_getInstance32nnliw9sj63p as Factory_getInstance,
|
|
66
73
|
DisposableHandle1uzxt8frdchxn as DisposableHandle,
|
|
67
74
|
CopyableThrowable1mvc99jcyvivf as CopyableThrowable,
|
|
68
75
|
Channel3r72atmcithql as Channel,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
close$
|
|
74
|
-
cancel$
|
|
75
|
-
SendChannel38sllbxw662ws as SendChannel,
|
|
76
|
+
withTimeoutOrNull3qi35nuwr2k8a as withTimeoutOrNull,
|
|
77
|
+
BufferOverflow_SUSPEND_getInstanceob833ibjouyy as BufferOverflow_SUSPEND_getInstance,
|
|
78
|
+
BufferOverflow_DROP_OLDEST_getInstanceckq6sjfawt4w as BufferOverflow_DROP_OLDEST_getInstance,
|
|
79
|
+
_ChannelResult___get_isClosed__impl__mg7kuu3a26on4apn4j4 as _ChannelResult___get_isClosed__impl__mg7kuu,
|
|
80
|
+
close$defaultlxi0kykibhye as close$default,
|
|
81
|
+
cancel$default2imfx8rp1ubvu as cancel$default,
|
|
76
82
|
ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
|
|
83
|
+
SendChannel38sllbxw662ws as SendChannel,
|
|
77
84
|
} from './kotlinx-coroutines-core.mjs';
|
|
78
85
|
import {
|
|
79
86
|
get_isTraceEnabled82xibuu04nxp as get_isTraceEnabled,
|
|
80
87
|
ChannelIOException2i3t76lsrbgox as ChannelIOException,
|
|
81
88
|
KtorSimpleLogger1xdphsp5l4e48 as KtorSimpleLogger,
|
|
82
|
-
initCauseBridge1upxfqhavblt6 as initCauseBridge,
|
|
83
89
|
getTimeMillis12o7k17x9fmwi as getTimeMillis,
|
|
84
|
-
hex2ofqpe9ngcu1i as hex,
|
|
85
90
|
} from './ktor-ktor-utils.mjs';
|
|
86
91
|
import {
|
|
87
92
|
BytePacketBuilder2biodf4wxvlba as BytePacketBuilder,
|
|
@@ -89,14 +94,14 @@ import {
|
|
|
89
94
|
buildjygoh729rhy8 as build,
|
|
90
95
|
get_size2imoy2jq11jxl as get_size,
|
|
91
96
|
readText27783kyxjxi1g as readText,
|
|
92
|
-
|
|
97
|
+
Charsets_getInstance3jooo7e4x0j2x as Charsets_getInstance,
|
|
93
98
|
toByteArray1i3ns5jnoqlv6 as toByteArray,
|
|
94
99
|
ClosedByteChannelException3il8gfpye60w as ClosedByteChannelException,
|
|
95
100
|
writeText19qfzm98fbm4l as writeText,
|
|
96
101
|
} from './ktor-ktor-io.mjs';
|
|
97
102
|
import {
|
|
98
103
|
readByteArray1ri21h2rciakw as readByteArray,
|
|
99
|
-
IOException_init_$Create$
|
|
104
|
+
IOException_init_$Create$30ael4xxp8cz as IOException_init_$Create$,
|
|
100
105
|
Buffergs925ekssbch as Buffer,
|
|
101
106
|
} from './kotlinx-io-kotlinx-io-core.mjs';
|
|
102
107
|
import {
|
|
@@ -109,13 +114,14 @@ var imul = Math.imul;
|
|
|
109
114
|
//region block: pre-declaration
|
|
110
115
|
initMetadataForCompanion(Companion);
|
|
111
116
|
initMetadataForClass(Codes, 'Codes', VOID, Enum);
|
|
117
|
+
initMetadataForCompanion(Companion_0);
|
|
112
118
|
initMetadataForClass(CloseReason, 'CloseReason');
|
|
113
119
|
function send(frame, $completion) {
|
|
114
|
-
return this.
|
|
120
|
+
return this.l34().g19(frame, $completion);
|
|
115
121
|
}
|
|
116
122
|
initMetadataForInterface(WebSocketSession, 'WebSocketSession', VOID, VOID, [CoroutineScope], [1, 0]);
|
|
117
123
|
initMetadataForInterface(DefaultWebSocketSession, 'DefaultWebSocketSession', VOID, VOID, [WebSocketSession], [1, 0]);
|
|
118
|
-
initMetadataForCompanion(
|
|
124
|
+
initMetadataForCompanion(Companion_1);
|
|
119
125
|
initMetadataForLambda(DefaultWebSocketSessionImpl$start$slambda, CoroutineImpl, VOID, [1]);
|
|
120
126
|
initMetadataForLambda(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda, CoroutineImpl, VOID, [1]);
|
|
121
127
|
initMetadataForLambda(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda, CoroutineImpl, VOID, [1]);
|
|
@@ -126,19 +132,19 @@ initMetadataForCoroutine($checkMaxFrameSizeCOROUTINE$, CoroutineImpl);
|
|
|
126
132
|
initMetadataForClass(DefaultWebSocketSessionImpl, 'DefaultWebSocketSessionImpl', VOID, VOID, [DefaultWebSocketSession, WebSocketSession], [1, 0, 2]);
|
|
127
133
|
initMetadataForObject(NonDisposableHandle, 'NonDisposableHandle', VOID, VOID, [DisposableHandle]);
|
|
128
134
|
initMetadataForClass(FrameTooBigException, 'FrameTooBigException', VOID, Exception, [CopyableThrowable]);
|
|
129
|
-
initMetadataForCompanion(
|
|
135
|
+
initMetadataForCompanion(Companion_2);
|
|
130
136
|
initMetadataForClass(FrameType, 'FrameType', VOID, Enum);
|
|
131
137
|
initMetadataForLambda(ponger$slambda, CoroutineImpl, VOID, [1]);
|
|
132
138
|
initMetadataForLambda(pinger$slambda$slambda, CoroutineImpl, VOID, [1]);
|
|
133
139
|
initMetadataForLambda(pinger$slambda$slambda_1, CoroutineImpl, VOID, [1]);
|
|
134
140
|
initMetadataForLambda(pinger$slambda, CoroutineImpl, VOID, [1]);
|
|
135
|
-
initMetadataForCompanion(Companion_2);
|
|
136
|
-
initMetadataForClass(WebSocketChannelsConfig, 'WebSocketChannelsConfig', WebSocketChannelsConfig);
|
|
137
141
|
initMetadataForCompanion(Companion_3);
|
|
142
|
+
initMetadataForClass(WebSocketChannelsConfig, 'WebSocketChannelsConfig', WebSocketChannelsConfig);
|
|
143
|
+
initMetadataForCompanion(Companion_4);
|
|
138
144
|
initMetadataForClass(ChannelConfig, 'ChannelConfig');
|
|
139
145
|
initMetadataForClass(ChannelOverflow, 'ChannelOverflow', VOID, Enum);
|
|
140
|
-
initMetadataForCompanion(
|
|
141
|
-
initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [
|
|
146
|
+
initMetadataForCompanion(Companion_5);
|
|
147
|
+
initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [ReceiveChannel, SendChannel], [1, 0]);
|
|
142
148
|
initMetadataForClass(ChannelOverflowException, 'ChannelOverflowException', VOID, RuntimeException);
|
|
143
149
|
initMetadataForInterface(WebSocketExtension, 'WebSocketExtension');
|
|
144
150
|
initMetadataForClass(WebSocketExtensionsConfig, 'WebSocketExtensionsConfig', WebSocketExtensionsConfig);
|
|
@@ -150,7 +156,7 @@ initMetadataForClass(Text, 'Text', VOID, Frame);
|
|
|
150
156
|
initMetadataForClass(Close, 'Close', Close_init_$Create$_0, Frame);
|
|
151
157
|
initMetadataForClass(Ping, 'Ping', VOID, Frame);
|
|
152
158
|
initMetadataForClass(Pong, 'Pong', VOID, Frame);
|
|
153
|
-
initMetadataForCompanion(
|
|
159
|
+
initMetadataForCompanion(Companion_6);
|
|
154
160
|
//endregion
|
|
155
161
|
var Codes_NORMAL_instance;
|
|
156
162
|
var Codes_GOING_AWAY_instance;
|
|
@@ -175,14 +181,14 @@ function Companion() {
|
|
|
175
181
|
var _iterator__ex2g4s = this_0.t();
|
|
176
182
|
while (_iterator__ex2g4s.u()) {
|
|
177
183
|
var element = _iterator__ex2g4s.v();
|
|
178
|
-
var tmp$ret$2 = element.
|
|
184
|
+
var tmp$ret$2 = element.p33_1;
|
|
179
185
|
destination.s2(tmp$ret$2, element);
|
|
180
186
|
}
|
|
181
|
-
tmp.
|
|
182
|
-
this.
|
|
187
|
+
tmp.q33_1 = destination;
|
|
188
|
+
this.r33_1 = Codes_INTERNAL_ERROR_getInstance();
|
|
183
189
|
}
|
|
184
|
-
protoOf(Companion).
|
|
185
|
-
return this.
|
|
190
|
+
protoOf(Companion).s33 = function (code) {
|
|
191
|
+
return this.q33_1.z2(code);
|
|
186
192
|
};
|
|
187
193
|
var Companion_instance;
|
|
188
194
|
function Companion_getInstance() {
|
|
@@ -220,7 +226,7 @@ function Codes_initEntries() {
|
|
|
220
226
|
}
|
|
221
227
|
var $ENTRIES;
|
|
222
228
|
function CloseReason_init_$Init$(code, message, $this) {
|
|
223
|
-
CloseReason.call($this, code.
|
|
229
|
+
CloseReason.call($this, code.p33_1, message);
|
|
224
230
|
return $this;
|
|
225
231
|
}
|
|
226
232
|
function CloseReason_init_$Create$(code, message) {
|
|
@@ -228,7 +234,13 @@ function CloseReason_init_$Create$(code, message) {
|
|
|
228
234
|
}
|
|
229
235
|
function Codes(name, ordinal, code) {
|
|
230
236
|
Enum.call(this, name, ordinal);
|
|
231
|
-
this.
|
|
237
|
+
this.p33_1 = code;
|
|
238
|
+
}
|
|
239
|
+
function Companion_0() {
|
|
240
|
+
}
|
|
241
|
+
var Companion_instance_0;
|
|
242
|
+
function Companion_getInstance_0() {
|
|
243
|
+
return Companion_instance_0;
|
|
232
244
|
}
|
|
233
245
|
function Codes_NORMAL_getInstance() {
|
|
234
246
|
Codes_initEntries();
|
|
@@ -279,19 +291,25 @@ function Codes_TRY_AGAIN_LATER_getInstance() {
|
|
|
279
291
|
return Codes_TRY_AGAIN_LATER_instance;
|
|
280
292
|
}
|
|
281
293
|
function CloseReason(code, message) {
|
|
282
|
-
this.
|
|
283
|
-
this.
|
|
294
|
+
this.t33_1 = code;
|
|
295
|
+
this.u33_1 = message;
|
|
296
|
+
var size = utf8Size(this.u33_1);
|
|
297
|
+
// Inline function 'kotlin.require' call
|
|
298
|
+
if (!(size <= 123)) {
|
|
299
|
+
var message_0 = 'Close reason message is too long: ' + size + ' bytes, but must not exceed ' + '123 bytes when UTF-8-encoded';
|
|
300
|
+
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
301
|
+
}
|
|
284
302
|
}
|
|
285
|
-
protoOf(CloseReason).
|
|
286
|
-
return Companion_getInstance().
|
|
303
|
+
protoOf(CloseReason).v33 = function () {
|
|
304
|
+
return Companion_getInstance().s33(this.t33_1);
|
|
287
305
|
};
|
|
288
306
|
protoOf(CloseReason).toString = function () {
|
|
289
|
-
var tmp0_elvis_lhs = this.
|
|
290
|
-
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.
|
|
307
|
+
var tmp0_elvis_lhs = this.v33();
|
|
308
|
+
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.t33_1 : tmp0_elvis_lhs) + ', message=' + this.u33_1 + ')';
|
|
291
309
|
};
|
|
292
310
|
protoOf(CloseReason).hashCode = function () {
|
|
293
|
-
var result = this.
|
|
294
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
311
|
+
var result = this.t33_1;
|
|
312
|
+
result = imul(result, 31) + getStringHashCode(this.u33_1) | 0;
|
|
295
313
|
return result;
|
|
296
314
|
};
|
|
297
315
|
protoOf(CloseReason).equals = function (other) {
|
|
@@ -299,12 +317,47 @@ protoOf(CloseReason).equals = function (other) {
|
|
|
299
317
|
return true;
|
|
300
318
|
if (!(other instanceof CloseReason))
|
|
301
319
|
return false;
|
|
302
|
-
if (!(this.
|
|
320
|
+
if (!(this.t33_1 === other.t33_1))
|
|
303
321
|
return false;
|
|
304
|
-
if (!(this.
|
|
322
|
+
if (!(this.u33_1 === other.u33_1))
|
|
305
323
|
return false;
|
|
306
324
|
return true;
|
|
307
325
|
};
|
|
326
|
+
function utf8Size(_this__u8e3s4) {
|
|
327
|
+
var size = 0;
|
|
328
|
+
var index = 0;
|
|
329
|
+
while (index < _this__u8e3s4.length) {
|
|
330
|
+
var bytes = utf8ByteCountAt(_this__u8e3s4, index);
|
|
331
|
+
size = size + bytes | 0;
|
|
332
|
+
index = index + (bytes === 4 ? 2 : 1) | 0;
|
|
333
|
+
}
|
|
334
|
+
return size;
|
|
335
|
+
}
|
|
336
|
+
function utf8Truncate(_this__u8e3s4, maxSize) {
|
|
337
|
+
var size = 0;
|
|
338
|
+
var index = 0;
|
|
339
|
+
$l$loop: while (index < _this__u8e3s4.length) {
|
|
340
|
+
var bytes = utf8ByteCountAt(_this__u8e3s4, index);
|
|
341
|
+
if ((size + bytes | 0) > maxSize)
|
|
342
|
+
break $l$loop;
|
|
343
|
+
size = size + bytes | 0;
|
|
344
|
+
index = index + (bytes === 4 ? 2 : 1) | 0;
|
|
345
|
+
}
|
|
346
|
+
return index === _this__u8e3s4.length ? _this__u8e3s4 : substring(_this__u8e3s4, 0, index);
|
|
347
|
+
}
|
|
348
|
+
function utf8ByteCountAt(_this__u8e3s4, index) {
|
|
349
|
+
// Inline function 'kotlin.code' call
|
|
350
|
+
var this_0 = charCodeAt(_this__u8e3s4, index);
|
|
351
|
+
var code = Char__toInt_impl_vasixd(this_0);
|
|
352
|
+
return code < 128 ? 1 : code < 2048 ? 2 : isHighSurrogate(charCodeAt(_this__u8e3s4, index)) && (index + 1 | 0) < _this__u8e3s4.length && isLowSurrogate(charCodeAt(_this__u8e3s4, index + 1 | 0)) ? 4 : 3;
|
|
353
|
+
}
|
|
354
|
+
function validateSize(_this__u8e3s4) {
|
|
355
|
+
// Inline function 'kotlin.require' call
|
|
356
|
+
if (!(!_this__u8e3s4.b34_1.y33_1 || _this__u8e3s4.c34_1.length <= 125)) {
|
|
357
|
+
var message = 'Control frames must not exceed 125 bytes per RFC 6455, ' + ('but ' + _this__u8e3s4.b34_1.toString() + ' frame has ' + _this__u8e3s4.c34_1.length + ' bytes');
|
|
358
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
359
|
+
}
|
|
360
|
+
}
|
|
308
361
|
function get_LOGGER() {
|
|
309
362
|
_init_properties_DefaultWebSocketSession_kt__469s0y();
|
|
310
363
|
return LOGGER;
|
|
@@ -331,230 +384,228 @@ function DefaultWebSocketSession() {
|
|
|
331
384
|
function DefaultWebSocketSession_0(session, pingIntervalMillis, timeoutMillis, channelsConfig) {
|
|
332
385
|
pingIntervalMillis = pingIntervalMillis === VOID ? 0n : pingIntervalMillis;
|
|
333
386
|
timeoutMillis = timeoutMillis === VOID ? 15000n : timeoutMillis;
|
|
334
|
-
channelsConfig = channelsConfig === VOID ?
|
|
387
|
+
channelsConfig = channelsConfig === VOID ? Companion_getInstance_3().n34_1 : channelsConfig;
|
|
335
388
|
_init_properties_DefaultWebSocketSession_kt__469s0y();
|
|
336
389
|
// Inline function 'kotlin.require' call
|
|
337
390
|
if (!!isInterface(session, DefaultWebSocketSession)) {
|
|
338
391
|
var message = 'Cannot wrap other DefaultWebSocketSession';
|
|
339
392
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
340
393
|
}
|
|
341
|
-
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.
|
|
394
|
+
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.o34_1, channelsConfig.p34_1);
|
|
342
395
|
}
|
|
343
396
|
function runIncomingProcessor($this, ponger) {
|
|
344
|
-
var tmp = get_IncomingProcessorCoroutineName().
|
|
397
|
+
var tmp = get_IncomingProcessorCoroutineName().vf(Dispatchers_getInstance().y12_1);
|
|
345
398
|
return launch($this, tmp, VOID, DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0($this, ponger, null));
|
|
346
399
|
}
|
|
347
400
|
function runOutgoingProcessor($this) {
|
|
348
|
-
var tmp = get_OutgoingProcessorCoroutineName().
|
|
401
|
+
var tmp = get_OutgoingProcessorCoroutineName().vf(Dispatchers_getInstance().y12_1);
|
|
349
402
|
var tmp_0 = CoroutineStart_UNDISPATCHED_getInstance();
|
|
350
403
|
return launch($this, tmp, tmp_0, DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0($this, null));
|
|
351
404
|
}
|
|
352
405
|
function outgoingProcessorLoop($this, $completion) {
|
|
353
406
|
var tmp = new $outgoingProcessorLoopCOROUTINE$($this, $completion);
|
|
354
|
-
tmp.
|
|
355
|
-
tmp.
|
|
356
|
-
return tmp.
|
|
407
|
+
tmp.m8_1 = Unit_instance;
|
|
408
|
+
tmp.n8_1 = null;
|
|
409
|
+
return tmp.s8();
|
|
357
410
|
}
|
|
358
411
|
function sendCloseSequence($this, reason, exception, $completion) {
|
|
359
412
|
exception = exception === VOID ? null : exception;
|
|
360
413
|
var tmp = new $sendCloseSequenceCOROUTINE$($this, reason, exception, $completion);
|
|
361
|
-
tmp.
|
|
362
|
-
tmp.
|
|
363
|
-
return tmp.
|
|
414
|
+
tmp.m8_1 = Unit_instance;
|
|
415
|
+
tmp.n8_1 = null;
|
|
416
|
+
return tmp.s8();
|
|
364
417
|
}
|
|
365
418
|
function tryClose($this) {
|
|
366
|
-
return $this.
|
|
419
|
+
return $this.u35_1.atomicfu$compareAndSet(false, true);
|
|
367
420
|
}
|
|
368
421
|
function runOrCancelPinger($this) {
|
|
369
|
-
var interval = $this.
|
|
422
|
+
var interval = $this.x35_1;
|
|
370
423
|
var tmp;
|
|
371
|
-
if ($this.
|
|
424
|
+
if ($this.u35_1.kotlinx$atomicfu$value) {
|
|
372
425
|
tmp = null;
|
|
373
426
|
} else if (interval > 0n) {
|
|
374
|
-
var tmp_0 = $this.
|
|
375
|
-
var tmp_1 = $this.
|
|
427
|
+
var tmp_0 = $this.n35_1.l34();
|
|
428
|
+
var tmp_1 = $this.y35_1;
|
|
376
429
|
tmp = pinger($this, tmp_0, interval, tmp_1, DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0($this, null));
|
|
377
430
|
} else {
|
|
378
431
|
tmp = null;
|
|
379
432
|
}
|
|
380
433
|
var newPinger = tmp;
|
|
381
|
-
var tmp0_safe_receiver = $this.
|
|
434
|
+
var tmp0_safe_receiver = $this.o35_1.atomicfu$getAndSet(newPinger);
|
|
382
435
|
if (tmp0_safe_receiver == null)
|
|
383
436
|
null;
|
|
384
437
|
else
|
|
385
|
-
tmp0_safe_receiver.
|
|
386
|
-
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.
|
|
438
|
+
tmp0_safe_receiver.n19();
|
|
439
|
+
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.h19(Companion_getInstance_1().a36_1));
|
|
387
440
|
if (tmp2_safe_receiver == null)
|
|
388
441
|
null;
|
|
389
442
|
else
|
|
390
|
-
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.
|
|
391
|
-
if ($this.
|
|
443
|
+
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.r17_1);
|
|
444
|
+
if ($this.u35_1.kotlinx$atomicfu$value && !(newPinger == null)) {
|
|
392
445
|
runOrCancelPinger($this);
|
|
393
446
|
}
|
|
394
447
|
}
|
|
395
448
|
function checkMaxFrameSize($this, packet, frame, $completion) {
|
|
396
449
|
var tmp = new $checkMaxFrameSizeCOROUTINE$($this, packet, frame, $completion);
|
|
397
|
-
tmp.
|
|
398
|
-
tmp.
|
|
399
|
-
return tmp.
|
|
450
|
+
tmp.m8_1 = Unit_instance;
|
|
451
|
+
tmp.n8_1 = null;
|
|
452
|
+
return tmp.s8();
|
|
400
453
|
}
|
|
401
454
|
function processIncomingExtensions($this, frame) {
|
|
402
455
|
// Inline function 'kotlin.collections.fold' call
|
|
403
456
|
var accumulator = frame;
|
|
404
|
-
var _iterator__ex2g4s = $this.
|
|
457
|
+
var _iterator__ex2g4s = $this.n36().t();
|
|
405
458
|
while (_iterator__ex2g4s.u()) {
|
|
406
459
|
var element = _iterator__ex2g4s.v();
|
|
407
460
|
var current = accumulator;
|
|
408
|
-
accumulator = element.
|
|
461
|
+
accumulator = element.o36(current);
|
|
409
462
|
}
|
|
410
463
|
return accumulator;
|
|
411
464
|
}
|
|
412
465
|
function processOutgoingExtensions($this, frame) {
|
|
413
466
|
// Inline function 'kotlin.collections.fold' call
|
|
414
467
|
var accumulator = frame;
|
|
415
|
-
var _iterator__ex2g4s = $this.
|
|
468
|
+
var _iterator__ex2g4s = $this.n36().t();
|
|
416
469
|
while (_iterator__ex2g4s.u()) {
|
|
417
470
|
var element = _iterator__ex2g4s.v();
|
|
418
471
|
var current = accumulator;
|
|
419
|
-
accumulator = element.
|
|
472
|
+
accumulator = element.p36(current);
|
|
420
473
|
}
|
|
421
474
|
return accumulator;
|
|
422
475
|
}
|
|
423
|
-
function
|
|
424
|
-
|
|
425
|
-
this.
|
|
476
|
+
function Companion_1() {
|
|
477
|
+
Companion_instance_1 = this;
|
|
478
|
+
this.a36_1 = new Pong(new Int8Array(0), NonDisposableHandle_instance);
|
|
426
479
|
}
|
|
427
|
-
var
|
|
428
|
-
function
|
|
429
|
-
if (
|
|
430
|
-
new
|
|
431
|
-
return
|
|
480
|
+
var Companion_instance_1;
|
|
481
|
+
function Companion_getInstance_1() {
|
|
482
|
+
if (Companion_instance_1 == null)
|
|
483
|
+
new Companion_1();
|
|
484
|
+
return Companion_instance_1;
|
|
432
485
|
}
|
|
433
486
|
function DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
434
|
-
this.
|
|
435
|
-
this.
|
|
436
|
-
this.
|
|
487
|
+
this.y36_1 = $incomingJob;
|
|
488
|
+
this.z36_1 = $outgoingJob;
|
|
489
|
+
this.a37_1 = this$0;
|
|
437
490
|
CoroutineImpl.call(this, resultContinuation);
|
|
438
491
|
}
|
|
439
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
440
|
-
var tmp = this.
|
|
441
|
-
tmp.
|
|
442
|
-
tmp.
|
|
443
|
-
return tmp.
|
|
492
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).j1q = function ($this$launch, $completion) {
|
|
493
|
+
var tmp = this.k1q($this$launch, $completion);
|
|
494
|
+
tmp.m8_1 = Unit_instance;
|
|
495
|
+
tmp.n8_1 = null;
|
|
496
|
+
return tmp.s8();
|
|
444
497
|
};
|
|
445
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
446
|
-
return this.
|
|
498
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).f9 = function (p1, $completion) {
|
|
499
|
+
return this.j1q((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
447
500
|
};
|
|
448
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
449
|
-
var suspendResult = this.
|
|
501
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).s8 = function () {
|
|
502
|
+
var suspendResult = this.m8_1;
|
|
450
503
|
$sm: do
|
|
451
504
|
try {
|
|
452
|
-
var tmp = this.
|
|
505
|
+
var tmp = this.k8_1;
|
|
453
506
|
switch (tmp) {
|
|
454
507
|
case 0:
|
|
455
|
-
this.
|
|
456
|
-
this.
|
|
457
|
-
suspendResult = this.
|
|
508
|
+
this.l8_1 = 3;
|
|
509
|
+
this.k8_1 = 1;
|
|
510
|
+
suspendResult = this.y36_1.ot(this);
|
|
458
511
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
459
512
|
return suspendResult;
|
|
460
513
|
}
|
|
461
514
|
|
|
462
515
|
continue $sm;
|
|
463
516
|
case 1:
|
|
464
|
-
this.
|
|
465
|
-
suspendResult = this.
|
|
517
|
+
this.k8_1 = 2;
|
|
518
|
+
suspendResult = this.z36_1.ot(this);
|
|
466
519
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
467
520
|
return suspendResult;
|
|
468
521
|
}
|
|
469
522
|
|
|
470
523
|
continue $sm;
|
|
471
524
|
case 2:
|
|
472
|
-
this.
|
|
525
|
+
this.a37_1.q35_1.st();
|
|
473
526
|
return Unit_instance;
|
|
474
527
|
case 3:
|
|
475
|
-
throw this.
|
|
528
|
+
throw this.n8_1;
|
|
476
529
|
}
|
|
477
530
|
} catch ($p) {
|
|
478
531
|
var e = $p;
|
|
479
|
-
if (this.
|
|
532
|
+
if (this.l8_1 === 3) {
|
|
480
533
|
throw e;
|
|
481
534
|
} else {
|
|
482
|
-
this.
|
|
483
|
-
this.
|
|
535
|
+
this.k8_1 = this.l8_1;
|
|
536
|
+
this.n8_1 = e;
|
|
484
537
|
}
|
|
485
538
|
}
|
|
486
539
|
while (true);
|
|
487
540
|
};
|
|
488
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
489
|
-
var i = new DefaultWebSocketSessionImpl$start$slambda(this.
|
|
490
|
-
i.
|
|
541
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).k1q = function ($this$launch, completion) {
|
|
542
|
+
var i = new DefaultWebSocketSessionImpl$start$slambda(this.y36_1, this.z36_1, this.a37_1, completion);
|
|
543
|
+
i.b37_1 = $this$launch;
|
|
491
544
|
return i;
|
|
492
545
|
};
|
|
493
546
|
function DefaultWebSocketSessionImpl$start$slambda_0($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
494
547
|
var i = new DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation);
|
|
495
|
-
|
|
496
|
-
return i.
|
|
497
|
-
};
|
|
498
|
-
l.$arity = 1;
|
|
499
|
-
return l;
|
|
548
|
+
return constructCallableReference(function ($this$launch, $completion) {
|
|
549
|
+
return i.j1q($this$launch, $completion);
|
|
550
|
+
}, 1);
|
|
500
551
|
}
|
|
501
552
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation) {
|
|
502
|
-
this.
|
|
503
|
-
this.
|
|
553
|
+
this.k37_1 = this$0;
|
|
554
|
+
this.l37_1 = $ponger;
|
|
504
555
|
CoroutineImpl.call(this, resultContinuation);
|
|
505
556
|
}
|
|
506
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
507
|
-
var tmp = this.
|
|
508
|
-
tmp.
|
|
509
|
-
tmp.
|
|
510
|
-
return tmp.
|
|
557
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j1q = function ($this$launch, $completion) {
|
|
558
|
+
var tmp = this.k1q($this$launch, $completion);
|
|
559
|
+
tmp.m8_1 = Unit_instance;
|
|
560
|
+
tmp.n8_1 = null;
|
|
561
|
+
return tmp.s8();
|
|
511
562
|
};
|
|
512
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
513
|
-
return this.
|
|
563
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).f9 = function (p1, $completion) {
|
|
564
|
+
return this.j1q((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
514
565
|
};
|
|
515
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
516
|
-
var suspendResult = this.
|
|
566
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).s8 = function () {
|
|
567
|
+
var suspendResult = this.m8_1;
|
|
517
568
|
$sm: do
|
|
518
569
|
try {
|
|
519
|
-
var tmp = this.
|
|
570
|
+
var tmp = this.k8_1;
|
|
520
571
|
switch (tmp) {
|
|
521
572
|
case 0:
|
|
522
|
-
this.
|
|
523
|
-
this.
|
|
524
|
-
this.
|
|
525
|
-
this.
|
|
526
|
-
this.
|
|
527
|
-
this.
|
|
573
|
+
this.l8_1 = 39;
|
|
574
|
+
this.w37_1 = null;
|
|
575
|
+
this.p37_1 = null;
|
|
576
|
+
this.o37_1 = false;
|
|
577
|
+
this.q37_1 = Unit_instance;
|
|
578
|
+
this.k8_1 = 1;
|
|
528
579
|
continue $sm;
|
|
529
580
|
case 1:
|
|
530
|
-
this.
|
|
581
|
+
this.k8_1 = 2;
|
|
531
582
|
continue $sm;
|
|
532
583
|
case 2:
|
|
533
|
-
this.
|
|
534
|
-
this.
|
|
535
|
-
this.
|
|
536
|
-
this.
|
|
584
|
+
this.l8_1 = 33;
|
|
585
|
+
this.l8_1 = 32;
|
|
586
|
+
this.a38_1 = this.k37_1.n35_1.k34();
|
|
587
|
+
this.k8_1 = 3;
|
|
537
588
|
continue $sm;
|
|
538
589
|
case 3:
|
|
539
|
-
this.
|
|
540
|
-
this.
|
|
541
|
-
this.
|
|
590
|
+
this.t37_1 = this.a38_1;
|
|
591
|
+
this.s37_1 = null;
|
|
592
|
+
this.k8_1 = 4;
|
|
542
593
|
continue $sm;
|
|
543
594
|
case 4:
|
|
544
|
-
this.
|
|
595
|
+
this.k8_1 = 5;
|
|
545
596
|
continue $sm;
|
|
546
597
|
case 5:
|
|
547
|
-
this.
|
|
598
|
+
this.k8_1 = 6;
|
|
548
599
|
continue $sm;
|
|
549
600
|
case 6:
|
|
550
|
-
this.
|
|
551
|
-
this.
|
|
552
|
-
this.
|
|
553
|
-
this.
|
|
601
|
+
this.l8_1 = 29;
|
|
602
|
+
this.l8_1 = 28;
|
|
603
|
+
this.z37_1 = this.t37_1.t();
|
|
604
|
+
this.k8_1 = 7;
|
|
554
605
|
continue $sm;
|
|
555
606
|
case 7:
|
|
556
|
-
this.
|
|
557
|
-
suspendResult = this.
|
|
607
|
+
this.k8_1 = 8;
|
|
608
|
+
suspendResult = this.z37_1.j17(this);
|
|
558
609
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
559
610
|
return suspendResult;
|
|
560
611
|
}
|
|
@@ -562,46 +613,46 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
562
613
|
continue $sm;
|
|
563
614
|
case 8:
|
|
564
615
|
if (!suspendResult) {
|
|
565
|
-
this.
|
|
616
|
+
this.k8_1 = 26;
|
|
566
617
|
continue $sm;
|
|
567
618
|
}
|
|
568
619
|
|
|
569
|
-
var e = this.
|
|
570
|
-
this.
|
|
571
|
-
this.
|
|
620
|
+
var e = this.z37_1.v();
|
|
621
|
+
this.y37_1 = e;
|
|
622
|
+
this.k8_1 = 9;
|
|
572
623
|
continue $sm;
|
|
573
624
|
case 9:
|
|
574
|
-
this.
|
|
625
|
+
this.x37_1 = this.y37_1;
|
|
575
626
|
var this_0 = get_LOGGER();
|
|
576
627
|
if (get_isTraceEnabled(this_0)) {
|
|
577
|
-
this_0.
|
|
628
|
+
this_0.c2k('WebSocketSession(' + toString(this.m37_1) + ') receiving frame ' + this.x37_1.toString());
|
|
578
629
|
}
|
|
579
630
|
|
|
580
|
-
var tmp0_subject = this.
|
|
631
|
+
var tmp0_subject = this.x37_1;
|
|
581
632
|
if (tmp0_subject instanceof Close) {
|
|
582
|
-
if (!this.
|
|
583
|
-
this.
|
|
584
|
-
var tmp_0 = this.
|
|
585
|
-
var tmp1_elvis_lhs = readReason(this.
|
|
586
|
-
suspendResult = tmp_0.
|
|
633
|
+
if (!this.k37_1.l34().l17()) {
|
|
634
|
+
this.k8_1 = 18;
|
|
635
|
+
var tmp_0 = this.k37_1.l34();
|
|
636
|
+
var tmp1_elvis_lhs = readReason(this.x37_1);
|
|
637
|
+
suspendResult = tmp_0.g19(Close_init_$Create$(tmp1_elvis_lhs == null ? get_NORMAL_CLOSE() : tmp1_elvis_lhs), this);
|
|
587
638
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
588
639
|
return suspendResult;
|
|
589
640
|
}
|
|
590
641
|
continue $sm;
|
|
591
642
|
} else {
|
|
592
|
-
this.
|
|
643
|
+
this.k8_1 = 19;
|
|
593
644
|
continue $sm;
|
|
594
645
|
}
|
|
595
646
|
} else {
|
|
596
647
|
if (tmp0_subject instanceof Pong) {
|
|
597
|
-
var tmp2_safe_receiver = this.
|
|
648
|
+
var tmp2_safe_receiver = this.k37_1.o35_1.kotlinx$atomicfu$value;
|
|
598
649
|
if (tmp2_safe_receiver == null) {
|
|
599
|
-
this.
|
|
600
|
-
this.
|
|
650
|
+
this.v37_1 = null;
|
|
651
|
+
this.k8_1 = 17;
|
|
601
652
|
continue $sm;
|
|
602
653
|
} else {
|
|
603
|
-
this.
|
|
604
|
-
suspendResult = tmp2_safe_receiver.
|
|
654
|
+
this.k8_1 = 16;
|
|
655
|
+
suspendResult = tmp2_safe_receiver.g19(this.x37_1, this);
|
|
605
656
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
606
657
|
return suspendResult;
|
|
607
658
|
}
|
|
@@ -609,15 +660,15 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
609
660
|
}
|
|
610
661
|
} else {
|
|
611
662
|
if (tmp0_subject instanceof Ping) {
|
|
612
|
-
this.
|
|
613
|
-
suspendResult = this.
|
|
663
|
+
this.k8_1 = 15;
|
|
664
|
+
suspendResult = this.l37_1.g19(this.x37_1, this);
|
|
614
665
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
615
666
|
return suspendResult;
|
|
616
667
|
}
|
|
617
668
|
continue $sm;
|
|
618
669
|
} else {
|
|
619
|
-
this.
|
|
620
|
-
suspendResult = checkMaxFrameSize(this.
|
|
670
|
+
this.k8_1 = 10;
|
|
671
|
+
suspendResult = checkMaxFrameSize(this.k37_1, this.p37_1, this.x37_1, this);
|
|
621
672
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
622
673
|
return suspendResult;
|
|
623
674
|
}
|
|
@@ -627,40 +678,40 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
627
678
|
}
|
|
628
679
|
|
|
629
680
|
case 10:
|
|
630
|
-
if (!this.
|
|
631
|
-
if (this.
|
|
632
|
-
this.
|
|
681
|
+
if (!this.x37_1.a34_1) {
|
|
682
|
+
if (this.w37_1 == null) {
|
|
683
|
+
this.w37_1 = this.x37_1;
|
|
633
684
|
}
|
|
634
|
-
if (this.
|
|
635
|
-
this.
|
|
685
|
+
if (this.p37_1 == null) {
|
|
686
|
+
this.p37_1 = BytePacketBuilder();
|
|
636
687
|
}
|
|
637
|
-
writeFully(this.
|
|
638
|
-
this.
|
|
688
|
+
writeFully(this.p37_1, this.x37_1.c34_1);
|
|
689
|
+
this.k8_1 = 21;
|
|
639
690
|
continue $sm;
|
|
640
691
|
} else {
|
|
641
|
-
this.
|
|
692
|
+
this.k8_1 = 11;
|
|
642
693
|
continue $sm;
|
|
643
694
|
}
|
|
644
695
|
|
|
645
696
|
case 11:
|
|
646
|
-
if (this.
|
|
647
|
-
this.
|
|
648
|
-
suspendResult = this.
|
|
697
|
+
if (this.w37_1 == null) {
|
|
698
|
+
this.k8_1 = 14;
|
|
699
|
+
suspendResult = this.k37_1.s35_1.g19(processIncomingExtensions(this.k37_1, this.x37_1), this);
|
|
649
700
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
650
701
|
return suspendResult;
|
|
651
702
|
}
|
|
652
703
|
continue $sm;
|
|
653
704
|
} else {
|
|
654
|
-
this.
|
|
705
|
+
this.k8_1 = 12;
|
|
655
706
|
continue $sm;
|
|
656
707
|
}
|
|
657
708
|
|
|
658
709
|
case 12:
|
|
659
|
-
writeFully(ensureNotNull(this.
|
|
660
|
-
var defragmented =
|
|
661
|
-
this.
|
|
662
|
-
this.
|
|
663
|
-
suspendResult = this.
|
|
710
|
+
writeFully(ensureNotNull(this.p37_1), this.x37_1.c34_1);
|
|
711
|
+
var defragmented = Companion_getInstance_6().c38(true, this.w37_1.b34_1, readByteArray(build(this.p37_1)), this.w37_1.e34_1, this.w37_1.f34_1, this.w37_1.g34_1);
|
|
712
|
+
this.w37_1 = null;
|
|
713
|
+
this.k8_1 = 13;
|
|
714
|
+
suspendResult = this.k37_1.s35_1.g19(processIncomingExtensions(this.k37_1, defragmented), this);
|
|
664
715
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
665
716
|
return suspendResult;
|
|
666
717
|
}
|
|
@@ -668,316 +719,314 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
|
|
|
668
719
|
continue $sm;
|
|
669
720
|
case 13:
|
|
670
721
|
var tmp_1 = this;
|
|
671
|
-
tmp_1.
|
|
672
|
-
this.
|
|
722
|
+
tmp_1.u37_1 = Unit_instance;
|
|
723
|
+
this.k8_1 = 20;
|
|
673
724
|
continue $sm;
|
|
674
725
|
case 14:
|
|
675
|
-
this.
|
|
726
|
+
this.k8_1 = 21;
|
|
676
727
|
continue $sm;
|
|
677
728
|
case 15:
|
|
678
729
|
var tmp_2 = this;
|
|
679
|
-
tmp_2.
|
|
680
|
-
this.
|
|
730
|
+
tmp_2.u37_1 = Unit_instance;
|
|
731
|
+
this.k8_1 = 20;
|
|
681
732
|
continue $sm;
|
|
682
733
|
case 16:
|
|
683
734
|
var tmp_3 = this;
|
|
684
|
-
tmp_3.
|
|
685
|
-
this.
|
|
735
|
+
tmp_3.v37_1 = Unit_instance;
|
|
736
|
+
this.k8_1 = 17;
|
|
686
737
|
continue $sm;
|
|
687
738
|
case 17:
|
|
688
|
-
this.
|
|
689
|
-
this.
|
|
739
|
+
this.u37_1 = this.v37_1;
|
|
740
|
+
this.k8_1 = 20;
|
|
690
741
|
continue $sm;
|
|
691
742
|
case 18:
|
|
692
|
-
this.
|
|
743
|
+
this.k8_1 = 19;
|
|
693
744
|
continue $sm;
|
|
694
745
|
case 19:
|
|
695
|
-
this.
|
|
696
|
-
this.
|
|
746
|
+
this.o37_1 = true;
|
|
747
|
+
this.k8_1 = 22;
|
|
697
748
|
var tmp_4 = this;
|
|
698
749
|
continue $sm;
|
|
699
750
|
case 20:
|
|
700
751
|
if (false) {
|
|
701
|
-
this.
|
|
752
|
+
this.k8_1 = 9;
|
|
702
753
|
continue $sm;
|
|
703
754
|
}
|
|
704
755
|
|
|
705
|
-
this.
|
|
756
|
+
this.k8_1 = 21;
|
|
706
757
|
continue $sm;
|
|
707
758
|
case 21:
|
|
708
|
-
this.
|
|
759
|
+
this.k8_1 = 7;
|
|
709
760
|
continue $sm;
|
|
710
761
|
case 22:
|
|
711
|
-
this.
|
|
712
|
-
cancelConsumed(this.
|
|
713
|
-
this.
|
|
714
|
-
this.
|
|
762
|
+
this.l8_1 = 32;
|
|
763
|
+
cancelConsumed(this.t37_1, this.s37_1);
|
|
764
|
+
this.l8_1 = 39;
|
|
765
|
+
this.k8_1 = 23;
|
|
715
766
|
continue $sm;
|
|
716
767
|
case 23:
|
|
717
|
-
this.
|
|
718
|
-
this.
|
|
719
|
-
var tmp0_safe_receiver = this.
|
|
768
|
+
this.l8_1 = 39;
|
|
769
|
+
this.l37_1.n19();
|
|
770
|
+
var tmp0_safe_receiver = this.p37_1;
|
|
720
771
|
if (tmp0_safe_receiver == null)
|
|
721
772
|
null;
|
|
722
773
|
else {
|
|
723
774
|
tmp0_safe_receiver.j4();
|
|
724
775
|
}
|
|
725
776
|
|
|
726
|
-
this.
|
|
727
|
-
if (!this.
|
|
728
|
-
this.
|
|
729
|
-
suspendResult = close(this.
|
|
777
|
+
this.k37_1.s35_1.n19();
|
|
778
|
+
if (!this.o37_1) {
|
|
779
|
+
this.k8_1 = 24;
|
|
780
|
+
suspendResult = close(this.k37_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
730
781
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
731
782
|
return suspendResult;
|
|
732
783
|
}
|
|
733
784
|
continue $sm;
|
|
734
785
|
} else {
|
|
735
|
-
this.
|
|
786
|
+
this.k8_1 = 25;
|
|
736
787
|
continue $sm;
|
|
737
788
|
}
|
|
738
789
|
|
|
739
790
|
case 24:
|
|
740
|
-
this.
|
|
791
|
+
this.k8_1 = 25;
|
|
741
792
|
continue $sm;
|
|
742
793
|
case 25:
|
|
743
794
|
var tmp_5 = this;
|
|
744
795
|
return Unit_instance;
|
|
745
796
|
case 26:
|
|
746
|
-
this.
|
|
797
|
+
this.k8_1 = 27;
|
|
747
798
|
var tmp_6 = this;
|
|
748
799
|
continue $sm;
|
|
749
800
|
case 27:
|
|
750
|
-
this.
|
|
751
|
-
cancelConsumed(this.
|
|
752
|
-
this.
|
|
801
|
+
this.l8_1 = 32;
|
|
802
|
+
cancelConsumed(this.t37_1, this.s37_1);
|
|
803
|
+
this.k8_1 = 31;
|
|
753
804
|
continue $sm;
|
|
754
805
|
case 28:
|
|
755
|
-
this.
|
|
756
|
-
var tmp_7 = this.
|
|
806
|
+
this.l8_1 = 29;
|
|
807
|
+
var tmp_7 = this.n8_1;
|
|
757
808
|
if (tmp_7 instanceof Error) {
|
|
758
|
-
var e_0 = this.
|
|
809
|
+
var e_0 = this.n8_1;
|
|
759
810
|
var tmp_8 = this;
|
|
760
|
-
this.
|
|
811
|
+
this.s37_1 = e_0;
|
|
761
812
|
throw e_0;
|
|
762
813
|
} else {
|
|
763
|
-
throw this.
|
|
814
|
+
throw this.n8_1;
|
|
764
815
|
}
|
|
765
816
|
|
|
766
817
|
case 29:
|
|
767
|
-
this.
|
|
768
|
-
var t = this.
|
|
769
|
-
cancelConsumed(this.
|
|
818
|
+
this.l8_1 = 32;
|
|
819
|
+
var t = this.n8_1;
|
|
820
|
+
cancelConsumed(this.t37_1, this.s37_1);
|
|
770
821
|
throw t;
|
|
771
822
|
case 30:
|
|
772
|
-
this.
|
|
773
|
-
cancelConsumed(this.
|
|
823
|
+
this.l8_1 = 32;
|
|
824
|
+
cancelConsumed(this.t37_1, this.s37_1);
|
|
774
825
|
if (false) {
|
|
775
|
-
this.
|
|
826
|
+
this.k8_1 = 3;
|
|
776
827
|
continue $sm;
|
|
777
828
|
}
|
|
778
829
|
|
|
779
|
-
this.
|
|
830
|
+
this.k8_1 = 31;
|
|
780
831
|
continue $sm;
|
|
781
832
|
case 31:
|
|
782
|
-
this.
|
|
783
|
-
this.
|
|
784
|
-
this.
|
|
833
|
+
this.q37_1 = Unit_instance;
|
|
834
|
+
this.l8_1 = 39;
|
|
835
|
+
this.k8_1 = 36;
|
|
785
836
|
continue $sm;
|
|
786
837
|
case 32:
|
|
787
|
-
this.
|
|
788
|
-
var tmp_9 = this.
|
|
838
|
+
this.l8_1 = 33;
|
|
839
|
+
var tmp_9 = this.n8_1;
|
|
789
840
|
if (tmp_9 instanceof ClosedSendChannelException) {
|
|
790
|
-
var _unused_var__etf5q3 = this.
|
|
841
|
+
var _unused_var__etf5q3 = this.n8_1;
|
|
791
842
|
var tmp_10 = this;
|
|
792
|
-
tmp_10.
|
|
793
|
-
this.
|
|
794
|
-
this.
|
|
843
|
+
tmp_10.q37_1 = Unit_instance;
|
|
844
|
+
this.l8_1 = 39;
|
|
845
|
+
this.k8_1 = 36;
|
|
795
846
|
continue $sm;
|
|
796
847
|
} else {
|
|
797
|
-
var tmp_11 = this.
|
|
848
|
+
var tmp_11 = this.n8_1;
|
|
798
849
|
if (tmp_11 instanceof Error) {
|
|
799
|
-
var cause = this.
|
|
850
|
+
var cause = this.n8_1;
|
|
800
851
|
var tmp_12 = this;
|
|
801
|
-
this.
|
|
802
|
-
tmp_12.
|
|
803
|
-
this.
|
|
804
|
-
this.
|
|
852
|
+
this.l37_1.n19();
|
|
853
|
+
tmp_12.q37_1 = this.k37_1.s35_1.l19(cause);
|
|
854
|
+
this.l8_1 = 39;
|
|
855
|
+
this.k8_1 = 36;
|
|
805
856
|
continue $sm;
|
|
806
857
|
} else {
|
|
807
|
-
throw this.
|
|
858
|
+
throw this.n8_1;
|
|
808
859
|
}
|
|
809
860
|
}
|
|
810
861
|
|
|
811
862
|
case 33:
|
|
812
|
-
this.
|
|
813
|
-
this.
|
|
814
|
-
this.
|
|
815
|
-
var tmp0_safe_receiver_0 = this.
|
|
863
|
+
this.l8_1 = 39;
|
|
864
|
+
this.r37_1 = this.n8_1;
|
|
865
|
+
this.l37_1.n19();
|
|
866
|
+
var tmp0_safe_receiver_0 = this.p37_1;
|
|
816
867
|
if (tmp0_safe_receiver_0 == null)
|
|
817
868
|
null;
|
|
818
869
|
else {
|
|
819
870
|
tmp0_safe_receiver_0.j4();
|
|
820
871
|
}
|
|
821
872
|
|
|
822
|
-
this.
|
|
823
|
-
if (!this.
|
|
824
|
-
this.
|
|
825
|
-
suspendResult = close(this.
|
|
873
|
+
this.k37_1.s35_1.n19();
|
|
874
|
+
if (!this.o37_1) {
|
|
875
|
+
this.k8_1 = 34;
|
|
876
|
+
suspendResult = close(this.k37_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
826
877
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
827
878
|
return suspendResult;
|
|
828
879
|
}
|
|
829
880
|
continue $sm;
|
|
830
881
|
} else {
|
|
831
|
-
this.
|
|
882
|
+
this.k8_1 = 35;
|
|
832
883
|
continue $sm;
|
|
833
884
|
}
|
|
834
885
|
|
|
835
886
|
case 34:
|
|
836
|
-
this.
|
|
887
|
+
this.k8_1 = 35;
|
|
837
888
|
continue $sm;
|
|
838
889
|
case 35:
|
|
839
|
-
throw this.
|
|
890
|
+
throw this.r37_1;
|
|
840
891
|
case 36:
|
|
841
|
-
this.
|
|
842
|
-
this.
|
|
843
|
-
this.
|
|
844
|
-
var tmp0_safe_receiver_1 = this.
|
|
892
|
+
this.n37_1 = this.q37_1;
|
|
893
|
+
this.l8_1 = 39;
|
|
894
|
+
this.l37_1.n19();
|
|
895
|
+
var tmp0_safe_receiver_1 = this.p37_1;
|
|
845
896
|
if (tmp0_safe_receiver_1 == null)
|
|
846
897
|
null;
|
|
847
898
|
else {
|
|
848
899
|
tmp0_safe_receiver_1.j4();
|
|
849
900
|
}
|
|
850
901
|
|
|
851
|
-
this.
|
|
852
|
-
if (!this.
|
|
853
|
-
this.
|
|
854
|
-
suspendResult = close(this.
|
|
902
|
+
this.k37_1.s35_1.n19();
|
|
903
|
+
if (!this.o37_1) {
|
|
904
|
+
this.k8_1 = 37;
|
|
905
|
+
suspendResult = close(this.k37_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
855
906
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
856
907
|
return suspendResult;
|
|
857
908
|
}
|
|
858
909
|
continue $sm;
|
|
859
910
|
} else {
|
|
860
|
-
this.
|
|
911
|
+
this.k8_1 = 38;
|
|
861
912
|
continue $sm;
|
|
862
913
|
}
|
|
863
914
|
|
|
864
915
|
case 37:
|
|
865
|
-
this.
|
|
916
|
+
this.k8_1 = 38;
|
|
866
917
|
continue $sm;
|
|
867
918
|
case 38:
|
|
868
919
|
return Unit_instance;
|
|
869
920
|
case 39:
|
|
870
|
-
throw this.
|
|
921
|
+
throw this.n8_1;
|
|
871
922
|
}
|
|
872
923
|
} catch ($p) {
|
|
873
924
|
var e_1 = $p;
|
|
874
|
-
if (this.
|
|
925
|
+
if (this.l8_1 === 39) {
|
|
875
926
|
throw e_1;
|
|
876
927
|
} else {
|
|
877
|
-
this.
|
|
878
|
-
this.
|
|
928
|
+
this.k8_1 = this.l8_1;
|
|
929
|
+
this.n8_1 = e_1;
|
|
879
930
|
}
|
|
880
931
|
}
|
|
881
932
|
while (true);
|
|
882
933
|
};
|
|
883
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
884
|
-
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.
|
|
885
|
-
i.
|
|
934
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).k1q = function ($this$launch, completion) {
|
|
935
|
+
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.k37_1, this.l37_1, completion);
|
|
936
|
+
i.m37_1 = $this$launch;
|
|
886
937
|
return i;
|
|
887
938
|
};
|
|
888
939
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0(this$0, $ponger, resultContinuation) {
|
|
889
940
|
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation);
|
|
890
|
-
|
|
891
|
-
return i.
|
|
892
|
-
};
|
|
893
|
-
l.$arity = 1;
|
|
894
|
-
return l;
|
|
941
|
+
return constructCallableReference(function ($this$launch, $completion) {
|
|
942
|
+
return i.j1q($this$launch, $completion);
|
|
943
|
+
}, 1);
|
|
895
944
|
}
|
|
896
945
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation) {
|
|
897
|
-
this.
|
|
946
|
+
this.l38_1 = this$0;
|
|
898
947
|
CoroutineImpl.call(this, resultContinuation);
|
|
899
948
|
}
|
|
900
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
901
|
-
var tmp = this.
|
|
902
|
-
tmp.
|
|
903
|
-
tmp.
|
|
904
|
-
return tmp.
|
|
949
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).j1q = function ($this$launch, $completion) {
|
|
950
|
+
var tmp = this.k1q($this$launch, $completion);
|
|
951
|
+
tmp.m8_1 = Unit_instance;
|
|
952
|
+
tmp.n8_1 = null;
|
|
953
|
+
return tmp.s8();
|
|
905
954
|
};
|
|
906
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
907
|
-
return this.
|
|
955
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).f9 = function (p1, $completion) {
|
|
956
|
+
return this.j1q((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
908
957
|
};
|
|
909
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
910
|
-
var suspendResult = this.
|
|
958
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).s8 = function () {
|
|
959
|
+
var suspendResult = this.m8_1;
|
|
911
960
|
$sm: do
|
|
912
961
|
try {
|
|
913
|
-
var tmp = this.
|
|
962
|
+
var tmp = this.k8_1;
|
|
914
963
|
switch (tmp) {
|
|
915
964
|
case 0:
|
|
916
|
-
this.
|
|
917
|
-
this.
|
|
965
|
+
this.l8_1 = 13;
|
|
966
|
+
this.k8_1 = 1;
|
|
918
967
|
continue $sm;
|
|
919
968
|
case 1:
|
|
920
|
-
this.
|
|
969
|
+
this.k8_1 = 2;
|
|
921
970
|
continue $sm;
|
|
922
971
|
case 2:
|
|
923
|
-
this.
|
|
924
|
-
this.
|
|
925
|
-
this.
|
|
926
|
-
suspendResult = outgoingProcessorLoop(this.
|
|
972
|
+
this.l8_1 = 9;
|
|
973
|
+
this.l8_1 = 4;
|
|
974
|
+
this.k8_1 = 3;
|
|
975
|
+
suspendResult = outgoingProcessorLoop(this.l38_1, this);
|
|
927
976
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
928
977
|
return suspendResult;
|
|
929
978
|
}
|
|
930
979
|
|
|
931
980
|
continue $sm;
|
|
932
981
|
case 3:
|
|
933
|
-
this.
|
|
934
|
-
this.
|
|
982
|
+
this.l8_1 = 13;
|
|
983
|
+
this.k8_1 = 11;
|
|
935
984
|
continue $sm;
|
|
936
985
|
case 4:
|
|
937
|
-
this.
|
|
938
|
-
var tmp_0 = this.
|
|
986
|
+
this.l8_1 = 9;
|
|
987
|
+
var tmp_0 = this.n8_1;
|
|
939
988
|
if (tmp_0 instanceof ClosedSendChannelException) {
|
|
940
|
-
var _unused_var__etf5q3 = this.
|
|
941
|
-
this.
|
|
942
|
-
this.
|
|
989
|
+
var _unused_var__etf5q3 = this.n8_1;
|
|
990
|
+
this.l8_1 = 13;
|
|
991
|
+
this.k8_1 = 11;
|
|
943
992
|
continue $sm;
|
|
944
993
|
} else {
|
|
945
|
-
var tmp_1 = this.
|
|
994
|
+
var tmp_1 = this.n8_1;
|
|
946
995
|
if (tmp_1 instanceof ClosedReceiveChannelException) {
|
|
947
|
-
var _unused_var__etf5q3_0 = this.
|
|
948
|
-
this.
|
|
949
|
-
this.
|
|
996
|
+
var _unused_var__etf5q3_0 = this.n8_1;
|
|
997
|
+
this.l8_1 = 13;
|
|
998
|
+
this.k8_1 = 11;
|
|
950
999
|
continue $sm;
|
|
951
1000
|
} else {
|
|
952
|
-
var tmp_2 = this.
|
|
1001
|
+
var tmp_2 = this.n8_1;
|
|
953
1002
|
if (tmp_2 instanceof CancellationException) {
|
|
954
|
-
var _unused_var__etf5q3_1 = this.
|
|
955
|
-
this.
|
|
956
|
-
suspendResult = sendCloseSequence(this.
|
|
1003
|
+
var _unused_var__etf5q3_1 = this.n8_1;
|
|
1004
|
+
this.k8_1 = 5;
|
|
1005
|
+
suspendResult = sendCloseSequence(this.l38_1, CloseReason_init_$Create$(Codes_NORMAL_getInstance(), ''), VOID, this);
|
|
957
1006
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
958
1007
|
return suspendResult;
|
|
959
1008
|
}
|
|
960
1009
|
continue $sm;
|
|
961
1010
|
} else {
|
|
962
|
-
var tmp_3 = this.
|
|
1011
|
+
var tmp_3 = this.n8_1;
|
|
963
1012
|
if (tmp_3 instanceof ChannelIOException) {
|
|
964
|
-
var _unused_var__etf5q3_2 = this.
|
|
965
|
-
this.
|
|
966
|
-
this.
|
|
1013
|
+
var _unused_var__etf5q3_2 = this.n8_1;
|
|
1014
|
+
this.l8_1 = 13;
|
|
1015
|
+
this.k8_1 = 11;
|
|
967
1016
|
continue $sm;
|
|
968
1017
|
} else {
|
|
969
|
-
var tmp_4 = this.
|
|
1018
|
+
var tmp_4 = this.n8_1;
|
|
970
1019
|
if (tmp_4 instanceof Error) {
|
|
971
|
-
var cause = this.
|
|
972
|
-
this.
|
|
973
|
-
this.
|
|
974
|
-
suspendResult = closeExceptionally(this.
|
|
1020
|
+
var cause = this.n8_1;
|
|
1021
|
+
this.l38_1.t35_1.rt(CancellationException_init_$Create$('Failed to send frame', cause));
|
|
1022
|
+
this.k8_1 = 6;
|
|
1023
|
+
suspendResult = closeExceptionally(this.l38_1.n35_1, cause, this);
|
|
975
1024
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
976
1025
|
return suspendResult;
|
|
977
1026
|
}
|
|
978
1027
|
continue $sm;
|
|
979
1028
|
} else {
|
|
980
|
-
throw this.
|
|
1029
|
+
throw this.n8_1;
|
|
981
1030
|
}
|
|
982
1031
|
}
|
|
983
1032
|
}
|
|
@@ -985,18 +1034,18 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).r8 = function
|
|
|
985
1034
|
}
|
|
986
1035
|
|
|
987
1036
|
case 5:
|
|
988
|
-
this.
|
|
989
|
-
this.
|
|
1037
|
+
this.l8_1 = 13;
|
|
1038
|
+
this.k8_1 = 11;
|
|
990
1039
|
continue $sm;
|
|
991
1040
|
case 6:
|
|
992
|
-
this.
|
|
993
|
-
this.
|
|
1041
|
+
this.l8_1 = 13;
|
|
1042
|
+
this.k8_1 = 7;
|
|
994
1043
|
continue $sm;
|
|
995
1044
|
case 7:
|
|
996
|
-
this.
|
|
997
|
-
this.
|
|
998
|
-
this.
|
|
999
|
-
suspendResult = close(this.
|
|
1045
|
+
this.l8_1 = 13;
|
|
1046
|
+
this.l38_1.t35_1.p19();
|
|
1047
|
+
this.k8_1 = 8;
|
|
1048
|
+
suspendResult = close(this.l38_1.n35_1, VOID, this);
|
|
1000
1049
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1001
1050
|
return suspendResult;
|
|
1002
1051
|
}
|
|
@@ -1005,23 +1054,23 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).r8 = function
|
|
|
1005
1054
|
case 8:
|
|
1006
1055
|
return Unit_instance;
|
|
1007
1056
|
case 9:
|
|
1008
|
-
this.
|
|
1009
|
-
this.
|
|
1010
|
-
this.
|
|
1011
|
-
this.
|
|
1012
|
-
suspendResult = close(this.
|
|
1057
|
+
this.l8_1 = 13;
|
|
1058
|
+
this.n38_1 = this.n8_1;
|
|
1059
|
+
this.l38_1.t35_1.p19();
|
|
1060
|
+
this.k8_1 = 10;
|
|
1061
|
+
suspendResult = close(this.l38_1.n35_1, VOID, this);
|
|
1013
1062
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1014
1063
|
return suspendResult;
|
|
1015
1064
|
}
|
|
1016
1065
|
|
|
1017
1066
|
continue $sm;
|
|
1018
1067
|
case 10:
|
|
1019
|
-
throw this.
|
|
1068
|
+
throw this.n38_1;
|
|
1020
1069
|
case 11:
|
|
1021
|
-
this.
|
|
1022
|
-
this.
|
|
1023
|
-
this.
|
|
1024
|
-
suspendResult = close(this.
|
|
1070
|
+
this.l8_1 = 13;
|
|
1071
|
+
this.l38_1.t35_1.p19();
|
|
1072
|
+
this.k8_1 = 12;
|
|
1073
|
+
suspendResult = close(this.l38_1.n35_1, VOID, this);
|
|
1025
1074
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1026
1075
|
return suspendResult;
|
|
1027
1076
|
}
|
|
@@ -1030,55 +1079,53 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).r8 = function
|
|
|
1030
1079
|
case 12:
|
|
1031
1080
|
return Unit_instance;
|
|
1032
1081
|
case 13:
|
|
1033
|
-
throw this.
|
|
1082
|
+
throw this.n8_1;
|
|
1034
1083
|
}
|
|
1035
1084
|
} catch ($p) {
|
|
1036
1085
|
var e = $p;
|
|
1037
|
-
if (this.
|
|
1086
|
+
if (this.l8_1 === 13) {
|
|
1038
1087
|
throw e;
|
|
1039
1088
|
} else {
|
|
1040
|
-
this.
|
|
1041
|
-
this.
|
|
1089
|
+
this.k8_1 = this.l8_1;
|
|
1090
|
+
this.n8_1 = e;
|
|
1042
1091
|
}
|
|
1043
1092
|
}
|
|
1044
1093
|
while (true);
|
|
1045
1094
|
};
|
|
1046
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
1047
|
-
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.
|
|
1048
|
-
i.
|
|
1095
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).k1q = function ($this$launch, completion) {
|
|
1096
|
+
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.l38_1, completion);
|
|
1097
|
+
i.m38_1 = $this$launch;
|
|
1049
1098
|
return i;
|
|
1050
1099
|
};
|
|
1051
1100
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0(this$0, resultContinuation) {
|
|
1052
1101
|
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation);
|
|
1053
|
-
|
|
1054
|
-
return i.
|
|
1055
|
-
};
|
|
1056
|
-
l.$arity = 1;
|
|
1057
|
-
return l;
|
|
1102
|
+
return constructCallableReference(function ($this$launch, $completion) {
|
|
1103
|
+
return i.j1q($this$launch, $completion);
|
|
1104
|
+
}, 1);
|
|
1058
1105
|
}
|
|
1059
1106
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation) {
|
|
1060
|
-
this.
|
|
1107
|
+
this.w38_1 = this$0;
|
|
1061
1108
|
CoroutineImpl.call(this, resultContinuation);
|
|
1062
1109
|
}
|
|
1063
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1064
|
-
var tmp = this.
|
|
1065
|
-
tmp.
|
|
1066
|
-
tmp.
|
|
1067
|
-
return tmp.
|
|
1110
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).y38 = function (it, $completion) {
|
|
1111
|
+
var tmp = this.z38(it, $completion);
|
|
1112
|
+
tmp.m8_1 = Unit_instance;
|
|
1113
|
+
tmp.n8_1 = null;
|
|
1114
|
+
return tmp.s8();
|
|
1068
1115
|
};
|
|
1069
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1070
|
-
return this.
|
|
1116
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).f9 = function (p1, $completion) {
|
|
1117
|
+
return this.y38(p1 instanceof CloseReason ? p1 : THROW_CCE(), $completion);
|
|
1071
1118
|
};
|
|
1072
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1073
|
-
var suspendResult = this.
|
|
1119
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).s8 = function () {
|
|
1120
|
+
var suspendResult = this.m8_1;
|
|
1074
1121
|
$sm: do
|
|
1075
1122
|
try {
|
|
1076
|
-
var tmp = this.
|
|
1123
|
+
var tmp = this.k8_1;
|
|
1077
1124
|
switch (tmp) {
|
|
1078
1125
|
case 0:
|
|
1079
|
-
this.
|
|
1080
|
-
this.
|
|
1081
|
-
suspendResult = sendCloseSequence(this.
|
|
1126
|
+
this.l8_1 = 2;
|
|
1127
|
+
this.k8_1 = 1;
|
|
1128
|
+
suspendResult = sendCloseSequence(this.w38_1, this.x38_1, IOException_init_$Create$('Ping timeout'), this);
|
|
1082
1129
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1083
1130
|
return suspendResult;
|
|
1084
1131
|
}
|
|
@@ -1087,50 +1134,48 @@ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).r8 = function ()
|
|
|
1087
1134
|
case 1:
|
|
1088
1135
|
return Unit_instance;
|
|
1089
1136
|
case 2:
|
|
1090
|
-
throw this.
|
|
1137
|
+
throw this.n8_1;
|
|
1091
1138
|
}
|
|
1092
1139
|
} catch ($p) {
|
|
1093
1140
|
var e = $p;
|
|
1094
|
-
if (this.
|
|
1141
|
+
if (this.l8_1 === 2) {
|
|
1095
1142
|
throw e;
|
|
1096
1143
|
} else {
|
|
1097
|
-
this.
|
|
1098
|
-
this.
|
|
1144
|
+
this.k8_1 = this.l8_1;
|
|
1145
|
+
this.n8_1 = e;
|
|
1099
1146
|
}
|
|
1100
1147
|
}
|
|
1101
1148
|
while (true);
|
|
1102
1149
|
};
|
|
1103
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1104
|
-
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.
|
|
1105
|
-
i.
|
|
1150
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).z38 = function (it, completion) {
|
|
1151
|
+
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.w38_1, completion);
|
|
1152
|
+
i.x38_1 = it;
|
|
1106
1153
|
return i;
|
|
1107
1154
|
};
|
|
1108
1155
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0(this$0, resultContinuation) {
|
|
1109
1156
|
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation);
|
|
1110
|
-
|
|
1111
|
-
return i.
|
|
1112
|
-
};
|
|
1113
|
-
l.$arity = 1;
|
|
1114
|
-
return l;
|
|
1157
|
+
return constructCallableReference(function (it, $completion) {
|
|
1158
|
+
return i.y38(it, $completion);
|
|
1159
|
+
}, 1);
|
|
1115
1160
|
}
|
|
1116
1161
|
function $outgoingProcessorLoopCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1117
1162
|
CoroutineImpl.call(this, resultContinuation);
|
|
1118
|
-
this.
|
|
1163
|
+
this.y34_1 = _this__u8e3s4;
|
|
1119
1164
|
}
|
|
1120
|
-
protoOf($outgoingProcessorLoopCOROUTINE$).
|
|
1121
|
-
var suspendResult = this.
|
|
1165
|
+
protoOf($outgoingProcessorLoopCOROUTINE$).s8 = function () {
|
|
1166
|
+
var suspendResult = this.m8_1;
|
|
1122
1167
|
$sm: do
|
|
1123
1168
|
try {
|
|
1124
|
-
var tmp = this.
|
|
1169
|
+
var tmp = this.k8_1;
|
|
1125
1170
|
switch (tmp) {
|
|
1126
1171
|
case 0:
|
|
1127
|
-
this.
|
|
1128
|
-
this.
|
|
1129
|
-
this.
|
|
1172
|
+
this.l8_1 = 7;
|
|
1173
|
+
this.a35_1 = this.y34_1.t35_1.t();
|
|
1174
|
+
this.k8_1 = 1;
|
|
1130
1175
|
continue $sm;
|
|
1131
1176
|
case 1:
|
|
1132
|
-
this.
|
|
1133
|
-
suspendResult = this.
|
|
1177
|
+
this.k8_1 = 2;
|
|
1178
|
+
suspendResult = this.a35_1.j17(this);
|
|
1134
1179
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1135
1180
|
return suspendResult;
|
|
1136
1181
|
}
|
|
@@ -1138,19 +1183,19 @@ protoOf($outgoingProcessorLoopCOROUTINE$).r8 = function () {
|
|
|
1138
1183
|
continue $sm;
|
|
1139
1184
|
case 2:
|
|
1140
1185
|
if (!suspendResult) {
|
|
1141
|
-
this.
|
|
1186
|
+
this.k8_1 = 6;
|
|
1142
1187
|
continue $sm;
|
|
1143
1188
|
}
|
|
1144
1189
|
|
|
1145
|
-
var frame = this.
|
|
1190
|
+
var frame = this.a35_1.v();
|
|
1146
1191
|
var this_0 = get_LOGGER();
|
|
1147
1192
|
if (get_isTraceEnabled(this_0)) {
|
|
1148
|
-
this_0.
|
|
1193
|
+
this_0.c2k('Sending ' + frame.toString() + ' from session ' + toString(this.y34_1));
|
|
1149
1194
|
}
|
|
1150
1195
|
|
|
1151
1196
|
if (frame instanceof Close) {
|
|
1152
|
-
this.
|
|
1153
|
-
suspendResult = sendCloseSequence(this.
|
|
1197
|
+
this.k8_1 = 3;
|
|
1198
|
+
suspendResult = sendCloseSequence(this.y34_1, readReason(frame), VOID, this);
|
|
1154
1199
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1155
1200
|
return suspendResult;
|
|
1156
1201
|
}
|
|
@@ -1163,223 +1208,223 @@ protoOf($outgoingProcessorLoopCOROUTINE$).r8 = function () {
|
|
|
1163
1208
|
tmp_0 = frame instanceof Binary;
|
|
1164
1209
|
}
|
|
1165
1210
|
if (tmp_0) {
|
|
1166
|
-
this.
|
|
1167
|
-
this.
|
|
1211
|
+
this.z34_1 = processOutgoingExtensions(this.y34_1, frame);
|
|
1212
|
+
this.k8_1 = 4;
|
|
1168
1213
|
continue $sm;
|
|
1169
1214
|
} else {
|
|
1170
|
-
this.
|
|
1171
|
-
this.
|
|
1215
|
+
this.z34_1 = frame;
|
|
1216
|
+
this.k8_1 = 4;
|
|
1172
1217
|
continue $sm;
|
|
1173
1218
|
}
|
|
1174
1219
|
}
|
|
1175
1220
|
|
|
1176
1221
|
case 3:
|
|
1177
|
-
this.
|
|
1222
|
+
this.k8_1 = 6;
|
|
1178
1223
|
var tmp_1 = this;
|
|
1179
1224
|
continue $sm;
|
|
1180
1225
|
case 4:
|
|
1181
|
-
var processedFrame = this.
|
|
1182
|
-
this.
|
|
1183
|
-
suspendResult = this.
|
|
1226
|
+
var processedFrame = this.z34_1;
|
|
1227
|
+
this.k8_1 = 5;
|
|
1228
|
+
suspendResult = this.y34_1.n35_1.l34().g19(processedFrame, this);
|
|
1184
1229
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1185
1230
|
return suspendResult;
|
|
1186
1231
|
}
|
|
1187
1232
|
|
|
1188
1233
|
continue $sm;
|
|
1189
1234
|
case 5:
|
|
1190
|
-
this.
|
|
1235
|
+
this.k8_1 = 1;
|
|
1191
1236
|
continue $sm;
|
|
1192
1237
|
case 6:
|
|
1193
1238
|
return Unit_instance;
|
|
1194
1239
|
case 7:
|
|
1195
|
-
throw this.
|
|
1240
|
+
throw this.n8_1;
|
|
1196
1241
|
}
|
|
1197
1242
|
} catch ($p) {
|
|
1198
1243
|
var e = $p;
|
|
1199
|
-
if (this.
|
|
1244
|
+
if (this.l8_1 === 7) {
|
|
1200
1245
|
throw e;
|
|
1201
1246
|
} else {
|
|
1202
|
-
this.
|
|
1203
|
-
this.
|
|
1247
|
+
this.k8_1 = this.l8_1;
|
|
1248
|
+
this.n8_1 = e;
|
|
1204
1249
|
}
|
|
1205
1250
|
}
|
|
1206
1251
|
while (true);
|
|
1207
1252
|
};
|
|
1208
1253
|
function $sendCloseSequenceCOROUTINE$(_this__u8e3s4, reason, exception, resultContinuation) {
|
|
1209
1254
|
CoroutineImpl.call(this, resultContinuation);
|
|
1210
|
-
this.
|
|
1211
|
-
this.
|
|
1212
|
-
this.
|
|
1255
|
+
this.j35_1 = _this__u8e3s4;
|
|
1256
|
+
this.k35_1 = reason;
|
|
1257
|
+
this.l35_1 = exception;
|
|
1213
1258
|
}
|
|
1214
|
-
protoOf($sendCloseSequenceCOROUTINE$).
|
|
1215
|
-
var suspendResult = this.
|
|
1259
|
+
protoOf($sendCloseSequenceCOROUTINE$).s8 = function () {
|
|
1260
|
+
var suspendResult = this.m8_1;
|
|
1216
1261
|
$sm: do
|
|
1217
1262
|
try {
|
|
1218
|
-
var tmp = this.
|
|
1263
|
+
var tmp = this.k8_1;
|
|
1219
1264
|
switch (tmp) {
|
|
1220
1265
|
case 0:
|
|
1221
|
-
this.
|
|
1222
|
-
if (!tryClose(this.
|
|
1266
|
+
this.l8_1 = 6;
|
|
1267
|
+
if (!tryClose(this.j35_1))
|
|
1223
1268
|
return Unit_instance;
|
|
1224
1269
|
var this_0 = get_LOGGER();
|
|
1225
1270
|
if (get_isTraceEnabled(this_0)) {
|
|
1226
|
-
this_0.
|
|
1271
|
+
this_0.c2k('Sending Close Sequence for session ' + toString(this.j35_1) + ' with reason ' + toString_0(this.k35_1) + ' and exception ' + toString_0(this.l35_1));
|
|
1227
1272
|
}
|
|
1228
1273
|
|
|
1229
|
-
this.
|
|
1274
|
+
this.j35_1.q35_1.az();
|
|
1230
1275
|
var tmp_0 = this;
|
|
1231
|
-
var tmp0_elvis_lhs = this.
|
|
1232
|
-
tmp_0.
|
|
1233
|
-
this.
|
|
1276
|
+
var tmp0_elvis_lhs = this.k35_1;
|
|
1277
|
+
tmp_0.m35_1 = tmp0_elvis_lhs == null ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : tmp0_elvis_lhs;
|
|
1278
|
+
this.k8_1 = 1;
|
|
1234
1279
|
continue $sm;
|
|
1235
1280
|
case 1:
|
|
1236
|
-
this.
|
|
1237
|
-
runOrCancelPinger(this.
|
|
1238
|
-
if (!(this.t33_1
|
|
1239
|
-
this.
|
|
1240
|
-
suspendResult = this.
|
|
1281
|
+
this.l8_1 = 5;
|
|
1282
|
+
runOrCancelPinger(this.j35_1);
|
|
1283
|
+
if (!(this.m35_1.t33_1 === Codes_CLOSED_ABNORMALLY_getInstance().p33_1)) {
|
|
1284
|
+
this.k8_1 = 2;
|
|
1285
|
+
suspendResult = this.j35_1.n35_1.l34().g19(Close_init_$Create$(this.m35_1), this);
|
|
1241
1286
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1242
1287
|
return suspendResult;
|
|
1243
1288
|
}
|
|
1244
1289
|
continue $sm;
|
|
1245
1290
|
} else {
|
|
1246
|
-
this.
|
|
1291
|
+
this.k8_1 = 3;
|
|
1247
1292
|
continue $sm;
|
|
1248
1293
|
}
|
|
1249
1294
|
|
|
1250
1295
|
case 2:
|
|
1251
|
-
this.
|
|
1296
|
+
this.k8_1 = 3;
|
|
1252
1297
|
continue $sm;
|
|
1253
1298
|
case 3:
|
|
1254
|
-
this.
|
|
1255
|
-
this.
|
|
1299
|
+
this.l8_1 = 6;
|
|
1300
|
+
this.k8_1 = 4;
|
|
1256
1301
|
continue $sm;
|
|
1257
1302
|
case 4:
|
|
1258
|
-
this.
|
|
1259
|
-
this.
|
|
1260
|
-
if (!(this.
|
|
1261
|
-
this.
|
|
1262
|
-
this.
|
|
1303
|
+
this.l8_1 = 6;
|
|
1304
|
+
this.j35_1.p35_1.yy(this.m35_1);
|
|
1305
|
+
if (!(this.l35_1 == null)) {
|
|
1306
|
+
this.j35_1.t35_1.l19(this.l35_1);
|
|
1307
|
+
this.j35_1.s35_1.l19(this.l35_1);
|
|
1263
1308
|
}
|
|
1264
1309
|
|
|
1265
1310
|
return Unit_instance;
|
|
1266
1311
|
case 5:
|
|
1267
|
-
this.
|
|
1268
|
-
var t = this.
|
|
1269
|
-
this.
|
|
1270
|
-
if (!(this.
|
|
1271
|
-
this.
|
|
1272
|
-
this.
|
|
1312
|
+
this.l8_1 = 6;
|
|
1313
|
+
var t = this.n8_1;
|
|
1314
|
+
this.j35_1.p35_1.yy(this.m35_1);
|
|
1315
|
+
if (!(this.l35_1 == null)) {
|
|
1316
|
+
this.j35_1.t35_1.l19(this.l35_1);
|
|
1317
|
+
this.j35_1.s35_1.l19(this.l35_1);
|
|
1273
1318
|
}
|
|
1274
1319
|
|
|
1275
1320
|
throw t;
|
|
1276
1321
|
case 6:
|
|
1277
|
-
throw this.
|
|
1322
|
+
throw this.n8_1;
|
|
1278
1323
|
}
|
|
1279
1324
|
} catch ($p) {
|
|
1280
1325
|
var e = $p;
|
|
1281
|
-
if (this.
|
|
1326
|
+
if (this.l8_1 === 6) {
|
|
1282
1327
|
throw e;
|
|
1283
1328
|
} else {
|
|
1284
|
-
this.
|
|
1285
|
-
this.
|
|
1329
|
+
this.k8_1 = this.l8_1;
|
|
1330
|
+
this.n8_1 = e;
|
|
1286
1331
|
}
|
|
1287
1332
|
}
|
|
1288
1333
|
while (true);
|
|
1289
1334
|
};
|
|
1290
1335
|
function $checkMaxFrameSizeCOROUTINE$(_this__u8e3s4, packet, frame, resultContinuation) {
|
|
1291
1336
|
CoroutineImpl.call(this, resultContinuation);
|
|
1292
|
-
this.
|
|
1293
|
-
this.
|
|
1294
|
-
this.
|
|
1337
|
+
this.j36_1 = _this__u8e3s4;
|
|
1338
|
+
this.k36_1 = packet;
|
|
1339
|
+
this.l36_1 = frame;
|
|
1295
1340
|
}
|
|
1296
|
-
protoOf($checkMaxFrameSizeCOROUTINE$).
|
|
1297
|
-
var suspendResult = this.
|
|
1341
|
+
protoOf($checkMaxFrameSizeCOROUTINE$).s8 = function () {
|
|
1342
|
+
var suspendResult = this.m8_1;
|
|
1298
1343
|
$sm: do
|
|
1299
1344
|
try {
|
|
1300
|
-
var tmp = this.
|
|
1345
|
+
var tmp = this.k8_1;
|
|
1301
1346
|
switch (tmp) {
|
|
1302
1347
|
case 0:
|
|
1303
|
-
this.
|
|
1348
|
+
this.l8_1 = 3;
|
|
1304
1349
|
var tmp_0 = this;
|
|
1305
|
-
var tmp_1 = this.
|
|
1306
|
-
var tmp0_safe_receiver = this.
|
|
1350
|
+
var tmp_1 = this.l36_1.c34_1.length;
|
|
1351
|
+
var tmp0_safe_receiver = this.k36_1;
|
|
1307
1352
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_size(tmp0_safe_receiver);
|
|
1308
|
-
tmp_0.
|
|
1309
|
-
if (fromInt(this.
|
|
1310
|
-
var tmp2_safe_receiver = this.
|
|
1353
|
+
tmp_0.m36_1 = tmp_1 + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
1354
|
+
if (fromInt(this.m36_1) > this.j36_1.j34()) {
|
|
1355
|
+
var tmp2_safe_receiver = this.k36_1;
|
|
1311
1356
|
if (tmp2_safe_receiver == null)
|
|
1312
1357
|
null;
|
|
1313
1358
|
else {
|
|
1314
1359
|
tmp2_safe_receiver.j4();
|
|
1315
1360
|
}
|
|
1316
|
-
this.
|
|
1317
|
-
suspendResult = close(this.
|
|
1361
|
+
this.k8_1 = 2;
|
|
1362
|
+
suspendResult = close(this.j36_1, CloseReason_init_$Create$(Codes_TOO_BIG_getInstance(), 'Frame is too big: ' + this.m36_1 + '. Max size is ' + this.j36_1.j34().toString()), this);
|
|
1318
1363
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1319
1364
|
return suspendResult;
|
|
1320
1365
|
}
|
|
1321
1366
|
continue $sm;
|
|
1322
1367
|
} else {
|
|
1323
|
-
this.
|
|
1368
|
+
this.k8_1 = 1;
|
|
1324
1369
|
continue $sm;
|
|
1325
1370
|
}
|
|
1326
1371
|
|
|
1327
1372
|
case 1:
|
|
1328
1373
|
return Unit_instance;
|
|
1329
1374
|
case 2:
|
|
1330
|
-
throw new FrameTooBigException(fromInt(this.
|
|
1375
|
+
throw new FrameTooBigException(fromInt(this.m36_1));
|
|
1331
1376
|
case 3:
|
|
1332
|
-
throw this.
|
|
1377
|
+
throw this.n8_1;
|
|
1333
1378
|
}
|
|
1334
1379
|
} catch ($p) {
|
|
1335
1380
|
var e = $p;
|
|
1336
|
-
if (this.
|
|
1381
|
+
if (this.l8_1 === 3) {
|
|
1337
1382
|
throw e;
|
|
1338
1383
|
} else {
|
|
1339
|
-
this.
|
|
1340
|
-
this.
|
|
1384
|
+
this.k8_1 = this.l8_1;
|
|
1385
|
+
this.n8_1 = e;
|
|
1341
1386
|
}
|
|
1342
1387
|
}
|
|
1343
1388
|
while (true);
|
|
1344
1389
|
};
|
|
1345
1390
|
function DefaultWebSocketSessionImpl(raw, pingIntervalMillis, timeoutMillis, incomingFramesConfig, outgoingFramesConfig) {
|
|
1346
|
-
|
|
1347
|
-
this.
|
|
1348
|
-
this.
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1353
|
-
this.
|
|
1354
|
-
this.
|
|
1391
|
+
Companion_getInstance_1();
|
|
1392
|
+
this.n35_1 = raw;
|
|
1393
|
+
this.o35_1 = atomic$ref$1(null);
|
|
1394
|
+
this.p35_1 = CompletableDeferred();
|
|
1395
|
+
this.q35_1 = Job();
|
|
1396
|
+
this.r35_1 = this.n35_1.is().tf(Key_instance).vf(this.q35_1).vf(new CoroutineName('ws-default'));
|
|
1397
|
+
this.s35_1 = from(Factory_getInstance(), incomingFramesConfig);
|
|
1398
|
+
this.t35_1 = from(Factory_getInstance(), outgoingFramesConfig);
|
|
1399
|
+
this.u35_1 = atomic$boolean$1(false);
|
|
1355
1400
|
var tmp = this;
|
|
1356
1401
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1357
|
-
tmp.
|
|
1358
|
-
this.
|
|
1359
|
-
this.
|
|
1360
|
-
this.
|
|
1361
|
-
this.
|
|
1402
|
+
tmp.v35_1 = ArrayList_init_$Create$();
|
|
1403
|
+
this.w35_1 = atomic$boolean$1(false);
|
|
1404
|
+
this.x35_1 = pingIntervalMillis;
|
|
1405
|
+
this.y35_1 = timeoutMillis;
|
|
1406
|
+
this.z35_1 = this.p35_1;
|
|
1362
1407
|
}
|
|
1363
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1364
|
-
return this.
|
|
1408
|
+
protoOf(DefaultWebSocketSessionImpl).is = function () {
|
|
1409
|
+
return this.r35_1;
|
|
1365
1410
|
};
|
|
1366
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1367
|
-
return this.
|
|
1411
|
+
protoOf(DefaultWebSocketSessionImpl).k34 = function () {
|
|
1412
|
+
return this.s35_1;
|
|
1368
1413
|
};
|
|
1369
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1370
|
-
return this.
|
|
1414
|
+
protoOf(DefaultWebSocketSessionImpl).l34 = function () {
|
|
1415
|
+
return this.t35_1;
|
|
1371
1416
|
};
|
|
1372
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1373
|
-
return this.
|
|
1417
|
+
protoOf(DefaultWebSocketSessionImpl).n36 = function () {
|
|
1418
|
+
return this.v35_1;
|
|
1374
1419
|
};
|
|
1375
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1376
|
-
this.
|
|
1420
|
+
protoOf(DefaultWebSocketSessionImpl).i34 = function (value) {
|
|
1421
|
+
this.n35_1.i34(value);
|
|
1377
1422
|
};
|
|
1378
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1379
|
-
return this.
|
|
1423
|
+
protoOf(DefaultWebSocketSessionImpl).j34 = function () {
|
|
1424
|
+
return this.n35_1.j34();
|
|
1380
1425
|
};
|
|
1381
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1382
|
-
if (!this.
|
|
1426
|
+
protoOf(DefaultWebSocketSessionImpl).h34 = function (negotiatedExtensions) {
|
|
1427
|
+
if (!this.w35_1.atomicfu$compareAndSet(false, true)) {
|
|
1383
1428
|
// Inline function 'kotlin.error' call
|
|
1384
1429
|
var message = 'WebSocket session ' + toString(this) + ' is already started.';
|
|
1385
1430
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -1388,16 +1433,16 @@ protoOf(DefaultWebSocketSessionImpl).o32 = function (negotiatedExtensions) {
|
|
|
1388
1433
|
var this_0 = get_LOGGER();
|
|
1389
1434
|
if (get_isTraceEnabled(this_0)) {
|
|
1390
1435
|
var tmp$ret$2 = 'Starting default WebSocketSession(' + toString(this) + ') ' + ('with negotiated extensions: ' + joinToString(negotiatedExtensions));
|
|
1391
|
-
this_0.
|
|
1436
|
+
this_0.c2k(tmp$ret$2);
|
|
1392
1437
|
}
|
|
1393
|
-
this.
|
|
1438
|
+
this.v35_1.i1(negotiatedExtensions);
|
|
1394
1439
|
runOrCancelPinger(this);
|
|
1395
|
-
var incomingJob = runIncomingProcessor(this, ponger(this, this.
|
|
1440
|
+
var incomingJob = runIncomingProcessor(this, ponger(this, this.l34()));
|
|
1396
1441
|
var outgoingJob = runOutgoingProcessor(this);
|
|
1397
1442
|
launch(this, VOID, VOID, DefaultWebSocketSessionImpl$start$slambda_0(incomingJob, outgoingJob, this, null));
|
|
1398
1443
|
};
|
|
1399
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1400
|
-
return this.
|
|
1444
|
+
protoOf(DefaultWebSocketSessionImpl).y1g = function ($completion) {
|
|
1445
|
+
return this.n35_1.y1g($completion);
|
|
1401
1446
|
};
|
|
1402
1447
|
var properties_initialized_DefaultWebSocketSession_kt_6cjlhc;
|
|
1403
1448
|
function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
@@ -1419,20 +1464,20 @@ function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
|
1419
1464
|
}
|
|
1420
1465
|
}
|
|
1421
1466
|
function readReason(_this__u8e3s4) {
|
|
1422
|
-
if (_this__u8e3s4.
|
|
1467
|
+
if (_this__u8e3s4.c34_1.length < 2) {
|
|
1423
1468
|
return null;
|
|
1424
1469
|
}
|
|
1425
1470
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1426
1471
|
var builder = new Buffer();
|
|
1427
|
-
writeFully(builder, _this__u8e3s4.
|
|
1472
|
+
writeFully(builder, _this__u8e3s4.c34_1);
|
|
1428
1473
|
var packet = builder;
|
|
1429
|
-
var code = packet.
|
|
1474
|
+
var code = packet.kp();
|
|
1430
1475
|
var message = readText(packet);
|
|
1431
1476
|
return new CloseReason(code, message);
|
|
1432
1477
|
}
|
|
1433
1478
|
function NonDisposableHandle() {
|
|
1434
1479
|
}
|
|
1435
|
-
protoOf(NonDisposableHandle).
|
|
1480
|
+
protoOf(NonDisposableHandle).tv = function () {
|
|
1436
1481
|
return Unit_instance;
|
|
1437
1482
|
};
|
|
1438
1483
|
protoOf(NonDisposableHandle).toString = function () {
|
|
@@ -1452,28 +1497,27 @@ var NonDisposableHandle_instance;
|
|
|
1452
1497
|
function NonDisposableHandle_getInstance() {
|
|
1453
1498
|
return NonDisposableHandle_instance;
|
|
1454
1499
|
}
|
|
1455
|
-
function FrameTooBigException(frameSize) {
|
|
1456
|
-
|
|
1500
|
+
function FrameTooBigException(frameSize, cause) {
|
|
1501
|
+
cause = cause === VOID ? null : cause;
|
|
1502
|
+
Exception_init_$Init$(cause, this);
|
|
1457
1503
|
captureStack(this, FrameTooBigException);
|
|
1458
|
-
this.
|
|
1504
|
+
this.a39_1 = frameSize;
|
|
1459
1505
|
delete this.message;
|
|
1460
1506
|
}
|
|
1461
1507
|
protoOf(FrameTooBigException).e = function () {
|
|
1462
|
-
|
|
1508
|
+
var sizeSuffix = this.a39_1 >= 0n ? ': ' + this.a39_1.toString() : '';
|
|
1509
|
+
return 'Frame is too big' + sizeSuffix;
|
|
1463
1510
|
};
|
|
1464
|
-
protoOf(FrameTooBigException).
|
|
1465
|
-
|
|
1466
|
-
var this_0 = new FrameTooBigException(this.o37_1);
|
|
1467
|
-
initCauseBridge(this_0, this);
|
|
1468
|
-
return this_0;
|
|
1511
|
+
protoOf(FrameTooBigException).jz = function () {
|
|
1512
|
+
return new FrameTooBigException(this.a39_1, this);
|
|
1469
1513
|
};
|
|
1470
1514
|
var FrameType_TEXT_instance;
|
|
1471
1515
|
var FrameType_BINARY_instance;
|
|
1472
1516
|
var FrameType_CLOSE_instance;
|
|
1473
1517
|
var FrameType_PING_instance;
|
|
1474
1518
|
var FrameType_PONG_instance;
|
|
1475
|
-
function
|
|
1476
|
-
|
|
1519
|
+
function Companion_2() {
|
|
1520
|
+
Companion_instance_2 = this;
|
|
1477
1521
|
var tmp = this;
|
|
1478
1522
|
var tmp0 = get_entries_0();
|
|
1479
1523
|
var tmp$ret$0;
|
|
@@ -1489,10 +1533,10 @@ function Companion_1() {
|
|
|
1489
1533
|
tmp$ret$0 = maxElem;
|
|
1490
1534
|
break $l$block_0;
|
|
1491
1535
|
}
|
|
1492
|
-
var maxValue = maxElem.
|
|
1536
|
+
var maxValue = maxElem.z33_1;
|
|
1493
1537
|
do {
|
|
1494
1538
|
var e = iterator.v();
|
|
1495
|
-
var v = e.
|
|
1539
|
+
var v = e.z33_1;
|
|
1496
1540
|
if (compareTo(maxValue, v) < 0) {
|
|
1497
1541
|
maxElem = e;
|
|
1498
1542
|
maxValue = v;
|
|
@@ -1501,10 +1545,10 @@ function Companion_1() {
|
|
|
1501
1545
|
while (iterator.u());
|
|
1502
1546
|
tmp$ret$0 = maxElem;
|
|
1503
1547
|
}
|
|
1504
|
-
tmp.
|
|
1548
|
+
tmp.b39_1 = ensureNotNull(tmp$ret$0).z33_1;
|
|
1505
1549
|
var tmp_0 = this;
|
|
1506
1550
|
var tmp_1 = 0;
|
|
1507
|
-
var tmp_2 = this.
|
|
1551
|
+
var tmp_2 = this.b39_1 + 1 | 0;
|
|
1508
1552
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1509
1553
|
var tmp_3 = Array(tmp_2);
|
|
1510
1554
|
while (tmp_1 < tmp_2) {
|
|
@@ -1518,7 +1562,7 @@ function Companion_1() {
|
|
|
1518
1562
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
1519
1563
|
while (_iterator__ex2g4s.u()) {
|
|
1520
1564
|
var element = _iterator__ex2g4s.v();
|
|
1521
|
-
if (element.
|
|
1565
|
+
if (element.z33_1 === tmp_4) {
|
|
1522
1566
|
if (found) {
|
|
1523
1567
|
tmp$ret$5 = null;
|
|
1524
1568
|
break $l$block_2;
|
|
@@ -1536,14 +1580,14 @@ function Companion_1() {
|
|
|
1536
1580
|
tmp_3[tmp_4] = tmp$ret$5;
|
|
1537
1581
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1538
1582
|
}
|
|
1539
|
-
tmp_0.
|
|
1583
|
+
tmp_0.c39_1 = tmp_3;
|
|
1540
1584
|
}
|
|
1541
|
-
var
|
|
1542
|
-
function
|
|
1585
|
+
var Companion_instance_2;
|
|
1586
|
+
function Companion_getInstance_2() {
|
|
1543
1587
|
FrameType_initEntries();
|
|
1544
|
-
if (
|
|
1545
|
-
new
|
|
1546
|
-
return
|
|
1588
|
+
if (Companion_instance_2 == null)
|
|
1589
|
+
new Companion_2();
|
|
1590
|
+
return Companion_instance_2;
|
|
1547
1591
|
}
|
|
1548
1592
|
function values_0() {
|
|
1549
1593
|
return [FrameType_TEXT_getInstance(), FrameType_BINARY_getInstance(), FrameType_CLOSE_getInstance(), FrameType_PING_getInstance(), FrameType_PONG_getInstance()];
|
|
@@ -1563,13 +1607,13 @@ function FrameType_initEntries() {
|
|
|
1563
1607
|
FrameType_CLOSE_instance = new FrameType('CLOSE', 2, true, 8);
|
|
1564
1608
|
FrameType_PING_instance = new FrameType('PING', 3, true, 9);
|
|
1565
1609
|
FrameType_PONG_instance = new FrameType('PONG', 4, true, 10);
|
|
1566
|
-
|
|
1610
|
+
Companion_getInstance_2();
|
|
1567
1611
|
}
|
|
1568
1612
|
var $ENTRIES_0;
|
|
1569
1613
|
function FrameType(name, ordinal, controlFrame, opcode) {
|
|
1570
1614
|
Enum.call(this, name, ordinal);
|
|
1571
|
-
this.
|
|
1572
|
-
this.
|
|
1615
|
+
this.y33_1 = controlFrame;
|
|
1616
|
+
this.z33_1 = opcode;
|
|
1573
1617
|
}
|
|
1574
1618
|
function FrameType_TEXT_getInstance() {
|
|
1575
1619
|
FrameType_initEntries();
|
|
@@ -1612,55 +1656,55 @@ function pinger(_this__u8e3s4, outgoing, periodMillis, timeoutMillis, onTimeout)
|
|
|
1612
1656
|
_init_properties_PingPong_kt__9aqxey();
|
|
1613
1657
|
var actorJob = Job();
|
|
1614
1658
|
var channel = Channel(2147483647);
|
|
1615
|
-
var tmp = actorJob.
|
|
1659
|
+
var tmp = actorJob.vf(get_PingerCoroutineName());
|
|
1616
1660
|
launch(_this__u8e3s4, tmp, VOID, pinger$slambda_0(periodMillis, timeoutMillis, onTimeout, channel, outgoing, null));
|
|
1617
|
-
var tmp_0 = ensureNotNull(_this__u8e3s4.
|
|
1618
|
-
tmp_0.
|
|
1661
|
+
var tmp_0 = ensureNotNull(_this__u8e3s4.is().x8(Key_instance));
|
|
1662
|
+
tmp_0.kt(pinger$lambda(actorJob));
|
|
1619
1663
|
return channel;
|
|
1620
1664
|
}
|
|
1621
1665
|
function ponger$slambda($channel, $outgoing, resultContinuation) {
|
|
1622
|
-
this.
|
|
1623
|
-
this.
|
|
1666
|
+
this.l39_1 = $channel;
|
|
1667
|
+
this.m39_1 = $outgoing;
|
|
1624
1668
|
CoroutineImpl.call(this, resultContinuation);
|
|
1625
1669
|
}
|
|
1626
|
-
protoOf(ponger$slambda).
|
|
1627
|
-
var tmp = this.
|
|
1628
|
-
tmp.
|
|
1629
|
-
tmp.
|
|
1630
|
-
return tmp.
|
|
1670
|
+
protoOf(ponger$slambda).j1q = function ($this$launch, $completion) {
|
|
1671
|
+
var tmp = this.k1q($this$launch, $completion);
|
|
1672
|
+
tmp.m8_1 = Unit_instance;
|
|
1673
|
+
tmp.n8_1 = null;
|
|
1674
|
+
return tmp.s8();
|
|
1631
1675
|
};
|
|
1632
|
-
protoOf(ponger$slambda).
|
|
1633
|
-
return this.
|
|
1676
|
+
protoOf(ponger$slambda).f9 = function (p1, $completion) {
|
|
1677
|
+
return this.j1q((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1634
1678
|
};
|
|
1635
|
-
protoOf(ponger$slambda).
|
|
1636
|
-
var suspendResult = this.
|
|
1679
|
+
protoOf(ponger$slambda).s8 = function () {
|
|
1680
|
+
var suspendResult = this.m8_1;
|
|
1637
1681
|
$sm: do
|
|
1638
1682
|
try {
|
|
1639
|
-
var tmp = this.
|
|
1683
|
+
var tmp = this.k8_1;
|
|
1640
1684
|
switch (tmp) {
|
|
1641
1685
|
case 0:
|
|
1642
|
-
this.
|
|
1643
|
-
this.
|
|
1644
|
-
this.
|
|
1645
|
-
this.
|
|
1686
|
+
this.l8_1 = 14;
|
|
1687
|
+
this.l8_1 = 13;
|
|
1688
|
+
this.r39_1 = this.l39_1;
|
|
1689
|
+
this.k8_1 = 1;
|
|
1646
1690
|
continue $sm;
|
|
1647
1691
|
case 1:
|
|
1648
|
-
this.
|
|
1649
|
-
this.
|
|
1650
|
-
this.
|
|
1692
|
+
this.p39_1 = this.r39_1;
|
|
1693
|
+
this.o39_1 = null;
|
|
1694
|
+
this.k8_1 = 2;
|
|
1651
1695
|
continue $sm;
|
|
1652
1696
|
case 2:
|
|
1653
|
-
this.
|
|
1697
|
+
this.k8_1 = 3;
|
|
1654
1698
|
continue $sm;
|
|
1655
1699
|
case 3:
|
|
1656
|
-
this.
|
|
1657
|
-
this.
|
|
1658
|
-
this.
|
|
1659
|
-
this.
|
|
1700
|
+
this.l8_1 = 10;
|
|
1701
|
+
this.l8_1 = 9;
|
|
1702
|
+
this.q39_1 = this.p39_1.t();
|
|
1703
|
+
this.k8_1 = 4;
|
|
1660
1704
|
continue $sm;
|
|
1661
1705
|
case 4:
|
|
1662
|
-
this.
|
|
1663
|
-
suspendResult = this.
|
|
1706
|
+
this.k8_1 = 5;
|
|
1707
|
+
suspendResult = this.q39_1.j17(this);
|
|
1664
1708
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1665
1709
|
return suspendResult;
|
|
1666
1710
|
}
|
|
@@ -1668,311 +1712,305 @@ protoOf(ponger$slambda).r8 = function () {
|
|
|
1668
1712
|
continue $sm;
|
|
1669
1713
|
case 5:
|
|
1670
1714
|
if (!suspendResult) {
|
|
1671
|
-
this.
|
|
1715
|
+
this.k8_1 = 7;
|
|
1672
1716
|
continue $sm;
|
|
1673
1717
|
}
|
|
1674
1718
|
|
|
1675
|
-
var e = this.
|
|
1676
|
-
get_LOGGER().
|
|
1677
|
-
this.
|
|
1678
|
-
suspendResult = this.
|
|
1719
|
+
var e = this.q39_1.v();
|
|
1720
|
+
get_LOGGER().c2k('Received ping message, sending pong message');
|
|
1721
|
+
this.k8_1 = 6;
|
|
1722
|
+
suspendResult = this.m39_1.g19(new Pong(e.c34_1), this);
|
|
1679
1723
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1680
1724
|
return suspendResult;
|
|
1681
1725
|
}
|
|
1682
1726
|
|
|
1683
1727
|
continue $sm;
|
|
1684
1728
|
case 6:
|
|
1685
|
-
this.
|
|
1729
|
+
this.k8_1 = 4;
|
|
1686
1730
|
continue $sm;
|
|
1687
1731
|
case 7:
|
|
1688
|
-
this.
|
|
1732
|
+
this.k8_1 = 8;
|
|
1689
1733
|
var tmp_0 = this;
|
|
1690
1734
|
continue $sm;
|
|
1691
1735
|
case 8:
|
|
1692
|
-
this.
|
|
1693
|
-
cancelConsumed(this.
|
|
1694
|
-
this.
|
|
1736
|
+
this.l8_1 = 13;
|
|
1737
|
+
cancelConsumed(this.p39_1, this.o39_1);
|
|
1738
|
+
this.k8_1 = 12;
|
|
1695
1739
|
continue $sm;
|
|
1696
1740
|
case 9:
|
|
1697
|
-
this.
|
|
1698
|
-
var tmp_1 = this.
|
|
1741
|
+
this.l8_1 = 10;
|
|
1742
|
+
var tmp_1 = this.n8_1;
|
|
1699
1743
|
if (tmp_1 instanceof Error) {
|
|
1700
|
-
var e_0 = this.
|
|
1744
|
+
var e_0 = this.n8_1;
|
|
1701
1745
|
var tmp_2 = this;
|
|
1702
|
-
this.
|
|
1746
|
+
this.o39_1 = e_0;
|
|
1703
1747
|
throw e_0;
|
|
1704
1748
|
} else {
|
|
1705
|
-
throw this.
|
|
1749
|
+
throw this.n8_1;
|
|
1706
1750
|
}
|
|
1707
1751
|
|
|
1708
1752
|
case 10:
|
|
1709
|
-
this.
|
|
1710
|
-
var t = this.
|
|
1711
|
-
cancelConsumed(this.
|
|
1753
|
+
this.l8_1 = 13;
|
|
1754
|
+
var t = this.n8_1;
|
|
1755
|
+
cancelConsumed(this.p39_1, this.o39_1);
|
|
1712
1756
|
throw t;
|
|
1713
1757
|
case 11:
|
|
1714
|
-
this.
|
|
1715
|
-
cancelConsumed(this.
|
|
1758
|
+
this.l8_1 = 13;
|
|
1759
|
+
cancelConsumed(this.p39_1, this.o39_1);
|
|
1716
1760
|
if (false) {
|
|
1717
|
-
this.
|
|
1761
|
+
this.k8_1 = 1;
|
|
1718
1762
|
continue $sm;
|
|
1719
1763
|
}
|
|
1720
1764
|
|
|
1721
|
-
this.
|
|
1765
|
+
this.k8_1 = 12;
|
|
1722
1766
|
continue $sm;
|
|
1723
1767
|
case 12:
|
|
1724
|
-
this.
|
|
1725
|
-
this.
|
|
1768
|
+
this.l8_1 = 14;
|
|
1769
|
+
this.k8_1 = 15;
|
|
1726
1770
|
continue $sm;
|
|
1727
1771
|
case 13:
|
|
1728
|
-
this.
|
|
1729
|
-
var tmp_3 = this.
|
|
1772
|
+
this.l8_1 = 14;
|
|
1773
|
+
var tmp_3 = this.n8_1;
|
|
1730
1774
|
if (tmp_3 instanceof ClosedSendChannelException) {
|
|
1731
|
-
var _unused_var__etf5q3 = this.
|
|
1732
|
-
this.
|
|
1775
|
+
var _unused_var__etf5q3 = this.n8_1;
|
|
1776
|
+
this.k8_1 = 15;
|
|
1733
1777
|
continue $sm;
|
|
1734
1778
|
} else {
|
|
1735
|
-
throw this.
|
|
1779
|
+
throw this.n8_1;
|
|
1736
1780
|
}
|
|
1737
1781
|
|
|
1738
1782
|
case 14:
|
|
1739
|
-
throw this.
|
|
1783
|
+
throw this.n8_1;
|
|
1740
1784
|
case 15:
|
|
1741
|
-
this.
|
|
1785
|
+
this.l8_1 = 14;
|
|
1742
1786
|
return Unit_instance;
|
|
1743
1787
|
}
|
|
1744
1788
|
} catch ($p) {
|
|
1745
1789
|
var e_1 = $p;
|
|
1746
|
-
if (this.
|
|
1790
|
+
if (this.l8_1 === 14) {
|
|
1747
1791
|
throw e_1;
|
|
1748
1792
|
} else {
|
|
1749
|
-
this.
|
|
1750
|
-
this.
|
|
1793
|
+
this.k8_1 = this.l8_1;
|
|
1794
|
+
this.n8_1 = e_1;
|
|
1751
1795
|
}
|
|
1752
1796
|
}
|
|
1753
1797
|
while (true);
|
|
1754
1798
|
};
|
|
1755
|
-
protoOf(ponger$slambda).
|
|
1756
|
-
var i = new ponger$slambda(this.
|
|
1757
|
-
i.
|
|
1799
|
+
protoOf(ponger$slambda).k1q = function ($this$launch, completion) {
|
|
1800
|
+
var i = new ponger$slambda(this.l39_1, this.m39_1, completion);
|
|
1801
|
+
i.n39_1 = $this$launch;
|
|
1758
1802
|
return i;
|
|
1759
1803
|
};
|
|
1760
1804
|
function ponger$slambda_0($channel, $outgoing, resultContinuation) {
|
|
1761
1805
|
var i = new ponger$slambda($channel, $outgoing, resultContinuation);
|
|
1762
|
-
|
|
1763
|
-
return i.
|
|
1764
|
-
};
|
|
1765
|
-
l.$arity = 1;
|
|
1766
|
-
return l;
|
|
1806
|
+
return constructCallableReference(function ($this$launch, $completion) {
|
|
1807
|
+
return i.j1q($this$launch, $completion);
|
|
1808
|
+
}, 1);
|
|
1767
1809
|
}
|
|
1768
1810
|
function pinger$slambda$slambda($channel, resultContinuation) {
|
|
1769
|
-
this.
|
|
1811
|
+
this.a3a_1 = $channel;
|
|
1770
1812
|
CoroutineImpl.call(this, resultContinuation);
|
|
1771
1813
|
}
|
|
1772
|
-
protoOf(pinger$slambda$slambda).
|
|
1773
|
-
var tmp = this.
|
|
1774
|
-
tmp.
|
|
1775
|
-
tmp.
|
|
1776
|
-
return tmp.
|
|
1814
|
+
protoOf(pinger$slambda$slambda).j1q = function ($this$withTimeoutOrNull, $completion) {
|
|
1815
|
+
var tmp = this.k1q($this$withTimeoutOrNull, $completion);
|
|
1816
|
+
tmp.m8_1 = Unit_instance;
|
|
1817
|
+
tmp.n8_1 = null;
|
|
1818
|
+
return tmp.s8();
|
|
1777
1819
|
};
|
|
1778
|
-
protoOf(pinger$slambda$slambda).
|
|
1779
|
-
return this.
|
|
1820
|
+
protoOf(pinger$slambda$slambda).f9 = function (p1, $completion) {
|
|
1821
|
+
return this.j1q((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1780
1822
|
};
|
|
1781
|
-
protoOf(pinger$slambda$slambda).
|
|
1782
|
-
var suspendResult = this.
|
|
1823
|
+
protoOf(pinger$slambda$slambda).s8 = function () {
|
|
1824
|
+
var suspendResult = this.m8_1;
|
|
1783
1825
|
$sm: do
|
|
1784
1826
|
try {
|
|
1785
|
-
var tmp = this.
|
|
1827
|
+
var tmp = this.k8_1;
|
|
1786
1828
|
switch (tmp) {
|
|
1787
1829
|
case 0:
|
|
1788
|
-
this.
|
|
1789
|
-
this.
|
|
1830
|
+
this.l8_1 = 3;
|
|
1831
|
+
this.k8_1 = 1;
|
|
1790
1832
|
continue $sm;
|
|
1791
1833
|
case 1:
|
|
1792
1834
|
if (!true) {
|
|
1793
|
-
this.
|
|
1835
|
+
this.k8_1 = 4;
|
|
1794
1836
|
continue $sm;
|
|
1795
1837
|
}
|
|
1796
1838
|
|
|
1797
|
-
this.
|
|
1798
|
-
suspendResult = this.
|
|
1839
|
+
this.k8_1 = 2;
|
|
1840
|
+
suspendResult = this.a3a_1.j19(this);
|
|
1799
1841
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1800
1842
|
return suspendResult;
|
|
1801
1843
|
}
|
|
1802
1844
|
|
|
1803
1845
|
continue $sm;
|
|
1804
1846
|
case 2:
|
|
1805
|
-
this.
|
|
1847
|
+
this.k8_1 = 1;
|
|
1806
1848
|
continue $sm;
|
|
1807
1849
|
case 3:
|
|
1808
|
-
throw this.
|
|
1850
|
+
throw this.n8_1;
|
|
1809
1851
|
case 4:
|
|
1810
1852
|
return Unit_instance;
|
|
1811
1853
|
}
|
|
1812
1854
|
} catch ($p) {
|
|
1813
1855
|
var e = $p;
|
|
1814
|
-
if (this.
|
|
1856
|
+
if (this.l8_1 === 3) {
|
|
1815
1857
|
throw e;
|
|
1816
1858
|
} else {
|
|
1817
|
-
this.
|
|
1818
|
-
this.
|
|
1859
|
+
this.k8_1 = this.l8_1;
|
|
1860
|
+
this.n8_1 = e;
|
|
1819
1861
|
}
|
|
1820
1862
|
}
|
|
1821
1863
|
while (true);
|
|
1822
1864
|
};
|
|
1823
|
-
protoOf(pinger$slambda$slambda).
|
|
1824
|
-
var i = new pinger$slambda$slambda(this.
|
|
1825
|
-
i.
|
|
1865
|
+
protoOf(pinger$slambda$slambda).k1q = function ($this$withTimeoutOrNull, completion) {
|
|
1866
|
+
var i = new pinger$slambda$slambda(this.a3a_1, completion);
|
|
1867
|
+
i.b3a_1 = $this$withTimeoutOrNull;
|
|
1826
1868
|
return i;
|
|
1827
1869
|
};
|
|
1828
1870
|
function pinger$slambda$slambda_0($channel, resultContinuation) {
|
|
1829
1871
|
var i = new pinger$slambda$slambda($channel, resultContinuation);
|
|
1830
|
-
|
|
1831
|
-
return i.
|
|
1832
|
-
};
|
|
1833
|
-
l.$arity = 1;
|
|
1834
|
-
return l;
|
|
1872
|
+
return constructCallableReference(function ($this$withTimeoutOrNull, $completion) {
|
|
1873
|
+
return i.j1q($this$withTimeoutOrNull, $completion);
|
|
1874
|
+
}, 1);
|
|
1835
1875
|
}
|
|
1836
1876
|
function pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1837
|
-
this.
|
|
1838
|
-
this.
|
|
1839
|
-
this.
|
|
1877
|
+
this.k3a_1 = $outgoing;
|
|
1878
|
+
this.l3a_1 = $pingMessage;
|
|
1879
|
+
this.m3a_1 = $channel;
|
|
1840
1880
|
CoroutineImpl.call(this, resultContinuation);
|
|
1841
1881
|
}
|
|
1842
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1843
|
-
var tmp = this.
|
|
1844
|
-
tmp.
|
|
1845
|
-
tmp.
|
|
1846
|
-
return tmp.
|
|
1882
|
+
protoOf(pinger$slambda$slambda_1).j1q = function ($this$withTimeoutOrNull, $completion) {
|
|
1883
|
+
var tmp = this.k1q($this$withTimeoutOrNull, $completion);
|
|
1884
|
+
tmp.m8_1 = Unit_instance;
|
|
1885
|
+
tmp.n8_1 = null;
|
|
1886
|
+
return tmp.s8();
|
|
1847
1887
|
};
|
|
1848
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1849
|
-
return this.
|
|
1888
|
+
protoOf(pinger$slambda$slambda_1).f9 = function (p1, $completion) {
|
|
1889
|
+
return this.j1q((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1850
1890
|
};
|
|
1851
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1852
|
-
var suspendResult = this.
|
|
1891
|
+
protoOf(pinger$slambda$slambda_1).s8 = function () {
|
|
1892
|
+
var suspendResult = this.m8_1;
|
|
1853
1893
|
$sm: do
|
|
1854
1894
|
try {
|
|
1855
|
-
var tmp = this.
|
|
1895
|
+
var tmp = this.k8_1;
|
|
1856
1896
|
switch (tmp) {
|
|
1857
1897
|
case 0:
|
|
1858
|
-
this.
|
|
1859
|
-
get_LOGGER().
|
|
1860
|
-
this.
|
|
1861
|
-
suspendResult = this.
|
|
1898
|
+
this.l8_1 = 6;
|
|
1899
|
+
get_LOGGER().c2k('WebSocket Pinger: sending ping frame');
|
|
1900
|
+
this.k8_1 = 1;
|
|
1901
|
+
suspendResult = this.k3a_1.g19(new Ping(toByteArray(this.l3a_1, Charsets_getInstance().k1r_1)), this);
|
|
1862
1902
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1863
1903
|
return suspendResult;
|
|
1864
1904
|
}
|
|
1865
1905
|
|
|
1866
1906
|
continue $sm;
|
|
1867
1907
|
case 1:
|
|
1868
|
-
this.
|
|
1908
|
+
this.k8_1 = 2;
|
|
1869
1909
|
continue $sm;
|
|
1870
1910
|
case 2:
|
|
1871
1911
|
if (!true) {
|
|
1872
|
-
this.
|
|
1912
|
+
this.k8_1 = 5;
|
|
1873
1913
|
continue $sm;
|
|
1874
1914
|
}
|
|
1875
1915
|
|
|
1876
|
-
this.
|
|
1877
|
-
suspendResult = this.
|
|
1916
|
+
this.k8_1 = 3;
|
|
1917
|
+
suspendResult = this.m3a_1.j19(this);
|
|
1878
1918
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1879
1919
|
return suspendResult;
|
|
1880
1920
|
}
|
|
1881
1921
|
|
|
1882
1922
|
continue $sm;
|
|
1883
1923
|
case 3:
|
|
1884
|
-
this.
|
|
1885
|
-
if (decodeToString(this.
|
|
1886
|
-
get_LOGGER().
|
|
1887
|
-
this.
|
|
1924
|
+
this.o3a_1 = suspendResult;
|
|
1925
|
+
if (decodeToString(this.o3a_1.c34_1, 0, 0 + this.o3a_1.c34_1.length | 0) === this.l3a_1) {
|
|
1926
|
+
get_LOGGER().c2k('WebSocket Pinger: received valid pong frame ' + this.o3a_1.toString());
|
|
1927
|
+
this.k8_1 = 5;
|
|
1888
1928
|
continue $sm;
|
|
1889
1929
|
} else {
|
|
1890
|
-
this.
|
|
1930
|
+
this.k8_1 = 4;
|
|
1891
1931
|
continue $sm;
|
|
1892
1932
|
}
|
|
1893
1933
|
|
|
1894
1934
|
case 4:
|
|
1895
|
-
get_LOGGER().
|
|
1896
|
-
this.
|
|
1935
|
+
get_LOGGER().c2k('WebSocket Pinger: received invalid pong frame ' + this.o3a_1.toString() + ', continue waiting');
|
|
1936
|
+
this.k8_1 = 2;
|
|
1897
1937
|
continue $sm;
|
|
1898
1938
|
case 5:
|
|
1899
1939
|
return Unit_instance;
|
|
1900
1940
|
case 6:
|
|
1901
|
-
throw this.
|
|
1941
|
+
throw this.n8_1;
|
|
1902
1942
|
}
|
|
1903
1943
|
} catch ($p) {
|
|
1904
1944
|
var e = $p;
|
|
1905
|
-
if (this.
|
|
1945
|
+
if (this.l8_1 === 6) {
|
|
1906
1946
|
throw e;
|
|
1907
1947
|
} else {
|
|
1908
|
-
this.
|
|
1909
|
-
this.
|
|
1948
|
+
this.k8_1 = this.l8_1;
|
|
1949
|
+
this.n8_1 = e;
|
|
1910
1950
|
}
|
|
1911
1951
|
}
|
|
1912
1952
|
while (true);
|
|
1913
1953
|
};
|
|
1914
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1915
|
-
var i = new pinger$slambda$slambda_1(this.
|
|
1916
|
-
i.
|
|
1954
|
+
protoOf(pinger$slambda$slambda_1).k1q = function ($this$withTimeoutOrNull, completion) {
|
|
1955
|
+
var i = new pinger$slambda$slambda_1(this.k3a_1, this.l3a_1, this.m3a_1, completion);
|
|
1956
|
+
i.n3a_1 = $this$withTimeoutOrNull;
|
|
1917
1957
|
return i;
|
|
1918
1958
|
};
|
|
1919
1959
|
function pinger$slambda$slambda_2($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1920
1960
|
var i = new pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation);
|
|
1921
|
-
|
|
1922
|
-
return i.
|
|
1923
|
-
};
|
|
1924
|
-
l.$arity = 1;
|
|
1925
|
-
return l;
|
|
1961
|
+
return constructCallableReference(function ($this$withTimeoutOrNull, $completion) {
|
|
1962
|
+
return i.j1q($this$withTimeoutOrNull, $completion);
|
|
1963
|
+
}, 1);
|
|
1926
1964
|
}
|
|
1927
1965
|
function pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
1928
|
-
this.
|
|
1929
|
-
this.
|
|
1930
|
-
this.
|
|
1931
|
-
this.
|
|
1932
|
-
this.
|
|
1966
|
+
this.x3a_1 = $periodMillis;
|
|
1967
|
+
this.y3a_1 = $timeoutMillis;
|
|
1968
|
+
this.z3a_1 = $onTimeout;
|
|
1969
|
+
this.a3b_1 = $channel;
|
|
1970
|
+
this.b3b_1 = $outgoing;
|
|
1933
1971
|
CoroutineImpl.call(this, resultContinuation);
|
|
1934
1972
|
}
|
|
1935
|
-
protoOf(pinger$slambda).
|
|
1936
|
-
var tmp = this.
|
|
1937
|
-
tmp.
|
|
1938
|
-
tmp.
|
|
1939
|
-
return tmp.
|
|
1973
|
+
protoOf(pinger$slambda).j1q = function ($this$launch, $completion) {
|
|
1974
|
+
var tmp = this.k1q($this$launch, $completion);
|
|
1975
|
+
tmp.m8_1 = Unit_instance;
|
|
1976
|
+
tmp.n8_1 = null;
|
|
1977
|
+
return tmp.s8();
|
|
1940
1978
|
};
|
|
1941
|
-
protoOf(pinger$slambda).
|
|
1942
|
-
return this.
|
|
1979
|
+
protoOf(pinger$slambda).f9 = function (p1, $completion) {
|
|
1980
|
+
return this.j1q((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1943
1981
|
};
|
|
1944
|
-
protoOf(pinger$slambda).
|
|
1945
|
-
var suspendResult = this.
|
|
1982
|
+
protoOf(pinger$slambda).s8 = function () {
|
|
1983
|
+
var suspendResult = this.m8_1;
|
|
1946
1984
|
$sm: do
|
|
1947
1985
|
try {
|
|
1948
|
-
var tmp = this.
|
|
1986
|
+
var tmp = this.k8_1;
|
|
1949
1987
|
switch (tmp) {
|
|
1950
1988
|
case 0:
|
|
1951
|
-
this.
|
|
1952
|
-
get_LOGGER().
|
|
1953
|
-
this.
|
|
1954
|
-
this.
|
|
1955
|
-
this.
|
|
1956
|
-
this.
|
|
1989
|
+
this.l8_1 = 9;
|
|
1990
|
+
get_LOGGER().c2k('Starting WebSocket pinger coroutine with period ' + this.x3a_1.toString() + ' ms and timeout ' + this.y3a_1.toString() + ' ms');
|
|
1991
|
+
this.e3b_1 = Random(getTimeMillis());
|
|
1992
|
+
this.d3b_1 = new Int8Array(32);
|
|
1993
|
+
this.l8_1 = 7;
|
|
1994
|
+
this.k8_1 = 1;
|
|
1957
1995
|
continue $sm;
|
|
1958
1996
|
case 1:
|
|
1959
1997
|
if (!true) {
|
|
1960
|
-
this.
|
|
1998
|
+
this.k8_1 = 6;
|
|
1961
1999
|
continue $sm;
|
|
1962
2000
|
}
|
|
1963
2001
|
|
|
1964
|
-
this.
|
|
1965
|
-
suspendResult = withTimeoutOrNull(this.
|
|
2002
|
+
this.k8_1 = 2;
|
|
2003
|
+
suspendResult = withTimeoutOrNull(this.x3a_1, pinger$slambda$slambda_0(this.a3b_1, null), this);
|
|
1966
2004
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1967
2005
|
return suspendResult;
|
|
1968
2006
|
}
|
|
1969
2007
|
|
|
1970
2008
|
continue $sm;
|
|
1971
2009
|
case 2:
|
|
1972
|
-
this.
|
|
1973
|
-
var pingMessage = '[ping ' +
|
|
1974
|
-
this.
|
|
1975
|
-
suspendResult = withTimeoutOrNull(this.
|
|
2010
|
+
this.e3b_1.rh(this.d3b_1);
|
|
2011
|
+
var pingMessage = '[ping ' + toHexString(this.d3b_1) + ' ping]';
|
|
2012
|
+
this.k8_1 = 3;
|
|
2013
|
+
suspendResult = withTimeoutOrNull(this.y3a_1, pinger$slambda$slambda_2(this.b3b_1, pingMessage, this.a3b_1, null), this);
|
|
1976
2014
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1977
2015
|
return suspendResult;
|
|
1978
2016
|
}
|
|
@@ -1981,93 +2019,91 @@ protoOf(pinger$slambda).r8 = function () {
|
|
|
1981
2019
|
case 3:
|
|
1982
2020
|
var rc = suspendResult;
|
|
1983
2021
|
if (rc == null) {
|
|
1984
|
-
get_LOGGER().
|
|
1985
|
-
this.
|
|
1986
|
-
suspendResult = this.
|
|
2022
|
+
get_LOGGER().c2k('WebSocket pinger has timed out');
|
|
2023
|
+
this.k8_1 = 5;
|
|
2024
|
+
suspendResult = this.z3a_1(CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), 'Ping timeout'), this);
|
|
1987
2025
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1988
2026
|
return suspendResult;
|
|
1989
2027
|
}
|
|
1990
2028
|
continue $sm;
|
|
1991
2029
|
} else {
|
|
1992
|
-
this.
|
|
2030
|
+
this.k8_1 = 4;
|
|
1993
2031
|
continue $sm;
|
|
1994
2032
|
}
|
|
1995
2033
|
|
|
1996
2034
|
case 4:
|
|
1997
|
-
this.
|
|
2035
|
+
this.k8_1 = 1;
|
|
1998
2036
|
continue $sm;
|
|
1999
2037
|
case 5:
|
|
2000
|
-
this.
|
|
2038
|
+
this.k8_1 = 6;
|
|
2001
2039
|
continue $sm;
|
|
2002
2040
|
case 6:
|
|
2003
|
-
this.
|
|
2004
|
-
this.
|
|
2041
|
+
this.l8_1 = 9;
|
|
2042
|
+
this.k8_1 = 8;
|
|
2005
2043
|
continue $sm;
|
|
2006
2044
|
case 7:
|
|
2007
|
-
this.
|
|
2008
|
-
var tmp_0 = this.
|
|
2045
|
+
this.l8_1 = 9;
|
|
2046
|
+
var tmp_0 = this.n8_1;
|
|
2009
2047
|
if (tmp_0 instanceof CancellationException) {
|
|
2010
|
-
var ignore = this.
|
|
2011
|
-
this.
|
|
2048
|
+
var ignore = this.n8_1;
|
|
2049
|
+
this.k8_1 = 8;
|
|
2012
2050
|
continue $sm;
|
|
2013
2051
|
} else {
|
|
2014
|
-
var tmp_1 = this.
|
|
2052
|
+
var tmp_1 = this.n8_1;
|
|
2015
2053
|
if (tmp_1 instanceof ClosedReceiveChannelException) {
|
|
2016
|
-
var ignore_0 = this.
|
|
2017
|
-
this.
|
|
2054
|
+
var ignore_0 = this.n8_1;
|
|
2055
|
+
this.k8_1 = 8;
|
|
2018
2056
|
continue $sm;
|
|
2019
2057
|
} else {
|
|
2020
|
-
var tmp_2 = this.
|
|
2058
|
+
var tmp_2 = this.n8_1;
|
|
2021
2059
|
if (tmp_2 instanceof ClosedSendChannelException) {
|
|
2022
|
-
var ignore_1 = this.
|
|
2023
|
-
this.
|
|
2060
|
+
var ignore_1 = this.n8_1;
|
|
2061
|
+
this.k8_1 = 8;
|
|
2024
2062
|
continue $sm;
|
|
2025
2063
|
} else {
|
|
2026
|
-
var tmp_3 = this.
|
|
2064
|
+
var tmp_3 = this.n8_1;
|
|
2027
2065
|
if (tmp_3 instanceof ClosedByteChannelException) {
|
|
2028
|
-
var ignore_2 = this.
|
|
2029
|
-
this.
|
|
2066
|
+
var ignore_2 = this.n8_1;
|
|
2067
|
+
this.k8_1 = 8;
|
|
2030
2068
|
continue $sm;
|
|
2031
2069
|
} else {
|
|
2032
|
-
throw this.
|
|
2070
|
+
throw this.n8_1;
|
|
2033
2071
|
}
|
|
2034
2072
|
}
|
|
2035
2073
|
}
|
|
2036
2074
|
}
|
|
2037
2075
|
|
|
2038
2076
|
case 8:
|
|
2039
|
-
this.
|
|
2077
|
+
this.l8_1 = 9;
|
|
2040
2078
|
return Unit_instance;
|
|
2041
2079
|
case 9:
|
|
2042
|
-
throw this.
|
|
2080
|
+
throw this.n8_1;
|
|
2043
2081
|
}
|
|
2044
2082
|
} catch ($p) {
|
|
2045
2083
|
var e = $p;
|
|
2046
|
-
if (this.
|
|
2084
|
+
if (this.l8_1 === 9) {
|
|
2047
2085
|
throw e;
|
|
2048
2086
|
} else {
|
|
2049
|
-
this.
|
|
2050
|
-
this.
|
|
2087
|
+
this.k8_1 = this.l8_1;
|
|
2088
|
+
this.n8_1 = e;
|
|
2051
2089
|
}
|
|
2052
2090
|
}
|
|
2053
2091
|
while (true);
|
|
2054
2092
|
};
|
|
2055
|
-
protoOf(pinger$slambda).
|
|
2056
|
-
var i = new pinger$slambda(this.
|
|
2057
|
-
i.
|
|
2093
|
+
protoOf(pinger$slambda).k1q = function ($this$launch, completion) {
|
|
2094
|
+
var i = new pinger$slambda(this.x3a_1, this.y3a_1, this.z3a_1, this.a3b_1, this.b3b_1, completion);
|
|
2095
|
+
i.c3b_1 = $this$launch;
|
|
2058
2096
|
return i;
|
|
2059
2097
|
};
|
|
2060
2098
|
function pinger$slambda_0($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
2061
2099
|
var i = new pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation);
|
|
2062
|
-
|
|
2063
|
-
return i.
|
|
2064
|
-
};
|
|
2065
|
-
l.$arity = 1;
|
|
2066
|
-
return l;
|
|
2100
|
+
return constructCallableReference(function ($this$launch, $completion) {
|
|
2101
|
+
return i.j1q($this$launch, $completion);
|
|
2102
|
+
}, 1);
|
|
2067
2103
|
}
|
|
2068
2104
|
function pinger$lambda($actorJob) {
|
|
2069
2105
|
return function (it) {
|
|
2070
|
-
$actorJob.
|
|
2106
|
+
$actorJob.st();
|
|
2071
2107
|
return Unit_instance;
|
|
2072
2108
|
};
|
|
2073
2109
|
}
|
|
@@ -2079,38 +2115,38 @@ function _init_properties_PingPong_kt__9aqxey() {
|
|
|
2079
2115
|
PingerCoroutineName = new CoroutineName('ws-pinger');
|
|
2080
2116
|
}
|
|
2081
2117
|
}
|
|
2082
|
-
function
|
|
2083
|
-
|
|
2118
|
+
function Companion_3() {
|
|
2119
|
+
Companion_instance_3 = this;
|
|
2084
2120
|
var tmp = this;
|
|
2085
2121
|
// Inline function 'kotlin.apply' call
|
|
2086
2122
|
var this_0 = new WebSocketChannelsConfig();
|
|
2087
|
-
this_0.
|
|
2088
|
-
this_0.
|
|
2089
|
-
tmp.
|
|
2123
|
+
this_0.o34_1 = this_0.f3b();
|
|
2124
|
+
this_0.p34_1 = this_0.f3b();
|
|
2125
|
+
tmp.n34_1 = this_0;
|
|
2090
2126
|
}
|
|
2091
|
-
var
|
|
2092
|
-
function
|
|
2093
|
-
if (
|
|
2094
|
-
new
|
|
2095
|
-
return
|
|
2127
|
+
var Companion_instance_3;
|
|
2128
|
+
function Companion_getInstance_3() {
|
|
2129
|
+
if (Companion_instance_3 == null)
|
|
2130
|
+
new Companion_3();
|
|
2131
|
+
return Companion_instance_3;
|
|
2096
2132
|
}
|
|
2097
2133
|
function WebSocketChannelsConfig() {
|
|
2098
|
-
|
|
2099
|
-
this.
|
|
2100
|
-
this.
|
|
2134
|
+
Companion_getInstance_3();
|
|
2135
|
+
this.o34_1 = Companion_getInstance_4().g3b_1;
|
|
2136
|
+
this.p34_1 = Companion_getInstance_4().g3b_1;
|
|
2101
2137
|
}
|
|
2102
|
-
protoOf(WebSocketChannelsConfig).
|
|
2103
|
-
return
|
|
2138
|
+
protoOf(WebSocketChannelsConfig).f3b = function () {
|
|
2139
|
+
return Companion_getInstance_4().g3b_1;
|
|
2104
2140
|
};
|
|
2105
2141
|
function from(_this__u8e3s4, config) {
|
|
2106
2142
|
// Inline function 'kotlin.with' call
|
|
2107
2143
|
var tmp;
|
|
2108
|
-
if (config.
|
|
2144
|
+
if (config.h3b_1 === 2147483647) {
|
|
2109
2145
|
tmp = Channel(2147483647);
|
|
2110
|
-
} else if (config.
|
|
2111
|
-
tmp = Channel(config.
|
|
2112
|
-
} else if (config.
|
|
2113
|
-
tmp = new BoundedChannel(config.
|
|
2146
|
+
} else if (config.i3b_1.equals(ChannelOverflow_SUSPEND_getInstance())) {
|
|
2147
|
+
tmp = Channel(config.h3b_1, BufferOverflow_SUSPEND_getInstance());
|
|
2148
|
+
} else if (config.i3b_1.equals(ChannelOverflow_CLOSE_getInstance())) {
|
|
2149
|
+
tmp = new BoundedChannel(config.h3b_1);
|
|
2114
2150
|
} else {
|
|
2115
2151
|
// Inline function 'kotlin.error' call
|
|
2116
2152
|
var message = 'Unsupported channel config.';
|
|
@@ -2118,23 +2154,23 @@ function from(_this__u8e3s4, config) {
|
|
|
2118
2154
|
}
|
|
2119
2155
|
return tmp;
|
|
2120
2156
|
}
|
|
2121
|
-
function
|
|
2122
|
-
|
|
2123
|
-
this.
|
|
2157
|
+
function Companion_4() {
|
|
2158
|
+
Companion_instance_4 = this;
|
|
2159
|
+
this.g3b_1 = new ChannelConfig(2147483647, ChannelOverflow_SUSPEND_getInstance());
|
|
2124
2160
|
}
|
|
2125
|
-
var
|
|
2126
|
-
function
|
|
2127
|
-
if (
|
|
2128
|
-
new
|
|
2129
|
-
return
|
|
2161
|
+
var Companion_instance_4;
|
|
2162
|
+
function Companion_getInstance_4() {
|
|
2163
|
+
if (Companion_instance_4 == null)
|
|
2164
|
+
new Companion_4();
|
|
2165
|
+
return Companion_instance_4;
|
|
2130
2166
|
}
|
|
2131
2167
|
function ChannelConfig(capacity, onOverflow) {
|
|
2132
|
-
|
|
2133
|
-
this.
|
|
2134
|
-
this.
|
|
2168
|
+
Companion_getInstance_4();
|
|
2169
|
+
this.h3b_1 = capacity;
|
|
2170
|
+
this.i3b_1 = onOverflow;
|
|
2135
2171
|
}
|
|
2136
|
-
protoOf(ChannelConfig).
|
|
2137
|
-
return this.
|
|
2172
|
+
protoOf(ChannelConfig).j3b = function () {
|
|
2173
|
+
return this.i3b_1.equals(ChannelOverflow_SUSPEND_getInstance()) && !(this.h3b_1 === 2147483647);
|
|
2138
2174
|
};
|
|
2139
2175
|
var ChannelOverflow_SUSPEND_instance;
|
|
2140
2176
|
var ChannelOverflow_CLOSE_instance;
|
|
@@ -2158,22 +2194,22 @@ function BoundedChannel$Companion$createDelegate$lambda($channel) {
|
|
|
2158
2194
|
} else {
|
|
2159
2195
|
tmp_0 = $channel._v;
|
|
2160
2196
|
}
|
|
2161
|
-
if (!tmp_0.
|
|
2197
|
+
if (!tmp_0.l17()) {
|
|
2162
2198
|
var tmp_1;
|
|
2163
2199
|
if ($channel._v == null) {
|
|
2164
2200
|
throwUninitializedPropertyAccessException('channel');
|
|
2165
2201
|
} else {
|
|
2166
2202
|
tmp_1 = $channel._v;
|
|
2167
2203
|
}
|
|
2168
|
-
tmp_1.
|
|
2204
|
+
tmp_1.l19(new ChannelOverflowException('Channel overflowed'));
|
|
2169
2205
|
tmp = Unit_instance;
|
|
2170
2206
|
}
|
|
2171
2207
|
return Unit_instance;
|
|
2172
2208
|
};
|
|
2173
2209
|
}
|
|
2174
|
-
function
|
|
2210
|
+
function Companion_5() {
|
|
2175
2211
|
}
|
|
2176
|
-
protoOf(
|
|
2212
|
+
protoOf(Companion_5).k3b = function (capacity) {
|
|
2177
2213
|
var channel = {_v: null};
|
|
2178
2214
|
var tmp = BufferOverflow_DROP_OLDEST_getInstance();
|
|
2179
2215
|
// Inline function 'kotlin.also' call
|
|
@@ -2181,47 +2217,47 @@ protoOf(Companion_4).c3a = function (capacity) {
|
|
|
2181
2217
|
channel._v = this_0;
|
|
2182
2218
|
return this_0;
|
|
2183
2219
|
};
|
|
2184
|
-
var
|
|
2185
|
-
function
|
|
2186
|
-
return
|
|
2220
|
+
var Companion_instance_5;
|
|
2221
|
+
function Companion_getInstance_5() {
|
|
2222
|
+
return Companion_instance_5;
|
|
2187
2223
|
}
|
|
2188
2224
|
function BoundedChannel(capacity, delegate) {
|
|
2189
|
-
delegate = delegate === VOID ?
|
|
2190
|
-
this.
|
|
2225
|
+
delegate = delegate === VOID ? Companion_instance_5.k3b(capacity) : delegate;
|
|
2226
|
+
this.l3b_1 = delegate;
|
|
2191
2227
|
}
|
|
2192
|
-
protoOf(BoundedChannel).
|
|
2193
|
-
var result = this.
|
|
2228
|
+
protoOf(BoundedChannel).m3b = function (element) {
|
|
2229
|
+
var result = this.l3b_1.h19(element);
|
|
2194
2230
|
if (!_ChannelResult___get_isSuccess__impl__odq1z9(result) && !_ChannelResult___get_isClosed__impl__mg7kuu(result)) {
|
|
2195
|
-
this.
|
|
2231
|
+
this.l19(new ChannelOverflowException('Channel overflowed'));
|
|
2196
2232
|
}
|
|
2197
2233
|
return result;
|
|
2198
2234
|
};
|
|
2199
|
-
protoOf(BoundedChannel).
|
|
2200
|
-
return this.
|
|
2235
|
+
protoOf(BoundedChannel).h19 = function (element) {
|
|
2236
|
+
return this.m3b(element);
|
|
2201
2237
|
};
|
|
2202
|
-
protoOf(BoundedChannel).
|
|
2203
|
-
return this.
|
|
2238
|
+
protoOf(BoundedChannel).n3b = function (element, $completion) {
|
|
2239
|
+
return this.l3b_1.g19(element, $completion);
|
|
2204
2240
|
};
|
|
2205
|
-
protoOf(BoundedChannel).
|
|
2206
|
-
return this.
|
|
2241
|
+
protoOf(BoundedChannel).g19 = function (element, $completion) {
|
|
2242
|
+
return this.n3b(element, $completion);
|
|
2207
2243
|
};
|
|
2208
|
-
protoOf(BoundedChannel).
|
|
2209
|
-
return this.
|
|
2244
|
+
protoOf(BoundedChannel).l19 = function (cause) {
|
|
2245
|
+
return this.l3b_1.l19(cause);
|
|
2210
2246
|
};
|
|
2211
|
-
protoOf(BoundedChannel).
|
|
2212
|
-
return this.
|
|
2247
|
+
protoOf(BoundedChannel).l17 = function () {
|
|
2248
|
+
return this.l3b_1.l17();
|
|
2213
2249
|
};
|
|
2214
|
-
protoOf(BoundedChannel).
|
|
2215
|
-
return this.
|
|
2250
|
+
protoOf(BoundedChannel).o3b = function ($completion) {
|
|
2251
|
+
return this.l3b_1.j19($completion);
|
|
2216
2252
|
};
|
|
2217
|
-
protoOf(BoundedChannel).
|
|
2218
|
-
return this.
|
|
2253
|
+
protoOf(BoundedChannel).j19 = function ($completion) {
|
|
2254
|
+
return this.o3b($completion);
|
|
2219
2255
|
};
|
|
2220
2256
|
protoOf(BoundedChannel).t = function () {
|
|
2221
|
-
return this.
|
|
2257
|
+
return this.l3b_1.t();
|
|
2222
2258
|
};
|
|
2223
|
-
protoOf(BoundedChannel).
|
|
2224
|
-
this.
|
|
2259
|
+
protoOf(BoundedChannel).rt = function (cause) {
|
|
2260
|
+
this.l3b_1.rt(cause);
|
|
2225
2261
|
};
|
|
2226
2262
|
function ChannelOverflowException(message) {
|
|
2227
2263
|
RuntimeException_init_$Init$(message, this);
|
|
@@ -2240,16 +2276,16 @@ function WebSocketExtension() {
|
|
|
2240
2276
|
function WebSocketExtensionsConfig() {
|
|
2241
2277
|
var tmp = this;
|
|
2242
2278
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2243
|
-
tmp.
|
|
2279
|
+
tmp.r3b_1 = ArrayList_init_$Create$();
|
|
2244
2280
|
var tmp_0 = this;
|
|
2245
2281
|
// Inline function 'kotlin.arrayOf' call
|
|
2246
2282
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2247
2283
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2248
|
-
tmp_0.
|
|
2284
|
+
tmp_0.s3b_1 = [false, false, false];
|
|
2249
2285
|
}
|
|
2250
|
-
protoOf(WebSocketExtensionsConfig).
|
|
2286
|
+
protoOf(WebSocketExtensionsConfig).f2n = function () {
|
|
2251
2287
|
// Inline function 'kotlin.collections.map' call
|
|
2252
|
-
var this_0 = this.
|
|
2288
|
+
var this_0 = this.r3b_1;
|
|
2253
2289
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2254
2290
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2255
2291
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2261,14 +2297,14 @@ protoOf(WebSocketExtensionsConfig).y2l = function () {
|
|
|
2261
2297
|
return destination;
|
|
2262
2298
|
};
|
|
2263
2299
|
function parametersToString($this) {
|
|
2264
|
-
return $this.
|
|
2300
|
+
return $this.u3b_1.r() ? '' : '; ' + joinToString($this.u3b_1, ';');
|
|
2265
2301
|
}
|
|
2266
2302
|
function WebSocketExtensionHeader(name, parameters) {
|
|
2267
|
-
this.
|
|
2268
|
-
this.
|
|
2303
|
+
this.t3b_1 = name;
|
|
2304
|
+
this.u3b_1 = parameters;
|
|
2269
2305
|
}
|
|
2270
2306
|
protoOf(WebSocketExtensionHeader).toString = function () {
|
|
2271
|
-
return this.
|
|
2307
|
+
return this.t3b_1 + ' ' + parametersToString(this);
|
|
2272
2308
|
};
|
|
2273
2309
|
function parseWebSocketExtensions(value) {
|
|
2274
2310
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2304,77 +2340,78 @@ function WebSocketSession() {
|
|
|
2304
2340
|
function close(_this__u8e3s4, reason, $completion) {
|
|
2305
2341
|
reason = reason === VOID ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : reason;
|
|
2306
2342
|
var tmp = new $closeCOROUTINE$(_this__u8e3s4, reason, $completion);
|
|
2307
|
-
tmp.
|
|
2308
|
-
tmp.
|
|
2309
|
-
return tmp.
|
|
2343
|
+
tmp.m8_1 = Unit_instance;
|
|
2344
|
+
tmp.n8_1 = null;
|
|
2345
|
+
return tmp.s8();
|
|
2310
2346
|
}
|
|
2311
2347
|
function closeExceptionally(_this__u8e3s4, cause, $completion) {
|
|
2312
2348
|
var tmp;
|
|
2313
2349
|
if (cause instanceof CancellationException) {
|
|
2314
2350
|
tmp = CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '');
|
|
2315
2351
|
} else {
|
|
2316
|
-
|
|
2352
|
+
var message = utf8Truncate(cause.toString(), 123);
|
|
2353
|
+
tmp = CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), message);
|
|
2317
2354
|
}
|
|
2318
2355
|
var reason = tmp;
|
|
2319
2356
|
return close(_this__u8e3s4, reason, $completion);
|
|
2320
2357
|
}
|
|
2321
2358
|
function $closeCOROUTINE$(_this__u8e3s4, reason, resultContinuation) {
|
|
2322
2359
|
CoroutineImpl.call(this, resultContinuation);
|
|
2323
|
-
this.
|
|
2324
|
-
this.
|
|
2360
|
+
this.d3c_1 = _this__u8e3s4;
|
|
2361
|
+
this.e3c_1 = reason;
|
|
2325
2362
|
}
|
|
2326
|
-
protoOf($closeCOROUTINE$).
|
|
2327
|
-
var suspendResult = this.
|
|
2363
|
+
protoOf($closeCOROUTINE$).s8 = function () {
|
|
2364
|
+
var suspendResult = this.m8_1;
|
|
2328
2365
|
$sm: do
|
|
2329
2366
|
try {
|
|
2330
|
-
var tmp = this.
|
|
2367
|
+
var tmp = this.k8_1;
|
|
2331
2368
|
switch (tmp) {
|
|
2332
2369
|
case 0:
|
|
2333
|
-
this.
|
|
2334
|
-
this.
|
|
2335
|
-
this.
|
|
2336
|
-
suspendResult = this.
|
|
2370
|
+
this.l8_1 = 4;
|
|
2371
|
+
this.l8_1 = 3;
|
|
2372
|
+
this.k8_1 = 1;
|
|
2373
|
+
suspendResult = this.d3c_1.m34(Close_init_$Create$(this.e3c_1), this);
|
|
2337
2374
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2338
2375
|
return suspendResult;
|
|
2339
2376
|
}
|
|
2340
2377
|
|
|
2341
2378
|
continue $sm;
|
|
2342
2379
|
case 1:
|
|
2343
|
-
this.
|
|
2344
|
-
suspendResult = this.
|
|
2380
|
+
this.k8_1 = 2;
|
|
2381
|
+
suspendResult = this.d3c_1.y1g(this);
|
|
2345
2382
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2346
2383
|
return suspendResult;
|
|
2347
2384
|
}
|
|
2348
2385
|
|
|
2349
2386
|
continue $sm;
|
|
2350
2387
|
case 2:
|
|
2351
|
-
this.
|
|
2352
|
-
this.
|
|
2388
|
+
this.l8_1 = 4;
|
|
2389
|
+
this.k8_1 = 5;
|
|
2353
2390
|
continue $sm;
|
|
2354
2391
|
case 3:
|
|
2355
|
-
this.
|
|
2356
|
-
var tmp_0 = this.
|
|
2392
|
+
this.l8_1 = 4;
|
|
2393
|
+
var tmp_0 = this.n8_1;
|
|
2357
2394
|
if (tmp_0 instanceof Error) {
|
|
2358
|
-
var _unused_var__etf5q3 = this.
|
|
2359
|
-
this.
|
|
2395
|
+
var _unused_var__etf5q3 = this.n8_1;
|
|
2396
|
+
this.k8_1 = 5;
|
|
2360
2397
|
continue $sm;
|
|
2361
2398
|
} else {
|
|
2362
|
-
throw this.
|
|
2399
|
+
throw this.n8_1;
|
|
2363
2400
|
}
|
|
2364
2401
|
|
|
2365
2402
|
case 4:
|
|
2366
|
-
throw this.
|
|
2403
|
+
throw this.n8_1;
|
|
2367
2404
|
case 5:
|
|
2368
|
-
this.
|
|
2405
|
+
this.l8_1 = 4;
|
|
2369
2406
|
return Unit_instance;
|
|
2370
2407
|
}
|
|
2371
2408
|
} catch ($p) {
|
|
2372
2409
|
var e = $p;
|
|
2373
|
-
if (this.
|
|
2410
|
+
if (this.l8_1 === 4) {
|
|
2374
2411
|
throw e;
|
|
2375
2412
|
} else {
|
|
2376
|
-
this.
|
|
2377
|
-
this.
|
|
2413
|
+
this.k8_1 = this.l8_1;
|
|
2414
|
+
this.n8_1 = e;
|
|
2378
2415
|
}
|
|
2379
2416
|
}
|
|
2380
2417
|
while (true);
|
|
@@ -2400,8 +2437,8 @@ function Text_init_$Create$(text) {
|
|
|
2400
2437
|
function Close_init_$Init$(reason, $this) {
|
|
2401
2438
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
2402
2439
|
var builder = new Buffer();
|
|
2403
|
-
builder.
|
|
2404
|
-
writeText(builder, reason.
|
|
2440
|
+
builder.sq(reason.t33_1);
|
|
2441
|
+
writeText(builder, reason.u33_1);
|
|
2405
2442
|
Close_init_$Init$_0(builder, $this);
|
|
2406
2443
|
return $this;
|
|
2407
2444
|
}
|
|
@@ -2413,7 +2450,7 @@ function Close_init_$Init$_0(packet, $this) {
|
|
|
2413
2450
|
return $this;
|
|
2414
2451
|
}
|
|
2415
2452
|
function Close_init_$Init$_1($this) {
|
|
2416
|
-
Close.call($this,
|
|
2453
|
+
Close.call($this, Companion_getInstance_6().b38_1);
|
|
2417
2454
|
return $this;
|
|
2418
2455
|
}
|
|
2419
2456
|
function Close_init_$Create$_0() {
|
|
@@ -2441,11 +2478,11 @@ function Pong(data, disposableHandle) {
|
|
|
2441
2478
|
disposableHandle = disposableHandle === VOID ? NonDisposableHandle_instance : disposableHandle;
|
|
2442
2479
|
Frame.call(this, true, FrameType_PONG_getInstance(), data, disposableHandle, false, false, false);
|
|
2443
2480
|
}
|
|
2444
|
-
function
|
|
2445
|
-
|
|
2446
|
-
this.
|
|
2481
|
+
function Companion_6() {
|
|
2482
|
+
Companion_instance_6 = this;
|
|
2483
|
+
this.b38_1 = new Int8Array(0);
|
|
2447
2484
|
}
|
|
2448
|
-
protoOf(
|
|
2485
|
+
protoOf(Companion_6).c38 = function (fin, frameType, data, rsv1, rsv2, rsv3) {
|
|
2449
2486
|
var tmp;
|
|
2450
2487
|
switch (frameType.a1_1) {
|
|
2451
2488
|
case 1:
|
|
@@ -2469,56 +2506,58 @@ protoOf(Companion_5).q36 = function (fin, frameType, data, rsv1, rsv2, rsv3) {
|
|
|
2469
2506
|
}
|
|
2470
2507
|
return tmp;
|
|
2471
2508
|
};
|
|
2472
|
-
var
|
|
2473
|
-
function
|
|
2474
|
-
if (
|
|
2475
|
-
new
|
|
2476
|
-
return
|
|
2509
|
+
var Companion_instance_6;
|
|
2510
|
+
function Companion_getInstance_6() {
|
|
2511
|
+
if (Companion_instance_6 == null)
|
|
2512
|
+
new Companion_6();
|
|
2513
|
+
return Companion_instance_6;
|
|
2477
2514
|
}
|
|
2478
2515
|
function Frame(fin, frameType, data, disposableHandle, rsv1, rsv2, rsv3) {
|
|
2479
|
-
|
|
2516
|
+
Companion_getInstance_6();
|
|
2480
2517
|
disposableHandle = disposableHandle === VOID ? NonDisposableHandle_instance : disposableHandle;
|
|
2481
2518
|
rsv1 = rsv1 === VOID ? false : rsv1;
|
|
2482
2519
|
rsv2 = rsv2 === VOID ? false : rsv2;
|
|
2483
2520
|
rsv3 = rsv3 === VOID ? false : rsv3;
|
|
2484
|
-
this.
|
|
2485
|
-
this.
|
|
2486
|
-
this.
|
|
2487
|
-
this.
|
|
2488
|
-
this.
|
|
2489
|
-
this.
|
|
2490
|
-
this.
|
|
2521
|
+
this.a34_1 = fin;
|
|
2522
|
+
this.b34_1 = frameType;
|
|
2523
|
+
this.c34_1 = data;
|
|
2524
|
+
this.d34_1 = disposableHandle;
|
|
2525
|
+
this.e34_1 = rsv1;
|
|
2526
|
+
this.f34_1 = rsv2;
|
|
2527
|
+
this.g34_1 = rsv3;
|
|
2528
|
+
validateSize(this);
|
|
2491
2529
|
}
|
|
2492
2530
|
protoOf(Frame).toString = function () {
|
|
2493
|
-
return 'Frame ' + this.
|
|
2531
|
+
return 'Frame ' + this.b34_1.toString() + ' (fin=' + this.a34_1 + ', buffer len = ' + this.c34_1.length + ')';
|
|
2494
2532
|
};
|
|
2495
2533
|
function get_OUTGOING_CHANNEL_CAPACITY() {
|
|
2496
2534
|
return OUTGOING_CHANNEL_CAPACITY;
|
|
2497
2535
|
}
|
|
2498
2536
|
var OUTGOING_CHANNEL_CAPACITY;
|
|
2499
2537
|
//region block: post-declaration
|
|
2500
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
2538
|
+
protoOf(DefaultWebSocketSessionImpl).m34 = send;
|
|
2501
2539
|
defineProp(protoOf(FrameTooBigException), 'message', function () {
|
|
2502
2540
|
return this.e();
|
|
2503
2541
|
});
|
|
2504
|
-
protoOf(BoundedChannel).
|
|
2505
|
-
protoOf(BoundedChannel).
|
|
2542
|
+
protoOf(BoundedChannel).n19 = close$default;
|
|
2543
|
+
protoOf(BoundedChannel).p19 = cancel$default;
|
|
2506
2544
|
//endregion
|
|
2507
2545
|
//region block: init
|
|
2546
|
+
Companion_instance_0 = new Companion_0();
|
|
2508
2547
|
NonDisposableHandle_instance = new NonDisposableHandle();
|
|
2509
|
-
|
|
2548
|
+
Companion_instance_5 = new Companion_5();
|
|
2510
2549
|
OUTGOING_CHANNEL_CAPACITY = null;
|
|
2511
2550
|
//endregion
|
|
2512
2551
|
//region block: exports
|
|
2513
2552
|
export {
|
|
2514
|
-
Companion_getInstance as
|
|
2515
|
-
|
|
2516
|
-
Codes_CLOSED_ABNORMALLY_getInstance as
|
|
2517
|
-
Codes_NORMAL_getInstance as
|
|
2518
|
-
send as
|
|
2519
|
-
Binary_init_$Create$ as Binary_init_$Create$
|
|
2520
|
-
Close_init_$Create$ as Close_init_$Create$
|
|
2521
|
-
Text_init_$Create$ as Text_init_$Create$
|
|
2553
|
+
Companion_getInstance as Companion_getInstanceo8cazic5dguk,
|
|
2554
|
+
Companion_getInstance_3 as Companion_getInstance27kujspvp4jub,
|
|
2555
|
+
Codes_CLOSED_ABNORMALLY_getInstance as Codes_CLOSED_ABNORMALLY_getInstance35h8511ldg1ec,
|
|
2556
|
+
Codes_NORMAL_getInstance as Codes_NORMAL_getInstance1njykag03saqj,
|
|
2557
|
+
send as send3vgnni2smbra3,
|
|
2558
|
+
Binary_init_$Create$ as Binary_init_$Create$1tryf04oicy2z,
|
|
2559
|
+
Close_init_$Create$ as Close_init_$Create$r368b6qas851,
|
|
2560
|
+
Text_init_$Create$ as Text_init_$Create$3e94pc3s749ft,
|
|
2522
2561
|
CloseReason as CloseReason10cphaqpp3ct7,
|
|
2523
2562
|
DefaultWebSocketSession_0 as DefaultWebSocketSessionmehckluw85jl,
|
|
2524
2563
|
DefaultWebSocketSession as DefaultWebSocketSession3h8506yqzs5fx,
|
|
@@ -2531,4 +2570,4 @@ export {
|
|
|
2531
2570
|
};
|
|
2532
2571
|
//endregion
|
|
2533
2572
|
|
|
2534
|
-
|
|
2573
|
+
//# sourceMappingURL=ktor-ktor-websockets.mjs.map
|