@solibo/home-api 1.16.17 → 1.16.18
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 +964 -960
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -1
- package/MultiplatformSettings-multiplatform-settings-no-arg.mjs.map +1 -1
- package/MultiplatformSettings-multiplatform-settings.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +3712 -3533
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-atomicfu.mjs.map +1 -1
- package/kotlinx-browser.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +2054 -2054
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +57 -57
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +519 -519
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2285 -2286
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1713 -1711
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/ktor-ktor-client-auth.mjs.map +1 -1
- package/ktor-ktor-client-content-negotiation.mjs +452 -292
- package/ktor-ktor-client-content-negotiation.mjs.map +1 -1
- package/ktor-ktor-client-core.mjs +3486 -3378
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-client-encoding.mjs.map +1 -1
- package/ktor-ktor-client-logging.mjs.map +1 -1
- package/ktor-ktor-client-websockets.mjs.map +1 -1
- package/ktor-ktor-events.mjs +7 -7
- package/ktor-ktor-events.mjs.map +1 -1
- package/ktor-ktor-http-cio.mjs +581 -581
- package/ktor-ktor-http-cio.mjs.map +1 -1
- package/ktor-ktor-http.mjs +1231 -1174
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +1172 -1223
- package/ktor-ktor-io.mjs.map +1 -1
- package/ktor-ktor-openapi-schema.mjs +84 -0
- package/ktor-ktor-openapi-schema.mjs.map +1 -0
- package/ktor-ktor-serialization-kotlinx-json.mjs +9 -9
- package/ktor-ktor-serialization-kotlinx-json.mjs.map +1 -1
- package/ktor-ktor-serialization-kotlinx.mjs +216 -226
- package/ktor-ktor-serialization-kotlinx.mjs.map +1 -1
- package/ktor-ktor-serialization.mjs +111 -116
- package/ktor-ktor-serialization.mjs.map +1 -1
- package/ktor-ktor-sse.mjs.map +1 -1
- package/ktor-ktor-utils.mjs +1037 -983
- package/ktor-ktor-utils.mjs.map +1 -1
- package/ktor-ktor-websocket-serialization.mjs.map +1 -1
- package/ktor-ktor-websockets.mjs +925 -911
- package/ktor-ktor-websockets.mjs.map +1 -1
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.d.mts +46 -46
- package/solibo-sdk-sdk-home-api.mjs +98430 -97370
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
package/ktor-ktor-websockets.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
+
Unit_instance3kz1zqli6gr1r as Unit_instance,
|
|
3
|
+
Companion_instance13way2il9a8jt as Companion_instance,
|
|
2
4
|
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
3
5
|
mapCapacity1h45rc3eh9p2l as mapCapacity,
|
|
4
6
|
coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
|
|
5
|
-
LinkedHashMap_init_$Create$
|
|
6
|
-
Unit_instance3vdlo4e4f5ggx as Unit_instance,
|
|
7
|
+
LinkedHashMap_init_$Create$21wpz6bm2n4yn as LinkedHashMap_init_$Create$,
|
|
7
8
|
protoOf180f3jzyo7rfj as protoOf,
|
|
8
9
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
9
10
|
enumEntries20mr21zbe3az4 as enumEntries,
|
|
@@ -12,11 +13,11 @@ import {
|
|
|
12
13
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
13
14
|
VOID3gxj6tk5isa35 as VOID,
|
|
14
15
|
toString1pkumu07cwy4m as toString,
|
|
15
|
-
IllegalArgumentException_init_$Create$
|
|
16
|
+
IllegalArgumentException_init_$Create$1gox8sdqs91jy as IllegalArgumentException_init_$Create$,
|
|
16
17
|
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
17
18
|
substringiqarkczpya5m as substring,
|
|
18
19
|
charCodeAt1yspne1d8erbm as charCodeAt,
|
|
19
|
-
|
|
20
|
+
Char__toInt_impl_vasixd28v1p2u6jau5g as Char__toInt_impl_vasixd,
|
|
20
21
|
isHighSurrogate11jfjw70ar0zf as isHighSurrogate,
|
|
21
22
|
isLowSurrogateujxcv7hjn4ma as isLowSurrogate,
|
|
22
23
|
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
@@ -27,17 +28,17 @@ import {
|
|
|
27
28
|
initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
|
|
28
29
|
constructCallableReference23y65rf941mch as constructCallableReference,
|
|
29
30
|
ensureNotNull1e947j3ixpazm as ensureNotNull,
|
|
30
|
-
CancellationException_init_$Create$
|
|
31
|
+
CancellationException_init_$Create$6nn2czcftw2s as CancellationException_init_$Create$,
|
|
31
32
|
CancellationException3b36o9qz53rgr as CancellationException,
|
|
32
33
|
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
33
34
|
toString30pk9tzaqopn as toString_0,
|
|
34
35
|
fromInt2ii0rejb1w62w as fromInt,
|
|
35
|
-
ArrayList_init_$Create$
|
|
36
|
-
IllegalStateException_init_$Create$
|
|
36
|
+
ArrayList_init_$Create$2xrifdqz5xirg as ArrayList_init_$Create$,
|
|
37
|
+
IllegalStateException_init_$Create$38ax6c90susjc as IllegalStateException_init_$Create$,
|
|
37
38
|
joinToString1cxrrlmo0chqs as joinToString,
|
|
38
39
|
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
39
40
|
Exceptiondt2hlxn7j7vw as Exception,
|
|
40
|
-
Exception_init_$Init$
|
|
41
|
+
Exception_init_$Init$2wjev6i7b48jh as Exception_init_$Init$,
|
|
41
42
|
captureStack1fzi4aczwc4hg as captureStack,
|
|
42
43
|
defineProp3ur6h3slcvq4x as defineProp,
|
|
43
44
|
compareTo3ankvs086tmwq as compareTo,
|
|
@@ -46,8 +47,8 @@ import {
|
|
|
46
47
|
toHexString5bhtjxqec7ow as toHexString,
|
|
47
48
|
throwUninitializedPropertyAccessException14fok093f3k3t as throwUninitializedPropertyAccessException,
|
|
48
49
|
RuntimeException1r3t0zl97011n as RuntimeException,
|
|
49
|
-
RuntimeException_init_$Init$
|
|
50
|
-
ArrayList_init_$Create$
|
|
50
|
+
RuntimeException_init_$Init$3157qkt7u3pwv as RuntimeException_init_$Init$,
|
|
51
|
+
ArrayList_init_$Create$a978fvbbts3d as ArrayList_init_$Create$_0,
|
|
51
52
|
split2bvyvnrlcifjv as split,
|
|
52
53
|
first58ocm7j58k3q as first,
|
|
53
54
|
isCharSequence1ju9jr1w86plq as isCharSequence,
|
|
@@ -56,31 +57,31 @@ import {
|
|
|
56
57
|
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
57
58
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
58
59
|
import {
|
|
59
|
-
|
|
60
|
+
Dispatchers_getInstance128lm494a5r5s as Dispatchers_getInstance,
|
|
60
61
|
launch1c91vkjzdi9sd as launch,
|
|
61
|
-
|
|
62
|
+
CoroutineStart_UNDISPATCHED_getInstance36t7e2kqqnuqp as CoroutineStart_UNDISPATCHED_getInstance,
|
|
62
63
|
ChannelResult2y4k69ac6y3du as ChannelResult,
|
|
63
|
-
|
|
64
|
+
_ChannelResult___get_isSuccess__impl__odq1z923tdiqn4dmkwh as _ChannelResult___get_isSuccess__impl__odq1z9,
|
|
64
65
|
CoroutineScopefcb5f5dwqcas as CoroutineScope,
|
|
65
66
|
cancelConsumed2i0oizqhmljf6 as cancelConsumed,
|
|
66
67
|
ClosedSendChannelException29m33prpq9jaw as ClosedSendChannelException,
|
|
67
68
|
ClosedReceiveChannelException3ofg6gf5f5b38 as ClosedReceiveChannelException,
|
|
68
69
|
CompletableDeferred2lnqvsbvx74d3 as CompletableDeferred,
|
|
69
70
|
Job13y4jkazwjho0 as Job,
|
|
70
|
-
|
|
71
|
+
Key_instancepi2bbb0csu5f as Key_instance,
|
|
71
72
|
CoroutineName2g5zosw74tf0f as CoroutineName,
|
|
72
|
-
|
|
73
|
+
Factory_getInstance14vrned6uf29d as Factory_getInstance,
|
|
73
74
|
DisposableHandle1uzxt8frdchxn as DisposableHandle,
|
|
74
75
|
CopyableThrowable1mvc99jcyvivf as CopyableThrowable,
|
|
75
76
|
Channel3r72atmcithql as Channel,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
close$
|
|
81
|
-
cancel$
|
|
82
|
-
SendChannel38sllbxw662ws as SendChannel,
|
|
77
|
+
withTimeoutOrNull2oszfz61ga8oq as withTimeoutOrNull,
|
|
78
|
+
BufferOverflow_SUSPEND_getInstance1ucmryz5dsuc2 as BufferOverflow_SUSPEND_getInstance,
|
|
79
|
+
BufferOverflow_DROP_OLDEST_getInstance2xuwx7fze5aij as BufferOverflow_DROP_OLDEST_getInstance,
|
|
80
|
+
_ChannelResult___get_isClosed__impl__mg7kuul2jcxqhngcqm as _ChannelResult___get_isClosed__impl__mg7kuu,
|
|
81
|
+
close$default2suggcywjwe8g as close$default,
|
|
82
|
+
cancel$default3v09jht7i082i as cancel$default,
|
|
83
83
|
ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
|
|
84
|
+
SendChannel38sllbxw662ws as SendChannel,
|
|
84
85
|
} from './kotlinx-coroutines-core.mjs';
|
|
85
86
|
import {
|
|
86
87
|
get_isTraceEnabled82xibuu04nxp as get_isTraceEnabled,
|
|
@@ -94,14 +95,14 @@ import {
|
|
|
94
95
|
buildjygoh729rhy8 as build,
|
|
95
96
|
get_size2imoy2jq11jxl as get_size,
|
|
96
97
|
readText27783kyxjxi1g as readText,
|
|
97
|
-
|
|
98
|
+
Charsets_getInstancezrqwjk0yrlyw as Charsets_getInstance,
|
|
98
99
|
toByteArray1i3ns5jnoqlv6 as toByteArray,
|
|
99
100
|
ClosedByteChannelException3il8gfpye60w as ClosedByteChannelException,
|
|
100
101
|
writeText19qfzm98fbm4l as writeText,
|
|
101
102
|
} from './ktor-ktor-io.mjs';
|
|
102
103
|
import {
|
|
103
104
|
readByteArray1ri21h2rciakw as readByteArray,
|
|
104
|
-
IOException_init_$Create$
|
|
105
|
+
IOException_init_$Create$1kq3iqv4goy5s as IOException_init_$Create$,
|
|
105
106
|
Buffergs925ekssbch as Buffer,
|
|
106
107
|
} from './kotlinx-io-kotlinx-io-core.mjs';
|
|
107
108
|
import {
|
|
@@ -117,7 +118,7 @@ initMetadataForClass(Codes, 'Codes', VOID, Enum);
|
|
|
117
118
|
initMetadataForCompanion(Companion_0);
|
|
118
119
|
initMetadataForClass(CloseReason, 'CloseReason');
|
|
119
120
|
function send(frame, $completion) {
|
|
120
|
-
return this.
|
|
121
|
+
return this.get_outgoing_us7o3v_k$().send_44jogj_k$(frame, $completion);
|
|
121
122
|
}
|
|
122
123
|
initMetadataForInterface(WebSocketSession, 'WebSocketSession', VOID, VOID, [CoroutineScope], [1, 0]);
|
|
123
124
|
initMetadataForInterface(DefaultWebSocketSession, 'DefaultWebSocketSession', VOID, VOID, [WebSocketSession], [1, 0]);
|
|
@@ -144,7 +145,7 @@ initMetadataForCompanion(Companion_4);
|
|
|
144
145
|
initMetadataForClass(ChannelConfig, 'ChannelConfig');
|
|
145
146
|
initMetadataForClass(ChannelOverflow, 'ChannelOverflow', VOID, Enum);
|
|
146
147
|
initMetadataForCompanion(Companion_5);
|
|
147
|
-
initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [
|
|
148
|
+
initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [ReceiveChannel, SendChannel], [1, 0]);
|
|
148
149
|
initMetadataForClass(ChannelOverflowException, 'ChannelOverflowException', VOID, RuntimeException);
|
|
149
150
|
initMetadataForInterface(WebSocketExtension, 'WebSocketExtension');
|
|
150
151
|
initMetadataForClass(WebSocketExtensionsConfig, 'WebSocketExtensionsConfig', WebSocketExtensionsConfig);
|
|
@@ -158,6 +159,28 @@ initMetadataForClass(Ping, 'Ping', VOID, Frame);
|
|
|
158
159
|
initMetadataForClass(Pong, 'Pong', VOID, Frame);
|
|
159
160
|
initMetadataForCompanion(Companion_6);
|
|
160
161
|
//endregion
|
|
162
|
+
var static_init_called;
|
|
163
|
+
function static_init() {
|
|
164
|
+
if (static_init_called)
|
|
165
|
+
return Unit_instance;
|
|
166
|
+
static_init_called = true;
|
|
167
|
+
Codes_NORMAL_instance = new Codes('NORMAL', 0, 1000);
|
|
168
|
+
Codes_GOING_AWAY_instance = new Codes('GOING_AWAY', 1, 1001);
|
|
169
|
+
Codes_PROTOCOL_ERROR_instance = new Codes('PROTOCOL_ERROR', 2, 1002);
|
|
170
|
+
Codes_CANNOT_ACCEPT_instance = new Codes('CANNOT_ACCEPT', 3, 1003);
|
|
171
|
+
Codes_CLOSED_ABNORMALLY_instance = new Codes('CLOSED_ABNORMALLY', 4, 1006);
|
|
172
|
+
Codes_NOT_CONSISTENT_instance = new Codes('NOT_CONSISTENT', 5, 1007);
|
|
173
|
+
Codes_VIOLATED_POLICY_instance = new Codes('VIOLATED_POLICY', 6, 1008);
|
|
174
|
+
Codes_TOO_BIG_instance = new Codes('TOO_BIG', 7, 1009);
|
|
175
|
+
Codes_NO_EXTENSION_instance = new Codes('NO_EXTENSION', 8, 1010);
|
|
176
|
+
Codes_INTERNAL_ERROR_instance = new Codes('INTERNAL_ERROR', 9, 1011);
|
|
177
|
+
Codes_SERVICE_RESTART_instance = new Codes('SERVICE_RESTART', 10, 1012);
|
|
178
|
+
Codes_TRY_AGAIN_LATER_instance = new Codes('TRY_AGAIN_LATER', 11, 1013);
|
|
179
|
+
if (Companion_instance_0 == null) {
|
|
180
|
+
Companion_instance;
|
|
181
|
+
new Companion();
|
|
182
|
+
}
|
|
183
|
+
}
|
|
161
184
|
var Codes_NORMAL_instance;
|
|
162
185
|
var Codes_GOING_AWAY_instance;
|
|
163
186
|
var Codes_PROTOCOL_ERROR_instance;
|
|
@@ -171,62 +194,43 @@ var Codes_INTERNAL_ERROR_instance;
|
|
|
171
194
|
var Codes_SERVICE_RESTART_instance;
|
|
172
195
|
var Codes_TRY_AGAIN_LATER_instance;
|
|
173
196
|
function Companion() {
|
|
174
|
-
|
|
197
|
+
Companion_instance_0 = this;
|
|
175
198
|
var tmp = this;
|
|
176
199
|
// Inline function 'kotlin.collections.associateBy' call
|
|
177
200
|
var this_0 = get_entries();
|
|
178
201
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
179
202
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
180
203
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
181
|
-
var _iterator__ex2g4s = this_0.
|
|
182
|
-
while (_iterator__ex2g4s.
|
|
183
|
-
var element = _iterator__ex2g4s.
|
|
184
|
-
var tmp$ret$2 = element.
|
|
185
|
-
destination.
|
|
204
|
+
var _iterator__ex2g4s = this_0.iterator_jk1svi_k$();
|
|
205
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
206
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
207
|
+
var tmp$ret$2 = element.code_1;
|
|
208
|
+
destination.put_4fpzoq_k$(tmp$ret$2, element);
|
|
186
209
|
}
|
|
187
|
-
tmp.
|
|
188
|
-
this.
|
|
210
|
+
tmp.byCodeMap_1 = destination;
|
|
211
|
+
this.UNEXPECTED_CONDITION_1 = Codes_INTERNAL_ERROR_getInstance();
|
|
189
212
|
}
|
|
190
|
-
protoOf(Companion).
|
|
191
|
-
return this.
|
|
213
|
+
protoOf(Companion).byCode_d9s8a4_k$ = function (code) {
|
|
214
|
+
return this.byCodeMap_1.get_wei43m_k$(code);
|
|
192
215
|
};
|
|
193
|
-
var
|
|
216
|
+
var Companion_instance_0;
|
|
194
217
|
function Companion_getInstance() {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
new Companion();
|
|
198
|
-
return Companion_instance;
|
|
218
|
+
static_init();
|
|
219
|
+
return Companion_instance_0;
|
|
199
220
|
}
|
|
200
221
|
function values() {
|
|
222
|
+
static_init();
|
|
201
223
|
return [Codes_NORMAL_getInstance(), Codes_GOING_AWAY_getInstance(), Codes_PROTOCOL_ERROR_getInstance(), Codes_CANNOT_ACCEPT_getInstance(), Codes_CLOSED_ABNORMALLY_getInstance(), Codes_NOT_CONSISTENT_getInstance(), Codes_VIOLATED_POLICY_getInstance(), Codes_TOO_BIG_getInstance(), Codes_NO_EXTENSION_getInstance(), Codes_INTERNAL_ERROR_getInstance(), Codes_SERVICE_RESTART_getInstance(), Codes_TRY_AGAIN_LATER_getInstance()];
|
|
202
224
|
}
|
|
203
225
|
function get_entries() {
|
|
226
|
+
static_init();
|
|
204
227
|
if ($ENTRIES == null)
|
|
205
228
|
$ENTRIES = enumEntries(values());
|
|
206
229
|
return $ENTRIES;
|
|
207
230
|
}
|
|
208
|
-
var Codes_entriesInitialized;
|
|
209
|
-
function Codes_initEntries() {
|
|
210
|
-
if (Codes_entriesInitialized)
|
|
211
|
-
return Unit_instance;
|
|
212
|
-
Codes_entriesInitialized = true;
|
|
213
|
-
Codes_NORMAL_instance = new Codes('NORMAL', 0, 1000);
|
|
214
|
-
Codes_GOING_AWAY_instance = new Codes('GOING_AWAY', 1, 1001);
|
|
215
|
-
Codes_PROTOCOL_ERROR_instance = new Codes('PROTOCOL_ERROR', 2, 1002);
|
|
216
|
-
Codes_CANNOT_ACCEPT_instance = new Codes('CANNOT_ACCEPT', 3, 1003);
|
|
217
|
-
Codes_CLOSED_ABNORMALLY_instance = new Codes('CLOSED_ABNORMALLY', 4, 1006);
|
|
218
|
-
Codes_NOT_CONSISTENT_instance = new Codes('NOT_CONSISTENT', 5, 1007);
|
|
219
|
-
Codes_VIOLATED_POLICY_instance = new Codes('VIOLATED_POLICY', 6, 1008);
|
|
220
|
-
Codes_TOO_BIG_instance = new Codes('TOO_BIG', 7, 1009);
|
|
221
|
-
Codes_NO_EXTENSION_instance = new Codes('NO_EXTENSION', 8, 1010);
|
|
222
|
-
Codes_INTERNAL_ERROR_instance = new Codes('INTERNAL_ERROR', 9, 1011);
|
|
223
|
-
Codes_SERVICE_RESTART_instance = new Codes('SERVICE_RESTART', 10, 1012);
|
|
224
|
-
Codes_TRY_AGAIN_LATER_instance = new Codes('TRY_AGAIN_LATER', 11, 1013);
|
|
225
|
-
Companion_getInstance();
|
|
226
|
-
}
|
|
227
231
|
var $ENTRIES;
|
|
228
232
|
function CloseReason_init_$Init$(code, message, $this) {
|
|
229
|
-
CloseReason.call($this, code.
|
|
233
|
+
CloseReason.call($this, code.code_1, message);
|
|
230
234
|
return $this;
|
|
231
235
|
}
|
|
232
236
|
function CloseReason_init_$Create$(code, message) {
|
|
@@ -234,82 +238,82 @@ function CloseReason_init_$Create$(code, message) {
|
|
|
234
238
|
}
|
|
235
239
|
function Codes(name, ordinal, code) {
|
|
236
240
|
Enum.call(this, name, ordinal);
|
|
237
|
-
this.
|
|
241
|
+
this.code_1 = code;
|
|
238
242
|
}
|
|
239
243
|
function Companion_0() {
|
|
240
244
|
}
|
|
241
|
-
var
|
|
245
|
+
var Companion_instance_1;
|
|
242
246
|
function Companion_getInstance_0() {
|
|
243
|
-
return
|
|
247
|
+
return Companion_instance_1;
|
|
244
248
|
}
|
|
245
249
|
function Codes_NORMAL_getInstance() {
|
|
246
|
-
|
|
250
|
+
static_init();
|
|
247
251
|
return Codes_NORMAL_instance;
|
|
248
252
|
}
|
|
249
253
|
function Codes_GOING_AWAY_getInstance() {
|
|
250
|
-
|
|
254
|
+
static_init();
|
|
251
255
|
return Codes_GOING_AWAY_instance;
|
|
252
256
|
}
|
|
253
257
|
function Codes_PROTOCOL_ERROR_getInstance() {
|
|
254
|
-
|
|
258
|
+
static_init();
|
|
255
259
|
return Codes_PROTOCOL_ERROR_instance;
|
|
256
260
|
}
|
|
257
261
|
function Codes_CANNOT_ACCEPT_getInstance() {
|
|
258
|
-
|
|
262
|
+
static_init();
|
|
259
263
|
return Codes_CANNOT_ACCEPT_instance;
|
|
260
264
|
}
|
|
261
265
|
function Codes_CLOSED_ABNORMALLY_getInstance() {
|
|
262
|
-
|
|
266
|
+
static_init();
|
|
263
267
|
return Codes_CLOSED_ABNORMALLY_instance;
|
|
264
268
|
}
|
|
265
269
|
function Codes_NOT_CONSISTENT_getInstance() {
|
|
266
|
-
|
|
270
|
+
static_init();
|
|
267
271
|
return Codes_NOT_CONSISTENT_instance;
|
|
268
272
|
}
|
|
269
273
|
function Codes_VIOLATED_POLICY_getInstance() {
|
|
270
|
-
|
|
274
|
+
static_init();
|
|
271
275
|
return Codes_VIOLATED_POLICY_instance;
|
|
272
276
|
}
|
|
273
277
|
function Codes_TOO_BIG_getInstance() {
|
|
274
|
-
|
|
278
|
+
static_init();
|
|
275
279
|
return Codes_TOO_BIG_instance;
|
|
276
280
|
}
|
|
277
281
|
function Codes_NO_EXTENSION_getInstance() {
|
|
278
|
-
|
|
282
|
+
static_init();
|
|
279
283
|
return Codes_NO_EXTENSION_instance;
|
|
280
284
|
}
|
|
281
285
|
function Codes_INTERNAL_ERROR_getInstance() {
|
|
282
|
-
|
|
286
|
+
static_init();
|
|
283
287
|
return Codes_INTERNAL_ERROR_instance;
|
|
284
288
|
}
|
|
285
289
|
function Codes_SERVICE_RESTART_getInstance() {
|
|
286
|
-
|
|
290
|
+
static_init();
|
|
287
291
|
return Codes_SERVICE_RESTART_instance;
|
|
288
292
|
}
|
|
289
293
|
function Codes_TRY_AGAIN_LATER_getInstance() {
|
|
290
|
-
|
|
294
|
+
static_init();
|
|
291
295
|
return Codes_TRY_AGAIN_LATER_instance;
|
|
292
296
|
}
|
|
293
297
|
function CloseReason(code, message) {
|
|
294
|
-
this.
|
|
295
|
-
this.
|
|
296
|
-
var size = utf8Size(this.
|
|
298
|
+
this.code_1 = code;
|
|
299
|
+
this.message_1 = message;
|
|
300
|
+
var size = utf8Size(this.message_1);
|
|
297
301
|
// Inline function 'kotlin.require' call
|
|
298
302
|
if (!(size <= 123)) {
|
|
299
303
|
var message_0 = 'Close reason message is too long: ' + size + ' bytes, but must not exceed ' + '123 bytes when UTF-8-encoded';
|
|
300
304
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
301
305
|
}
|
|
302
306
|
}
|
|
303
|
-
protoOf(CloseReason).
|
|
304
|
-
return Companion_getInstance().
|
|
307
|
+
protoOf(CloseReason).get_knownReason_j6teda_k$ = function () {
|
|
308
|
+
return Companion_getInstance().byCode_d9s8a4_k$(this.code_1);
|
|
305
309
|
};
|
|
306
310
|
protoOf(CloseReason).toString = function () {
|
|
307
|
-
var tmp0_elvis_lhs = this.
|
|
308
|
-
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.
|
|
311
|
+
var tmp0_elvis_lhs = this.get_knownReason_j6teda_k$();
|
|
312
|
+
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.code_1 : tmp0_elvis_lhs) + ', message=' + this.message_1 + ')';
|
|
309
313
|
};
|
|
310
314
|
protoOf(CloseReason).hashCode = function () {
|
|
311
|
-
var result = this.
|
|
312
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
315
|
+
var result = this.code_1;
|
|
316
|
+
result = imul(result, 31) + getStringHashCode(this.message_1) | 0;
|
|
313
317
|
return result;
|
|
314
318
|
};
|
|
315
319
|
protoOf(CloseReason).equals = function (other) {
|
|
@@ -317,9 +321,9 @@ protoOf(CloseReason).equals = function (other) {
|
|
|
317
321
|
return true;
|
|
318
322
|
if (!(other instanceof CloseReason))
|
|
319
323
|
return false;
|
|
320
|
-
if (!(this.
|
|
324
|
+
if (!(this.code_1 === other.code_1))
|
|
321
325
|
return false;
|
|
322
|
-
if (!(this.
|
|
326
|
+
if (!(this.message_1 === other.message_1))
|
|
323
327
|
return false;
|
|
324
328
|
return true;
|
|
325
329
|
};
|
|
@@ -353,8 +357,8 @@ function utf8ByteCountAt(_this__u8e3s4, index) {
|
|
|
353
357
|
}
|
|
354
358
|
function validateSize(_this__u8e3s4) {
|
|
355
359
|
// Inline function 'kotlin.require' call
|
|
356
|
-
if (!(!_this__u8e3s4.
|
|
357
|
-
var message = 'Control frames must not exceed 125 bytes per RFC 6455, ' + ('but ' + _this__u8e3s4.
|
|
360
|
+
if (!(!_this__u8e3s4.frameType_1.controlFrame_1 || _this__u8e3s4.data_1.length <= 125)) {
|
|
361
|
+
var message = 'Control frames must not exceed 125 bytes per RFC 6455, ' + ('but ' + _this__u8e3s4.frameType_1.toString() + ' frame has ' + _this__u8e3s4.data_1.length + ' bytes');
|
|
358
362
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
359
363
|
}
|
|
360
364
|
}
|
|
@@ -384,228 +388,228 @@ function DefaultWebSocketSession() {
|
|
|
384
388
|
function DefaultWebSocketSession_0(session, pingIntervalMillis, timeoutMillis, channelsConfig) {
|
|
385
389
|
pingIntervalMillis = pingIntervalMillis === VOID ? 0n : pingIntervalMillis;
|
|
386
390
|
timeoutMillis = timeoutMillis === VOID ? 15000n : timeoutMillis;
|
|
387
|
-
channelsConfig = channelsConfig === VOID ?
|
|
391
|
+
channelsConfig = channelsConfig === VOID ? Companion_getInstance_2().UNLIMITED_1 : channelsConfig;
|
|
388
392
|
_init_properties_DefaultWebSocketSession_kt__469s0y();
|
|
389
393
|
// Inline function 'kotlin.require' call
|
|
390
394
|
if (!!isInterface(session, DefaultWebSocketSession)) {
|
|
391
395
|
var message = 'Cannot wrap other DefaultWebSocketSession';
|
|
392
396
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
393
397
|
}
|
|
394
|
-
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.
|
|
398
|
+
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.incoming_1, channelsConfig.outgoing_1);
|
|
395
399
|
}
|
|
396
400
|
function runIncomingProcessor($this, ponger) {
|
|
397
|
-
var tmp = get_IncomingProcessorCoroutineName().
|
|
401
|
+
var tmp = get_IncomingProcessorCoroutineName().plus_s13ygv_k$(Dispatchers_getInstance().Unconfined_1);
|
|
398
402
|
return launch($this, tmp, VOID, DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0($this, ponger, null));
|
|
399
403
|
}
|
|
400
404
|
function runOutgoingProcessor($this) {
|
|
401
|
-
var tmp = get_OutgoingProcessorCoroutineName().
|
|
405
|
+
var tmp = get_OutgoingProcessorCoroutineName().plus_s13ygv_k$(Dispatchers_getInstance().Unconfined_1);
|
|
402
406
|
var tmp_0 = CoroutineStart_UNDISPATCHED_getInstance();
|
|
403
407
|
return launch($this, tmp, tmp_0, DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0($this, null));
|
|
404
408
|
}
|
|
405
409
|
function outgoingProcessorLoop($this, $completion) {
|
|
406
410
|
var tmp = new $outgoingProcessorLoopCOROUTINE$($this, $completion);
|
|
407
|
-
tmp.
|
|
408
|
-
tmp.
|
|
409
|
-
return tmp.
|
|
411
|
+
tmp.result_1 = Unit_instance;
|
|
412
|
+
tmp.exception_1 = null;
|
|
413
|
+
return tmp.doResume_5yljmg_k$();
|
|
410
414
|
}
|
|
411
415
|
function sendCloseSequence($this, reason, exception, $completion) {
|
|
412
416
|
exception = exception === VOID ? null : exception;
|
|
413
417
|
var tmp = new $sendCloseSequenceCOROUTINE$($this, reason, exception, $completion);
|
|
414
|
-
tmp.
|
|
415
|
-
tmp.
|
|
416
|
-
return tmp.
|
|
418
|
+
tmp.result_1 = Unit_instance;
|
|
419
|
+
tmp.exception_1 = null;
|
|
420
|
+
return tmp.doResume_5yljmg_k$();
|
|
417
421
|
}
|
|
418
422
|
function tryClose($this) {
|
|
419
|
-
return $this.
|
|
423
|
+
return $this.closed_1.atomicfu$compareAndSet(false, true);
|
|
420
424
|
}
|
|
421
425
|
function runOrCancelPinger($this) {
|
|
422
|
-
var interval = $this.
|
|
426
|
+
var interval = $this.pingIntervalMillis_1;
|
|
423
427
|
var tmp;
|
|
424
|
-
if ($this.
|
|
428
|
+
if ($this.closed_1.kotlinx$atomicfu$value) {
|
|
425
429
|
tmp = null;
|
|
426
430
|
} else if (interval > 0n) {
|
|
427
|
-
var tmp_0 = $this.
|
|
428
|
-
var tmp_1 = $this.
|
|
431
|
+
var tmp_0 = $this.raw_1.get_outgoing_us7o3v_k$();
|
|
432
|
+
var tmp_1 = $this.timeoutMillis_1;
|
|
429
433
|
tmp = pinger($this, tmp_0, interval, tmp_1, DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0($this, null));
|
|
430
434
|
} else {
|
|
431
435
|
tmp = null;
|
|
432
436
|
}
|
|
433
437
|
var newPinger = tmp;
|
|
434
|
-
var tmp0_safe_receiver = $this.
|
|
438
|
+
var tmp0_safe_receiver = $this.pinger_1.atomicfu$getAndSet(newPinger);
|
|
435
439
|
if (tmp0_safe_receiver == null)
|
|
436
440
|
null;
|
|
437
441
|
else
|
|
438
|
-
tmp0_safe_receiver.
|
|
439
|
-
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.
|
|
442
|
+
tmp0_safe_receiver.close$default_kcbl7u_k$();
|
|
443
|
+
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.trySend_62dpg8_k$(Companion_getInstance_1().EmptyPong_1));
|
|
440
444
|
if (tmp2_safe_receiver == null)
|
|
441
445
|
null;
|
|
442
446
|
else
|
|
443
|
-
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.
|
|
444
|
-
if ($this.
|
|
447
|
+
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.holder_1);
|
|
448
|
+
if ($this.closed_1.kotlinx$atomicfu$value && !(newPinger == null)) {
|
|
445
449
|
runOrCancelPinger($this);
|
|
446
450
|
}
|
|
447
451
|
}
|
|
448
452
|
function checkMaxFrameSize($this, packet, frame, $completion) {
|
|
449
453
|
var tmp = new $checkMaxFrameSizeCOROUTINE$($this, packet, frame, $completion);
|
|
450
|
-
tmp.
|
|
451
|
-
tmp.
|
|
452
|
-
return tmp.
|
|
454
|
+
tmp.result_1 = Unit_instance;
|
|
455
|
+
tmp.exception_1 = null;
|
|
456
|
+
return tmp.doResume_5yljmg_k$();
|
|
453
457
|
}
|
|
454
458
|
function processIncomingExtensions($this, frame) {
|
|
455
459
|
// Inline function 'kotlin.collections.fold' call
|
|
456
460
|
var accumulator = frame;
|
|
457
|
-
var _iterator__ex2g4s = $this.
|
|
458
|
-
while (_iterator__ex2g4s.
|
|
459
|
-
var element = _iterator__ex2g4s.
|
|
461
|
+
var _iterator__ex2g4s = $this.get_extensions_kxksyl_k$().iterator_jk1svi_k$();
|
|
462
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
463
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
460
464
|
var current = accumulator;
|
|
461
|
-
accumulator = element.
|
|
465
|
+
accumulator = element.processIncomingFrame_lcwqbj_k$(current);
|
|
462
466
|
}
|
|
463
467
|
return accumulator;
|
|
464
468
|
}
|
|
465
469
|
function processOutgoingExtensions($this, frame) {
|
|
466
470
|
// Inline function 'kotlin.collections.fold' call
|
|
467
471
|
var accumulator = frame;
|
|
468
|
-
var _iterator__ex2g4s = $this.
|
|
469
|
-
while (_iterator__ex2g4s.
|
|
470
|
-
var element = _iterator__ex2g4s.
|
|
472
|
+
var _iterator__ex2g4s = $this.get_extensions_kxksyl_k$().iterator_jk1svi_k$();
|
|
473
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
474
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
471
475
|
var current = accumulator;
|
|
472
|
-
accumulator = element.
|
|
476
|
+
accumulator = element.processOutgoingFrame_8xceij_k$(current);
|
|
473
477
|
}
|
|
474
478
|
return accumulator;
|
|
475
479
|
}
|
|
476
480
|
function Companion_1() {
|
|
477
|
-
|
|
478
|
-
this.
|
|
481
|
+
Companion_instance_2 = this;
|
|
482
|
+
this.EmptyPong_1 = new Pong(new Int8Array(0), NonDisposableHandle_instance);
|
|
479
483
|
}
|
|
480
|
-
var
|
|
484
|
+
var Companion_instance_2;
|
|
481
485
|
function Companion_getInstance_1() {
|
|
482
|
-
if (
|
|
486
|
+
if (Companion_instance_2 == null)
|
|
483
487
|
new Companion_1();
|
|
484
|
-
return
|
|
488
|
+
return Companion_instance_2;
|
|
485
489
|
}
|
|
486
490
|
function DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
487
|
-
this
|
|
488
|
-
this
|
|
489
|
-
this.
|
|
491
|
+
this.$incomingJob_1 = $incomingJob;
|
|
492
|
+
this.$outgoingJob_1 = $outgoingJob;
|
|
493
|
+
this.this$0__1 = this$0;
|
|
490
494
|
CoroutineImpl.call(this, resultContinuation);
|
|
491
495
|
}
|
|
492
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
493
|
-
var tmp = this.
|
|
494
|
-
tmp.
|
|
495
|
-
tmp.
|
|
496
|
-
return tmp.
|
|
496
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).invoke_d9fzmj_k$ = function ($this$launch, $completion) {
|
|
497
|
+
var tmp = this.create_rcuf4x_k$($this$launch, $completion);
|
|
498
|
+
tmp.result_1 = Unit_instance;
|
|
499
|
+
tmp.exception_1 = null;
|
|
500
|
+
return tmp.doResume_5yljmg_k$();
|
|
497
501
|
};
|
|
498
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
499
|
-
return this.
|
|
502
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
|
|
503
|
+
return this.invoke_d9fzmj_k$((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
500
504
|
};
|
|
501
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
502
|
-
var suspendResult = this.
|
|
505
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).doResume_5yljmg_k$ = function () {
|
|
506
|
+
var suspendResult = this.result_1;
|
|
503
507
|
$sm: do
|
|
504
508
|
try {
|
|
505
|
-
var tmp = this.
|
|
509
|
+
var tmp = this.state_1;
|
|
506
510
|
switch (tmp) {
|
|
507
511
|
case 0:
|
|
508
|
-
this.
|
|
509
|
-
this.
|
|
510
|
-
suspendResult = this.
|
|
512
|
+
this.exceptionState_1 = 3;
|
|
513
|
+
this.state_1 = 1;
|
|
514
|
+
suspendResult = this.$incomingJob_1.join_o20dar_k$(this);
|
|
511
515
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
512
516
|
return suspendResult;
|
|
513
517
|
}
|
|
514
518
|
|
|
515
519
|
continue $sm;
|
|
516
520
|
case 1:
|
|
517
|
-
this.
|
|
518
|
-
suspendResult = this.
|
|
521
|
+
this.state_1 = 2;
|
|
522
|
+
suspendResult = this.$outgoingJob_1.join_o20dar_k$(this);
|
|
519
523
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
520
524
|
return suspendResult;
|
|
521
525
|
}
|
|
522
526
|
|
|
523
527
|
continue $sm;
|
|
524
528
|
case 2:
|
|
525
|
-
this.
|
|
529
|
+
this.this$0__1.context_1.cancel$default_8haxne_k$();
|
|
526
530
|
return Unit_instance;
|
|
527
531
|
case 3:
|
|
528
|
-
throw this.
|
|
532
|
+
throw this.exception_1;
|
|
529
533
|
}
|
|
530
534
|
} catch ($p) {
|
|
531
535
|
var e = $p;
|
|
532
|
-
if (this.
|
|
536
|
+
if (this.exceptionState_1 === 3) {
|
|
533
537
|
throw e;
|
|
534
538
|
} else {
|
|
535
|
-
this.
|
|
536
|
-
this.
|
|
539
|
+
this.state_1 = this.exceptionState_1;
|
|
540
|
+
this.exception_1 = e;
|
|
537
541
|
}
|
|
538
542
|
}
|
|
539
543
|
while (true);
|
|
540
544
|
};
|
|
541
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
542
|
-
var i = new DefaultWebSocketSessionImpl$start$slambda(this
|
|
543
|
-
i
|
|
545
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).create_rcuf4x_k$ = function ($this$launch, completion) {
|
|
546
|
+
var i = new DefaultWebSocketSessionImpl$start$slambda(this.$incomingJob_1, this.$outgoingJob_1, this.this$0__1, completion);
|
|
547
|
+
i.$this$launch_1 = $this$launch;
|
|
544
548
|
return i;
|
|
545
549
|
};
|
|
546
550
|
function DefaultWebSocketSessionImpl$start$slambda_0($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
547
551
|
var i = new DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation);
|
|
548
552
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
549
|
-
return i.
|
|
553
|
+
return i.invoke_d9fzmj_k$($this$launch, $completion);
|
|
550
554
|
}, 1);
|
|
551
555
|
}
|
|
552
556
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation) {
|
|
553
|
-
this.
|
|
554
|
-
this
|
|
557
|
+
this.this$0__1 = this$0;
|
|
558
|
+
this.$ponger_1 = $ponger;
|
|
555
559
|
CoroutineImpl.call(this, resultContinuation);
|
|
556
560
|
}
|
|
557
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
558
|
-
var tmp = this.
|
|
559
|
-
tmp.
|
|
560
|
-
tmp.
|
|
561
|
-
return tmp.
|
|
561
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).invoke_d9fzmj_k$ = function ($this$launch, $completion) {
|
|
562
|
+
var tmp = this.create_rcuf4x_k$($this$launch, $completion);
|
|
563
|
+
tmp.result_1 = Unit_instance;
|
|
564
|
+
tmp.exception_1 = null;
|
|
565
|
+
return tmp.doResume_5yljmg_k$();
|
|
562
566
|
};
|
|
563
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
564
|
-
return this.
|
|
567
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
|
|
568
|
+
return this.invoke_d9fzmj_k$((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
565
569
|
};
|
|
566
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
567
|
-
var suspendResult = this.
|
|
570
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).doResume_5yljmg_k$ = function () {
|
|
571
|
+
var suspendResult = this.result_1;
|
|
568
572
|
$sm: do
|
|
569
573
|
try {
|
|
570
|
-
var tmp = this.
|
|
574
|
+
var tmp = this.state_1;
|
|
571
575
|
switch (tmp) {
|
|
572
576
|
case 0:
|
|
573
|
-
this.
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
576
|
-
this.
|
|
577
|
-
this.
|
|
578
|
-
this.
|
|
577
|
+
this.exceptionState_1 = 39;
|
|
578
|
+
this.firstFrame10__1 = null;
|
|
579
|
+
this.frameBody2__1 = null;
|
|
580
|
+
this.closeFramePresented1__1 = false;
|
|
581
|
+
this.tmp$ret$123__1 = Unit_instance;
|
|
582
|
+
this.state_1 = 1;
|
|
579
583
|
continue $sm;
|
|
580
584
|
case 1:
|
|
581
|
-
this.
|
|
585
|
+
this.state_1 = 2;
|
|
582
586
|
continue $sm;
|
|
583
587
|
case 2:
|
|
584
|
-
this.
|
|
585
|
-
this.
|
|
586
|
-
this.
|
|
587
|
-
this.
|
|
588
|
+
this.exceptionState_1 = 33;
|
|
589
|
+
this.exceptionState_1 = 32;
|
|
590
|
+
this.tmp014__1 = this.this$0__1.raw_1.get_incoming_u9os29_k$();
|
|
591
|
+
this.state_1 = 3;
|
|
588
592
|
continue $sm;
|
|
589
593
|
case 3:
|
|
590
|
-
this.
|
|
591
|
-
this.
|
|
592
|
-
this.
|
|
594
|
+
this.this6__1 = this.tmp014__1;
|
|
595
|
+
this.cause5__1 = null;
|
|
596
|
+
this.state_1 = 4;
|
|
593
597
|
continue $sm;
|
|
594
598
|
case 4:
|
|
595
|
-
this.
|
|
599
|
+
this.state_1 = 5;
|
|
596
600
|
continue $sm;
|
|
597
601
|
case 5:
|
|
598
|
-
this.
|
|
602
|
+
this.state_1 = 6;
|
|
599
603
|
continue $sm;
|
|
600
604
|
case 6:
|
|
601
|
-
this.
|
|
602
|
-
this.
|
|
603
|
-
this.
|
|
604
|
-
this.
|
|
605
|
+
this.exceptionState_1 = 29;
|
|
606
|
+
this.exceptionState_1 = 28;
|
|
607
|
+
this._iterator_13_biegom_1 = this.this6__1.iterator_jk1svi_k$();
|
|
608
|
+
this.state_1 = 7;
|
|
605
609
|
continue $sm;
|
|
606
610
|
case 7:
|
|
607
|
-
this.
|
|
608
|
-
suspendResult = this.
|
|
611
|
+
this.state_1 = 8;
|
|
612
|
+
suspendResult = this._iterator_13_biegom_1.hasNext_nhy1w3_k$(this);
|
|
609
613
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
610
614
|
return suspendResult;
|
|
611
615
|
}
|
|
@@ -613,46 +617,46 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).s8 = function
|
|
|
613
617
|
continue $sm;
|
|
614
618
|
case 8:
|
|
615
619
|
if (!suspendResult) {
|
|
616
|
-
this.
|
|
620
|
+
this.state_1 = 26;
|
|
617
621
|
continue $sm;
|
|
618
622
|
}
|
|
619
623
|
|
|
620
|
-
var e = this.
|
|
621
|
-
this.
|
|
622
|
-
this.
|
|
624
|
+
var e = this._iterator_13_biegom_1.next_20eer_k$();
|
|
625
|
+
this.tmp012__1 = e;
|
|
626
|
+
this.state_1 = 9;
|
|
623
627
|
continue $sm;
|
|
624
628
|
case 9:
|
|
625
|
-
this.
|
|
629
|
+
this.frame11__1 = this.tmp012__1;
|
|
626
630
|
var this_0 = get_LOGGER();
|
|
627
631
|
if (get_isTraceEnabled(this_0)) {
|
|
628
|
-
this_0.
|
|
632
|
+
this_0.trace_fti9bv_k$('WebSocketSession(' + toString(this.$this$launch_1) + ') receiving frame ' + this.frame11__1.toString());
|
|
629
633
|
}
|
|
630
634
|
|
|
631
|
-
var tmp0_subject = this.
|
|
635
|
+
var tmp0_subject = this.frame11__1;
|
|
632
636
|
if (tmp0_subject instanceof Close) {
|
|
633
|
-
if (!this.
|
|
634
|
-
this.
|
|
635
|
-
var tmp_0 = this.
|
|
636
|
-
var tmp1_elvis_lhs = readReason(this.
|
|
637
|
-
suspendResult = tmp_0.
|
|
637
|
+
if (!this.this$0__1.get_outgoing_us7o3v_k$().get_isClosedForSend_ajczci_k$()) {
|
|
638
|
+
this.state_1 = 18;
|
|
639
|
+
var tmp_0 = this.this$0__1.get_outgoing_us7o3v_k$();
|
|
640
|
+
var tmp1_elvis_lhs = readReason(this.frame11__1);
|
|
641
|
+
suspendResult = tmp_0.send_44jogj_k$(Close_init_$Create$(tmp1_elvis_lhs == null ? get_NORMAL_CLOSE() : tmp1_elvis_lhs), this);
|
|
638
642
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
639
643
|
return suspendResult;
|
|
640
644
|
}
|
|
641
645
|
continue $sm;
|
|
642
646
|
} else {
|
|
643
|
-
this.
|
|
647
|
+
this.state_1 = 19;
|
|
644
648
|
continue $sm;
|
|
645
649
|
}
|
|
646
650
|
} else {
|
|
647
651
|
if (tmp0_subject instanceof Pong) {
|
|
648
|
-
var tmp2_safe_receiver = this.
|
|
652
|
+
var tmp2_safe_receiver = this.this$0__1.pinger_1.kotlinx$atomicfu$value;
|
|
649
653
|
if (tmp2_safe_receiver == null) {
|
|
650
|
-
this.
|
|
651
|
-
this.
|
|
654
|
+
this.WHEN_RESULT9__1 = null;
|
|
655
|
+
this.state_1 = 17;
|
|
652
656
|
continue $sm;
|
|
653
657
|
} else {
|
|
654
|
-
this.
|
|
655
|
-
suspendResult = tmp2_safe_receiver.
|
|
658
|
+
this.state_1 = 16;
|
|
659
|
+
suspendResult = tmp2_safe_receiver.send_44jogj_k$(this.frame11__1, this);
|
|
656
660
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
657
661
|
return suspendResult;
|
|
658
662
|
}
|
|
@@ -660,15 +664,15 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).s8 = function
|
|
|
660
664
|
}
|
|
661
665
|
} else {
|
|
662
666
|
if (tmp0_subject instanceof Ping) {
|
|
663
|
-
this.
|
|
664
|
-
suspendResult = this.
|
|
667
|
+
this.state_1 = 15;
|
|
668
|
+
suspendResult = this.$ponger_1.send_44jogj_k$(this.frame11__1, this);
|
|
665
669
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
666
670
|
return suspendResult;
|
|
667
671
|
}
|
|
668
672
|
continue $sm;
|
|
669
673
|
} else {
|
|
670
|
-
this.
|
|
671
|
-
suspendResult = checkMaxFrameSize(this.
|
|
674
|
+
this.state_1 = 10;
|
|
675
|
+
suspendResult = checkMaxFrameSize(this.this$0__1, this.frameBody2__1, this.frame11__1, this);
|
|
672
676
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
673
677
|
return suspendResult;
|
|
674
678
|
}
|
|
@@ -678,40 +682,40 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).s8 = function
|
|
|
678
682
|
}
|
|
679
683
|
|
|
680
684
|
case 10:
|
|
681
|
-
if (!this.
|
|
682
|
-
if (this.
|
|
683
|
-
this.
|
|
685
|
+
if (!this.frame11__1.fin_1) {
|
|
686
|
+
if (this.firstFrame10__1 == null) {
|
|
687
|
+
this.firstFrame10__1 = this.frame11__1;
|
|
684
688
|
}
|
|
685
|
-
if (this.
|
|
686
|
-
this.
|
|
689
|
+
if (this.frameBody2__1 == null) {
|
|
690
|
+
this.frameBody2__1 = BytePacketBuilder();
|
|
687
691
|
}
|
|
688
|
-
writeFully(this.
|
|
689
|
-
this.
|
|
692
|
+
writeFully(this.frameBody2__1, this.frame11__1.data_1);
|
|
693
|
+
this.state_1 = 21;
|
|
690
694
|
continue $sm;
|
|
691
695
|
} else {
|
|
692
|
-
this.
|
|
696
|
+
this.state_1 = 11;
|
|
693
697
|
continue $sm;
|
|
694
698
|
}
|
|
695
699
|
|
|
696
700
|
case 11:
|
|
697
|
-
if (this.
|
|
698
|
-
this.
|
|
699
|
-
suspendResult = this.
|
|
701
|
+
if (this.firstFrame10__1 == null) {
|
|
702
|
+
this.state_1 = 14;
|
|
703
|
+
suspendResult = this.this$0__1.filtered_1.send_44jogj_k$(processIncomingExtensions(this.this$0__1, this.frame11__1), this);
|
|
700
704
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
701
705
|
return suspendResult;
|
|
702
706
|
}
|
|
703
707
|
continue $sm;
|
|
704
708
|
} else {
|
|
705
|
-
this.
|
|
709
|
+
this.state_1 = 12;
|
|
706
710
|
continue $sm;
|
|
707
711
|
}
|
|
708
712
|
|
|
709
713
|
case 12:
|
|
710
|
-
writeFully(ensureNotNull(this.
|
|
711
|
-
var defragmented =
|
|
712
|
-
this.
|
|
713
|
-
this.
|
|
714
|
-
suspendResult = this.
|
|
714
|
+
writeFully(ensureNotNull(this.frameBody2__1), this.frame11__1.data_1);
|
|
715
|
+
var defragmented = Companion_getInstance_5().byType_2g4m5x_k$(true, this.firstFrame10__1.frameType_1, readByteArray(build(this.frameBody2__1)), this.firstFrame10__1.rsv1__1, this.firstFrame10__1.rsv2__1, this.firstFrame10__1.rsv3__1);
|
|
716
|
+
this.firstFrame10__1 = null;
|
|
717
|
+
this.state_1 = 13;
|
|
718
|
+
suspendResult = this.this$0__1.filtered_1.send_44jogj_k$(processIncomingExtensions(this.this$0__1, defragmented), this);
|
|
715
719
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
716
720
|
return suspendResult;
|
|
717
721
|
}
|
|
@@ -719,314 +723,314 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).s8 = function
|
|
|
719
723
|
continue $sm;
|
|
720
724
|
case 13:
|
|
721
725
|
var tmp_1 = this;
|
|
722
|
-
tmp_1.
|
|
723
|
-
this.
|
|
726
|
+
tmp_1.WHEN_RESULT8__1 = Unit_instance;
|
|
727
|
+
this.state_1 = 20;
|
|
724
728
|
continue $sm;
|
|
725
729
|
case 14:
|
|
726
|
-
this.
|
|
730
|
+
this.state_1 = 21;
|
|
727
731
|
continue $sm;
|
|
728
732
|
case 15:
|
|
729
733
|
var tmp_2 = this;
|
|
730
|
-
tmp_2.
|
|
731
|
-
this.
|
|
734
|
+
tmp_2.WHEN_RESULT8__1 = Unit_instance;
|
|
735
|
+
this.state_1 = 20;
|
|
732
736
|
continue $sm;
|
|
733
737
|
case 16:
|
|
734
738
|
var tmp_3 = this;
|
|
735
|
-
tmp_3.
|
|
736
|
-
this.
|
|
739
|
+
tmp_3.WHEN_RESULT9__1 = Unit_instance;
|
|
740
|
+
this.state_1 = 17;
|
|
737
741
|
continue $sm;
|
|
738
742
|
case 17:
|
|
739
|
-
this.
|
|
740
|
-
this.
|
|
743
|
+
this.WHEN_RESULT8__1 = this.WHEN_RESULT9__1;
|
|
744
|
+
this.state_1 = 20;
|
|
741
745
|
continue $sm;
|
|
742
746
|
case 18:
|
|
743
|
-
this.
|
|
747
|
+
this.state_1 = 19;
|
|
744
748
|
continue $sm;
|
|
745
749
|
case 19:
|
|
746
|
-
this.
|
|
747
|
-
this.
|
|
750
|
+
this.closeFramePresented1__1 = true;
|
|
751
|
+
this.state_1 = 22;
|
|
748
752
|
var tmp_4 = this;
|
|
749
753
|
continue $sm;
|
|
750
754
|
case 20:
|
|
751
755
|
if (false) {
|
|
752
|
-
this.
|
|
756
|
+
this.state_1 = 9;
|
|
753
757
|
continue $sm;
|
|
754
758
|
}
|
|
755
759
|
|
|
756
|
-
this.
|
|
760
|
+
this.state_1 = 21;
|
|
757
761
|
continue $sm;
|
|
758
762
|
case 21:
|
|
759
|
-
this.
|
|
763
|
+
this.state_1 = 7;
|
|
760
764
|
continue $sm;
|
|
761
765
|
case 22:
|
|
762
|
-
this.
|
|
763
|
-
cancelConsumed(this.
|
|
764
|
-
this.
|
|
765
|
-
this.
|
|
766
|
+
this.exceptionState_1 = 32;
|
|
767
|
+
cancelConsumed(this.this6__1, this.cause5__1);
|
|
768
|
+
this.exceptionState_1 = 39;
|
|
769
|
+
this.state_1 = 23;
|
|
766
770
|
continue $sm;
|
|
767
771
|
case 23:
|
|
768
|
-
this.
|
|
769
|
-
this.
|
|
770
|
-
var tmp0_safe_receiver = this.
|
|
772
|
+
this.exceptionState_1 = 39;
|
|
773
|
+
this.$ponger_1.close$default_kcbl7u_k$();
|
|
774
|
+
var tmp0_safe_receiver = this.frameBody2__1;
|
|
771
775
|
if (tmp0_safe_receiver == null)
|
|
772
776
|
null;
|
|
773
777
|
else {
|
|
774
|
-
tmp0_safe_receiver.
|
|
778
|
+
tmp0_safe_receiver.close_yn9xrc_k$();
|
|
775
779
|
}
|
|
776
780
|
|
|
777
|
-
this.
|
|
778
|
-
if (!this.
|
|
779
|
-
this.
|
|
780
|
-
suspendResult = close(this.
|
|
781
|
+
this.this$0__1.filtered_1.close$default_kcbl7u_k$();
|
|
782
|
+
if (!this.closeFramePresented1__1) {
|
|
783
|
+
this.state_1 = 24;
|
|
784
|
+
suspendResult = close(this.this$0__1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
781
785
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
782
786
|
return suspendResult;
|
|
783
787
|
}
|
|
784
788
|
continue $sm;
|
|
785
789
|
} else {
|
|
786
|
-
this.
|
|
790
|
+
this.state_1 = 25;
|
|
787
791
|
continue $sm;
|
|
788
792
|
}
|
|
789
793
|
|
|
790
794
|
case 24:
|
|
791
|
-
this.
|
|
795
|
+
this.state_1 = 25;
|
|
792
796
|
continue $sm;
|
|
793
797
|
case 25:
|
|
794
798
|
var tmp_5 = this;
|
|
795
799
|
return Unit_instance;
|
|
796
800
|
case 26:
|
|
797
|
-
this.
|
|
801
|
+
this.state_1 = 27;
|
|
798
802
|
var tmp_6 = this;
|
|
799
803
|
continue $sm;
|
|
800
804
|
case 27:
|
|
801
|
-
this.
|
|
802
|
-
cancelConsumed(this.
|
|
803
|
-
this.
|
|
805
|
+
this.exceptionState_1 = 32;
|
|
806
|
+
cancelConsumed(this.this6__1, this.cause5__1);
|
|
807
|
+
this.state_1 = 31;
|
|
804
808
|
continue $sm;
|
|
805
809
|
case 28:
|
|
806
|
-
this.
|
|
807
|
-
var tmp_7 = this.
|
|
810
|
+
this.exceptionState_1 = 29;
|
|
811
|
+
var tmp_7 = this.exception_1;
|
|
808
812
|
if (tmp_7 instanceof Error) {
|
|
809
|
-
var e_0 = this.
|
|
813
|
+
var e_0 = this.exception_1;
|
|
810
814
|
var tmp_8 = this;
|
|
811
|
-
this.
|
|
815
|
+
this.cause5__1 = e_0;
|
|
812
816
|
throw e_0;
|
|
813
817
|
} else {
|
|
814
|
-
throw this.
|
|
818
|
+
throw this.exception_1;
|
|
815
819
|
}
|
|
816
820
|
|
|
817
821
|
case 29:
|
|
818
|
-
this.
|
|
819
|
-
var t = this.
|
|
820
|
-
cancelConsumed(this.
|
|
822
|
+
this.exceptionState_1 = 32;
|
|
823
|
+
var t = this.exception_1;
|
|
824
|
+
cancelConsumed(this.this6__1, this.cause5__1);
|
|
821
825
|
throw t;
|
|
822
826
|
case 30:
|
|
823
|
-
this.
|
|
824
|
-
cancelConsumed(this.
|
|
827
|
+
this.exceptionState_1 = 32;
|
|
828
|
+
cancelConsumed(this.this6__1, this.cause5__1);
|
|
825
829
|
if (false) {
|
|
826
|
-
this.
|
|
830
|
+
this.state_1 = 3;
|
|
827
831
|
continue $sm;
|
|
828
832
|
}
|
|
829
833
|
|
|
830
|
-
this.
|
|
834
|
+
this.state_1 = 31;
|
|
831
835
|
continue $sm;
|
|
832
836
|
case 31:
|
|
833
|
-
this.
|
|
834
|
-
this.
|
|
835
|
-
this.
|
|
837
|
+
this.tmp$ret$123__1 = Unit_instance;
|
|
838
|
+
this.exceptionState_1 = 39;
|
|
839
|
+
this.state_1 = 36;
|
|
836
840
|
continue $sm;
|
|
837
841
|
case 32:
|
|
838
|
-
this.
|
|
839
|
-
var tmp_9 = this.
|
|
842
|
+
this.exceptionState_1 = 33;
|
|
843
|
+
var tmp_9 = this.exception_1;
|
|
840
844
|
if (tmp_9 instanceof ClosedSendChannelException) {
|
|
841
|
-
var _unused_var__etf5q3 = this.
|
|
845
|
+
var _unused_var__etf5q3 = this.exception_1;
|
|
842
846
|
var tmp_10 = this;
|
|
843
|
-
tmp_10.
|
|
844
|
-
this.
|
|
845
|
-
this.
|
|
847
|
+
tmp_10.tmp$ret$123__1 = Unit_instance;
|
|
848
|
+
this.exceptionState_1 = 39;
|
|
849
|
+
this.state_1 = 36;
|
|
846
850
|
continue $sm;
|
|
847
851
|
} else {
|
|
848
|
-
var tmp_11 = this.
|
|
852
|
+
var tmp_11 = this.exception_1;
|
|
849
853
|
if (tmp_11 instanceof Error) {
|
|
850
|
-
var cause = this.
|
|
854
|
+
var cause = this.exception_1;
|
|
851
855
|
var tmp_12 = this;
|
|
852
|
-
this.
|
|
853
|
-
tmp_12.
|
|
854
|
-
this.
|
|
855
|
-
this.
|
|
856
|
+
this.$ponger_1.close$default_kcbl7u_k$();
|
|
857
|
+
tmp_12.tmp$ret$123__1 = this.this$0__1.filtered_1.close_ukldxa_k$(cause);
|
|
858
|
+
this.exceptionState_1 = 39;
|
|
859
|
+
this.state_1 = 36;
|
|
856
860
|
continue $sm;
|
|
857
861
|
} else {
|
|
858
|
-
throw this.
|
|
862
|
+
throw this.exception_1;
|
|
859
863
|
}
|
|
860
864
|
}
|
|
861
865
|
|
|
862
866
|
case 33:
|
|
863
|
-
this.
|
|
864
|
-
this.
|
|
865
|
-
this.
|
|
866
|
-
var tmp0_safe_receiver_0 = this.
|
|
867
|
+
this.exceptionState_1 = 39;
|
|
868
|
+
this.t4__1 = this.exception_1;
|
|
869
|
+
this.$ponger_1.close$default_kcbl7u_k$();
|
|
870
|
+
var tmp0_safe_receiver_0 = this.frameBody2__1;
|
|
867
871
|
if (tmp0_safe_receiver_0 == null)
|
|
868
872
|
null;
|
|
869
873
|
else {
|
|
870
|
-
tmp0_safe_receiver_0.
|
|
874
|
+
tmp0_safe_receiver_0.close_yn9xrc_k$();
|
|
871
875
|
}
|
|
872
876
|
|
|
873
|
-
this.
|
|
874
|
-
if (!this.
|
|
875
|
-
this.
|
|
876
|
-
suspendResult = close(this.
|
|
877
|
+
this.this$0__1.filtered_1.close$default_kcbl7u_k$();
|
|
878
|
+
if (!this.closeFramePresented1__1) {
|
|
879
|
+
this.state_1 = 34;
|
|
880
|
+
suspendResult = close(this.this$0__1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
877
881
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
878
882
|
return suspendResult;
|
|
879
883
|
}
|
|
880
884
|
continue $sm;
|
|
881
885
|
} else {
|
|
882
|
-
this.
|
|
886
|
+
this.state_1 = 35;
|
|
883
887
|
continue $sm;
|
|
884
888
|
}
|
|
885
889
|
|
|
886
890
|
case 34:
|
|
887
|
-
this.
|
|
891
|
+
this.state_1 = 35;
|
|
888
892
|
continue $sm;
|
|
889
893
|
case 35:
|
|
890
|
-
throw this.
|
|
894
|
+
throw this.t4__1;
|
|
891
895
|
case 36:
|
|
892
|
-
this.
|
|
893
|
-
this.
|
|
894
|
-
this.
|
|
895
|
-
var tmp0_safe_receiver_1 = this.
|
|
896
|
+
this.tmp0__1 = this.tmp$ret$123__1;
|
|
897
|
+
this.exceptionState_1 = 39;
|
|
898
|
+
this.$ponger_1.close$default_kcbl7u_k$();
|
|
899
|
+
var tmp0_safe_receiver_1 = this.frameBody2__1;
|
|
896
900
|
if (tmp0_safe_receiver_1 == null)
|
|
897
901
|
null;
|
|
898
902
|
else {
|
|
899
|
-
tmp0_safe_receiver_1.
|
|
903
|
+
tmp0_safe_receiver_1.close_yn9xrc_k$();
|
|
900
904
|
}
|
|
901
905
|
|
|
902
|
-
this.
|
|
903
|
-
if (!this.
|
|
904
|
-
this.
|
|
905
|
-
suspendResult = close(this.
|
|
906
|
+
this.this$0__1.filtered_1.close$default_kcbl7u_k$();
|
|
907
|
+
if (!this.closeFramePresented1__1) {
|
|
908
|
+
this.state_1 = 37;
|
|
909
|
+
suspendResult = close(this.this$0__1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
906
910
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
907
911
|
return suspendResult;
|
|
908
912
|
}
|
|
909
913
|
continue $sm;
|
|
910
914
|
} else {
|
|
911
|
-
this.
|
|
915
|
+
this.state_1 = 38;
|
|
912
916
|
continue $sm;
|
|
913
917
|
}
|
|
914
918
|
|
|
915
919
|
case 37:
|
|
916
|
-
this.
|
|
920
|
+
this.state_1 = 38;
|
|
917
921
|
continue $sm;
|
|
918
922
|
case 38:
|
|
919
923
|
return Unit_instance;
|
|
920
924
|
case 39:
|
|
921
|
-
throw this.
|
|
925
|
+
throw this.exception_1;
|
|
922
926
|
}
|
|
923
927
|
} catch ($p) {
|
|
924
928
|
var e_1 = $p;
|
|
925
|
-
if (this.
|
|
929
|
+
if (this.exceptionState_1 === 39) {
|
|
926
930
|
throw e_1;
|
|
927
931
|
} else {
|
|
928
|
-
this.
|
|
929
|
-
this.
|
|
932
|
+
this.state_1 = this.exceptionState_1;
|
|
933
|
+
this.exception_1 = e_1;
|
|
930
934
|
}
|
|
931
935
|
}
|
|
932
936
|
while (true);
|
|
933
937
|
};
|
|
934
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
935
|
-
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.
|
|
936
|
-
i
|
|
938
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).create_rcuf4x_k$ = function ($this$launch, completion) {
|
|
939
|
+
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.this$0__1, this.$ponger_1, completion);
|
|
940
|
+
i.$this$launch_1 = $this$launch;
|
|
937
941
|
return i;
|
|
938
942
|
};
|
|
939
943
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0(this$0, $ponger, resultContinuation) {
|
|
940
944
|
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation);
|
|
941
945
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
942
|
-
return i.
|
|
946
|
+
return i.invoke_d9fzmj_k$($this$launch, $completion);
|
|
943
947
|
}, 1);
|
|
944
948
|
}
|
|
945
949
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation) {
|
|
946
|
-
this.
|
|
950
|
+
this.this$0__1 = this$0;
|
|
947
951
|
CoroutineImpl.call(this, resultContinuation);
|
|
948
952
|
}
|
|
949
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
950
|
-
var tmp = this.
|
|
951
|
-
tmp.
|
|
952
|
-
tmp.
|
|
953
|
-
return tmp.
|
|
953
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).invoke_d9fzmj_k$ = function ($this$launch, $completion) {
|
|
954
|
+
var tmp = this.create_rcuf4x_k$($this$launch, $completion);
|
|
955
|
+
tmp.result_1 = Unit_instance;
|
|
956
|
+
tmp.exception_1 = null;
|
|
957
|
+
return tmp.doResume_5yljmg_k$();
|
|
954
958
|
};
|
|
955
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
956
|
-
return this.
|
|
959
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
|
|
960
|
+
return this.invoke_d9fzmj_k$((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
957
961
|
};
|
|
958
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
959
|
-
var suspendResult = this.
|
|
962
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).doResume_5yljmg_k$ = function () {
|
|
963
|
+
var suspendResult = this.result_1;
|
|
960
964
|
$sm: do
|
|
961
965
|
try {
|
|
962
|
-
var tmp = this.
|
|
966
|
+
var tmp = this.state_1;
|
|
963
967
|
switch (tmp) {
|
|
964
968
|
case 0:
|
|
965
|
-
this.
|
|
966
|
-
this.
|
|
969
|
+
this.exceptionState_1 = 13;
|
|
970
|
+
this.state_1 = 1;
|
|
967
971
|
continue $sm;
|
|
968
972
|
case 1:
|
|
969
|
-
this.
|
|
973
|
+
this.state_1 = 2;
|
|
970
974
|
continue $sm;
|
|
971
975
|
case 2:
|
|
972
|
-
this.
|
|
973
|
-
this.
|
|
974
|
-
this.
|
|
975
|
-
suspendResult = outgoingProcessorLoop(this.
|
|
976
|
+
this.exceptionState_1 = 9;
|
|
977
|
+
this.exceptionState_1 = 4;
|
|
978
|
+
this.state_1 = 3;
|
|
979
|
+
suspendResult = outgoingProcessorLoop(this.this$0__1, this);
|
|
976
980
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
977
981
|
return suspendResult;
|
|
978
982
|
}
|
|
979
983
|
|
|
980
984
|
continue $sm;
|
|
981
985
|
case 3:
|
|
982
|
-
this.
|
|
983
|
-
this.
|
|
986
|
+
this.exceptionState_1 = 13;
|
|
987
|
+
this.state_1 = 11;
|
|
984
988
|
continue $sm;
|
|
985
989
|
case 4:
|
|
986
|
-
this.
|
|
987
|
-
var tmp_0 = this.
|
|
990
|
+
this.exceptionState_1 = 9;
|
|
991
|
+
var tmp_0 = this.exception_1;
|
|
988
992
|
if (tmp_0 instanceof ClosedSendChannelException) {
|
|
989
|
-
var _unused_var__etf5q3 = this.
|
|
990
|
-
this.
|
|
991
|
-
this.
|
|
993
|
+
var _unused_var__etf5q3 = this.exception_1;
|
|
994
|
+
this.exceptionState_1 = 13;
|
|
995
|
+
this.state_1 = 11;
|
|
992
996
|
continue $sm;
|
|
993
997
|
} else {
|
|
994
|
-
var tmp_1 = this.
|
|
998
|
+
var tmp_1 = this.exception_1;
|
|
995
999
|
if (tmp_1 instanceof ClosedReceiveChannelException) {
|
|
996
|
-
var _unused_var__etf5q3_0 = this.
|
|
997
|
-
this.
|
|
998
|
-
this.
|
|
1000
|
+
var _unused_var__etf5q3_0 = this.exception_1;
|
|
1001
|
+
this.exceptionState_1 = 13;
|
|
1002
|
+
this.state_1 = 11;
|
|
999
1003
|
continue $sm;
|
|
1000
1004
|
} else {
|
|
1001
|
-
var tmp_2 = this.
|
|
1005
|
+
var tmp_2 = this.exception_1;
|
|
1002
1006
|
if (tmp_2 instanceof CancellationException) {
|
|
1003
|
-
var _unused_var__etf5q3_1 = this.
|
|
1004
|
-
this.
|
|
1005
|
-
suspendResult = sendCloseSequence(this.
|
|
1007
|
+
var _unused_var__etf5q3_1 = this.exception_1;
|
|
1008
|
+
this.state_1 = 5;
|
|
1009
|
+
suspendResult = sendCloseSequence(this.this$0__1, CloseReason_init_$Create$(Codes_NORMAL_getInstance(), ''), VOID, this);
|
|
1006
1010
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1007
1011
|
return suspendResult;
|
|
1008
1012
|
}
|
|
1009
1013
|
continue $sm;
|
|
1010
1014
|
} else {
|
|
1011
|
-
var tmp_3 = this.
|
|
1015
|
+
var tmp_3 = this.exception_1;
|
|
1012
1016
|
if (tmp_3 instanceof ChannelIOException) {
|
|
1013
|
-
var _unused_var__etf5q3_2 = this.
|
|
1014
|
-
this.
|
|
1015
|
-
this.
|
|
1017
|
+
var _unused_var__etf5q3_2 = this.exception_1;
|
|
1018
|
+
this.exceptionState_1 = 13;
|
|
1019
|
+
this.state_1 = 11;
|
|
1016
1020
|
continue $sm;
|
|
1017
1021
|
} else {
|
|
1018
|
-
var tmp_4 = this.
|
|
1022
|
+
var tmp_4 = this.exception_1;
|
|
1019
1023
|
if (tmp_4 instanceof Error) {
|
|
1020
|
-
var cause = this.
|
|
1021
|
-
this.
|
|
1022
|
-
this.
|
|
1023
|
-
suspendResult = closeExceptionally(this.
|
|
1024
|
+
var cause = this.exception_1;
|
|
1025
|
+
this.this$0__1.outgoingToBeProcessed_1.cancel_hkmm2i_k$(CancellationException_init_$Create$('Failed to send frame', cause));
|
|
1026
|
+
this.state_1 = 6;
|
|
1027
|
+
suspendResult = closeExceptionally(this.this$0__1.raw_1, cause, this);
|
|
1024
1028
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1025
1029
|
return suspendResult;
|
|
1026
1030
|
}
|
|
1027
1031
|
continue $sm;
|
|
1028
1032
|
} else {
|
|
1029
|
-
throw this.
|
|
1033
|
+
throw this.exception_1;
|
|
1030
1034
|
}
|
|
1031
1035
|
}
|
|
1032
1036
|
}
|
|
@@ -1034,18 +1038,18 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).s8 = function
|
|
|
1034
1038
|
}
|
|
1035
1039
|
|
|
1036
1040
|
case 5:
|
|
1037
|
-
this.
|
|
1038
|
-
this.
|
|
1041
|
+
this.exceptionState_1 = 13;
|
|
1042
|
+
this.state_1 = 11;
|
|
1039
1043
|
continue $sm;
|
|
1040
1044
|
case 6:
|
|
1041
|
-
this.
|
|
1042
|
-
this.
|
|
1045
|
+
this.exceptionState_1 = 13;
|
|
1046
|
+
this.state_1 = 7;
|
|
1043
1047
|
continue $sm;
|
|
1044
1048
|
case 7:
|
|
1045
|
-
this.
|
|
1046
|
-
this.
|
|
1047
|
-
this.
|
|
1048
|
-
suspendResult = close(this.
|
|
1049
|
+
this.exceptionState_1 = 13;
|
|
1050
|
+
this.this$0__1.outgoingToBeProcessed_1.cancel$default_880p35_k$();
|
|
1051
|
+
this.state_1 = 8;
|
|
1052
|
+
suspendResult = close(this.this$0__1.raw_1, VOID, this);
|
|
1049
1053
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1050
1054
|
return suspendResult;
|
|
1051
1055
|
}
|
|
@@ -1054,23 +1058,23 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).s8 = function
|
|
|
1054
1058
|
case 8:
|
|
1055
1059
|
return Unit_instance;
|
|
1056
1060
|
case 9:
|
|
1057
|
-
this.
|
|
1058
|
-
this.
|
|
1059
|
-
this.
|
|
1060
|
-
this.
|
|
1061
|
-
suspendResult = close(this.
|
|
1061
|
+
this.exceptionState_1 = 13;
|
|
1062
|
+
this.t0__1 = this.exception_1;
|
|
1063
|
+
this.this$0__1.outgoingToBeProcessed_1.cancel$default_880p35_k$();
|
|
1064
|
+
this.state_1 = 10;
|
|
1065
|
+
suspendResult = close(this.this$0__1.raw_1, VOID, this);
|
|
1062
1066
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1063
1067
|
return suspendResult;
|
|
1064
1068
|
}
|
|
1065
1069
|
|
|
1066
1070
|
continue $sm;
|
|
1067
1071
|
case 10:
|
|
1068
|
-
throw this.
|
|
1072
|
+
throw this.t0__1;
|
|
1069
1073
|
case 11:
|
|
1070
|
-
this.
|
|
1071
|
-
this.
|
|
1072
|
-
this.
|
|
1073
|
-
suspendResult = close(this.
|
|
1074
|
+
this.exceptionState_1 = 13;
|
|
1075
|
+
this.this$0__1.outgoingToBeProcessed_1.cancel$default_880p35_k$();
|
|
1076
|
+
this.state_1 = 12;
|
|
1077
|
+
suspendResult = close(this.this$0__1.raw_1, VOID, this);
|
|
1074
1078
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1075
1079
|
return suspendResult;
|
|
1076
1080
|
}
|
|
@@ -1079,53 +1083,53 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).s8 = function
|
|
|
1079
1083
|
case 12:
|
|
1080
1084
|
return Unit_instance;
|
|
1081
1085
|
case 13:
|
|
1082
|
-
throw this.
|
|
1086
|
+
throw this.exception_1;
|
|
1083
1087
|
}
|
|
1084
1088
|
} catch ($p) {
|
|
1085
1089
|
var e = $p;
|
|
1086
|
-
if (this.
|
|
1090
|
+
if (this.exceptionState_1 === 13) {
|
|
1087
1091
|
throw e;
|
|
1088
1092
|
} else {
|
|
1089
|
-
this.
|
|
1090
|
-
this.
|
|
1093
|
+
this.state_1 = this.exceptionState_1;
|
|
1094
|
+
this.exception_1 = e;
|
|
1091
1095
|
}
|
|
1092
1096
|
}
|
|
1093
1097
|
while (true);
|
|
1094
1098
|
};
|
|
1095
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
1096
|
-
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.
|
|
1097
|
-
i
|
|
1099
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).create_rcuf4x_k$ = function ($this$launch, completion) {
|
|
1100
|
+
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.this$0__1, completion);
|
|
1101
|
+
i.$this$launch_1 = $this$launch;
|
|
1098
1102
|
return i;
|
|
1099
1103
|
};
|
|
1100
1104
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0(this$0, resultContinuation) {
|
|
1101
1105
|
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation);
|
|
1102
1106
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
1103
|
-
return i.
|
|
1107
|
+
return i.invoke_d9fzmj_k$($this$launch, $completion);
|
|
1104
1108
|
}, 1);
|
|
1105
1109
|
}
|
|
1106
1110
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation) {
|
|
1107
|
-
this.
|
|
1111
|
+
this.this$0__1 = this$0;
|
|
1108
1112
|
CoroutineImpl.call(this, resultContinuation);
|
|
1109
1113
|
}
|
|
1110
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1111
|
-
var tmp = this.
|
|
1112
|
-
tmp.
|
|
1113
|
-
tmp.
|
|
1114
|
-
return tmp.
|
|
1114
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).invoke_7q8fo9_k$ = function (it, $completion) {
|
|
1115
|
+
var tmp = this.create_8agihp_k$(it, $completion);
|
|
1116
|
+
tmp.result_1 = Unit_instance;
|
|
1117
|
+
tmp.exception_1 = null;
|
|
1118
|
+
return tmp.doResume_5yljmg_k$();
|
|
1115
1119
|
};
|
|
1116
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1117
|
-
return this.
|
|
1120
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
|
|
1121
|
+
return this.invoke_7q8fo9_k$(p1 instanceof CloseReason ? p1 : THROW_CCE(), $completion);
|
|
1118
1122
|
};
|
|
1119
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1120
|
-
var suspendResult = this.
|
|
1123
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).doResume_5yljmg_k$ = function () {
|
|
1124
|
+
var suspendResult = this.result_1;
|
|
1121
1125
|
$sm: do
|
|
1122
1126
|
try {
|
|
1123
|
-
var tmp = this.
|
|
1127
|
+
var tmp = this.state_1;
|
|
1124
1128
|
switch (tmp) {
|
|
1125
1129
|
case 0:
|
|
1126
|
-
this.
|
|
1127
|
-
this.
|
|
1128
|
-
suspendResult = sendCloseSequence(this.
|
|
1130
|
+
this.exceptionState_1 = 2;
|
|
1131
|
+
this.state_1 = 1;
|
|
1132
|
+
suspendResult = sendCloseSequence(this.this$0__1, this.it_1, IOException_init_$Create$('Ping timeout'), this);
|
|
1129
1133
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1130
1134
|
return suspendResult;
|
|
1131
1135
|
}
|
|
@@ -1134,48 +1138,48 @@ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).s8 = function ()
|
|
|
1134
1138
|
case 1:
|
|
1135
1139
|
return Unit_instance;
|
|
1136
1140
|
case 2:
|
|
1137
|
-
throw this.
|
|
1141
|
+
throw this.exception_1;
|
|
1138
1142
|
}
|
|
1139
1143
|
} catch ($p) {
|
|
1140
1144
|
var e = $p;
|
|
1141
|
-
if (this.
|
|
1145
|
+
if (this.exceptionState_1 === 2) {
|
|
1142
1146
|
throw e;
|
|
1143
1147
|
} else {
|
|
1144
|
-
this.
|
|
1145
|
-
this.
|
|
1148
|
+
this.state_1 = this.exceptionState_1;
|
|
1149
|
+
this.exception_1 = e;
|
|
1146
1150
|
}
|
|
1147
1151
|
}
|
|
1148
1152
|
while (true);
|
|
1149
1153
|
};
|
|
1150
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1151
|
-
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.
|
|
1152
|
-
i.
|
|
1154
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).create_8agihp_k$ = function (it, completion) {
|
|
1155
|
+
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.this$0__1, completion);
|
|
1156
|
+
i.it_1 = it;
|
|
1153
1157
|
return i;
|
|
1154
1158
|
};
|
|
1155
1159
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0(this$0, resultContinuation) {
|
|
1156
1160
|
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation);
|
|
1157
1161
|
return constructCallableReference(function (it, $completion) {
|
|
1158
|
-
return i.
|
|
1162
|
+
return i.invoke_7q8fo9_k$(it, $completion);
|
|
1159
1163
|
}, 1);
|
|
1160
1164
|
}
|
|
1161
1165
|
function $outgoingProcessorLoopCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1162
1166
|
CoroutineImpl.call(this, resultContinuation);
|
|
1163
|
-
this.
|
|
1167
|
+
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1164
1168
|
}
|
|
1165
|
-
protoOf($outgoingProcessorLoopCOROUTINE$).
|
|
1166
|
-
var suspendResult = this.
|
|
1169
|
+
protoOf($outgoingProcessorLoopCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1170
|
+
var suspendResult = this.result_1;
|
|
1167
1171
|
$sm: do
|
|
1168
1172
|
try {
|
|
1169
|
-
var tmp = this.
|
|
1173
|
+
var tmp = this.state_1;
|
|
1170
1174
|
switch (tmp) {
|
|
1171
1175
|
case 0:
|
|
1172
|
-
this.
|
|
1173
|
-
this.
|
|
1174
|
-
this.
|
|
1176
|
+
this.exceptionState_1 = 7;
|
|
1177
|
+
this._iterator_1_yqohr1__1 = this._this__u8e3s4__1.outgoingToBeProcessed_1.iterator_jk1svi_k$();
|
|
1178
|
+
this.state_1 = 1;
|
|
1175
1179
|
continue $sm;
|
|
1176
1180
|
case 1:
|
|
1177
|
-
this.
|
|
1178
|
-
suspendResult = this.
|
|
1181
|
+
this.state_1 = 2;
|
|
1182
|
+
suspendResult = this._iterator_1_yqohr1__1.hasNext_nhy1w3_k$(this);
|
|
1179
1183
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1180
1184
|
return suspendResult;
|
|
1181
1185
|
}
|
|
@@ -1183,19 +1187,19 @@ protoOf($outgoingProcessorLoopCOROUTINE$).s8 = function () {
|
|
|
1183
1187
|
continue $sm;
|
|
1184
1188
|
case 2:
|
|
1185
1189
|
if (!suspendResult) {
|
|
1186
|
-
this.
|
|
1190
|
+
this.state_1 = 6;
|
|
1187
1191
|
continue $sm;
|
|
1188
1192
|
}
|
|
1189
1193
|
|
|
1190
|
-
var frame = this.
|
|
1194
|
+
var frame = this._iterator_1_yqohr1__1.next_20eer_k$();
|
|
1191
1195
|
var this_0 = get_LOGGER();
|
|
1192
1196
|
if (get_isTraceEnabled(this_0)) {
|
|
1193
|
-
this_0.
|
|
1197
|
+
this_0.trace_fti9bv_k$('Sending ' + frame.toString() + ' from session ' + toString(this._this__u8e3s4__1));
|
|
1194
1198
|
}
|
|
1195
1199
|
|
|
1196
1200
|
if (frame instanceof Close) {
|
|
1197
|
-
this.
|
|
1198
|
-
suspendResult = sendCloseSequence(this.
|
|
1201
|
+
this.state_1 = 3;
|
|
1202
|
+
suspendResult = sendCloseSequence(this._this__u8e3s4__1, readReason(frame), VOID, this);
|
|
1199
1203
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1200
1204
|
return suspendResult;
|
|
1201
1205
|
}
|
|
@@ -1208,223 +1212,223 @@ protoOf($outgoingProcessorLoopCOROUTINE$).s8 = function () {
|
|
|
1208
1212
|
tmp_0 = frame instanceof Binary;
|
|
1209
1213
|
}
|
|
1210
1214
|
if (tmp_0) {
|
|
1211
|
-
this.
|
|
1212
|
-
this.
|
|
1215
|
+
this.WHEN_RESULT0__1 = processOutgoingExtensions(this._this__u8e3s4__1, frame);
|
|
1216
|
+
this.state_1 = 4;
|
|
1213
1217
|
continue $sm;
|
|
1214
1218
|
} else {
|
|
1215
|
-
this.
|
|
1216
|
-
this.
|
|
1219
|
+
this.WHEN_RESULT0__1 = frame;
|
|
1220
|
+
this.state_1 = 4;
|
|
1217
1221
|
continue $sm;
|
|
1218
1222
|
}
|
|
1219
1223
|
}
|
|
1220
1224
|
|
|
1221
1225
|
case 3:
|
|
1222
|
-
this.
|
|
1226
|
+
this.state_1 = 6;
|
|
1223
1227
|
var tmp_1 = this;
|
|
1224
1228
|
continue $sm;
|
|
1225
1229
|
case 4:
|
|
1226
|
-
var processedFrame = this.
|
|
1227
|
-
this.
|
|
1228
|
-
suspendResult = this.
|
|
1230
|
+
var processedFrame = this.WHEN_RESULT0__1;
|
|
1231
|
+
this.state_1 = 5;
|
|
1232
|
+
suspendResult = this._this__u8e3s4__1.raw_1.get_outgoing_us7o3v_k$().send_44jogj_k$(processedFrame, this);
|
|
1229
1233
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1230
1234
|
return suspendResult;
|
|
1231
1235
|
}
|
|
1232
1236
|
|
|
1233
1237
|
continue $sm;
|
|
1234
1238
|
case 5:
|
|
1235
|
-
this.
|
|
1239
|
+
this.state_1 = 1;
|
|
1236
1240
|
continue $sm;
|
|
1237
1241
|
case 6:
|
|
1238
1242
|
return Unit_instance;
|
|
1239
1243
|
case 7:
|
|
1240
|
-
throw this.
|
|
1244
|
+
throw this.exception_1;
|
|
1241
1245
|
}
|
|
1242
1246
|
} catch ($p) {
|
|
1243
1247
|
var e = $p;
|
|
1244
|
-
if (this.
|
|
1248
|
+
if (this.exceptionState_1 === 7) {
|
|
1245
1249
|
throw e;
|
|
1246
1250
|
} else {
|
|
1247
|
-
this.
|
|
1248
|
-
this.
|
|
1251
|
+
this.state_1 = this.exceptionState_1;
|
|
1252
|
+
this.exception_1 = e;
|
|
1249
1253
|
}
|
|
1250
1254
|
}
|
|
1251
1255
|
while (true);
|
|
1252
1256
|
};
|
|
1253
1257
|
function $sendCloseSequenceCOROUTINE$(_this__u8e3s4, reason, exception, resultContinuation) {
|
|
1254
1258
|
CoroutineImpl.call(this, resultContinuation);
|
|
1255
|
-
this.
|
|
1256
|
-
this.
|
|
1257
|
-
this.
|
|
1259
|
+
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1260
|
+
this.reason_1 = reason;
|
|
1261
|
+
this.exception_2 = exception;
|
|
1258
1262
|
}
|
|
1259
|
-
protoOf($sendCloseSequenceCOROUTINE$).
|
|
1260
|
-
var suspendResult = this.
|
|
1263
|
+
protoOf($sendCloseSequenceCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1264
|
+
var suspendResult = this.result_1;
|
|
1261
1265
|
$sm: do
|
|
1262
1266
|
try {
|
|
1263
|
-
var tmp = this.
|
|
1267
|
+
var tmp = this.state_1;
|
|
1264
1268
|
switch (tmp) {
|
|
1265
1269
|
case 0:
|
|
1266
|
-
this.
|
|
1267
|
-
if (!tryClose(this.
|
|
1270
|
+
this.exceptionState_1 = 6;
|
|
1271
|
+
if (!tryClose(this._this__u8e3s4__1))
|
|
1268
1272
|
return Unit_instance;
|
|
1269
1273
|
var this_0 = get_LOGGER();
|
|
1270
1274
|
if (get_isTraceEnabled(this_0)) {
|
|
1271
|
-
this_0.
|
|
1275
|
+
this_0.trace_fti9bv_k$('Sending Close Sequence for session ' + toString(this._this__u8e3s4__1) + ' with reason ' + toString_0(this.reason_1) + ' and exception ' + toString_0(this.exception_2));
|
|
1272
1276
|
}
|
|
1273
1277
|
|
|
1274
|
-
this.
|
|
1278
|
+
this._this__u8e3s4__1.context_1.complete_9ww6vb_k$();
|
|
1275
1279
|
var tmp_0 = this;
|
|
1276
|
-
var tmp0_elvis_lhs = this.
|
|
1277
|
-
tmp_0.
|
|
1278
|
-
this.
|
|
1280
|
+
var tmp0_elvis_lhs = this.reason_1;
|
|
1281
|
+
tmp_0.reasonToSend0__1 = tmp0_elvis_lhs == null ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : tmp0_elvis_lhs;
|
|
1282
|
+
this.state_1 = 1;
|
|
1279
1283
|
continue $sm;
|
|
1280
1284
|
case 1:
|
|
1281
|
-
this.
|
|
1282
|
-
runOrCancelPinger(this.
|
|
1283
|
-
if (!(this.
|
|
1284
|
-
this.
|
|
1285
|
-
suspendResult = this.
|
|
1285
|
+
this.exceptionState_1 = 5;
|
|
1286
|
+
runOrCancelPinger(this._this__u8e3s4__1);
|
|
1287
|
+
if (!(this.reasonToSend0__1.code_1 === Codes_CLOSED_ABNORMALLY_getInstance().code_1)) {
|
|
1288
|
+
this.state_1 = 2;
|
|
1289
|
+
suspendResult = this._this__u8e3s4__1.raw_1.get_outgoing_us7o3v_k$().send_44jogj_k$(Close_init_$Create$(this.reasonToSend0__1), this);
|
|
1286
1290
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1287
1291
|
return suspendResult;
|
|
1288
1292
|
}
|
|
1289
1293
|
continue $sm;
|
|
1290
1294
|
} else {
|
|
1291
|
-
this.
|
|
1295
|
+
this.state_1 = 3;
|
|
1292
1296
|
continue $sm;
|
|
1293
1297
|
}
|
|
1294
1298
|
|
|
1295
1299
|
case 2:
|
|
1296
|
-
this.
|
|
1300
|
+
this.state_1 = 3;
|
|
1297
1301
|
continue $sm;
|
|
1298
1302
|
case 3:
|
|
1299
|
-
this.
|
|
1300
|
-
this.
|
|
1303
|
+
this.exceptionState_1 = 6;
|
|
1304
|
+
this.state_1 = 4;
|
|
1301
1305
|
continue $sm;
|
|
1302
1306
|
case 4:
|
|
1303
|
-
this.
|
|
1304
|
-
this.
|
|
1305
|
-
if (!(this.
|
|
1306
|
-
this.
|
|
1307
|
-
this.
|
|
1307
|
+
this.exceptionState_1 = 6;
|
|
1308
|
+
this._this__u8e3s4__1.closeReasonRef_1.complete_ixf84q_k$(this.reasonToSend0__1);
|
|
1309
|
+
if (!(this.exception_2 == null)) {
|
|
1310
|
+
this._this__u8e3s4__1.outgoingToBeProcessed_1.close_ukldxa_k$(this.exception_2);
|
|
1311
|
+
this._this__u8e3s4__1.filtered_1.close_ukldxa_k$(this.exception_2);
|
|
1308
1312
|
}
|
|
1309
1313
|
|
|
1310
1314
|
return Unit_instance;
|
|
1311
1315
|
case 5:
|
|
1312
|
-
this.
|
|
1313
|
-
var t = this.
|
|
1314
|
-
this.
|
|
1315
|
-
if (!(this.
|
|
1316
|
-
this.
|
|
1317
|
-
this.
|
|
1316
|
+
this.exceptionState_1 = 6;
|
|
1317
|
+
var t = this.exception_1;
|
|
1318
|
+
this._this__u8e3s4__1.closeReasonRef_1.complete_ixf84q_k$(this.reasonToSend0__1);
|
|
1319
|
+
if (!(this.exception_2 == null)) {
|
|
1320
|
+
this._this__u8e3s4__1.outgoingToBeProcessed_1.close_ukldxa_k$(this.exception_2);
|
|
1321
|
+
this._this__u8e3s4__1.filtered_1.close_ukldxa_k$(this.exception_2);
|
|
1318
1322
|
}
|
|
1319
1323
|
|
|
1320
1324
|
throw t;
|
|
1321
1325
|
case 6:
|
|
1322
|
-
throw this.
|
|
1326
|
+
throw this.exception_1;
|
|
1323
1327
|
}
|
|
1324
1328
|
} catch ($p) {
|
|
1325
1329
|
var e = $p;
|
|
1326
|
-
if (this.
|
|
1330
|
+
if (this.exceptionState_1 === 6) {
|
|
1327
1331
|
throw e;
|
|
1328
1332
|
} else {
|
|
1329
|
-
this.
|
|
1330
|
-
this.
|
|
1333
|
+
this.state_1 = this.exceptionState_1;
|
|
1334
|
+
this.exception_1 = e;
|
|
1331
1335
|
}
|
|
1332
1336
|
}
|
|
1333
1337
|
while (true);
|
|
1334
1338
|
};
|
|
1335
1339
|
function $checkMaxFrameSizeCOROUTINE$(_this__u8e3s4, packet, frame, resultContinuation) {
|
|
1336
1340
|
CoroutineImpl.call(this, resultContinuation);
|
|
1337
|
-
this.
|
|
1338
|
-
this.
|
|
1339
|
-
this.
|
|
1341
|
+
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1342
|
+
this.packet_1 = packet;
|
|
1343
|
+
this.frame_1 = frame;
|
|
1340
1344
|
}
|
|
1341
|
-
protoOf($checkMaxFrameSizeCOROUTINE$).
|
|
1342
|
-
var suspendResult = this.
|
|
1345
|
+
protoOf($checkMaxFrameSizeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1346
|
+
var suspendResult = this.result_1;
|
|
1343
1347
|
$sm: do
|
|
1344
1348
|
try {
|
|
1345
|
-
var tmp = this.
|
|
1349
|
+
var tmp = this.state_1;
|
|
1346
1350
|
switch (tmp) {
|
|
1347
1351
|
case 0:
|
|
1348
|
-
this.
|
|
1352
|
+
this.exceptionState_1 = 3;
|
|
1349
1353
|
var tmp_0 = this;
|
|
1350
|
-
var tmp_1 = this.
|
|
1351
|
-
var tmp0_safe_receiver = this.
|
|
1354
|
+
var tmp_1 = this.frame_1.data_1.length;
|
|
1355
|
+
var tmp0_safe_receiver = this.packet_1;
|
|
1352
1356
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_size(tmp0_safe_receiver);
|
|
1353
|
-
tmp_0.
|
|
1354
|
-
if (fromInt(this.
|
|
1355
|
-
var tmp2_safe_receiver = this.
|
|
1357
|
+
tmp_0.size0__1 = tmp_1 + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
1358
|
+
if (fromInt(this.size0__1) > this._this__u8e3s4__1.get_maxFrameSize_9zaht9_k$()) {
|
|
1359
|
+
var tmp2_safe_receiver = this.packet_1;
|
|
1356
1360
|
if (tmp2_safe_receiver == null)
|
|
1357
1361
|
null;
|
|
1358
1362
|
else {
|
|
1359
|
-
tmp2_safe_receiver.
|
|
1363
|
+
tmp2_safe_receiver.close_yn9xrc_k$();
|
|
1360
1364
|
}
|
|
1361
|
-
this.
|
|
1362
|
-
suspendResult = close(this.
|
|
1365
|
+
this.state_1 = 2;
|
|
1366
|
+
suspendResult = close(this._this__u8e3s4__1, CloseReason_init_$Create$(Codes_TOO_BIG_getInstance(), 'Frame is too big: ' + this.size0__1 + '. Max size is ' + this._this__u8e3s4__1.get_maxFrameSize_9zaht9_k$().toString()), this);
|
|
1363
1367
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1364
1368
|
return suspendResult;
|
|
1365
1369
|
}
|
|
1366
1370
|
continue $sm;
|
|
1367
1371
|
} else {
|
|
1368
|
-
this.
|
|
1372
|
+
this.state_1 = 1;
|
|
1369
1373
|
continue $sm;
|
|
1370
1374
|
}
|
|
1371
1375
|
|
|
1372
1376
|
case 1:
|
|
1373
1377
|
return Unit_instance;
|
|
1374
1378
|
case 2:
|
|
1375
|
-
throw new FrameTooBigException(fromInt(this.
|
|
1379
|
+
throw new FrameTooBigException(fromInt(this.size0__1));
|
|
1376
1380
|
case 3:
|
|
1377
|
-
throw this.
|
|
1381
|
+
throw this.exception_1;
|
|
1378
1382
|
}
|
|
1379
1383
|
} catch ($p) {
|
|
1380
1384
|
var e = $p;
|
|
1381
|
-
if (this.
|
|
1385
|
+
if (this.exceptionState_1 === 3) {
|
|
1382
1386
|
throw e;
|
|
1383
1387
|
} else {
|
|
1384
|
-
this.
|
|
1385
|
-
this.
|
|
1388
|
+
this.state_1 = this.exceptionState_1;
|
|
1389
|
+
this.exception_1 = e;
|
|
1386
1390
|
}
|
|
1387
1391
|
}
|
|
1388
1392
|
while (true);
|
|
1389
1393
|
};
|
|
1390
1394
|
function DefaultWebSocketSessionImpl(raw, pingIntervalMillis, timeoutMillis, incomingFramesConfig, outgoingFramesConfig) {
|
|
1391
1395
|
Companion_getInstance_1();
|
|
1392
|
-
this.
|
|
1393
|
-
this.
|
|
1394
|
-
this.
|
|
1395
|
-
this.
|
|
1396
|
-
this.
|
|
1397
|
-
this.
|
|
1398
|
-
this.
|
|
1399
|
-
this.
|
|
1396
|
+
this.raw_1 = raw;
|
|
1397
|
+
this.pinger_1 = atomic$ref$1(null);
|
|
1398
|
+
this.closeReasonRef_1 = CompletableDeferred();
|
|
1399
|
+
this.context_1 = Job();
|
|
1400
|
+
this.coroutineContext_1 = this.raw_1.get_coroutineContext_115oqo_k$().minusKey_9i5ggf_k$(Key_instance).plus_s13ygv_k$(this.context_1).plus_s13ygv_k$(new CoroutineName('ws-default'));
|
|
1401
|
+
this.filtered_1 = from(Factory_getInstance(), incomingFramesConfig);
|
|
1402
|
+
this.outgoingToBeProcessed_1 = from(Factory_getInstance(), outgoingFramesConfig);
|
|
1403
|
+
this.closed_1 = atomic$boolean$1(false);
|
|
1400
1404
|
var tmp = this;
|
|
1401
1405
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1402
|
-
tmp.
|
|
1403
|
-
this.
|
|
1404
|
-
this.
|
|
1405
|
-
this.
|
|
1406
|
-
this.
|
|
1406
|
+
tmp._extensions_1 = ArrayList_init_$Create$();
|
|
1407
|
+
this.started_1 = atomic$boolean$1(false);
|
|
1408
|
+
this.pingIntervalMillis_1 = pingIntervalMillis;
|
|
1409
|
+
this.timeoutMillis_1 = timeoutMillis;
|
|
1410
|
+
this.closeReason_1 = this.closeReasonRef_1;
|
|
1407
1411
|
}
|
|
1408
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1409
|
-
return this.
|
|
1412
|
+
protoOf(DefaultWebSocketSessionImpl).get_coroutineContext_115oqo_k$ = function () {
|
|
1413
|
+
return this.coroutineContext_1;
|
|
1410
1414
|
};
|
|
1411
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1412
|
-
return this.
|
|
1415
|
+
protoOf(DefaultWebSocketSessionImpl).get_incoming_u9os29_k$ = function () {
|
|
1416
|
+
return this.filtered_1;
|
|
1413
1417
|
};
|
|
1414
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1415
|
-
return this.
|
|
1418
|
+
protoOf(DefaultWebSocketSessionImpl).get_outgoing_us7o3v_k$ = function () {
|
|
1419
|
+
return this.outgoingToBeProcessed_1;
|
|
1416
1420
|
};
|
|
1417
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1418
|
-
return this.
|
|
1421
|
+
protoOf(DefaultWebSocketSessionImpl).get_extensions_kxksyl_k$ = function () {
|
|
1422
|
+
return this._extensions_1;
|
|
1419
1423
|
};
|
|
1420
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1421
|
-
this.
|
|
1424
|
+
protoOf(DefaultWebSocketSessionImpl).set_maxFrameSize_k27os3_k$ = function (value) {
|
|
1425
|
+
this.raw_1.set_maxFrameSize_k27os3_k$(value);
|
|
1422
1426
|
};
|
|
1423
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1424
|
-
return this.
|
|
1427
|
+
protoOf(DefaultWebSocketSessionImpl).get_maxFrameSize_9zaht9_k$ = function () {
|
|
1428
|
+
return this.raw_1.get_maxFrameSize_9zaht9_k$();
|
|
1425
1429
|
};
|
|
1426
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1427
|
-
if (!this.
|
|
1430
|
+
protoOf(DefaultWebSocketSessionImpl).start_ye6294_k$ = function (negotiatedExtensions) {
|
|
1431
|
+
if (!this.started_1.atomicfu$compareAndSet(false, true)) {
|
|
1428
1432
|
// Inline function 'kotlin.error' call
|
|
1429
1433
|
var message = 'WebSocket session ' + toString(this) + ' is already started.';
|
|
1430
1434
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -1433,16 +1437,16 @@ protoOf(DefaultWebSocketSessionImpl).h34 = function (negotiatedExtensions) {
|
|
|
1433
1437
|
var this_0 = get_LOGGER();
|
|
1434
1438
|
if (get_isTraceEnabled(this_0)) {
|
|
1435
1439
|
var tmp$ret$2 = 'Starting default WebSocketSession(' + toString(this) + ') ' + ('with negotiated extensions: ' + joinToString(negotiatedExtensions));
|
|
1436
|
-
this_0.
|
|
1440
|
+
this_0.trace_fti9bv_k$(tmp$ret$2);
|
|
1437
1441
|
}
|
|
1438
|
-
this.
|
|
1442
|
+
this._extensions_1.addAll_h3ej1q_k$(negotiatedExtensions);
|
|
1439
1443
|
runOrCancelPinger(this);
|
|
1440
|
-
var incomingJob = runIncomingProcessor(this, ponger(this, this.
|
|
1444
|
+
var incomingJob = runIncomingProcessor(this, ponger(this, this.get_outgoing_us7o3v_k$()));
|
|
1441
1445
|
var outgoingJob = runOutgoingProcessor(this);
|
|
1442
1446
|
launch(this, VOID, VOID, DefaultWebSocketSessionImpl$start$slambda_0(incomingJob, outgoingJob, this, null));
|
|
1443
1447
|
};
|
|
1444
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1445
|
-
return this.
|
|
1448
|
+
protoOf(DefaultWebSocketSessionImpl).flush_4wsz1p_k$ = function ($completion) {
|
|
1449
|
+
return this.raw_1.flush_4wsz1p_k$($completion);
|
|
1446
1450
|
};
|
|
1447
1451
|
var properties_initialized_DefaultWebSocketSession_kt_6cjlhc;
|
|
1448
1452
|
function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
@@ -1464,20 +1468,20 @@ function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
|
1464
1468
|
}
|
|
1465
1469
|
}
|
|
1466
1470
|
function readReason(_this__u8e3s4) {
|
|
1467
|
-
if (_this__u8e3s4.
|
|
1471
|
+
if (_this__u8e3s4.data_1.length < 2) {
|
|
1468
1472
|
return null;
|
|
1469
1473
|
}
|
|
1470
1474
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1471
1475
|
var builder = new Buffer();
|
|
1472
|
-
writeFully(builder, _this__u8e3s4.
|
|
1476
|
+
writeFully(builder, _this__u8e3s4.data_1);
|
|
1473
1477
|
var packet = builder;
|
|
1474
|
-
var code = packet.
|
|
1478
|
+
var code = packet.readShort_ilpyey_k$();
|
|
1475
1479
|
var message = readText(packet);
|
|
1476
1480
|
return new CloseReason(code, message);
|
|
1477
1481
|
}
|
|
1478
1482
|
function NonDisposableHandle() {
|
|
1479
1483
|
}
|
|
1480
|
-
protoOf(NonDisposableHandle).
|
|
1484
|
+
protoOf(NonDisposableHandle).dispose_3nnxhr_k$ = function () {
|
|
1481
1485
|
return Unit_instance;
|
|
1482
1486
|
};
|
|
1483
1487
|
protoOf(NonDisposableHandle).toString = function () {
|
|
@@ -1501,54 +1505,69 @@ function FrameTooBigException(frameSize, cause) {
|
|
|
1501
1505
|
cause = cause === VOID ? null : cause;
|
|
1502
1506
|
Exception_init_$Init$(cause, this);
|
|
1503
1507
|
captureStack(this, FrameTooBigException);
|
|
1504
|
-
this.
|
|
1508
|
+
this.frameSize_1 = frameSize;
|
|
1505
1509
|
delete this.message;
|
|
1506
1510
|
}
|
|
1507
|
-
protoOf(FrameTooBigException).
|
|
1508
|
-
var sizeSuffix = this.
|
|
1511
|
+
protoOf(FrameTooBigException).get_message_h23axq_k$ = function () {
|
|
1512
|
+
var sizeSuffix = this.frameSize_1 >= 0n ? ': ' + this.frameSize_1.toString() : '';
|
|
1509
1513
|
return 'Frame is too big' + sizeSuffix;
|
|
1510
1514
|
};
|
|
1511
|
-
protoOf(FrameTooBigException).
|
|
1512
|
-
return new FrameTooBigException(this.
|
|
1515
|
+
protoOf(FrameTooBigException).createCopy_mmw9ld_k$ = function () {
|
|
1516
|
+
return new FrameTooBigException(this.frameSize_1, this);
|
|
1513
1517
|
};
|
|
1518
|
+
var static_init_called_0;
|
|
1519
|
+
function static_init_0() {
|
|
1520
|
+
if (static_init_called_0)
|
|
1521
|
+
return Unit_instance;
|
|
1522
|
+
static_init_called_0 = true;
|
|
1523
|
+
FrameType_TEXT_instance = new FrameType('TEXT', 0, false, 1);
|
|
1524
|
+
FrameType_BINARY_instance = new FrameType('BINARY', 1, false, 2);
|
|
1525
|
+
FrameType_CLOSE_instance = new FrameType('CLOSE', 2, true, 8);
|
|
1526
|
+
FrameType_PING_instance = new FrameType('PING', 3, true, 9);
|
|
1527
|
+
FrameType_PONG_instance = new FrameType('PONG', 4, true, 10);
|
|
1528
|
+
if (Companion_instance_3 == null) {
|
|
1529
|
+
Companion_instance;
|
|
1530
|
+
new Companion_2();
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1514
1533
|
var FrameType_TEXT_instance;
|
|
1515
1534
|
var FrameType_BINARY_instance;
|
|
1516
1535
|
var FrameType_CLOSE_instance;
|
|
1517
1536
|
var FrameType_PING_instance;
|
|
1518
1537
|
var FrameType_PONG_instance;
|
|
1519
1538
|
function Companion_2() {
|
|
1520
|
-
|
|
1539
|
+
Companion_instance_3 = this;
|
|
1521
1540
|
var tmp = this;
|
|
1522
1541
|
var tmp0 = get_entries_0();
|
|
1523
1542
|
var tmp$ret$0;
|
|
1524
1543
|
$l$block_0: {
|
|
1525
1544
|
// Inline function 'kotlin.collections.maxByOrNull' call
|
|
1526
|
-
var iterator = tmp0.
|
|
1527
|
-
if (!iterator.
|
|
1545
|
+
var iterator = tmp0.iterator_jk1svi_k$();
|
|
1546
|
+
if (!iterator.hasNext_bitz1p_k$()) {
|
|
1528
1547
|
tmp$ret$0 = null;
|
|
1529
1548
|
break $l$block_0;
|
|
1530
1549
|
}
|
|
1531
|
-
var maxElem = iterator.
|
|
1532
|
-
if (!iterator.
|
|
1550
|
+
var maxElem = iterator.next_20eer_k$();
|
|
1551
|
+
if (!iterator.hasNext_bitz1p_k$()) {
|
|
1533
1552
|
tmp$ret$0 = maxElem;
|
|
1534
1553
|
break $l$block_0;
|
|
1535
1554
|
}
|
|
1536
|
-
var maxValue = maxElem.
|
|
1555
|
+
var maxValue = maxElem.opcode_1;
|
|
1537
1556
|
do {
|
|
1538
|
-
var e = iterator.
|
|
1539
|
-
var v = e.
|
|
1557
|
+
var e = iterator.next_20eer_k$();
|
|
1558
|
+
var v = e.opcode_1;
|
|
1540
1559
|
if (compareTo(maxValue, v) < 0) {
|
|
1541
1560
|
maxElem = e;
|
|
1542
1561
|
maxValue = v;
|
|
1543
1562
|
}
|
|
1544
1563
|
}
|
|
1545
|
-
while (iterator.
|
|
1564
|
+
while (iterator.hasNext_bitz1p_k$());
|
|
1546
1565
|
tmp$ret$0 = maxElem;
|
|
1547
1566
|
}
|
|
1548
|
-
tmp.
|
|
1567
|
+
tmp.maxOpcode_1 = ensureNotNull(tmp$ret$0).opcode_1;
|
|
1549
1568
|
var tmp_0 = this;
|
|
1550
1569
|
var tmp_1 = 0;
|
|
1551
|
-
var tmp_2 = this.
|
|
1570
|
+
var tmp_2 = this.maxOpcode_1 + 1 | 0;
|
|
1552
1571
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1553
1572
|
var tmp_3 = Array(tmp_2);
|
|
1554
1573
|
while (tmp_1 < tmp_2) {
|
|
@@ -1559,10 +1578,10 @@ function Companion_2() {
|
|
|
1559
1578
|
// Inline function 'kotlin.collections.singleOrNull' call
|
|
1560
1579
|
var single = null;
|
|
1561
1580
|
var found = false;
|
|
1562
|
-
var _iterator__ex2g4s = tmp0_0.
|
|
1563
|
-
while (_iterator__ex2g4s.
|
|
1564
|
-
var element = _iterator__ex2g4s.
|
|
1565
|
-
if (element.
|
|
1581
|
+
var _iterator__ex2g4s = tmp0_0.iterator_jk1svi_k$();
|
|
1582
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1583
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
1584
|
+
if (element.opcode_1 === tmp_4) {
|
|
1566
1585
|
if (found) {
|
|
1567
1586
|
tmp$ret$5 = null;
|
|
1568
1587
|
break $l$block_2;
|
|
@@ -1580,59 +1599,43 @@ function Companion_2() {
|
|
|
1580
1599
|
tmp_3[tmp_4] = tmp$ret$5;
|
|
1581
1600
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1582
1601
|
}
|
|
1583
|
-
tmp_0.
|
|
1584
|
-
}
|
|
1585
|
-
var Companion_instance_2;
|
|
1586
|
-
function Companion_getInstance_2() {
|
|
1587
|
-
FrameType_initEntries();
|
|
1588
|
-
if (Companion_instance_2 == null)
|
|
1589
|
-
new Companion_2();
|
|
1590
|
-
return Companion_instance_2;
|
|
1602
|
+
tmp_0.byOpcodeArray_1 = tmp_3;
|
|
1591
1603
|
}
|
|
1604
|
+
var Companion_instance_3;
|
|
1592
1605
|
function values_0() {
|
|
1606
|
+
static_init_0();
|
|
1593
1607
|
return [FrameType_TEXT_getInstance(), FrameType_BINARY_getInstance(), FrameType_CLOSE_getInstance(), FrameType_PING_getInstance(), FrameType_PONG_getInstance()];
|
|
1594
1608
|
}
|
|
1595
1609
|
function get_entries_0() {
|
|
1610
|
+
static_init_0();
|
|
1596
1611
|
if ($ENTRIES_0 == null)
|
|
1597
1612
|
$ENTRIES_0 = enumEntries(values_0());
|
|
1598
1613
|
return $ENTRIES_0;
|
|
1599
1614
|
}
|
|
1600
|
-
var FrameType_entriesInitialized;
|
|
1601
|
-
function FrameType_initEntries() {
|
|
1602
|
-
if (FrameType_entriesInitialized)
|
|
1603
|
-
return Unit_instance;
|
|
1604
|
-
FrameType_entriesInitialized = true;
|
|
1605
|
-
FrameType_TEXT_instance = new FrameType('TEXT', 0, false, 1);
|
|
1606
|
-
FrameType_BINARY_instance = new FrameType('BINARY', 1, false, 2);
|
|
1607
|
-
FrameType_CLOSE_instance = new FrameType('CLOSE', 2, true, 8);
|
|
1608
|
-
FrameType_PING_instance = new FrameType('PING', 3, true, 9);
|
|
1609
|
-
FrameType_PONG_instance = new FrameType('PONG', 4, true, 10);
|
|
1610
|
-
Companion_getInstance_2();
|
|
1611
|
-
}
|
|
1612
1615
|
var $ENTRIES_0;
|
|
1613
1616
|
function FrameType(name, ordinal, controlFrame, opcode) {
|
|
1614
1617
|
Enum.call(this, name, ordinal);
|
|
1615
|
-
this.
|
|
1616
|
-
this.
|
|
1618
|
+
this.controlFrame_1 = controlFrame;
|
|
1619
|
+
this.opcode_1 = opcode;
|
|
1617
1620
|
}
|
|
1618
1621
|
function FrameType_TEXT_getInstance() {
|
|
1619
|
-
|
|
1622
|
+
static_init_0();
|
|
1620
1623
|
return FrameType_TEXT_instance;
|
|
1621
1624
|
}
|
|
1622
1625
|
function FrameType_BINARY_getInstance() {
|
|
1623
|
-
|
|
1626
|
+
static_init_0();
|
|
1624
1627
|
return FrameType_BINARY_instance;
|
|
1625
1628
|
}
|
|
1626
1629
|
function FrameType_CLOSE_getInstance() {
|
|
1627
|
-
|
|
1630
|
+
static_init_0();
|
|
1628
1631
|
return FrameType_CLOSE_instance;
|
|
1629
1632
|
}
|
|
1630
1633
|
function FrameType_PING_getInstance() {
|
|
1631
|
-
|
|
1634
|
+
static_init_0();
|
|
1632
1635
|
return FrameType_PING_instance;
|
|
1633
1636
|
}
|
|
1634
1637
|
function FrameType_PONG_getInstance() {
|
|
1635
|
-
|
|
1638
|
+
static_init_0();
|
|
1636
1639
|
return FrameType_PONG_instance;
|
|
1637
1640
|
}
|
|
1638
1641
|
function get_PongerCoroutineName() {
|
|
@@ -1656,55 +1659,55 @@ function pinger(_this__u8e3s4, outgoing, periodMillis, timeoutMillis, onTimeout)
|
|
|
1656
1659
|
_init_properties_PingPong_kt__9aqxey();
|
|
1657
1660
|
var actorJob = Job();
|
|
1658
1661
|
var channel = Channel(2147483647);
|
|
1659
|
-
var tmp = actorJob.
|
|
1662
|
+
var tmp = actorJob.plus_s13ygv_k$(get_PingerCoroutineName());
|
|
1660
1663
|
launch(_this__u8e3s4, tmp, VOID, pinger$slambda_0(periodMillis, timeoutMillis, onTimeout, channel, outgoing, null));
|
|
1661
|
-
var tmp_0 = ensureNotNull(_this__u8e3s4.
|
|
1662
|
-
tmp_0.
|
|
1664
|
+
var tmp_0 = ensureNotNull(_this__u8e3s4.get_coroutineContext_115oqo_k$().get_y2st91_k$(Key_instance));
|
|
1665
|
+
tmp_0.invokeOnCompletion_n6cffu_k$(pinger$lambda(actorJob));
|
|
1663
1666
|
return channel;
|
|
1664
1667
|
}
|
|
1665
1668
|
function ponger$slambda($channel, $outgoing, resultContinuation) {
|
|
1666
|
-
this
|
|
1667
|
-
this
|
|
1669
|
+
this.$channel_1 = $channel;
|
|
1670
|
+
this.$outgoing_1 = $outgoing;
|
|
1668
1671
|
CoroutineImpl.call(this, resultContinuation);
|
|
1669
1672
|
}
|
|
1670
|
-
protoOf(ponger$slambda).
|
|
1671
|
-
var tmp = this.
|
|
1672
|
-
tmp.
|
|
1673
|
-
tmp.
|
|
1674
|
-
return tmp.
|
|
1673
|
+
protoOf(ponger$slambda).invoke_d9fzmj_k$ = function ($this$launch, $completion) {
|
|
1674
|
+
var tmp = this.create_rcuf4x_k$($this$launch, $completion);
|
|
1675
|
+
tmp.result_1 = Unit_instance;
|
|
1676
|
+
tmp.exception_1 = null;
|
|
1677
|
+
return tmp.doResume_5yljmg_k$();
|
|
1675
1678
|
};
|
|
1676
|
-
protoOf(ponger$slambda).
|
|
1677
|
-
return this.
|
|
1679
|
+
protoOf(ponger$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
|
|
1680
|
+
return this.invoke_d9fzmj_k$((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1678
1681
|
};
|
|
1679
|
-
protoOf(ponger$slambda).
|
|
1680
|
-
var suspendResult = this.
|
|
1682
|
+
protoOf(ponger$slambda).doResume_5yljmg_k$ = function () {
|
|
1683
|
+
var suspendResult = this.result_1;
|
|
1681
1684
|
$sm: do
|
|
1682
1685
|
try {
|
|
1683
|
-
var tmp = this.
|
|
1686
|
+
var tmp = this.state_1;
|
|
1684
1687
|
switch (tmp) {
|
|
1685
1688
|
case 0:
|
|
1686
|
-
this.
|
|
1687
|
-
this.
|
|
1688
|
-
this.
|
|
1689
|
-
this.
|
|
1689
|
+
this.exceptionState_1 = 14;
|
|
1690
|
+
this.exceptionState_1 = 13;
|
|
1691
|
+
this.tmp04__1 = this.$channel_1;
|
|
1692
|
+
this.state_1 = 1;
|
|
1690
1693
|
continue $sm;
|
|
1691
1694
|
case 1:
|
|
1692
|
-
this.
|
|
1693
|
-
this.
|
|
1694
|
-
this.
|
|
1695
|
+
this.this1__1 = this.tmp04__1;
|
|
1696
|
+
this.cause0__1 = null;
|
|
1697
|
+
this.state_1 = 2;
|
|
1695
1698
|
continue $sm;
|
|
1696
1699
|
case 2:
|
|
1697
|
-
this.
|
|
1700
|
+
this.state_1 = 3;
|
|
1698
1701
|
continue $sm;
|
|
1699
1702
|
case 3:
|
|
1700
|
-
this.
|
|
1701
|
-
this.
|
|
1702
|
-
this.
|
|
1703
|
-
this.
|
|
1703
|
+
this.exceptionState_1 = 10;
|
|
1704
|
+
this.exceptionState_1 = 9;
|
|
1705
|
+
this._iterator_3_yqohr3__1 = this.this1__1.iterator_jk1svi_k$();
|
|
1706
|
+
this.state_1 = 4;
|
|
1704
1707
|
continue $sm;
|
|
1705
1708
|
case 4:
|
|
1706
|
-
this.
|
|
1707
|
-
suspendResult = this.
|
|
1709
|
+
this.state_1 = 5;
|
|
1710
|
+
suspendResult = this._iterator_3_yqohr3__1.hasNext_nhy1w3_k$(this);
|
|
1708
1711
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1709
1712
|
return suspendResult;
|
|
1710
1713
|
}
|
|
@@ -1712,305 +1715,316 @@ protoOf(ponger$slambda).s8 = function () {
|
|
|
1712
1715
|
continue $sm;
|
|
1713
1716
|
case 5:
|
|
1714
1717
|
if (!suspendResult) {
|
|
1715
|
-
this.
|
|
1718
|
+
this.state_1 = 7;
|
|
1716
1719
|
continue $sm;
|
|
1717
1720
|
}
|
|
1718
1721
|
|
|
1719
|
-
var e = this.
|
|
1720
|
-
get_LOGGER().
|
|
1721
|
-
this.
|
|
1722
|
-
suspendResult = this.
|
|
1722
|
+
var e = this._iterator_3_yqohr3__1.next_20eer_k$();
|
|
1723
|
+
get_LOGGER().trace_fti9bv_k$('Received ping message, sending pong message');
|
|
1724
|
+
this.state_1 = 6;
|
|
1725
|
+
suspendResult = this.$outgoing_1.send_44jogj_k$(new Pong(e.data_1), this);
|
|
1723
1726
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1724
1727
|
return suspendResult;
|
|
1725
1728
|
}
|
|
1726
1729
|
|
|
1727
1730
|
continue $sm;
|
|
1728
1731
|
case 6:
|
|
1729
|
-
this.
|
|
1732
|
+
this.state_1 = 4;
|
|
1730
1733
|
continue $sm;
|
|
1731
1734
|
case 7:
|
|
1732
|
-
this.
|
|
1735
|
+
this.state_1 = 8;
|
|
1733
1736
|
var tmp_0 = this;
|
|
1734
1737
|
continue $sm;
|
|
1735
1738
|
case 8:
|
|
1736
|
-
this.
|
|
1737
|
-
cancelConsumed(this.
|
|
1738
|
-
this.
|
|
1739
|
+
this.exceptionState_1 = 13;
|
|
1740
|
+
cancelConsumed(this.this1__1, this.cause0__1);
|
|
1741
|
+
this.state_1 = 12;
|
|
1739
1742
|
continue $sm;
|
|
1740
1743
|
case 9:
|
|
1741
|
-
this.
|
|
1742
|
-
var tmp_1 = this.
|
|
1744
|
+
this.exceptionState_1 = 10;
|
|
1745
|
+
var tmp_1 = this.exception_1;
|
|
1743
1746
|
if (tmp_1 instanceof Error) {
|
|
1744
|
-
var e_0 = this.
|
|
1747
|
+
var e_0 = this.exception_1;
|
|
1745
1748
|
var tmp_2 = this;
|
|
1746
|
-
this.
|
|
1749
|
+
this.cause0__1 = e_0;
|
|
1747
1750
|
throw e_0;
|
|
1748
1751
|
} else {
|
|
1749
|
-
throw this.
|
|
1752
|
+
throw this.exception_1;
|
|
1750
1753
|
}
|
|
1751
1754
|
|
|
1752
1755
|
case 10:
|
|
1753
|
-
this.
|
|
1754
|
-
var t = this.
|
|
1755
|
-
cancelConsumed(this.
|
|
1756
|
+
this.exceptionState_1 = 13;
|
|
1757
|
+
var t = this.exception_1;
|
|
1758
|
+
cancelConsumed(this.this1__1, this.cause0__1);
|
|
1756
1759
|
throw t;
|
|
1757
1760
|
case 11:
|
|
1758
|
-
this.
|
|
1759
|
-
cancelConsumed(this.
|
|
1761
|
+
this.exceptionState_1 = 13;
|
|
1762
|
+
cancelConsumed(this.this1__1, this.cause0__1);
|
|
1760
1763
|
if (false) {
|
|
1761
|
-
this.
|
|
1764
|
+
this.state_1 = 1;
|
|
1762
1765
|
continue $sm;
|
|
1763
1766
|
}
|
|
1764
1767
|
|
|
1765
|
-
this.
|
|
1768
|
+
this.state_1 = 12;
|
|
1766
1769
|
continue $sm;
|
|
1767
1770
|
case 12:
|
|
1768
|
-
this.
|
|
1769
|
-
this.
|
|
1771
|
+
this.exceptionState_1 = 14;
|
|
1772
|
+
this.state_1 = 15;
|
|
1770
1773
|
continue $sm;
|
|
1771
1774
|
case 13:
|
|
1772
|
-
this.
|
|
1773
|
-
var tmp_3 = this.
|
|
1775
|
+
this.exceptionState_1 = 14;
|
|
1776
|
+
var tmp_3 = this.exception_1;
|
|
1774
1777
|
if (tmp_3 instanceof ClosedSendChannelException) {
|
|
1775
|
-
var _unused_var__etf5q3 = this.
|
|
1776
|
-
this.
|
|
1778
|
+
var _unused_var__etf5q3 = this.exception_1;
|
|
1779
|
+
this.state_1 = 15;
|
|
1777
1780
|
continue $sm;
|
|
1778
1781
|
} else {
|
|
1779
|
-
throw this.
|
|
1782
|
+
throw this.exception_1;
|
|
1780
1783
|
}
|
|
1781
1784
|
|
|
1782
1785
|
case 14:
|
|
1783
|
-
throw this.
|
|
1786
|
+
throw this.exception_1;
|
|
1784
1787
|
case 15:
|
|
1785
|
-
this.
|
|
1788
|
+
this.exceptionState_1 = 14;
|
|
1786
1789
|
return Unit_instance;
|
|
1787
1790
|
}
|
|
1788
1791
|
} catch ($p) {
|
|
1789
1792
|
var e_1 = $p;
|
|
1790
|
-
if (this.
|
|
1793
|
+
if (this.exceptionState_1 === 14) {
|
|
1791
1794
|
throw e_1;
|
|
1792
1795
|
} else {
|
|
1793
|
-
this.
|
|
1794
|
-
this.
|
|
1796
|
+
this.state_1 = this.exceptionState_1;
|
|
1797
|
+
this.exception_1 = e_1;
|
|
1795
1798
|
}
|
|
1796
1799
|
}
|
|
1797
1800
|
while (true);
|
|
1798
1801
|
};
|
|
1799
|
-
protoOf(ponger$slambda).
|
|
1800
|
-
var i = new ponger$slambda(this
|
|
1801
|
-
i
|
|
1802
|
+
protoOf(ponger$slambda).create_rcuf4x_k$ = function ($this$launch, completion) {
|
|
1803
|
+
var i = new ponger$slambda(this.$channel_1, this.$outgoing_1, completion);
|
|
1804
|
+
i.$this$launch_1 = $this$launch;
|
|
1802
1805
|
return i;
|
|
1803
1806
|
};
|
|
1804
1807
|
function ponger$slambda_0($channel, $outgoing, resultContinuation) {
|
|
1805
1808
|
var i = new ponger$slambda($channel, $outgoing, resultContinuation);
|
|
1806
1809
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
1807
|
-
return i.
|
|
1810
|
+
return i.invoke_d9fzmj_k$($this$launch, $completion);
|
|
1808
1811
|
}, 1);
|
|
1809
1812
|
}
|
|
1810
1813
|
function pinger$slambda$slambda($channel, resultContinuation) {
|
|
1811
|
-
this
|
|
1814
|
+
this.$channel_1 = $channel;
|
|
1812
1815
|
CoroutineImpl.call(this, resultContinuation);
|
|
1813
1816
|
}
|
|
1814
|
-
protoOf(pinger$slambda$slambda).
|
|
1815
|
-
var tmp = this.
|
|
1816
|
-
tmp.
|
|
1817
|
-
tmp.
|
|
1818
|
-
return tmp.
|
|
1817
|
+
protoOf(pinger$slambda$slambda).invoke_d9fzmj_k$ = function ($this$withTimeoutOrNull, $completion) {
|
|
1818
|
+
var tmp = this.create_rcuf4x_k$($this$withTimeoutOrNull, $completion);
|
|
1819
|
+
tmp.result_1 = Unit_instance;
|
|
1820
|
+
tmp.exception_1 = null;
|
|
1821
|
+
return tmp.doResume_5yljmg_k$();
|
|
1819
1822
|
};
|
|
1820
|
-
protoOf(pinger$slambda$slambda).
|
|
1821
|
-
return this.
|
|
1823
|
+
protoOf(pinger$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
|
|
1824
|
+
return this.invoke_d9fzmj_k$((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1822
1825
|
};
|
|
1823
|
-
protoOf(pinger$slambda$slambda).
|
|
1824
|
-
var suspendResult = this.
|
|
1826
|
+
protoOf(pinger$slambda$slambda).doResume_5yljmg_k$ = function () {
|
|
1827
|
+
var suspendResult = this.result_1;
|
|
1825
1828
|
$sm: do
|
|
1826
1829
|
try {
|
|
1827
|
-
var tmp = this.
|
|
1830
|
+
var tmp = this.state_1;
|
|
1828
1831
|
switch (tmp) {
|
|
1829
1832
|
case 0:
|
|
1830
|
-
this.
|
|
1831
|
-
this.
|
|
1833
|
+
this.exceptionState_1 = 3;
|
|
1834
|
+
this.state_1 = 1;
|
|
1832
1835
|
continue $sm;
|
|
1833
1836
|
case 1:
|
|
1834
1837
|
if (!true) {
|
|
1835
|
-
this.
|
|
1838
|
+
this.state_1 = 4;
|
|
1836
1839
|
continue $sm;
|
|
1837
1840
|
}
|
|
1838
1841
|
|
|
1839
|
-
this.
|
|
1840
|
-
suspendResult = this.
|
|
1842
|
+
this.state_1 = 2;
|
|
1843
|
+
suspendResult = this.$channel_1.receive_awoumx_k$(this);
|
|
1841
1844
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1842
1845
|
return suspendResult;
|
|
1843
1846
|
}
|
|
1844
1847
|
|
|
1845
1848
|
continue $sm;
|
|
1846
1849
|
case 2:
|
|
1847
|
-
this.
|
|
1850
|
+
this.state_1 = 1;
|
|
1848
1851
|
continue $sm;
|
|
1849
1852
|
case 3:
|
|
1850
|
-
throw this.
|
|
1853
|
+
throw this.exception_1;
|
|
1851
1854
|
case 4:
|
|
1852
1855
|
return Unit_instance;
|
|
1853
1856
|
}
|
|
1854
1857
|
} catch ($p) {
|
|
1855
1858
|
var e = $p;
|
|
1856
|
-
if (this.
|
|
1859
|
+
if (this.exceptionState_1 === 3) {
|
|
1857
1860
|
throw e;
|
|
1858
1861
|
} else {
|
|
1859
|
-
this.
|
|
1860
|
-
this.
|
|
1862
|
+
this.state_1 = this.exceptionState_1;
|
|
1863
|
+
this.exception_1 = e;
|
|
1861
1864
|
}
|
|
1862
1865
|
}
|
|
1863
1866
|
while (true);
|
|
1864
1867
|
};
|
|
1865
|
-
protoOf(pinger$slambda$slambda).
|
|
1866
|
-
var i = new pinger$slambda$slambda(this
|
|
1867
|
-
i
|
|
1868
|
+
protoOf(pinger$slambda$slambda).create_rcuf4x_k$ = function ($this$withTimeoutOrNull, completion) {
|
|
1869
|
+
var i = new pinger$slambda$slambda(this.$channel_1, completion);
|
|
1870
|
+
i.$this$withTimeoutOrNull_1 = $this$withTimeoutOrNull;
|
|
1868
1871
|
return i;
|
|
1869
1872
|
};
|
|
1870
1873
|
function pinger$slambda$slambda_0($channel, resultContinuation) {
|
|
1871
1874
|
var i = new pinger$slambda$slambda($channel, resultContinuation);
|
|
1872
1875
|
return constructCallableReference(function ($this$withTimeoutOrNull, $completion) {
|
|
1873
|
-
return i.
|
|
1876
|
+
return i.invoke_d9fzmj_k$($this$withTimeoutOrNull, $completion);
|
|
1874
1877
|
}, 1);
|
|
1875
1878
|
}
|
|
1876
1879
|
function pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1877
|
-
this
|
|
1878
|
-
this
|
|
1879
|
-
this
|
|
1880
|
+
this.$outgoing_1 = $outgoing;
|
|
1881
|
+
this.$pingMessage_1 = $pingMessage;
|
|
1882
|
+
this.$channel_1 = $channel;
|
|
1880
1883
|
CoroutineImpl.call(this, resultContinuation);
|
|
1881
1884
|
}
|
|
1882
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1883
|
-
var tmp = this.
|
|
1884
|
-
tmp.
|
|
1885
|
-
tmp.
|
|
1886
|
-
return tmp.
|
|
1885
|
+
protoOf(pinger$slambda$slambda_1).invoke_d9fzmj_k$ = function ($this$withTimeoutOrNull, $completion) {
|
|
1886
|
+
var tmp = this.create_rcuf4x_k$($this$withTimeoutOrNull, $completion);
|
|
1887
|
+
tmp.result_1 = Unit_instance;
|
|
1888
|
+
tmp.exception_1 = null;
|
|
1889
|
+
return tmp.doResume_5yljmg_k$();
|
|
1887
1890
|
};
|
|
1888
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1889
|
-
return this.
|
|
1891
|
+
protoOf(pinger$slambda$slambda_1).invoke_qns8j1_k$ = function (p1, $completion) {
|
|
1892
|
+
return this.invoke_d9fzmj_k$((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1890
1893
|
};
|
|
1891
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1892
|
-
var suspendResult = this.
|
|
1894
|
+
protoOf(pinger$slambda$slambda_1).doResume_5yljmg_k$ = function () {
|
|
1895
|
+
var suspendResult = this.result_1;
|
|
1893
1896
|
$sm: do
|
|
1894
1897
|
try {
|
|
1895
|
-
var tmp = this.
|
|
1898
|
+
var tmp = this.state_1;
|
|
1896
1899
|
switch (tmp) {
|
|
1897
1900
|
case 0:
|
|
1898
|
-
this.
|
|
1899
|
-
get_LOGGER().
|
|
1900
|
-
this.
|
|
1901
|
-
suspendResult = this.
|
|
1901
|
+
this.exceptionState_1 = 6;
|
|
1902
|
+
get_LOGGER().trace_fti9bv_k$('WebSocket Pinger: sending ping frame');
|
|
1903
|
+
this.state_1 = 1;
|
|
1904
|
+
suspendResult = this.$outgoing_1.send_44jogj_k$(new Ping(toByteArray(this.$pingMessage_1, Charsets_getInstance().ISO_8859_1__1)), this);
|
|
1902
1905
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1903
1906
|
return suspendResult;
|
|
1904
1907
|
}
|
|
1905
1908
|
|
|
1906
1909
|
continue $sm;
|
|
1907
1910
|
case 1:
|
|
1908
|
-
this.
|
|
1911
|
+
this.state_1 = 2;
|
|
1909
1912
|
continue $sm;
|
|
1910
1913
|
case 2:
|
|
1911
1914
|
if (!true) {
|
|
1912
|
-
this.
|
|
1915
|
+
this.state_1 = 5;
|
|
1913
1916
|
continue $sm;
|
|
1914
1917
|
}
|
|
1915
1918
|
|
|
1916
|
-
this.
|
|
1917
|
-
suspendResult = this.
|
|
1919
|
+
this.state_1 = 3;
|
|
1920
|
+
suspendResult = this.$channel_1.receive_awoumx_k$(this);
|
|
1918
1921
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1919
1922
|
return suspendResult;
|
|
1920
1923
|
}
|
|
1921
1924
|
|
|
1922
1925
|
continue $sm;
|
|
1923
1926
|
case 3:
|
|
1924
|
-
this.
|
|
1925
|
-
if (decodeToString(this.
|
|
1926
|
-
|
|
1927
|
-
|
|
1927
|
+
this.msg0__1 = suspendResult;
|
|
1928
|
+
if (decodeToString(this.msg0__1.data_1, 0, 0 + this.msg0__1.data_1.length | 0) === this.$pingMessage_1) {
|
|
1929
|
+
var this_0 = get_LOGGER();
|
|
1930
|
+
if (get_isTraceEnabled(this_0)) {
|
|
1931
|
+
this_0.trace_fti9bv_k$('WebSocket Pinger: received valid pong frame ' + this.msg0__1.toString());
|
|
1932
|
+
}
|
|
1933
|
+
this.state_1 = 5;
|
|
1928
1934
|
continue $sm;
|
|
1929
1935
|
} else {
|
|
1930
|
-
this.
|
|
1936
|
+
this.state_1 = 4;
|
|
1931
1937
|
continue $sm;
|
|
1932
1938
|
}
|
|
1933
1939
|
|
|
1934
1940
|
case 4:
|
|
1935
|
-
|
|
1936
|
-
|
|
1941
|
+
var this_1 = get_LOGGER();
|
|
1942
|
+
if (get_isTraceEnabled(this_1)) {
|
|
1943
|
+
this_1.trace_fti9bv_k$('WebSocket Pinger: received invalid pong frame ' + this.msg0__1.toString() + ', continue waiting');
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1946
|
+
this.state_1 = 2;
|
|
1937
1947
|
continue $sm;
|
|
1938
1948
|
case 5:
|
|
1939
1949
|
return Unit_instance;
|
|
1940
1950
|
case 6:
|
|
1941
|
-
throw this.
|
|
1951
|
+
throw this.exception_1;
|
|
1942
1952
|
}
|
|
1943
1953
|
} catch ($p) {
|
|
1944
1954
|
var e = $p;
|
|
1945
|
-
if (this.
|
|
1955
|
+
if (this.exceptionState_1 === 6) {
|
|
1946
1956
|
throw e;
|
|
1947
1957
|
} else {
|
|
1948
|
-
this.
|
|
1949
|
-
this.
|
|
1958
|
+
this.state_1 = this.exceptionState_1;
|
|
1959
|
+
this.exception_1 = e;
|
|
1950
1960
|
}
|
|
1951
1961
|
}
|
|
1952
1962
|
while (true);
|
|
1953
1963
|
};
|
|
1954
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1955
|
-
var i = new pinger$slambda$slambda_1(this
|
|
1956
|
-
i
|
|
1964
|
+
protoOf(pinger$slambda$slambda_1).create_rcuf4x_k$ = function ($this$withTimeoutOrNull, completion) {
|
|
1965
|
+
var i = new pinger$slambda$slambda_1(this.$outgoing_1, this.$pingMessage_1, this.$channel_1, completion);
|
|
1966
|
+
i.$this$withTimeoutOrNull_1 = $this$withTimeoutOrNull;
|
|
1957
1967
|
return i;
|
|
1958
1968
|
};
|
|
1959
1969
|
function pinger$slambda$slambda_2($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1960
1970
|
var i = new pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation);
|
|
1961
1971
|
return constructCallableReference(function ($this$withTimeoutOrNull, $completion) {
|
|
1962
|
-
return i.
|
|
1972
|
+
return i.invoke_d9fzmj_k$($this$withTimeoutOrNull, $completion);
|
|
1963
1973
|
}, 1);
|
|
1964
1974
|
}
|
|
1965
1975
|
function pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
1966
|
-
this
|
|
1967
|
-
this
|
|
1968
|
-
this
|
|
1969
|
-
this
|
|
1970
|
-
this
|
|
1976
|
+
this.$periodMillis_1 = $periodMillis;
|
|
1977
|
+
this.$timeoutMillis_1 = $timeoutMillis;
|
|
1978
|
+
this.$onTimeout_1 = $onTimeout;
|
|
1979
|
+
this.$channel_1 = $channel;
|
|
1980
|
+
this.$outgoing_1 = $outgoing;
|
|
1971
1981
|
CoroutineImpl.call(this, resultContinuation);
|
|
1972
1982
|
}
|
|
1973
|
-
protoOf(pinger$slambda).
|
|
1974
|
-
var tmp = this.
|
|
1975
|
-
tmp.
|
|
1976
|
-
tmp.
|
|
1977
|
-
return tmp.
|
|
1983
|
+
protoOf(pinger$slambda).invoke_d9fzmj_k$ = function ($this$launch, $completion) {
|
|
1984
|
+
var tmp = this.create_rcuf4x_k$($this$launch, $completion);
|
|
1985
|
+
tmp.result_1 = Unit_instance;
|
|
1986
|
+
tmp.exception_1 = null;
|
|
1987
|
+
return tmp.doResume_5yljmg_k$();
|
|
1978
1988
|
};
|
|
1979
|
-
protoOf(pinger$slambda).
|
|
1980
|
-
return this.
|
|
1989
|
+
protoOf(pinger$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
|
|
1990
|
+
return this.invoke_d9fzmj_k$((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1981
1991
|
};
|
|
1982
|
-
protoOf(pinger$slambda).
|
|
1983
|
-
var suspendResult = this.
|
|
1992
|
+
protoOf(pinger$slambda).doResume_5yljmg_k$ = function () {
|
|
1993
|
+
var suspendResult = this.result_1;
|
|
1984
1994
|
$sm: do
|
|
1985
1995
|
try {
|
|
1986
|
-
var tmp = this.
|
|
1996
|
+
var tmp = this.state_1;
|
|
1987
1997
|
switch (tmp) {
|
|
1988
1998
|
case 0:
|
|
1989
|
-
this.
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1999
|
+
this.exceptionState_1 = 8;
|
|
2000
|
+
var this_0 = get_LOGGER();
|
|
2001
|
+
if (get_isTraceEnabled(this_0)) {
|
|
2002
|
+
this_0.trace_fti9bv_k$('Starting WebSocket pinger coroutine with period ' + this.$periodMillis_1.toString() + ' ms and timeout ' + this.$timeoutMillis_1.toString() + ' ms');
|
|
2003
|
+
}
|
|
2004
|
+
|
|
2005
|
+
this.random1__1 = Random(getTimeMillis());
|
|
2006
|
+
this.pingIdBytes0__1 = new Int8Array(32);
|
|
2007
|
+
this.exceptionState_1 = 7;
|
|
2008
|
+
this.state_1 = 1;
|
|
1995
2009
|
continue $sm;
|
|
1996
2010
|
case 1:
|
|
1997
2011
|
if (!true) {
|
|
1998
|
-
this.
|
|
2012
|
+
this.state_1 = 6;
|
|
1999
2013
|
continue $sm;
|
|
2000
2014
|
}
|
|
2001
2015
|
|
|
2002
|
-
this.
|
|
2003
|
-
suspendResult = withTimeoutOrNull(this
|
|
2016
|
+
this.state_1 = 2;
|
|
2017
|
+
suspendResult = withTimeoutOrNull(this.$periodMillis_1, pinger$slambda$slambda_0(this.$channel_1, null), this);
|
|
2004
2018
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2005
2019
|
return suspendResult;
|
|
2006
2020
|
}
|
|
2007
2021
|
|
|
2008
2022
|
continue $sm;
|
|
2009
2023
|
case 2:
|
|
2010
|
-
this.
|
|
2011
|
-
var pingMessage = '[ping ' + toHexString(this.
|
|
2012
|
-
this.
|
|
2013
|
-
suspendResult = withTimeoutOrNull(this
|
|
2024
|
+
this.random1__1.nextBytes_ln07bs_k$(this.pingIdBytes0__1);
|
|
2025
|
+
var pingMessage = '[ping ' + toHexString(this.pingIdBytes0__1) + ' ping]';
|
|
2026
|
+
this.state_1 = 3;
|
|
2027
|
+
suspendResult = withTimeoutOrNull(this.$timeoutMillis_1, pinger$slambda$slambda_2(this.$outgoing_1, pingMessage, this.$channel_1, null), this);
|
|
2014
2028
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2015
2029
|
return suspendResult;
|
|
2016
2030
|
}
|
|
@@ -2019,91 +2033,91 @@ protoOf(pinger$slambda).s8 = function () {
|
|
|
2019
2033
|
case 3:
|
|
2020
2034
|
var rc = suspendResult;
|
|
2021
2035
|
if (rc == null) {
|
|
2022
|
-
get_LOGGER().
|
|
2023
|
-
this.
|
|
2024
|
-
suspendResult = this
|
|
2036
|
+
get_LOGGER().trace_fti9bv_k$('WebSocket pinger has timed out');
|
|
2037
|
+
this.state_1 = 5;
|
|
2038
|
+
suspendResult = this.$onTimeout_1(CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), 'Ping timeout'), this);
|
|
2025
2039
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2026
2040
|
return suspendResult;
|
|
2027
2041
|
}
|
|
2028
2042
|
continue $sm;
|
|
2029
2043
|
} else {
|
|
2030
|
-
this.
|
|
2044
|
+
this.state_1 = 4;
|
|
2031
2045
|
continue $sm;
|
|
2032
2046
|
}
|
|
2033
2047
|
|
|
2034
2048
|
case 4:
|
|
2035
|
-
this.
|
|
2049
|
+
this.state_1 = 1;
|
|
2036
2050
|
continue $sm;
|
|
2037
2051
|
case 5:
|
|
2038
|
-
this.
|
|
2052
|
+
this.state_1 = 6;
|
|
2039
2053
|
continue $sm;
|
|
2040
2054
|
case 6:
|
|
2041
|
-
this.
|
|
2042
|
-
this.
|
|
2055
|
+
this.exceptionState_1 = 8;
|
|
2056
|
+
this.state_1 = 9;
|
|
2043
2057
|
continue $sm;
|
|
2044
2058
|
case 7:
|
|
2045
|
-
this.
|
|
2046
|
-
var tmp_0 = this.
|
|
2059
|
+
this.exceptionState_1 = 8;
|
|
2060
|
+
var tmp_0 = this.exception_1;
|
|
2047
2061
|
if (tmp_0 instanceof CancellationException) {
|
|
2048
|
-
var ignore = this.
|
|
2049
|
-
this.
|
|
2062
|
+
var ignore = this.exception_1;
|
|
2063
|
+
this.state_1 = 9;
|
|
2050
2064
|
continue $sm;
|
|
2051
2065
|
} else {
|
|
2052
|
-
var tmp_1 = this.
|
|
2066
|
+
var tmp_1 = this.exception_1;
|
|
2053
2067
|
if (tmp_1 instanceof ClosedReceiveChannelException) {
|
|
2054
|
-
var ignore_0 = this.
|
|
2055
|
-
this.
|
|
2068
|
+
var ignore_0 = this.exception_1;
|
|
2069
|
+
this.state_1 = 9;
|
|
2056
2070
|
continue $sm;
|
|
2057
2071
|
} else {
|
|
2058
|
-
var tmp_2 = this.
|
|
2072
|
+
var tmp_2 = this.exception_1;
|
|
2059
2073
|
if (tmp_2 instanceof ClosedSendChannelException) {
|
|
2060
|
-
var ignore_1 = this.
|
|
2061
|
-
this.
|
|
2074
|
+
var ignore_1 = this.exception_1;
|
|
2075
|
+
this.state_1 = 9;
|
|
2062
2076
|
continue $sm;
|
|
2063
2077
|
} else {
|
|
2064
|
-
var tmp_3 = this.
|
|
2078
|
+
var tmp_3 = this.exception_1;
|
|
2065
2079
|
if (tmp_3 instanceof ClosedByteChannelException) {
|
|
2066
|
-
var ignore_2 = this.
|
|
2067
|
-
this.
|
|
2080
|
+
var ignore_2 = this.exception_1;
|
|
2081
|
+
this.state_1 = 9;
|
|
2068
2082
|
continue $sm;
|
|
2069
2083
|
} else {
|
|
2070
|
-
throw this.
|
|
2084
|
+
throw this.exception_1;
|
|
2071
2085
|
}
|
|
2072
2086
|
}
|
|
2073
2087
|
}
|
|
2074
2088
|
}
|
|
2075
2089
|
|
|
2076
2090
|
case 8:
|
|
2077
|
-
this.
|
|
2078
|
-
return Unit_instance;
|
|
2091
|
+
throw this.exception_1;
|
|
2079
2092
|
case 9:
|
|
2080
|
-
|
|
2093
|
+
this.exceptionState_1 = 8;
|
|
2094
|
+
return Unit_instance;
|
|
2081
2095
|
}
|
|
2082
2096
|
} catch ($p) {
|
|
2083
2097
|
var e = $p;
|
|
2084
|
-
if (this.
|
|
2098
|
+
if (this.exceptionState_1 === 8) {
|
|
2085
2099
|
throw e;
|
|
2086
2100
|
} else {
|
|
2087
|
-
this.
|
|
2088
|
-
this.
|
|
2101
|
+
this.state_1 = this.exceptionState_1;
|
|
2102
|
+
this.exception_1 = e;
|
|
2089
2103
|
}
|
|
2090
2104
|
}
|
|
2091
2105
|
while (true);
|
|
2092
2106
|
};
|
|
2093
|
-
protoOf(pinger$slambda).
|
|
2094
|
-
var i = new pinger$slambda(this
|
|
2095
|
-
i
|
|
2107
|
+
protoOf(pinger$slambda).create_rcuf4x_k$ = function ($this$launch, completion) {
|
|
2108
|
+
var i = new pinger$slambda(this.$periodMillis_1, this.$timeoutMillis_1, this.$onTimeout_1, this.$channel_1, this.$outgoing_1, completion);
|
|
2109
|
+
i.$this$launch_1 = $this$launch;
|
|
2096
2110
|
return i;
|
|
2097
2111
|
};
|
|
2098
2112
|
function pinger$slambda_0($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
2099
2113
|
var i = new pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation);
|
|
2100
2114
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
2101
|
-
return i.
|
|
2115
|
+
return i.invoke_d9fzmj_k$($this$launch, $completion);
|
|
2102
2116
|
}, 1);
|
|
2103
2117
|
}
|
|
2104
2118
|
function pinger$lambda($actorJob) {
|
|
2105
2119
|
return function (it) {
|
|
2106
|
-
$actorJob.
|
|
2120
|
+
$actorJob.cancel$default_8haxne_k$();
|
|
2107
2121
|
return Unit_instance;
|
|
2108
2122
|
};
|
|
2109
2123
|
}
|
|
@@ -2116,37 +2130,37 @@ function _init_properties_PingPong_kt__9aqxey() {
|
|
|
2116
2130
|
}
|
|
2117
2131
|
}
|
|
2118
2132
|
function Companion_3() {
|
|
2119
|
-
|
|
2133
|
+
Companion_instance_4 = this;
|
|
2120
2134
|
var tmp = this;
|
|
2121
2135
|
// Inline function 'kotlin.apply' call
|
|
2122
2136
|
var this_0 = new WebSocketChannelsConfig();
|
|
2123
|
-
this_0.
|
|
2124
|
-
this_0.
|
|
2125
|
-
tmp.
|
|
2137
|
+
this_0.incoming_1 = this_0.unlimited_v80n35_k$();
|
|
2138
|
+
this_0.outgoing_1 = this_0.unlimited_v80n35_k$();
|
|
2139
|
+
tmp.UNLIMITED_1 = this_0;
|
|
2126
2140
|
}
|
|
2127
|
-
var
|
|
2128
|
-
function
|
|
2129
|
-
if (
|
|
2141
|
+
var Companion_instance_4;
|
|
2142
|
+
function Companion_getInstance_2() {
|
|
2143
|
+
if (Companion_instance_4 == null)
|
|
2130
2144
|
new Companion_3();
|
|
2131
|
-
return
|
|
2145
|
+
return Companion_instance_4;
|
|
2132
2146
|
}
|
|
2133
2147
|
function WebSocketChannelsConfig() {
|
|
2134
|
-
|
|
2135
|
-
this.
|
|
2136
|
-
this.
|
|
2148
|
+
Companion_getInstance_2();
|
|
2149
|
+
this.incoming_1 = Companion_getInstance_3().UNLIMITED_1;
|
|
2150
|
+
this.outgoing_1 = Companion_getInstance_3().UNLIMITED_1;
|
|
2137
2151
|
}
|
|
2138
|
-
protoOf(WebSocketChannelsConfig).
|
|
2139
|
-
return
|
|
2152
|
+
protoOf(WebSocketChannelsConfig).unlimited_v80n35_k$ = function () {
|
|
2153
|
+
return Companion_getInstance_3().UNLIMITED_1;
|
|
2140
2154
|
};
|
|
2141
2155
|
function from(_this__u8e3s4, config) {
|
|
2142
2156
|
// Inline function 'kotlin.with' call
|
|
2143
2157
|
var tmp;
|
|
2144
|
-
if (config.
|
|
2158
|
+
if (config.capacity_1 === 2147483647) {
|
|
2145
2159
|
tmp = Channel(2147483647);
|
|
2146
|
-
} else if (config.
|
|
2147
|
-
tmp = Channel(config.
|
|
2148
|
-
} else if (config.
|
|
2149
|
-
tmp = new BoundedChannel(config.
|
|
2160
|
+
} else if (config.onOverflow_1.equals(ChannelOverflow_SUSPEND_getInstance())) {
|
|
2161
|
+
tmp = Channel(config.capacity_1, BufferOverflow_SUSPEND_getInstance());
|
|
2162
|
+
} else if (config.onOverflow_1.equals(ChannelOverflow_CLOSE_getInstance())) {
|
|
2163
|
+
tmp = new BoundedChannel(config.capacity_1);
|
|
2150
2164
|
} else {
|
|
2151
2165
|
// Inline function 'kotlin.error' call
|
|
2152
2166
|
var message = 'Unsupported channel config.';
|
|
@@ -2155,33 +2169,33 @@ function from(_this__u8e3s4, config) {
|
|
|
2155
2169
|
return tmp;
|
|
2156
2170
|
}
|
|
2157
2171
|
function Companion_4() {
|
|
2158
|
-
|
|
2159
|
-
this.
|
|
2172
|
+
Companion_instance_5 = this;
|
|
2173
|
+
this.UNLIMITED_1 = new ChannelConfig(2147483647, ChannelOverflow_SUSPEND_getInstance());
|
|
2160
2174
|
}
|
|
2161
|
-
var
|
|
2162
|
-
function
|
|
2163
|
-
if (
|
|
2175
|
+
var Companion_instance_5;
|
|
2176
|
+
function Companion_getInstance_3() {
|
|
2177
|
+
if (Companion_instance_5 == null)
|
|
2164
2178
|
new Companion_4();
|
|
2165
|
-
return
|
|
2179
|
+
return Companion_instance_5;
|
|
2166
2180
|
}
|
|
2167
2181
|
function ChannelConfig(capacity, onOverflow) {
|
|
2168
|
-
|
|
2169
|
-
this.
|
|
2170
|
-
this.
|
|
2182
|
+
Companion_getInstance_3();
|
|
2183
|
+
this.capacity_1 = capacity;
|
|
2184
|
+
this.onOverflow_1 = onOverflow;
|
|
2171
2185
|
}
|
|
2172
|
-
protoOf(ChannelConfig).
|
|
2173
|
-
return this.
|
|
2186
|
+
protoOf(ChannelConfig).get_canSuspend_2zrbcb_k$ = function () {
|
|
2187
|
+
return this.onOverflow_1.equals(ChannelOverflow_SUSPEND_getInstance()) && !(this.capacity_1 === 2147483647);
|
|
2174
2188
|
};
|
|
2175
|
-
var
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
function ChannelOverflow_initEntries() {
|
|
2179
|
-
if (ChannelOverflow_entriesInitialized)
|
|
2189
|
+
var static_init_called_1;
|
|
2190
|
+
function static_init_1() {
|
|
2191
|
+
if (static_init_called_1)
|
|
2180
2192
|
return Unit_instance;
|
|
2181
|
-
|
|
2193
|
+
static_init_called_1 = true;
|
|
2182
2194
|
ChannelOverflow_SUSPEND_instance = new ChannelOverflow('SUSPEND', 0);
|
|
2183
2195
|
ChannelOverflow_CLOSE_instance = new ChannelOverflow('CLOSE', 1);
|
|
2184
2196
|
}
|
|
2197
|
+
var ChannelOverflow_SUSPEND_instance;
|
|
2198
|
+
var ChannelOverflow_CLOSE_instance;
|
|
2185
2199
|
function ChannelOverflow(name, ordinal) {
|
|
2186
2200
|
Enum.call(this, name, ordinal);
|
|
2187
2201
|
}
|
|
@@ -2194,14 +2208,14 @@ function BoundedChannel$Companion$createDelegate$lambda($channel) {
|
|
|
2194
2208
|
} else {
|
|
2195
2209
|
tmp_0 = $channel._v;
|
|
2196
2210
|
}
|
|
2197
|
-
if (!tmp_0.
|
|
2211
|
+
if (!tmp_0.get_isClosedForSend_ajczci_k$()) {
|
|
2198
2212
|
var tmp_1;
|
|
2199
2213
|
if ($channel._v == null) {
|
|
2200
2214
|
throwUninitializedPropertyAccessException('channel');
|
|
2201
2215
|
} else {
|
|
2202
2216
|
tmp_1 = $channel._v;
|
|
2203
2217
|
}
|
|
2204
|
-
tmp_1.
|
|
2218
|
+
tmp_1.close_ukldxa_k$(new ChannelOverflowException('Channel overflowed'));
|
|
2205
2219
|
tmp = Unit_instance;
|
|
2206
2220
|
}
|
|
2207
2221
|
return Unit_instance;
|
|
@@ -2209,7 +2223,7 @@ function BoundedChannel$Companion$createDelegate$lambda($channel) {
|
|
|
2209
2223
|
}
|
|
2210
2224
|
function Companion_5() {
|
|
2211
2225
|
}
|
|
2212
|
-
protoOf(Companion_5).
|
|
2226
|
+
protoOf(Companion_5).createDelegate_n5r3h5_k$ = function (capacity) {
|
|
2213
2227
|
var channel = {_v: null};
|
|
2214
2228
|
var tmp = BufferOverflow_DROP_OLDEST_getInstance();
|
|
2215
2229
|
// Inline function 'kotlin.also' call
|
|
@@ -2217,58 +2231,58 @@ protoOf(Companion_5).k3b = function (capacity) {
|
|
|
2217
2231
|
channel._v = this_0;
|
|
2218
2232
|
return this_0;
|
|
2219
2233
|
};
|
|
2220
|
-
var
|
|
2221
|
-
function
|
|
2222
|
-
return
|
|
2234
|
+
var Companion_instance_6;
|
|
2235
|
+
function Companion_getInstance_4() {
|
|
2236
|
+
return Companion_instance_6;
|
|
2223
2237
|
}
|
|
2224
2238
|
function BoundedChannel(capacity, delegate) {
|
|
2225
|
-
delegate = delegate === VOID ?
|
|
2226
|
-
this.
|
|
2239
|
+
delegate = delegate === VOID ? Companion_instance_6.createDelegate_n5r3h5_k$(capacity) : delegate;
|
|
2240
|
+
this.delegate_1 = delegate;
|
|
2227
2241
|
}
|
|
2228
|
-
protoOf(BoundedChannel).
|
|
2229
|
-
var result = this.
|
|
2242
|
+
protoOf(BoundedChannel).trySend_w1juo7_k$ = function (element) {
|
|
2243
|
+
var result = this.delegate_1.trySend_62dpg8_k$(element);
|
|
2230
2244
|
if (!_ChannelResult___get_isSuccess__impl__odq1z9(result) && !_ChannelResult___get_isClosed__impl__mg7kuu(result)) {
|
|
2231
|
-
this.
|
|
2245
|
+
this.close_ukldxa_k$(new ChannelOverflowException('Channel overflowed'));
|
|
2232
2246
|
}
|
|
2233
2247
|
return result;
|
|
2234
2248
|
};
|
|
2235
|
-
protoOf(BoundedChannel).
|
|
2236
|
-
return this.
|
|
2249
|
+
protoOf(BoundedChannel).trySend_62dpg8_k$ = function (element) {
|
|
2250
|
+
return this.trySend_w1juo7_k$(element);
|
|
2237
2251
|
};
|
|
2238
|
-
protoOf(BoundedChannel).
|
|
2239
|
-
return this.
|
|
2252
|
+
protoOf(BoundedChannel).send_7nf3lq_k$ = function (element, $completion) {
|
|
2253
|
+
return this.delegate_1.send_44jogj_k$(element, $completion);
|
|
2240
2254
|
};
|
|
2241
|
-
protoOf(BoundedChannel).
|
|
2242
|
-
return this.
|
|
2255
|
+
protoOf(BoundedChannel).send_44jogj_k$ = function (element, $completion) {
|
|
2256
|
+
return this.send_7nf3lq_k$(element, $completion);
|
|
2243
2257
|
};
|
|
2244
|
-
protoOf(BoundedChannel).
|
|
2245
|
-
return this.
|
|
2258
|
+
protoOf(BoundedChannel).close_ukldxa_k$ = function (cause) {
|
|
2259
|
+
return this.delegate_1.close_ukldxa_k$(cause);
|
|
2246
2260
|
};
|
|
2247
|
-
protoOf(BoundedChannel).
|
|
2248
|
-
return this.
|
|
2261
|
+
protoOf(BoundedChannel).get_isClosedForSend_ajczci_k$ = function () {
|
|
2262
|
+
return this.delegate_1.get_isClosedForSend_ajczci_k$();
|
|
2249
2263
|
};
|
|
2250
|
-
protoOf(BoundedChannel).
|
|
2251
|
-
return this.
|
|
2264
|
+
protoOf(BoundedChannel).receive_cnugsq_k$ = function ($completion) {
|
|
2265
|
+
return this.delegate_1.receive_awoumx_k$($completion);
|
|
2252
2266
|
};
|
|
2253
|
-
protoOf(BoundedChannel).
|
|
2254
|
-
return this.
|
|
2267
|
+
protoOf(BoundedChannel).receive_awoumx_k$ = function ($completion) {
|
|
2268
|
+
return this.receive_cnugsq_k$($completion);
|
|
2255
2269
|
};
|
|
2256
|
-
protoOf(BoundedChannel).
|
|
2257
|
-
return this.
|
|
2270
|
+
protoOf(BoundedChannel).iterator_jk1svi_k$ = function () {
|
|
2271
|
+
return this.delegate_1.iterator_jk1svi_k$();
|
|
2258
2272
|
};
|
|
2259
|
-
protoOf(BoundedChannel).
|
|
2260
|
-
this.
|
|
2273
|
+
protoOf(BoundedChannel).cancel_hkmm2i_k$ = function (cause) {
|
|
2274
|
+
this.delegate_1.cancel_hkmm2i_k$(cause);
|
|
2261
2275
|
};
|
|
2262
2276
|
function ChannelOverflowException(message) {
|
|
2263
2277
|
RuntimeException_init_$Init$(message, this);
|
|
2264
2278
|
captureStack(this, ChannelOverflowException);
|
|
2265
2279
|
}
|
|
2266
2280
|
function ChannelOverflow_SUSPEND_getInstance() {
|
|
2267
|
-
|
|
2281
|
+
static_init_1();
|
|
2268
2282
|
return ChannelOverflow_SUSPEND_instance;
|
|
2269
2283
|
}
|
|
2270
2284
|
function ChannelOverflow_CLOSE_getInstance() {
|
|
2271
|
-
|
|
2285
|
+
static_init_1();
|
|
2272
2286
|
return ChannelOverflow_CLOSE_instance;
|
|
2273
2287
|
}
|
|
2274
2288
|
function WebSocketExtension() {
|
|
@@ -2276,44 +2290,44 @@ function WebSocketExtension() {
|
|
|
2276
2290
|
function WebSocketExtensionsConfig() {
|
|
2277
2291
|
var tmp = this;
|
|
2278
2292
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2279
|
-
tmp.
|
|
2293
|
+
tmp.installers_1 = ArrayList_init_$Create$();
|
|
2280
2294
|
var tmp_0 = this;
|
|
2281
2295
|
// Inline function 'kotlin.arrayOf' call
|
|
2282
2296
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2283
2297
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2284
|
-
tmp_0.
|
|
2298
|
+
tmp_0.rcv_1 = [false, false, false];
|
|
2285
2299
|
}
|
|
2286
|
-
protoOf(WebSocketExtensionsConfig).
|
|
2300
|
+
protoOf(WebSocketExtensionsConfig).build_1k0s4u_k$ = function () {
|
|
2287
2301
|
// Inline function 'kotlin.collections.map' call
|
|
2288
|
-
var this_0 = this.
|
|
2302
|
+
var this_0 = this.installers_1;
|
|
2289
2303
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2290
2304
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2291
|
-
var _iterator__ex2g4s = this_0.
|
|
2292
|
-
while (_iterator__ex2g4s.
|
|
2293
|
-
var item = _iterator__ex2g4s.
|
|
2305
|
+
var _iterator__ex2g4s = this_0.iterator_jk1svi_k$();
|
|
2306
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
2307
|
+
var item = _iterator__ex2g4s.next_20eer_k$();
|
|
2294
2308
|
var tmp$ret$2 = item();
|
|
2295
|
-
destination.
|
|
2309
|
+
destination.add_utx5q5_k$(tmp$ret$2);
|
|
2296
2310
|
}
|
|
2297
2311
|
return destination;
|
|
2298
2312
|
};
|
|
2299
2313
|
function parametersToString($this) {
|
|
2300
|
-
return $this.
|
|
2314
|
+
return $this.parameters_1.isEmpty_y1axqb_k$() ? '' : '; ' + joinToString($this.parameters_1, ';');
|
|
2301
2315
|
}
|
|
2302
2316
|
function WebSocketExtensionHeader(name, parameters) {
|
|
2303
|
-
this.
|
|
2304
|
-
this.
|
|
2317
|
+
this.name_1 = name;
|
|
2318
|
+
this.parameters_1 = parameters;
|
|
2305
2319
|
}
|
|
2306
2320
|
protoOf(WebSocketExtensionHeader).toString = function () {
|
|
2307
|
-
return this.
|
|
2321
|
+
return this.name_1 + ' ' + parametersToString(this);
|
|
2308
2322
|
};
|
|
2309
2323
|
function parseWebSocketExtensions(value) {
|
|
2310
2324
|
// Inline function 'kotlin.collections.map' call
|
|
2311
2325
|
var this_0 = split(value, [',']);
|
|
2312
2326
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2313
2327
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2314
|
-
var _iterator__ex2g4s = this_0.
|
|
2315
|
-
while (_iterator__ex2g4s.
|
|
2316
|
-
var item = _iterator__ex2g4s.
|
|
2328
|
+
var _iterator__ex2g4s = this_0.iterator_jk1svi_k$();
|
|
2329
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
2330
|
+
var item = _iterator__ex2g4s.next_20eer_k$();
|
|
2317
2331
|
var extension = split(item, [';']);
|
|
2318
2332
|
// Inline function 'kotlin.text.trim' call
|
|
2319
2333
|
var this_1 = first(extension);
|
|
@@ -2322,16 +2336,16 @@ function parseWebSocketExtensions(value) {
|
|
|
2322
2336
|
var this_2 = drop(extension, 1);
|
|
2323
2337
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2324
2338
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
|
|
2325
|
-
var _iterator__ex2g4s_0 = this_2.
|
|
2326
|
-
while (_iterator__ex2g4s_0.
|
|
2327
|
-
var item_0 = _iterator__ex2g4s_0.
|
|
2339
|
+
var _iterator__ex2g4s_0 = this_2.iterator_jk1svi_k$();
|
|
2340
|
+
while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
|
|
2341
|
+
var item_0 = _iterator__ex2g4s_0.next_20eer_k$();
|
|
2328
2342
|
// Inline function 'kotlin.text.trim' call
|
|
2329
2343
|
var tmp$ret$6 = toString(trim(isCharSequence(item_0) ? item_0 : THROW_CCE()));
|
|
2330
|
-
destination_0.
|
|
2344
|
+
destination_0.add_utx5q5_k$(tmp$ret$6);
|
|
2331
2345
|
}
|
|
2332
2346
|
var parameters = destination_0;
|
|
2333
2347
|
var tmp$ret$2 = new WebSocketExtensionHeader(name, parameters);
|
|
2334
|
-
destination.
|
|
2348
|
+
destination.add_utx5q5_k$(tmp$ret$2);
|
|
2335
2349
|
}
|
|
2336
2350
|
return destination;
|
|
2337
2351
|
}
|
|
@@ -2340,9 +2354,9 @@ function WebSocketSession() {
|
|
|
2340
2354
|
function close(_this__u8e3s4, reason, $completion) {
|
|
2341
2355
|
reason = reason === VOID ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : reason;
|
|
2342
2356
|
var tmp = new $closeCOROUTINE$(_this__u8e3s4, reason, $completion);
|
|
2343
|
-
tmp.
|
|
2344
|
-
tmp.
|
|
2345
|
-
return tmp.
|
|
2357
|
+
tmp.result_1 = Unit_instance;
|
|
2358
|
+
tmp.exception_1 = null;
|
|
2359
|
+
return tmp.doResume_5yljmg_k$();
|
|
2346
2360
|
}
|
|
2347
2361
|
function closeExceptionally(_this__u8e3s4, cause, $completion) {
|
|
2348
2362
|
var tmp;
|
|
@@ -2357,61 +2371,61 @@ function closeExceptionally(_this__u8e3s4, cause, $completion) {
|
|
|
2357
2371
|
}
|
|
2358
2372
|
function $closeCOROUTINE$(_this__u8e3s4, reason, resultContinuation) {
|
|
2359
2373
|
CoroutineImpl.call(this, resultContinuation);
|
|
2360
|
-
this.
|
|
2361
|
-
this.
|
|
2374
|
+
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
2375
|
+
this.reason_1 = reason;
|
|
2362
2376
|
}
|
|
2363
|
-
protoOf($closeCOROUTINE$).
|
|
2364
|
-
var suspendResult = this.
|
|
2377
|
+
protoOf($closeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
2378
|
+
var suspendResult = this.result_1;
|
|
2365
2379
|
$sm: do
|
|
2366
2380
|
try {
|
|
2367
|
-
var tmp = this.
|
|
2381
|
+
var tmp = this.state_1;
|
|
2368
2382
|
switch (tmp) {
|
|
2369
2383
|
case 0:
|
|
2370
|
-
this.
|
|
2371
|
-
this.
|
|
2372
|
-
this.
|
|
2373
|
-
suspendResult = this.
|
|
2384
|
+
this.exceptionState_1 = 4;
|
|
2385
|
+
this.exceptionState_1 = 3;
|
|
2386
|
+
this.state_1 = 1;
|
|
2387
|
+
suspendResult = this._this__u8e3s4__1.send_sburzs_k$(Close_init_$Create$(this.reason_1), this);
|
|
2374
2388
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2375
2389
|
return suspendResult;
|
|
2376
2390
|
}
|
|
2377
2391
|
|
|
2378
2392
|
continue $sm;
|
|
2379
2393
|
case 1:
|
|
2380
|
-
this.
|
|
2381
|
-
suspendResult = this.
|
|
2394
|
+
this.state_1 = 2;
|
|
2395
|
+
suspendResult = this._this__u8e3s4__1.flush_4wsz1p_k$(this);
|
|
2382
2396
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2383
2397
|
return suspendResult;
|
|
2384
2398
|
}
|
|
2385
2399
|
|
|
2386
2400
|
continue $sm;
|
|
2387
2401
|
case 2:
|
|
2388
|
-
this.
|
|
2389
|
-
this.
|
|
2402
|
+
this.exceptionState_1 = 4;
|
|
2403
|
+
this.state_1 = 5;
|
|
2390
2404
|
continue $sm;
|
|
2391
2405
|
case 3:
|
|
2392
|
-
this.
|
|
2393
|
-
var tmp_0 = this.
|
|
2406
|
+
this.exceptionState_1 = 4;
|
|
2407
|
+
var tmp_0 = this.exception_1;
|
|
2394
2408
|
if (tmp_0 instanceof Error) {
|
|
2395
|
-
var _unused_var__etf5q3 = this.
|
|
2396
|
-
this.
|
|
2409
|
+
var _unused_var__etf5q3 = this.exception_1;
|
|
2410
|
+
this.state_1 = 5;
|
|
2397
2411
|
continue $sm;
|
|
2398
2412
|
} else {
|
|
2399
|
-
throw this.
|
|
2413
|
+
throw this.exception_1;
|
|
2400
2414
|
}
|
|
2401
2415
|
|
|
2402
2416
|
case 4:
|
|
2403
|
-
throw this.
|
|
2417
|
+
throw this.exception_1;
|
|
2404
2418
|
case 5:
|
|
2405
|
-
this.
|
|
2419
|
+
this.exceptionState_1 = 4;
|
|
2406
2420
|
return Unit_instance;
|
|
2407
2421
|
}
|
|
2408
2422
|
} catch ($p) {
|
|
2409
2423
|
var e = $p;
|
|
2410
|
-
if (this.
|
|
2424
|
+
if (this.exceptionState_1 === 4) {
|
|
2411
2425
|
throw e;
|
|
2412
2426
|
} else {
|
|
2413
|
-
this.
|
|
2414
|
-
this.
|
|
2427
|
+
this.state_1 = this.exceptionState_1;
|
|
2428
|
+
this.exception_1 = e;
|
|
2415
2429
|
}
|
|
2416
2430
|
}
|
|
2417
2431
|
while (true);
|
|
@@ -2437,8 +2451,8 @@ function Text_init_$Create$(text) {
|
|
|
2437
2451
|
function Close_init_$Init$(reason, $this) {
|
|
2438
2452
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
2439
2453
|
var builder = new Buffer();
|
|
2440
|
-
builder.
|
|
2441
|
-
writeText(builder, reason.
|
|
2454
|
+
builder.writeShort_vn2jsb_k$(reason.code_1);
|
|
2455
|
+
writeText(builder, reason.message_1);
|
|
2442
2456
|
Close_init_$Init$_0(builder, $this);
|
|
2443
2457
|
return $this;
|
|
2444
2458
|
}
|
|
@@ -2450,7 +2464,7 @@ function Close_init_$Init$_0(packet, $this) {
|
|
|
2450
2464
|
return $this;
|
|
2451
2465
|
}
|
|
2452
2466
|
function Close_init_$Init$_1($this) {
|
|
2453
|
-
Close.call($this,
|
|
2467
|
+
Close.call($this, Companion_getInstance_5().Empty_1);
|
|
2454
2468
|
return $this;
|
|
2455
2469
|
}
|
|
2456
2470
|
function Close_init_$Create$_0() {
|
|
@@ -2479,12 +2493,12 @@ function Pong(data, disposableHandle) {
|
|
|
2479
2493
|
Frame.call(this, true, FrameType_PONG_getInstance(), data, disposableHandle, false, false, false);
|
|
2480
2494
|
}
|
|
2481
2495
|
function Companion_6() {
|
|
2482
|
-
|
|
2483
|
-
this.
|
|
2496
|
+
Companion_instance_7 = this;
|
|
2497
|
+
this.Empty_1 = new Int8Array(0);
|
|
2484
2498
|
}
|
|
2485
|
-
protoOf(Companion_6).
|
|
2499
|
+
protoOf(Companion_6).byType_2g4m5x_k$ = function (fin, frameType, data, rsv1, rsv2, rsv3) {
|
|
2486
2500
|
var tmp;
|
|
2487
|
-
switch (frameType.
|
|
2501
|
+
switch (frameType.ordinal_1) {
|
|
2488
2502
|
case 1:
|
|
2489
2503
|
tmp = new Binary(fin, data, rsv1, rsv2, rsv3);
|
|
2490
2504
|
break;
|
|
@@ -2506,58 +2520,58 @@ protoOf(Companion_6).c38 = function (fin, frameType, data, rsv1, rsv2, rsv3) {
|
|
|
2506
2520
|
}
|
|
2507
2521
|
return tmp;
|
|
2508
2522
|
};
|
|
2509
|
-
var
|
|
2510
|
-
function
|
|
2511
|
-
if (
|
|
2523
|
+
var Companion_instance_7;
|
|
2524
|
+
function Companion_getInstance_5() {
|
|
2525
|
+
if (Companion_instance_7 == null)
|
|
2512
2526
|
new Companion_6();
|
|
2513
|
-
return
|
|
2527
|
+
return Companion_instance_7;
|
|
2514
2528
|
}
|
|
2515
2529
|
function Frame(fin, frameType, data, disposableHandle, rsv1, rsv2, rsv3) {
|
|
2516
|
-
|
|
2530
|
+
Companion_getInstance_5();
|
|
2517
2531
|
disposableHandle = disposableHandle === VOID ? NonDisposableHandle_instance : disposableHandle;
|
|
2518
2532
|
rsv1 = rsv1 === VOID ? false : rsv1;
|
|
2519
2533
|
rsv2 = rsv2 === VOID ? false : rsv2;
|
|
2520
2534
|
rsv3 = rsv3 === VOID ? false : rsv3;
|
|
2521
|
-
this.
|
|
2522
|
-
this.
|
|
2523
|
-
this.
|
|
2524
|
-
this.
|
|
2525
|
-
this.
|
|
2526
|
-
this.
|
|
2527
|
-
this.
|
|
2535
|
+
this.fin_1 = fin;
|
|
2536
|
+
this.frameType_1 = frameType;
|
|
2537
|
+
this.data_1 = data;
|
|
2538
|
+
this.disposableHandle_1 = disposableHandle;
|
|
2539
|
+
this.rsv1__1 = rsv1;
|
|
2540
|
+
this.rsv2__1 = rsv2;
|
|
2541
|
+
this.rsv3__1 = rsv3;
|
|
2528
2542
|
validateSize(this);
|
|
2529
2543
|
}
|
|
2530
2544
|
protoOf(Frame).toString = function () {
|
|
2531
|
-
return 'Frame ' + this.
|
|
2545
|
+
return 'Frame ' + this.frameType_1.toString() + ' (fin=' + this.fin_1 + ', buffer len = ' + this.data_1.length + ')';
|
|
2532
2546
|
};
|
|
2533
2547
|
function get_OUTGOING_CHANNEL_CAPACITY() {
|
|
2534
2548
|
return OUTGOING_CHANNEL_CAPACITY;
|
|
2535
2549
|
}
|
|
2536
2550
|
var OUTGOING_CHANNEL_CAPACITY;
|
|
2537
2551
|
//region block: post-declaration
|
|
2538
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
2552
|
+
protoOf(DefaultWebSocketSessionImpl).send_sburzs_k$ = send;
|
|
2539
2553
|
defineProp(protoOf(FrameTooBigException), 'message', function () {
|
|
2540
|
-
return this.
|
|
2554
|
+
return this.get_message_h23axq_k$();
|
|
2541
2555
|
});
|
|
2542
|
-
protoOf(BoundedChannel).
|
|
2543
|
-
protoOf(BoundedChannel).
|
|
2556
|
+
protoOf(BoundedChannel).close$default_kcbl7u_k$ = close$default;
|
|
2557
|
+
protoOf(BoundedChannel).cancel$default_880p35_k$ = cancel$default;
|
|
2544
2558
|
//endregion
|
|
2545
2559
|
//region block: init
|
|
2546
|
-
|
|
2560
|
+
Companion_instance_1 = new Companion_0();
|
|
2547
2561
|
NonDisposableHandle_instance = new NonDisposableHandle();
|
|
2548
|
-
|
|
2562
|
+
Companion_instance_6 = new Companion_5();
|
|
2549
2563
|
OUTGOING_CHANNEL_CAPACITY = null;
|
|
2550
2564
|
//endregion
|
|
2551
2565
|
//region block: exports
|
|
2552
2566
|
export {
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
send as
|
|
2558
|
-
Binary_init_$Create$ as Binary_init_$Create$
|
|
2559
|
-
Close_init_$Create$ as Close_init_$Create$
|
|
2560
|
-
Text_init_$Create$ as Text_init_$Create$
|
|
2567
|
+
Codes_CLOSED_ABNORMALLY_getInstance as Codes_CLOSED_ABNORMALLY_getInstance1bzb878jpjbg8,
|
|
2568
|
+
Codes_NORMAL_getInstance as Codes_NORMAL_getInstance3dr9ood98owg7,
|
|
2569
|
+
Companion_getInstance as Companion_getInstance34aryltzqunru,
|
|
2570
|
+
Companion_getInstance_2 as Companion_getInstance1pwau9pkopj,
|
|
2571
|
+
send as send1afreql7wqu1y,
|
|
2572
|
+
Binary_init_$Create$ as Binary_init_$Create$2uww1ys6mbad9,
|
|
2573
|
+
Close_init_$Create$ as Close_init_$Create$8lnqy4gvr249,
|
|
2574
|
+
Text_init_$Create$ as Text_init_$Create$3herj3l1ekmc9,
|
|
2561
2575
|
CloseReason as CloseReason10cphaqpp3ct7,
|
|
2562
2576
|
DefaultWebSocketSession_0 as DefaultWebSocketSessionmehckluw85jl,
|
|
2563
2577
|
DefaultWebSocketSession as DefaultWebSocketSession3h8506yqzs5fx,
|