@doordeck/doordeck-headless-sdk 0.201.0 → 0.202.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kermit-kermit-core.js +58 -58
- package/kotlin/Kermit-kermit.js +8 -8
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +22 -22
- package/kotlin/doordeck-sdk.d.ts +1 -0
- package/kotlin/doordeck-sdk.js +12764 -12709
- package/kotlin/kotlin-kotlin-stdlib.js +2780 -2207
- package/kotlin/kotlinx-atomicfu.js +21 -21
- package/kotlin/kotlinx-coroutines-core.js +2837 -2759
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +50 -50
- package/kotlin/kotlinx-io-kotlinx-io-core.js +487 -487
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1918 -1918
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1540 -1540
- package/kotlin/ktor-ktor-client-auth.js +461 -461
- package/kotlin/ktor-ktor-client-content-negotiation.js +217 -217
- package/kotlin/ktor-ktor-client-core.js +3364 -3349
- package/kotlin/ktor-ktor-client-logging.js +1128 -1128
- package/kotlin/ktor-ktor-events.js +11 -11
- package/kotlin/ktor-ktor-http-cio.js +548 -548
- package/kotlin/ktor-ktor-http.js +834 -832
- package/kotlin/ktor-ktor-io.js +1373 -1181
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/kotlin/ktor-ktor-serialization-kotlinx.js +327 -254
- package/kotlin/ktor-ktor-serialization.js +119 -119
- package/kotlin/ktor-ktor-utils.js +1169 -1134
- package/kotlin/ktor-ktor-websockets.js +792 -794
- package/package.json +1 -1
|
@@ -2,50 +2,50 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
6
|
-
var mapCapacity = kotlin_kotlin.$_$.
|
|
7
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
5
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.b6;
|
|
6
|
+
var mapCapacity = kotlin_kotlin.$_$.u7;
|
|
7
|
+
var coerceAtLeast = kotlin_kotlin.$_$.oc;
|
|
8
8
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
9
9
|
var Unit_instance = kotlin_kotlin.$_$.a1;
|
|
10
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
11
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
12
|
-
var enumEntries = kotlin_kotlin.$_$.
|
|
13
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
14
|
-
var Enum = kotlin_kotlin.$_$.
|
|
15
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
10
|
+
var protoOf = kotlin_kotlin.$_$.gc;
|
|
11
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.kb;
|
|
12
|
+
var enumEntries = kotlin_kotlin.$_$.u9;
|
|
13
|
+
var objectCreate = kotlin_kotlin.$_$.fc;
|
|
14
|
+
var Enum = kotlin_kotlin.$_$.yf;
|
|
15
|
+
var initMetadataForClass = kotlin_kotlin.$_$.jb;
|
|
16
16
|
var VOID = kotlin_kotlin.$_$.c;
|
|
17
|
-
var toString = kotlin_kotlin.$_$.
|
|
18
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
19
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
20
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
21
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
17
|
+
var toString = kotlin_kotlin.$_$.jc;
|
|
18
|
+
var getStringHashCode = kotlin_kotlin.$_$.hb;
|
|
19
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.nb;
|
|
20
|
+
var isInterface = kotlin_kotlin.$_$.yb;
|
|
21
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.p2;
|
|
22
22
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c;
|
|
23
23
|
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b2;
|
|
24
24
|
var CoroutineStart_UNDISPATCHED_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i;
|
|
25
25
|
var ChannelResult = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u;
|
|
26
26
|
var _ChannelResult___get_isSuccess__impl__odq1z9 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
|
|
27
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
28
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
27
|
+
var CoroutineImpl = kotlin_kotlin.$_$.s9;
|
|
28
|
+
var THROW_CCE = kotlin_kotlin.$_$.hg;
|
|
29
29
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r1;
|
|
30
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
31
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
32
|
-
var get_isTraceEnabled = kotlin_io_ktor_ktor_utils.$_$.
|
|
30
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.b9;
|
|
31
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.ob;
|
|
32
|
+
var get_isTraceEnabled = kotlin_io_ktor_ktor_utils.$_$.k;
|
|
33
33
|
var BytePacketBuilder = kotlin_io_ktor_ktor_io.$_$.x;
|
|
34
34
|
var writeFully = kotlin_io_ktor_ktor_io.$_$.g1;
|
|
35
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
35
|
+
var ensureNotNull = kotlin_kotlin.$_$.zg;
|
|
36
36
|
var build = kotlin_io_ktor_ktor_io.$_$.y;
|
|
37
37
|
var readByteArray = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
38
38
|
var cancelConsumed = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b1;
|
|
39
39
|
var ClosedSendChannelException = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.x;
|
|
40
40
|
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.a2;
|
|
41
41
|
var ChannelIOException = kotlin_io_ktor_ktor_utils.$_$.d;
|
|
42
|
-
var CancellationException = kotlin_kotlin.$_$.
|
|
42
|
+
var CancellationException = kotlin_kotlin.$_$.a9;
|
|
43
43
|
var ClosedReceiveChannelException = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.w;
|
|
44
44
|
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
45
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
46
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
45
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.lb;
|
|
46
|
+
var toString_0 = kotlin_kotlin.$_$.kh;
|
|
47
47
|
var get_size = kotlin_io_ktor_ktor_io.$_$.d1;
|
|
48
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
48
|
+
var fromInt = kotlin_kotlin.$_$.da;
|
|
49
49
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
|
|
50
50
|
var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l1;
|
|
51
51
|
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t1;
|
|
@@ -54,54 +54,53 @@
|
|
|
54
54
|
var Factory_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a;
|
|
55
55
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.b;
|
|
56
56
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k1;
|
|
57
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
58
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
59
|
-
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.
|
|
57
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.t2;
|
|
58
|
+
var joinToString = kotlin_kotlin.$_$.m7;
|
|
59
|
+
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.j;
|
|
60
60
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
61
61
|
var readText = kotlin_io_ktor_ktor_io.$_$.b1;
|
|
62
62
|
var DisposableHandle = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s1;
|
|
63
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
64
|
-
var Exception = kotlin_kotlin.$_$.
|
|
63
|
+
var initMetadataForObject = kotlin_kotlin.$_$.pb;
|
|
64
|
+
var Exception = kotlin_kotlin.$_$.ag;
|
|
65
65
|
var Exception_init_$Init$ = kotlin_kotlin.$_$.h2;
|
|
66
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
67
|
-
var
|
|
68
|
-
var defineProp = kotlin_kotlin.$_$.ya;
|
|
66
|
+
var captureStack = kotlin_kotlin.$_$.sa;
|
|
67
|
+
var defineProp = kotlin_kotlin.$_$.ab;
|
|
69
68
|
var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n1;
|
|
70
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
69
|
+
var compareTo = kotlin_kotlin.$_$.za;
|
|
71
70
|
var Channel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.v;
|
|
72
71
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.a;
|
|
73
72
|
var toByteArray = kotlin_io_ktor_ktor_io.$_$.f1;
|
|
74
|
-
var decodeToString = kotlin_kotlin.$_$.
|
|
73
|
+
var decodeToString = kotlin_kotlin.$_$.md;
|
|
75
74
|
var getTimeMillis = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
76
|
-
var Random = kotlin_kotlin.$_$.
|
|
75
|
+
var Random = kotlin_kotlin.$_$.mc;
|
|
77
76
|
var withTimeoutOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p;
|
|
78
|
-
var
|
|
77
|
+
var toHexString = kotlin_kotlin.$_$.ye;
|
|
79
78
|
var ClosedByteChannelException = kotlin_io_ktor_ktor_io.$_$.o1;
|
|
80
79
|
var BufferOverflow_SUSPEND_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.h;
|
|
81
|
-
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.
|
|
80
|
+
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.v9;
|
|
82
81
|
var BufferOverflow_DROP_OLDEST_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g;
|
|
83
82
|
var _ChannelResult___get_isClosed__impl__mg7kuu = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s;
|
|
84
83
|
var close$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r;
|
|
85
84
|
var cancel$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q;
|
|
86
|
-
var ReceiveChannel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z;
|
|
87
85
|
var SendChannel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a1;
|
|
88
|
-
var
|
|
89
|
-
var
|
|
86
|
+
var ReceiveChannel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z;
|
|
87
|
+
var RuntimeException = kotlin_kotlin.$_$.gg;
|
|
88
|
+
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.b3;
|
|
90
89
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.j1;
|
|
91
|
-
var split = kotlin_kotlin.$_$.
|
|
92
|
-
var first = kotlin_kotlin.$_$.
|
|
93
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
94
|
-
var trim = kotlin_kotlin.$_$.
|
|
95
|
-
var drop = kotlin_kotlin.$_$.
|
|
90
|
+
var split = kotlin_kotlin.$_$.he;
|
|
91
|
+
var first = kotlin_kotlin.$_$.e7;
|
|
92
|
+
var isCharSequence = kotlin_kotlin.$_$.ub;
|
|
93
|
+
var trim = kotlin_kotlin.$_$.lf;
|
|
94
|
+
var drop = kotlin_kotlin.$_$.v6;
|
|
96
95
|
var writeText = kotlin_io_ktor_ktor_io.$_$.h1;
|
|
97
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
96
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.gh;
|
|
98
97
|
//endregion
|
|
99
98
|
//region block: pre-declaration
|
|
100
99
|
initMetadataForCompanion(Companion);
|
|
101
100
|
initMetadataForClass(Codes, 'Codes', VOID, Enum);
|
|
102
101
|
initMetadataForClass(CloseReason, 'CloseReason');
|
|
103
102
|
function send(frame, $completion) {
|
|
104
|
-
return this.
|
|
103
|
+
return this.s3e().s1c(frame, $completion);
|
|
105
104
|
}
|
|
106
105
|
initMetadataForInterface(WebSocketSession, 'WebSocketSession', VOID, VOID, [CoroutineScope], [1, 0]);
|
|
107
106
|
initMetadataForInterface(DefaultWebSocketSession, 'DefaultWebSocketSession', VOID, VOID, [WebSocketSession], [1, 0]);
|
|
@@ -128,7 +127,7 @@
|
|
|
128
127
|
initMetadataForClass(ChannelConfig, 'ChannelConfig');
|
|
129
128
|
initMetadataForClass(ChannelOverflow, 'ChannelOverflow', VOID, Enum);
|
|
130
129
|
initMetadataForCompanion(Companion_4);
|
|
131
|
-
initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [
|
|
130
|
+
initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [SendChannel, ReceiveChannel], [1, 0]);
|
|
132
131
|
initMetadataForClass(ChannelOverflowException, 'ChannelOverflowException', VOID, RuntimeException);
|
|
133
132
|
initMetadataForInterface(WebSocketExtension, 'WebSocketExtension');
|
|
134
133
|
initMetadataForClass(WebSocketExtensionsConfig, 'WebSocketExtensionsConfig', WebSocketExtensionsConfig);
|
|
@@ -165,14 +164,14 @@
|
|
|
165
164
|
var _iterator__ex2g4s = this_0.t();
|
|
166
165
|
while (_iterator__ex2g4s.u()) {
|
|
167
166
|
var element = _iterator__ex2g4s.v();
|
|
168
|
-
var tmp$ret$2 = element.
|
|
167
|
+
var tmp$ret$2 = element.h3e_1;
|
|
169
168
|
destination.y2(tmp$ret$2, element);
|
|
170
169
|
}
|
|
171
|
-
tmp.
|
|
172
|
-
this.
|
|
170
|
+
tmp.i3e_1 = destination;
|
|
171
|
+
this.j3e_1 = Codes_INTERNAL_ERROR_getInstance();
|
|
173
172
|
}
|
|
174
|
-
protoOf(Companion).
|
|
175
|
-
return this.
|
|
173
|
+
protoOf(Companion).k3e = function (code) {
|
|
174
|
+
return this.i3e_1.g3(code);
|
|
176
175
|
};
|
|
177
176
|
var Companion_instance;
|
|
178
177
|
function Companion_getInstance() {
|
|
@@ -210,7 +209,7 @@
|
|
|
210
209
|
}
|
|
211
210
|
var $ENTRIES;
|
|
212
211
|
function CloseReason_init_$Init$(code, message, $this) {
|
|
213
|
-
CloseReason.call($this, code.
|
|
212
|
+
CloseReason.call($this, code.h3e_1, message);
|
|
214
213
|
return $this;
|
|
215
214
|
}
|
|
216
215
|
function CloseReason_init_$Create$(code, message) {
|
|
@@ -218,7 +217,7 @@
|
|
|
218
217
|
}
|
|
219
218
|
function Codes(name, ordinal, code) {
|
|
220
219
|
Enum.call(this, name, ordinal);
|
|
221
|
-
this.
|
|
220
|
+
this.h3e_1 = code;
|
|
222
221
|
}
|
|
223
222
|
function Codes_NORMAL_getInstance() {
|
|
224
223
|
Codes_initEntries();
|
|
@@ -269,19 +268,19 @@
|
|
|
269
268
|
return Codes_TRY_AGAIN_LATER_instance;
|
|
270
269
|
}
|
|
271
270
|
function CloseReason(code, message) {
|
|
272
|
-
this.
|
|
273
|
-
this.
|
|
271
|
+
this.l3e_1 = code;
|
|
272
|
+
this.m3e_1 = message;
|
|
274
273
|
}
|
|
275
|
-
protoOf(CloseReason).
|
|
276
|
-
return Companion_getInstance().
|
|
274
|
+
protoOf(CloseReason).n3e = function () {
|
|
275
|
+
return Companion_getInstance().k3e(this.l3e_1);
|
|
277
276
|
};
|
|
278
277
|
protoOf(CloseReason).toString = function () {
|
|
279
|
-
var tmp0_elvis_lhs = this.
|
|
280
|
-
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.
|
|
278
|
+
var tmp0_elvis_lhs = this.n3e();
|
|
279
|
+
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.l3e_1 : tmp0_elvis_lhs) + ', message=' + this.m3e_1 + ')';
|
|
281
280
|
};
|
|
282
281
|
protoOf(CloseReason).hashCode = function () {
|
|
283
|
-
var result = this.
|
|
284
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
282
|
+
var result = this.l3e_1;
|
|
283
|
+
result = imul(result, 31) + getStringHashCode(this.m3e_1) | 0;
|
|
285
284
|
return result;
|
|
286
285
|
};
|
|
287
286
|
protoOf(CloseReason).equals = function (other) {
|
|
@@ -289,9 +288,9 @@
|
|
|
289
288
|
return true;
|
|
290
289
|
if (!(other instanceof CloseReason))
|
|
291
290
|
return false;
|
|
292
|
-
if (!(this.
|
|
291
|
+
if (!(this.l3e_1 === other.l3e_1))
|
|
293
292
|
return false;
|
|
294
|
-
if (!(this.
|
|
293
|
+
if (!(this.m3e_1 === other.m3e_1))
|
|
295
294
|
return false;
|
|
296
295
|
return true;
|
|
297
296
|
};
|
|
@@ -321,98 +320,98 @@
|
|
|
321
320
|
function DefaultWebSocketSession_0(session, pingIntervalMillis, timeoutMillis, channelsConfig) {
|
|
322
321
|
pingIntervalMillis = pingIntervalMillis === VOID ? 0n : pingIntervalMillis;
|
|
323
322
|
timeoutMillis = timeoutMillis === VOID ? 15000n : timeoutMillis;
|
|
324
|
-
channelsConfig = channelsConfig === VOID ? Companion_getInstance_2().
|
|
323
|
+
channelsConfig = channelsConfig === VOID ? Companion_getInstance_2().u3e_1 : channelsConfig;
|
|
325
324
|
_init_properties_DefaultWebSocketSession_kt__469s0y();
|
|
326
325
|
// Inline function 'kotlin.require' call
|
|
327
326
|
if (!!isInterface(session, DefaultWebSocketSession)) {
|
|
328
327
|
var message = 'Cannot wrap other DefaultWebSocketSession';
|
|
329
328
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
330
329
|
}
|
|
331
|
-
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.
|
|
330
|
+
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.v3e_1, channelsConfig.w3e_1);
|
|
332
331
|
}
|
|
333
332
|
function runIncomingProcessor($this, ponger) {
|
|
334
|
-
var tmp = get_IncomingProcessorCoroutineName().
|
|
333
|
+
var tmp = get_IncomingProcessorCoroutineName().ch(Dispatchers_getInstance().h16_1);
|
|
335
334
|
return launch($this, tmp, VOID, DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0($this, ponger, null));
|
|
336
335
|
}
|
|
337
336
|
function runOutgoingProcessor($this) {
|
|
338
|
-
var tmp = get_OutgoingProcessorCoroutineName().
|
|
337
|
+
var tmp = get_OutgoingProcessorCoroutineName().ch(Dispatchers_getInstance().h16_1);
|
|
339
338
|
var tmp_0 = CoroutineStart_UNDISPATCHED_getInstance();
|
|
340
339
|
return launch($this, tmp, tmp_0, DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0($this, null));
|
|
341
340
|
}
|
|
342
341
|
function outgoingProcessorLoop($this, $completion) {
|
|
343
342
|
var tmp = new $outgoingProcessorLoopCOROUTINE$($this, $completion);
|
|
344
|
-
tmp.
|
|
345
|
-
tmp.
|
|
346
|
-
return tmp.
|
|
343
|
+
tmp.f9_1 = Unit_instance;
|
|
344
|
+
tmp.g9_1 = null;
|
|
345
|
+
return tmp.l9();
|
|
347
346
|
}
|
|
348
347
|
function sendCloseSequence($this, reason, exception, $completion) {
|
|
349
348
|
exception = exception === VOID ? null : exception;
|
|
350
349
|
var tmp = new $sendCloseSequenceCOROUTINE$($this, reason, exception, $completion);
|
|
351
|
-
tmp.
|
|
352
|
-
tmp.
|
|
353
|
-
return tmp.
|
|
350
|
+
tmp.f9_1 = Unit_instance;
|
|
351
|
+
tmp.g9_1 = null;
|
|
352
|
+
return tmp.l9();
|
|
354
353
|
}
|
|
355
354
|
function tryClose($this) {
|
|
356
|
-
return $this.
|
|
355
|
+
return $this.b3g_1.atomicfu$compareAndSet(false, true);
|
|
357
356
|
}
|
|
358
357
|
function runOrCancelPinger($this) {
|
|
359
|
-
var interval = $this.
|
|
358
|
+
var interval = $this.e3g_1;
|
|
360
359
|
var tmp;
|
|
361
|
-
if ($this.
|
|
360
|
+
if ($this.b3g_1.kotlinx$atomicfu$value) {
|
|
362
361
|
tmp = null;
|
|
363
362
|
} else if (interval > 0n) {
|
|
364
|
-
var tmp_0 = $this.
|
|
365
|
-
var tmp_1 = $this.
|
|
363
|
+
var tmp_0 = $this.u3f_1.s3e();
|
|
364
|
+
var tmp_1 = $this.f3g_1;
|
|
366
365
|
tmp = pinger($this, tmp_0, interval, tmp_1, DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0($this, null));
|
|
367
366
|
} else {
|
|
368
367
|
tmp = null;
|
|
369
368
|
}
|
|
370
369
|
var newPinger = tmp;
|
|
371
|
-
var tmp0_safe_receiver = $this.
|
|
370
|
+
var tmp0_safe_receiver = $this.v3f_1.atomicfu$getAndSet(newPinger);
|
|
372
371
|
if (tmp0_safe_receiver == null)
|
|
373
372
|
null;
|
|
374
373
|
else
|
|
375
|
-
tmp0_safe_receiver.
|
|
376
|
-
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.
|
|
374
|
+
tmp0_safe_receiver.z1c();
|
|
375
|
+
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.t1c(Companion_getInstance_0().h3g_1));
|
|
377
376
|
if (tmp2_safe_receiver == null)
|
|
378
377
|
null;
|
|
379
378
|
else
|
|
380
|
-
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.
|
|
381
|
-
if ($this.
|
|
379
|
+
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.d1b_1);
|
|
380
|
+
if ($this.b3g_1.kotlinx$atomicfu$value && !(newPinger == null)) {
|
|
382
381
|
runOrCancelPinger($this);
|
|
383
382
|
}
|
|
384
383
|
}
|
|
385
384
|
function checkMaxFrameSize($this, packet, frame, $completion) {
|
|
386
385
|
var tmp = new $checkMaxFrameSizeCOROUTINE$($this, packet, frame, $completion);
|
|
387
|
-
tmp.
|
|
388
|
-
tmp.
|
|
389
|
-
return tmp.
|
|
386
|
+
tmp.f9_1 = Unit_instance;
|
|
387
|
+
tmp.g9_1 = null;
|
|
388
|
+
return tmp.l9();
|
|
390
389
|
}
|
|
391
390
|
function processIncomingExtensions($this, frame) {
|
|
392
391
|
// Inline function 'kotlin.collections.fold' call
|
|
393
392
|
var accumulator = frame;
|
|
394
|
-
var _iterator__ex2g4s = $this.
|
|
393
|
+
var _iterator__ex2g4s = $this.u3g().t();
|
|
395
394
|
while (_iterator__ex2g4s.u()) {
|
|
396
395
|
var element = _iterator__ex2g4s.v();
|
|
397
396
|
var current = accumulator;
|
|
398
|
-
accumulator = element.
|
|
397
|
+
accumulator = element.v3g(current);
|
|
399
398
|
}
|
|
400
399
|
return accumulator;
|
|
401
400
|
}
|
|
402
401
|
function processOutgoingExtensions($this, frame) {
|
|
403
402
|
// Inline function 'kotlin.collections.fold' call
|
|
404
403
|
var accumulator = frame;
|
|
405
|
-
var _iterator__ex2g4s = $this.
|
|
404
|
+
var _iterator__ex2g4s = $this.u3g().t();
|
|
406
405
|
while (_iterator__ex2g4s.u()) {
|
|
407
406
|
var element = _iterator__ex2g4s.v();
|
|
408
407
|
var current = accumulator;
|
|
409
|
-
accumulator = element.
|
|
408
|
+
accumulator = element.w3g(current);
|
|
410
409
|
}
|
|
411
410
|
return accumulator;
|
|
412
411
|
}
|
|
413
412
|
function Companion_0() {
|
|
414
413
|
Companion_instance_0 = this;
|
|
415
|
-
this.
|
|
414
|
+
this.h3g_1 = new Pong(new Int8Array(0), NonDisposableHandle_instance);
|
|
416
415
|
}
|
|
417
416
|
var Companion_instance_0;
|
|
418
417
|
function Companion_getInstance_0() {
|
|
@@ -421,130 +420,130 @@
|
|
|
421
420
|
return Companion_instance_0;
|
|
422
421
|
}
|
|
423
422
|
function DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
424
|
-
this.
|
|
425
|
-
this.
|
|
426
|
-
this.
|
|
423
|
+
this.f3h_1 = $incomingJob;
|
|
424
|
+
this.g3h_1 = $outgoingJob;
|
|
425
|
+
this.h3h_1 = this$0;
|
|
427
426
|
CoroutineImpl.call(this, resultContinuation);
|
|
428
427
|
}
|
|
429
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
430
|
-
var tmp = this.
|
|
431
|
-
tmp.
|
|
432
|
-
tmp.
|
|
433
|
-
return tmp.
|
|
428
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).v1x = function ($this$launch, $completion) {
|
|
429
|
+
var tmp = this.w1x($this$launch, $completion);
|
|
430
|
+
tmp.f9_1 = Unit_instance;
|
|
431
|
+
tmp.g9_1 = null;
|
|
432
|
+
return tmp.l9();
|
|
434
433
|
};
|
|
435
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
436
|
-
return this.
|
|
434
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).y9 = function (p1, $completion) {
|
|
435
|
+
return this.v1x((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
437
436
|
};
|
|
438
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
439
|
-
var suspendResult = this.
|
|
437
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).l9 = function () {
|
|
438
|
+
var suspendResult = this.f9_1;
|
|
440
439
|
$sm: do
|
|
441
440
|
try {
|
|
442
|
-
var tmp = this.
|
|
441
|
+
var tmp = this.d9_1;
|
|
443
442
|
switch (tmp) {
|
|
444
443
|
case 0:
|
|
445
|
-
this.
|
|
446
|
-
this.
|
|
447
|
-
suspendResult = this.
|
|
444
|
+
this.e9_1 = 3;
|
|
445
|
+
this.d9_1 = 1;
|
|
446
|
+
suspendResult = this.f3h_1.wu(this);
|
|
448
447
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
449
448
|
return suspendResult;
|
|
450
449
|
}
|
|
451
450
|
|
|
452
451
|
continue $sm;
|
|
453
452
|
case 1:
|
|
454
|
-
this.
|
|
455
|
-
suspendResult = this.
|
|
453
|
+
this.d9_1 = 2;
|
|
454
|
+
suspendResult = this.g3h_1.wu(this);
|
|
456
455
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
457
456
|
return suspendResult;
|
|
458
457
|
}
|
|
459
458
|
|
|
460
459
|
continue $sm;
|
|
461
460
|
case 2:
|
|
462
|
-
this.
|
|
461
|
+
this.h3h_1.x3f_1.av();
|
|
463
462
|
return Unit_instance;
|
|
464
463
|
case 3:
|
|
465
|
-
throw this.
|
|
464
|
+
throw this.g9_1;
|
|
466
465
|
}
|
|
467
466
|
} catch ($p) {
|
|
468
467
|
var e = $p;
|
|
469
|
-
if (this.
|
|
468
|
+
if (this.e9_1 === 3) {
|
|
470
469
|
throw e;
|
|
471
470
|
} else {
|
|
472
|
-
this.
|
|
473
|
-
this.
|
|
471
|
+
this.d9_1 = this.e9_1;
|
|
472
|
+
this.g9_1 = e;
|
|
474
473
|
}
|
|
475
474
|
}
|
|
476
475
|
while (true);
|
|
477
476
|
};
|
|
478
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
479
|
-
var i = new DefaultWebSocketSessionImpl$start$slambda(this.
|
|
480
|
-
i.
|
|
477
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).w1x = function ($this$launch, completion) {
|
|
478
|
+
var i = new DefaultWebSocketSessionImpl$start$slambda(this.f3h_1, this.g3h_1, this.h3h_1, completion);
|
|
479
|
+
i.i3h_1 = $this$launch;
|
|
481
480
|
return i;
|
|
482
481
|
};
|
|
483
482
|
function DefaultWebSocketSessionImpl$start$slambda_0($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
484
483
|
var i = new DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation);
|
|
485
484
|
var l = function ($this$launch, $completion) {
|
|
486
|
-
return i.
|
|
485
|
+
return i.v1x($this$launch, $completion);
|
|
487
486
|
};
|
|
488
487
|
l.$arity = 1;
|
|
489
488
|
return l;
|
|
490
489
|
}
|
|
491
490
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation) {
|
|
492
|
-
this.
|
|
493
|
-
this.
|
|
491
|
+
this.r3h_1 = this$0;
|
|
492
|
+
this.s3h_1 = $ponger;
|
|
494
493
|
CoroutineImpl.call(this, resultContinuation);
|
|
495
494
|
}
|
|
496
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
497
|
-
var tmp = this.
|
|
498
|
-
tmp.
|
|
499
|
-
tmp.
|
|
500
|
-
return tmp.
|
|
495
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).v1x = function ($this$launch, $completion) {
|
|
496
|
+
var tmp = this.w1x($this$launch, $completion);
|
|
497
|
+
tmp.f9_1 = Unit_instance;
|
|
498
|
+
tmp.g9_1 = null;
|
|
499
|
+
return tmp.l9();
|
|
501
500
|
};
|
|
502
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
503
|
-
return this.
|
|
501
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).y9 = function (p1, $completion) {
|
|
502
|
+
return this.v1x((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
504
503
|
};
|
|
505
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
506
|
-
var suspendResult = this.
|
|
504
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).l9 = function () {
|
|
505
|
+
var suspendResult = this.f9_1;
|
|
507
506
|
$sm: do
|
|
508
507
|
try {
|
|
509
|
-
var tmp = this.
|
|
508
|
+
var tmp = this.d9_1;
|
|
510
509
|
switch (tmp) {
|
|
511
510
|
case 0:
|
|
512
|
-
this.
|
|
513
|
-
this.
|
|
514
|
-
this.
|
|
515
|
-
this.
|
|
516
|
-
this.
|
|
517
|
-
this.
|
|
511
|
+
this.e9_1 = 39;
|
|
512
|
+
this.d3i_1 = null;
|
|
513
|
+
this.w3h_1 = null;
|
|
514
|
+
this.v3h_1 = false;
|
|
515
|
+
this.x3h_1 = Unit_instance;
|
|
516
|
+
this.d9_1 = 1;
|
|
518
517
|
continue $sm;
|
|
519
518
|
case 1:
|
|
520
|
-
this.
|
|
519
|
+
this.d9_1 = 2;
|
|
521
520
|
continue $sm;
|
|
522
521
|
case 2:
|
|
523
|
-
this.
|
|
524
|
-
this.
|
|
525
|
-
this.
|
|
526
|
-
this.
|
|
522
|
+
this.e9_1 = 33;
|
|
523
|
+
this.e9_1 = 32;
|
|
524
|
+
this.h3i_1 = this.r3h_1.u3f_1.r3e();
|
|
525
|
+
this.d9_1 = 3;
|
|
527
526
|
continue $sm;
|
|
528
527
|
case 3:
|
|
529
|
-
this.
|
|
530
|
-
this.
|
|
531
|
-
this.
|
|
528
|
+
this.a3i_1 = this.h3i_1;
|
|
529
|
+
this.z3h_1 = null;
|
|
530
|
+
this.d9_1 = 4;
|
|
532
531
|
continue $sm;
|
|
533
532
|
case 4:
|
|
534
|
-
this.
|
|
533
|
+
this.d9_1 = 5;
|
|
535
534
|
continue $sm;
|
|
536
535
|
case 5:
|
|
537
|
-
this.
|
|
536
|
+
this.d9_1 = 6;
|
|
538
537
|
continue $sm;
|
|
539
538
|
case 6:
|
|
540
|
-
this.
|
|
541
|
-
this.
|
|
542
|
-
this.
|
|
543
|
-
this.
|
|
539
|
+
this.e9_1 = 29;
|
|
540
|
+
this.e9_1 = 28;
|
|
541
|
+
this.g3i_1 = this.a3i_1.t();
|
|
542
|
+
this.d9_1 = 7;
|
|
544
543
|
continue $sm;
|
|
545
544
|
case 7:
|
|
546
|
-
this.
|
|
547
|
-
suspendResult = this.
|
|
545
|
+
this.d9_1 = 8;
|
|
546
|
+
suspendResult = this.g3i_1.v1a(this);
|
|
548
547
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
549
548
|
return suspendResult;
|
|
550
549
|
}
|
|
@@ -552,46 +551,46 @@
|
|
|
552
551
|
continue $sm;
|
|
553
552
|
case 8:
|
|
554
553
|
if (!suspendResult) {
|
|
555
|
-
this.
|
|
554
|
+
this.d9_1 = 26;
|
|
556
555
|
continue $sm;
|
|
557
556
|
}
|
|
558
557
|
|
|
559
|
-
var e = this.
|
|
560
|
-
this.
|
|
561
|
-
this.
|
|
558
|
+
var e = this.g3i_1.v();
|
|
559
|
+
this.f3i_1 = e;
|
|
560
|
+
this.d9_1 = 9;
|
|
562
561
|
continue $sm;
|
|
563
562
|
case 9:
|
|
564
|
-
this.
|
|
563
|
+
this.e3i_1 = this.f3i_1;
|
|
565
564
|
var this_0 = get_LOGGER();
|
|
566
565
|
if (get_isTraceEnabled(this_0)) {
|
|
567
|
-
this_0.
|
|
566
|
+
this_0.f2u('WebSocketSession(' + toString(this.t3h_1) + ') receiving frame ' + this.e3i_1.toString());
|
|
568
567
|
}
|
|
569
568
|
|
|
570
|
-
var tmp0_subject = this.
|
|
569
|
+
var tmp0_subject = this.e3i_1;
|
|
571
570
|
if (tmp0_subject instanceof Close) {
|
|
572
|
-
if (!this.
|
|
573
|
-
this.
|
|
574
|
-
var tmp_0 = this.
|
|
575
|
-
var tmp1_elvis_lhs = readReason(this.
|
|
576
|
-
suspendResult = tmp_0.
|
|
571
|
+
if (!this.r3h_1.s3e().x1a()) {
|
|
572
|
+
this.d9_1 = 18;
|
|
573
|
+
var tmp_0 = this.r3h_1.s3e();
|
|
574
|
+
var tmp1_elvis_lhs = readReason(this.e3i_1);
|
|
575
|
+
suspendResult = tmp_0.s1c(Close_init_$Create$(tmp1_elvis_lhs == null ? get_NORMAL_CLOSE() : tmp1_elvis_lhs), this);
|
|
577
576
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
578
577
|
return suspendResult;
|
|
579
578
|
}
|
|
580
579
|
continue $sm;
|
|
581
580
|
} else {
|
|
582
|
-
this.
|
|
581
|
+
this.d9_1 = 19;
|
|
583
582
|
continue $sm;
|
|
584
583
|
}
|
|
585
584
|
} else {
|
|
586
585
|
if (tmp0_subject instanceof Pong) {
|
|
587
|
-
var tmp2_safe_receiver = this.
|
|
586
|
+
var tmp2_safe_receiver = this.r3h_1.v3f_1.kotlinx$atomicfu$value;
|
|
588
587
|
if (tmp2_safe_receiver == null) {
|
|
589
|
-
this.
|
|
590
|
-
this.
|
|
588
|
+
this.c3i_1 = null;
|
|
589
|
+
this.d9_1 = 17;
|
|
591
590
|
continue $sm;
|
|
592
591
|
} else {
|
|
593
|
-
this.
|
|
594
|
-
suspendResult = tmp2_safe_receiver.
|
|
592
|
+
this.d9_1 = 16;
|
|
593
|
+
suspendResult = tmp2_safe_receiver.s1c(this.e3i_1, this);
|
|
595
594
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
596
595
|
return suspendResult;
|
|
597
596
|
}
|
|
@@ -599,15 +598,15 @@
|
|
|
599
598
|
}
|
|
600
599
|
} else {
|
|
601
600
|
if (tmp0_subject instanceof Ping) {
|
|
602
|
-
this.
|
|
603
|
-
suspendResult = this.
|
|
601
|
+
this.d9_1 = 15;
|
|
602
|
+
suspendResult = this.s3h_1.s1c(this.e3i_1, this);
|
|
604
603
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
605
604
|
return suspendResult;
|
|
606
605
|
}
|
|
607
606
|
continue $sm;
|
|
608
607
|
} else {
|
|
609
|
-
this.
|
|
610
|
-
suspendResult = checkMaxFrameSize(this.
|
|
608
|
+
this.d9_1 = 10;
|
|
609
|
+
suspendResult = checkMaxFrameSize(this.r3h_1, this.w3h_1, this.e3i_1, this);
|
|
611
610
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
612
611
|
return suspendResult;
|
|
613
612
|
}
|
|
@@ -617,40 +616,40 @@
|
|
|
617
616
|
}
|
|
618
617
|
|
|
619
618
|
case 10:
|
|
620
|
-
if (!this.
|
|
621
|
-
if (this.
|
|
622
|
-
this.
|
|
619
|
+
if (!this.e3i_1.i3i_1) {
|
|
620
|
+
if (this.d3i_1 == null) {
|
|
621
|
+
this.d3i_1 = this.e3i_1;
|
|
623
622
|
}
|
|
624
|
-
if (this.
|
|
625
|
-
this.
|
|
623
|
+
if (this.w3h_1 == null) {
|
|
624
|
+
this.w3h_1 = BytePacketBuilder();
|
|
626
625
|
}
|
|
627
|
-
writeFully(this.
|
|
628
|
-
this.
|
|
626
|
+
writeFully(this.w3h_1, this.e3i_1.k3i_1);
|
|
627
|
+
this.d9_1 = 21;
|
|
629
628
|
continue $sm;
|
|
630
629
|
} else {
|
|
631
|
-
this.
|
|
630
|
+
this.d9_1 = 11;
|
|
632
631
|
continue $sm;
|
|
633
632
|
}
|
|
634
633
|
|
|
635
634
|
case 11:
|
|
636
|
-
if (this.
|
|
637
|
-
this.
|
|
638
|
-
suspendResult = this.
|
|
635
|
+
if (this.d3i_1 == null) {
|
|
636
|
+
this.d9_1 = 14;
|
|
637
|
+
suspendResult = this.r3h_1.z3f_1.s1c(processIncomingExtensions(this.r3h_1, this.e3i_1), this);
|
|
639
638
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
640
639
|
return suspendResult;
|
|
641
640
|
}
|
|
642
641
|
continue $sm;
|
|
643
642
|
} else {
|
|
644
|
-
this.
|
|
643
|
+
this.d9_1 = 12;
|
|
645
644
|
continue $sm;
|
|
646
645
|
}
|
|
647
646
|
|
|
648
647
|
case 12:
|
|
649
|
-
writeFully(ensureNotNull(this.
|
|
650
|
-
var defragmented = Companion_getInstance_5().
|
|
651
|
-
this.
|
|
652
|
-
this.
|
|
653
|
-
suspendResult = this.
|
|
648
|
+
writeFully(ensureNotNull(this.w3h_1), this.e3i_1.k3i_1);
|
|
649
|
+
var defragmented = Companion_getInstance_5().q3i(true, this.d3i_1.j3i_1, readByteArray(build(this.w3h_1)), this.d3i_1.m3i_1, this.d3i_1.n3i_1, this.d3i_1.o3i_1);
|
|
650
|
+
this.d3i_1 = null;
|
|
651
|
+
this.d9_1 = 13;
|
|
652
|
+
suspendResult = this.r3h_1.z3f_1.s1c(processIncomingExtensions(this.r3h_1, defragmented), this);
|
|
654
653
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
655
654
|
return suspendResult;
|
|
656
655
|
}
|
|
@@ -658,316 +657,316 @@
|
|
|
658
657
|
continue $sm;
|
|
659
658
|
case 13:
|
|
660
659
|
var tmp_1 = this;
|
|
661
|
-
tmp_1.
|
|
662
|
-
this.
|
|
660
|
+
tmp_1.b3i_1 = Unit_instance;
|
|
661
|
+
this.d9_1 = 20;
|
|
663
662
|
continue $sm;
|
|
664
663
|
case 14:
|
|
665
|
-
this.
|
|
664
|
+
this.d9_1 = 21;
|
|
666
665
|
continue $sm;
|
|
667
666
|
case 15:
|
|
668
667
|
var tmp_2 = this;
|
|
669
|
-
tmp_2.
|
|
670
|
-
this.
|
|
668
|
+
tmp_2.b3i_1 = Unit_instance;
|
|
669
|
+
this.d9_1 = 20;
|
|
671
670
|
continue $sm;
|
|
672
671
|
case 16:
|
|
673
672
|
var tmp_3 = this;
|
|
674
|
-
tmp_3.
|
|
675
|
-
this.
|
|
673
|
+
tmp_3.c3i_1 = Unit_instance;
|
|
674
|
+
this.d9_1 = 17;
|
|
676
675
|
continue $sm;
|
|
677
676
|
case 17:
|
|
678
|
-
this.
|
|
679
|
-
this.
|
|
677
|
+
this.b3i_1 = this.c3i_1;
|
|
678
|
+
this.d9_1 = 20;
|
|
680
679
|
continue $sm;
|
|
681
680
|
case 18:
|
|
682
|
-
this.
|
|
681
|
+
this.d9_1 = 19;
|
|
683
682
|
continue $sm;
|
|
684
683
|
case 19:
|
|
685
|
-
this.
|
|
686
|
-
this.
|
|
684
|
+
this.v3h_1 = true;
|
|
685
|
+
this.d9_1 = 22;
|
|
687
686
|
var tmp_4 = this;
|
|
688
687
|
continue $sm;
|
|
689
688
|
case 20:
|
|
690
689
|
if (false) {
|
|
691
|
-
this.
|
|
690
|
+
this.d9_1 = 9;
|
|
692
691
|
continue $sm;
|
|
693
692
|
}
|
|
694
693
|
|
|
695
|
-
this.
|
|
694
|
+
this.d9_1 = 21;
|
|
696
695
|
continue $sm;
|
|
697
696
|
case 21:
|
|
698
|
-
this.
|
|
697
|
+
this.d9_1 = 7;
|
|
699
698
|
continue $sm;
|
|
700
699
|
case 22:
|
|
701
|
-
this.
|
|
702
|
-
cancelConsumed(this.
|
|
703
|
-
this.
|
|
704
|
-
this.
|
|
700
|
+
this.e9_1 = 32;
|
|
701
|
+
cancelConsumed(this.a3i_1, this.z3h_1);
|
|
702
|
+
this.e9_1 = 39;
|
|
703
|
+
this.d9_1 = 23;
|
|
705
704
|
continue $sm;
|
|
706
705
|
case 23:
|
|
707
|
-
this.
|
|
708
|
-
this.
|
|
709
|
-
var tmp0_safe_receiver = this.
|
|
706
|
+
this.e9_1 = 39;
|
|
707
|
+
this.s3h_1.z1c();
|
|
708
|
+
var tmp0_safe_receiver = this.w3h_1;
|
|
710
709
|
if (tmp0_safe_receiver == null)
|
|
711
710
|
null;
|
|
712
711
|
else {
|
|
713
|
-
tmp0_safe_receiver.
|
|
712
|
+
tmp0_safe_receiver.o4();
|
|
714
713
|
}
|
|
715
714
|
|
|
716
|
-
this.
|
|
717
|
-
if (!this.
|
|
718
|
-
this.
|
|
719
|
-
suspendResult = close(this.
|
|
715
|
+
this.r3h_1.z3f_1.z1c();
|
|
716
|
+
if (!this.v3h_1) {
|
|
717
|
+
this.d9_1 = 24;
|
|
718
|
+
suspendResult = close(this.r3h_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
720
719
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
721
720
|
return suspendResult;
|
|
722
721
|
}
|
|
723
722
|
continue $sm;
|
|
724
723
|
} else {
|
|
725
|
-
this.
|
|
724
|
+
this.d9_1 = 25;
|
|
726
725
|
continue $sm;
|
|
727
726
|
}
|
|
728
727
|
|
|
729
728
|
case 24:
|
|
730
|
-
this.
|
|
729
|
+
this.d9_1 = 25;
|
|
731
730
|
continue $sm;
|
|
732
731
|
case 25:
|
|
733
732
|
var tmp_5 = this;
|
|
734
733
|
return Unit_instance;
|
|
735
734
|
case 26:
|
|
736
|
-
this.
|
|
735
|
+
this.d9_1 = 27;
|
|
737
736
|
var tmp_6 = this;
|
|
738
737
|
continue $sm;
|
|
739
738
|
case 27:
|
|
740
|
-
this.
|
|
741
|
-
cancelConsumed(this.
|
|
742
|
-
this.
|
|
739
|
+
this.e9_1 = 32;
|
|
740
|
+
cancelConsumed(this.a3i_1, this.z3h_1);
|
|
741
|
+
this.d9_1 = 31;
|
|
743
742
|
continue $sm;
|
|
744
743
|
case 28:
|
|
745
|
-
this.
|
|
746
|
-
var tmp_7 = this.
|
|
744
|
+
this.e9_1 = 29;
|
|
745
|
+
var tmp_7 = this.g9_1;
|
|
747
746
|
if (tmp_7 instanceof Error) {
|
|
748
|
-
var e_0 = this.
|
|
747
|
+
var e_0 = this.g9_1;
|
|
749
748
|
var tmp_8 = this;
|
|
750
|
-
this.
|
|
749
|
+
this.z3h_1 = e_0;
|
|
751
750
|
throw e_0;
|
|
752
751
|
} else {
|
|
753
|
-
throw this.
|
|
752
|
+
throw this.g9_1;
|
|
754
753
|
}
|
|
755
754
|
|
|
756
755
|
case 29:
|
|
757
|
-
this.
|
|
758
|
-
var t = this.
|
|
759
|
-
cancelConsumed(this.
|
|
756
|
+
this.e9_1 = 32;
|
|
757
|
+
var t = this.g9_1;
|
|
758
|
+
cancelConsumed(this.a3i_1, this.z3h_1);
|
|
760
759
|
throw t;
|
|
761
760
|
case 30:
|
|
762
|
-
this.
|
|
763
|
-
cancelConsumed(this.
|
|
761
|
+
this.e9_1 = 32;
|
|
762
|
+
cancelConsumed(this.a3i_1, this.z3h_1);
|
|
764
763
|
if (false) {
|
|
765
|
-
this.
|
|
764
|
+
this.d9_1 = 3;
|
|
766
765
|
continue $sm;
|
|
767
766
|
}
|
|
768
767
|
|
|
769
|
-
this.
|
|
768
|
+
this.d9_1 = 31;
|
|
770
769
|
continue $sm;
|
|
771
770
|
case 31:
|
|
772
|
-
this.
|
|
773
|
-
this.
|
|
774
|
-
this.
|
|
771
|
+
this.x3h_1 = Unit_instance;
|
|
772
|
+
this.e9_1 = 39;
|
|
773
|
+
this.d9_1 = 36;
|
|
775
774
|
continue $sm;
|
|
776
775
|
case 32:
|
|
777
|
-
this.
|
|
778
|
-
var tmp_9 = this.
|
|
776
|
+
this.e9_1 = 33;
|
|
777
|
+
var tmp_9 = this.g9_1;
|
|
779
778
|
if (tmp_9 instanceof ClosedSendChannelException) {
|
|
780
|
-
var _unused_var__etf5q3 = this.
|
|
779
|
+
var _unused_var__etf5q3 = this.g9_1;
|
|
781
780
|
var tmp_10 = this;
|
|
782
|
-
tmp_10.
|
|
783
|
-
this.
|
|
784
|
-
this.
|
|
781
|
+
tmp_10.x3h_1 = Unit_instance;
|
|
782
|
+
this.e9_1 = 39;
|
|
783
|
+
this.d9_1 = 36;
|
|
785
784
|
continue $sm;
|
|
786
785
|
} else {
|
|
787
|
-
var tmp_11 = this.
|
|
786
|
+
var tmp_11 = this.g9_1;
|
|
788
787
|
if (tmp_11 instanceof Error) {
|
|
789
|
-
var cause = this.
|
|
788
|
+
var cause = this.g9_1;
|
|
790
789
|
var tmp_12 = this;
|
|
791
|
-
this.
|
|
792
|
-
tmp_12.
|
|
793
|
-
this.
|
|
794
|
-
this.
|
|
790
|
+
this.s3h_1.z1c();
|
|
791
|
+
tmp_12.x3h_1 = this.r3h_1.z3f_1.x1c(cause);
|
|
792
|
+
this.e9_1 = 39;
|
|
793
|
+
this.d9_1 = 36;
|
|
795
794
|
continue $sm;
|
|
796
795
|
} else {
|
|
797
|
-
throw this.
|
|
796
|
+
throw this.g9_1;
|
|
798
797
|
}
|
|
799
798
|
}
|
|
800
799
|
|
|
801
800
|
case 33:
|
|
802
|
-
this.
|
|
803
|
-
this.
|
|
804
|
-
this.
|
|
805
|
-
var tmp0_safe_receiver_0 = this.
|
|
801
|
+
this.e9_1 = 39;
|
|
802
|
+
this.y3h_1 = this.g9_1;
|
|
803
|
+
this.s3h_1.z1c();
|
|
804
|
+
var tmp0_safe_receiver_0 = this.w3h_1;
|
|
806
805
|
if (tmp0_safe_receiver_0 == null)
|
|
807
806
|
null;
|
|
808
807
|
else {
|
|
809
|
-
tmp0_safe_receiver_0.
|
|
808
|
+
tmp0_safe_receiver_0.o4();
|
|
810
809
|
}
|
|
811
810
|
|
|
812
|
-
this.
|
|
813
|
-
if (!this.
|
|
814
|
-
this.
|
|
815
|
-
suspendResult = close(this.
|
|
811
|
+
this.r3h_1.z3f_1.z1c();
|
|
812
|
+
if (!this.v3h_1) {
|
|
813
|
+
this.d9_1 = 34;
|
|
814
|
+
suspendResult = close(this.r3h_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
816
815
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
817
816
|
return suspendResult;
|
|
818
817
|
}
|
|
819
818
|
continue $sm;
|
|
820
819
|
} else {
|
|
821
|
-
this.
|
|
820
|
+
this.d9_1 = 35;
|
|
822
821
|
continue $sm;
|
|
823
822
|
}
|
|
824
823
|
|
|
825
824
|
case 34:
|
|
826
|
-
this.
|
|
825
|
+
this.d9_1 = 35;
|
|
827
826
|
continue $sm;
|
|
828
827
|
case 35:
|
|
829
|
-
throw this.
|
|
828
|
+
throw this.y3h_1;
|
|
830
829
|
case 36:
|
|
831
|
-
this.
|
|
832
|
-
this.
|
|
833
|
-
this.
|
|
834
|
-
var tmp0_safe_receiver_1 = this.
|
|
830
|
+
this.u3h_1 = this.x3h_1;
|
|
831
|
+
this.e9_1 = 39;
|
|
832
|
+
this.s3h_1.z1c();
|
|
833
|
+
var tmp0_safe_receiver_1 = this.w3h_1;
|
|
835
834
|
if (tmp0_safe_receiver_1 == null)
|
|
836
835
|
null;
|
|
837
836
|
else {
|
|
838
|
-
tmp0_safe_receiver_1.
|
|
837
|
+
tmp0_safe_receiver_1.o4();
|
|
839
838
|
}
|
|
840
839
|
|
|
841
|
-
this.
|
|
842
|
-
if (!this.
|
|
843
|
-
this.
|
|
844
|
-
suspendResult = close(this.
|
|
840
|
+
this.r3h_1.z3f_1.z1c();
|
|
841
|
+
if (!this.v3h_1) {
|
|
842
|
+
this.d9_1 = 37;
|
|
843
|
+
suspendResult = close(this.r3h_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
845
844
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
846
845
|
return suspendResult;
|
|
847
846
|
}
|
|
848
847
|
continue $sm;
|
|
849
848
|
} else {
|
|
850
|
-
this.
|
|
849
|
+
this.d9_1 = 38;
|
|
851
850
|
continue $sm;
|
|
852
851
|
}
|
|
853
852
|
|
|
854
853
|
case 37:
|
|
855
|
-
this.
|
|
854
|
+
this.d9_1 = 38;
|
|
856
855
|
continue $sm;
|
|
857
856
|
case 38:
|
|
858
857
|
return Unit_instance;
|
|
859
858
|
case 39:
|
|
860
|
-
throw this.
|
|
859
|
+
throw this.g9_1;
|
|
861
860
|
}
|
|
862
861
|
} catch ($p) {
|
|
863
862
|
var e_1 = $p;
|
|
864
|
-
if (this.
|
|
863
|
+
if (this.e9_1 === 39) {
|
|
865
864
|
throw e_1;
|
|
866
865
|
} else {
|
|
867
|
-
this.
|
|
868
|
-
this.
|
|
866
|
+
this.d9_1 = this.e9_1;
|
|
867
|
+
this.g9_1 = e_1;
|
|
869
868
|
}
|
|
870
869
|
}
|
|
871
870
|
while (true);
|
|
872
871
|
};
|
|
873
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
874
|
-
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.
|
|
875
|
-
i.
|
|
872
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).w1x = function ($this$launch, completion) {
|
|
873
|
+
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.r3h_1, this.s3h_1, completion);
|
|
874
|
+
i.t3h_1 = $this$launch;
|
|
876
875
|
return i;
|
|
877
876
|
};
|
|
878
877
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0(this$0, $ponger, resultContinuation) {
|
|
879
878
|
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation);
|
|
880
879
|
var l = function ($this$launch, $completion) {
|
|
881
|
-
return i.
|
|
880
|
+
return i.v1x($this$launch, $completion);
|
|
882
881
|
};
|
|
883
882
|
l.$arity = 1;
|
|
884
883
|
return l;
|
|
885
884
|
}
|
|
886
885
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation) {
|
|
887
|
-
this.
|
|
886
|
+
this.z3i_1 = this$0;
|
|
888
887
|
CoroutineImpl.call(this, resultContinuation);
|
|
889
888
|
}
|
|
890
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
891
|
-
var tmp = this.
|
|
892
|
-
tmp.
|
|
893
|
-
tmp.
|
|
894
|
-
return tmp.
|
|
889
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).v1x = function ($this$launch, $completion) {
|
|
890
|
+
var tmp = this.w1x($this$launch, $completion);
|
|
891
|
+
tmp.f9_1 = Unit_instance;
|
|
892
|
+
tmp.g9_1 = null;
|
|
893
|
+
return tmp.l9();
|
|
895
894
|
};
|
|
896
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
897
|
-
return this.
|
|
895
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).y9 = function (p1, $completion) {
|
|
896
|
+
return this.v1x((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
898
897
|
};
|
|
899
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
900
|
-
var suspendResult = this.
|
|
898
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).l9 = function () {
|
|
899
|
+
var suspendResult = this.f9_1;
|
|
901
900
|
$sm: do
|
|
902
901
|
try {
|
|
903
|
-
var tmp = this.
|
|
902
|
+
var tmp = this.d9_1;
|
|
904
903
|
switch (tmp) {
|
|
905
904
|
case 0:
|
|
906
|
-
this.
|
|
907
|
-
this.
|
|
905
|
+
this.e9_1 = 13;
|
|
906
|
+
this.d9_1 = 1;
|
|
908
907
|
continue $sm;
|
|
909
908
|
case 1:
|
|
910
|
-
this.
|
|
909
|
+
this.d9_1 = 2;
|
|
911
910
|
continue $sm;
|
|
912
911
|
case 2:
|
|
913
|
-
this.
|
|
914
|
-
this.
|
|
915
|
-
this.
|
|
916
|
-
suspendResult = outgoingProcessorLoop(this.
|
|
912
|
+
this.e9_1 = 9;
|
|
913
|
+
this.e9_1 = 4;
|
|
914
|
+
this.d9_1 = 3;
|
|
915
|
+
suspendResult = outgoingProcessorLoop(this.z3i_1, this);
|
|
917
916
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
918
917
|
return suspendResult;
|
|
919
918
|
}
|
|
920
919
|
|
|
921
920
|
continue $sm;
|
|
922
921
|
case 3:
|
|
923
|
-
this.
|
|
924
|
-
this.
|
|
922
|
+
this.e9_1 = 13;
|
|
923
|
+
this.d9_1 = 11;
|
|
925
924
|
continue $sm;
|
|
926
925
|
case 4:
|
|
927
|
-
this.
|
|
928
|
-
var tmp_0 = this.
|
|
926
|
+
this.e9_1 = 9;
|
|
927
|
+
var tmp_0 = this.g9_1;
|
|
929
928
|
if (tmp_0 instanceof ClosedSendChannelException) {
|
|
930
|
-
var _unused_var__etf5q3 = this.
|
|
931
|
-
this.
|
|
932
|
-
this.
|
|
929
|
+
var _unused_var__etf5q3 = this.g9_1;
|
|
930
|
+
this.e9_1 = 13;
|
|
931
|
+
this.d9_1 = 11;
|
|
933
932
|
continue $sm;
|
|
934
933
|
} else {
|
|
935
|
-
var tmp_1 = this.
|
|
934
|
+
var tmp_1 = this.g9_1;
|
|
936
935
|
if (tmp_1 instanceof ClosedReceiveChannelException) {
|
|
937
|
-
var _unused_var__etf5q3_0 = this.
|
|
938
|
-
this.
|
|
939
|
-
this.
|
|
936
|
+
var _unused_var__etf5q3_0 = this.g9_1;
|
|
937
|
+
this.e9_1 = 13;
|
|
938
|
+
this.d9_1 = 11;
|
|
940
939
|
continue $sm;
|
|
941
940
|
} else {
|
|
942
|
-
var tmp_2 = this.
|
|
941
|
+
var tmp_2 = this.g9_1;
|
|
943
942
|
if (tmp_2 instanceof CancellationException) {
|
|
944
|
-
var _unused_var__etf5q3_1 = this.
|
|
945
|
-
this.
|
|
946
|
-
suspendResult = sendCloseSequence(this.
|
|
943
|
+
var _unused_var__etf5q3_1 = this.g9_1;
|
|
944
|
+
this.d9_1 = 5;
|
|
945
|
+
suspendResult = sendCloseSequence(this.z3i_1, CloseReason_init_$Create$(Codes_NORMAL_getInstance(), ''), VOID, this);
|
|
947
946
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
948
947
|
return suspendResult;
|
|
949
948
|
}
|
|
950
949
|
continue $sm;
|
|
951
950
|
} else {
|
|
952
|
-
var tmp_3 = this.
|
|
951
|
+
var tmp_3 = this.g9_1;
|
|
953
952
|
if (tmp_3 instanceof ChannelIOException) {
|
|
954
|
-
var _unused_var__etf5q3_2 = this.
|
|
955
|
-
this.
|
|
956
|
-
this.
|
|
953
|
+
var _unused_var__etf5q3_2 = this.g9_1;
|
|
954
|
+
this.e9_1 = 13;
|
|
955
|
+
this.d9_1 = 11;
|
|
957
956
|
continue $sm;
|
|
958
957
|
} else {
|
|
959
|
-
var tmp_4 = this.
|
|
958
|
+
var tmp_4 = this.g9_1;
|
|
960
959
|
if (tmp_4 instanceof Error) {
|
|
961
|
-
var cause = this.
|
|
962
|
-
this.
|
|
963
|
-
this.
|
|
964
|
-
suspendResult = closeExceptionally(this.
|
|
960
|
+
var cause = this.g9_1;
|
|
961
|
+
this.z3i_1.a3g_1.zu(CancellationException_init_$Create$('Failed to send frame', cause));
|
|
962
|
+
this.d9_1 = 6;
|
|
963
|
+
suspendResult = closeExceptionally(this.z3i_1.u3f_1, cause, this);
|
|
965
964
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
966
965
|
return suspendResult;
|
|
967
966
|
}
|
|
968
967
|
continue $sm;
|
|
969
968
|
} else {
|
|
970
|
-
throw this.
|
|
969
|
+
throw this.g9_1;
|
|
971
970
|
}
|
|
972
971
|
}
|
|
973
972
|
}
|
|
@@ -975,18 +974,18 @@
|
|
|
975
974
|
}
|
|
976
975
|
|
|
977
976
|
case 5:
|
|
978
|
-
this.
|
|
979
|
-
this.
|
|
977
|
+
this.e9_1 = 13;
|
|
978
|
+
this.d9_1 = 11;
|
|
980
979
|
continue $sm;
|
|
981
980
|
case 6:
|
|
982
|
-
this.
|
|
983
|
-
this.
|
|
981
|
+
this.e9_1 = 13;
|
|
982
|
+
this.d9_1 = 7;
|
|
984
983
|
continue $sm;
|
|
985
984
|
case 7:
|
|
986
|
-
this.
|
|
987
|
-
this.
|
|
988
|
-
this.
|
|
989
|
-
suspendResult = close(this.
|
|
985
|
+
this.e9_1 = 13;
|
|
986
|
+
this.z3i_1.a3g_1.b1d();
|
|
987
|
+
this.d9_1 = 8;
|
|
988
|
+
suspendResult = close(this.z3i_1.u3f_1, VOID, this);
|
|
990
989
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
991
990
|
return suspendResult;
|
|
992
991
|
}
|
|
@@ -995,23 +994,23 @@
|
|
|
995
994
|
case 8:
|
|
996
995
|
return Unit_instance;
|
|
997
996
|
case 9:
|
|
998
|
-
this.
|
|
999
|
-
this.
|
|
1000
|
-
this.
|
|
1001
|
-
this.
|
|
1002
|
-
suspendResult = close(this.
|
|
997
|
+
this.e9_1 = 13;
|
|
998
|
+
this.b3j_1 = this.g9_1;
|
|
999
|
+
this.z3i_1.a3g_1.b1d();
|
|
1000
|
+
this.d9_1 = 10;
|
|
1001
|
+
suspendResult = close(this.z3i_1.u3f_1, VOID, this);
|
|
1003
1002
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1004
1003
|
return suspendResult;
|
|
1005
1004
|
}
|
|
1006
1005
|
|
|
1007
1006
|
continue $sm;
|
|
1008
1007
|
case 10:
|
|
1009
|
-
throw this.
|
|
1008
|
+
throw this.b3j_1;
|
|
1010
1009
|
case 11:
|
|
1011
|
-
this.
|
|
1012
|
-
this.
|
|
1013
|
-
this.
|
|
1014
|
-
suspendResult = close(this.
|
|
1010
|
+
this.e9_1 = 13;
|
|
1011
|
+
this.z3i_1.a3g_1.b1d();
|
|
1012
|
+
this.d9_1 = 12;
|
|
1013
|
+
suspendResult = close(this.z3i_1.u3f_1, VOID, this);
|
|
1015
1014
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1016
1015
|
return suspendResult;
|
|
1017
1016
|
}
|
|
@@ -1020,55 +1019,55 @@
|
|
|
1020
1019
|
case 12:
|
|
1021
1020
|
return Unit_instance;
|
|
1022
1021
|
case 13:
|
|
1023
|
-
throw this.
|
|
1022
|
+
throw this.g9_1;
|
|
1024
1023
|
}
|
|
1025
1024
|
} catch ($p) {
|
|
1026
1025
|
var e = $p;
|
|
1027
|
-
if (this.
|
|
1026
|
+
if (this.e9_1 === 13) {
|
|
1028
1027
|
throw e;
|
|
1029
1028
|
} else {
|
|
1030
|
-
this.
|
|
1031
|
-
this.
|
|
1029
|
+
this.d9_1 = this.e9_1;
|
|
1030
|
+
this.g9_1 = e;
|
|
1032
1031
|
}
|
|
1033
1032
|
}
|
|
1034
1033
|
while (true);
|
|
1035
1034
|
};
|
|
1036
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
1037
|
-
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.
|
|
1038
|
-
i.
|
|
1035
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).w1x = function ($this$launch, completion) {
|
|
1036
|
+
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.z3i_1, completion);
|
|
1037
|
+
i.a3j_1 = $this$launch;
|
|
1039
1038
|
return i;
|
|
1040
1039
|
};
|
|
1041
1040
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0(this$0, resultContinuation) {
|
|
1042
1041
|
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation);
|
|
1043
1042
|
var l = function ($this$launch, $completion) {
|
|
1044
|
-
return i.
|
|
1043
|
+
return i.v1x($this$launch, $completion);
|
|
1045
1044
|
};
|
|
1046
1045
|
l.$arity = 1;
|
|
1047
1046
|
return l;
|
|
1048
1047
|
}
|
|
1049
1048
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation) {
|
|
1050
|
-
this.
|
|
1049
|
+
this.k3j_1 = this$0;
|
|
1051
1050
|
CoroutineImpl.call(this, resultContinuation);
|
|
1052
1051
|
}
|
|
1053
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1054
|
-
var tmp = this.
|
|
1055
|
-
tmp.
|
|
1056
|
-
tmp.
|
|
1057
|
-
return tmp.
|
|
1052
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).m3j = function (it, $completion) {
|
|
1053
|
+
var tmp = this.n3j(it, $completion);
|
|
1054
|
+
tmp.f9_1 = Unit_instance;
|
|
1055
|
+
tmp.g9_1 = null;
|
|
1056
|
+
return tmp.l9();
|
|
1058
1057
|
};
|
|
1059
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1060
|
-
return this.
|
|
1058
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).y9 = function (p1, $completion) {
|
|
1059
|
+
return this.m3j(p1 instanceof CloseReason ? p1 : THROW_CCE(), $completion);
|
|
1061
1060
|
};
|
|
1062
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1063
|
-
var suspendResult = this.
|
|
1061
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).l9 = function () {
|
|
1062
|
+
var suspendResult = this.f9_1;
|
|
1064
1063
|
$sm: do
|
|
1065
1064
|
try {
|
|
1066
|
-
var tmp = this.
|
|
1065
|
+
var tmp = this.d9_1;
|
|
1067
1066
|
switch (tmp) {
|
|
1068
1067
|
case 0:
|
|
1069
|
-
this.
|
|
1070
|
-
this.
|
|
1071
|
-
suspendResult = sendCloseSequence(this.
|
|
1068
|
+
this.e9_1 = 2;
|
|
1069
|
+
this.d9_1 = 1;
|
|
1070
|
+
suspendResult = sendCloseSequence(this.k3j_1, this.l3j_1, IOException_init_$Create$('Ping timeout'), this);
|
|
1072
1071
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1073
1072
|
return suspendResult;
|
|
1074
1073
|
}
|
|
@@ -1077,50 +1076,50 @@
|
|
|
1077
1076
|
case 1:
|
|
1078
1077
|
return Unit_instance;
|
|
1079
1078
|
case 2:
|
|
1080
|
-
throw this.
|
|
1079
|
+
throw this.g9_1;
|
|
1081
1080
|
}
|
|
1082
1081
|
} catch ($p) {
|
|
1083
1082
|
var e = $p;
|
|
1084
|
-
if (this.
|
|
1083
|
+
if (this.e9_1 === 2) {
|
|
1085
1084
|
throw e;
|
|
1086
1085
|
} else {
|
|
1087
|
-
this.
|
|
1088
|
-
this.
|
|
1086
|
+
this.d9_1 = this.e9_1;
|
|
1087
|
+
this.g9_1 = e;
|
|
1089
1088
|
}
|
|
1090
1089
|
}
|
|
1091
1090
|
while (true);
|
|
1092
1091
|
};
|
|
1093
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1094
|
-
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.
|
|
1095
|
-
i.
|
|
1092
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).n3j = function (it, completion) {
|
|
1093
|
+
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.k3j_1, completion);
|
|
1094
|
+
i.l3j_1 = it;
|
|
1096
1095
|
return i;
|
|
1097
1096
|
};
|
|
1098
1097
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0(this$0, resultContinuation) {
|
|
1099
1098
|
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation);
|
|
1100
1099
|
var l = function (it, $completion) {
|
|
1101
|
-
return i.
|
|
1100
|
+
return i.m3j(it, $completion);
|
|
1102
1101
|
};
|
|
1103
1102
|
l.$arity = 1;
|
|
1104
1103
|
return l;
|
|
1105
1104
|
}
|
|
1106
1105
|
function $outgoingProcessorLoopCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1107
1106
|
CoroutineImpl.call(this, resultContinuation);
|
|
1108
|
-
this.
|
|
1107
|
+
this.f3f_1 = _this__u8e3s4;
|
|
1109
1108
|
}
|
|
1110
|
-
protoOf($outgoingProcessorLoopCOROUTINE$).
|
|
1111
|
-
var suspendResult = this.
|
|
1109
|
+
protoOf($outgoingProcessorLoopCOROUTINE$).l9 = function () {
|
|
1110
|
+
var suspendResult = this.f9_1;
|
|
1112
1111
|
$sm: do
|
|
1113
1112
|
try {
|
|
1114
|
-
var tmp = this.
|
|
1113
|
+
var tmp = this.d9_1;
|
|
1115
1114
|
switch (tmp) {
|
|
1116
1115
|
case 0:
|
|
1117
|
-
this.
|
|
1118
|
-
this.
|
|
1119
|
-
this.
|
|
1116
|
+
this.e9_1 = 7;
|
|
1117
|
+
this.h3f_1 = this.f3f_1.a3g_1.t();
|
|
1118
|
+
this.d9_1 = 1;
|
|
1120
1119
|
continue $sm;
|
|
1121
1120
|
case 1:
|
|
1122
|
-
this.
|
|
1123
|
-
suspendResult = this.
|
|
1121
|
+
this.d9_1 = 2;
|
|
1122
|
+
suspendResult = this.h3f_1.v1a(this);
|
|
1124
1123
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1125
1124
|
return suspendResult;
|
|
1126
1125
|
}
|
|
@@ -1128,19 +1127,19 @@
|
|
|
1128
1127
|
continue $sm;
|
|
1129
1128
|
case 2:
|
|
1130
1129
|
if (!suspendResult) {
|
|
1131
|
-
this.
|
|
1130
|
+
this.d9_1 = 6;
|
|
1132
1131
|
continue $sm;
|
|
1133
1132
|
}
|
|
1134
1133
|
|
|
1135
|
-
var frame = this.
|
|
1134
|
+
var frame = this.h3f_1.v();
|
|
1136
1135
|
var this_0 = get_LOGGER();
|
|
1137
1136
|
if (get_isTraceEnabled(this_0)) {
|
|
1138
|
-
this_0.
|
|
1137
|
+
this_0.f2u('Sending ' + frame.toString() + ' from session ' + toString(this.f3f_1));
|
|
1139
1138
|
}
|
|
1140
1139
|
|
|
1141
1140
|
if (frame instanceof Close) {
|
|
1142
|
-
this.
|
|
1143
|
-
suspendResult = sendCloseSequence(this.
|
|
1141
|
+
this.d9_1 = 3;
|
|
1142
|
+
suspendResult = sendCloseSequence(this.f3f_1, readReason(frame), VOID, this);
|
|
1144
1143
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1145
1144
|
return suspendResult;
|
|
1146
1145
|
}
|
|
@@ -1153,223 +1152,223 @@
|
|
|
1153
1152
|
tmp_0 = frame instanceof Binary;
|
|
1154
1153
|
}
|
|
1155
1154
|
if (tmp_0) {
|
|
1156
|
-
this.
|
|
1157
|
-
this.
|
|
1155
|
+
this.g3f_1 = processOutgoingExtensions(this.f3f_1, frame);
|
|
1156
|
+
this.d9_1 = 4;
|
|
1158
1157
|
continue $sm;
|
|
1159
1158
|
} else {
|
|
1160
|
-
this.
|
|
1161
|
-
this.
|
|
1159
|
+
this.g3f_1 = frame;
|
|
1160
|
+
this.d9_1 = 4;
|
|
1162
1161
|
continue $sm;
|
|
1163
1162
|
}
|
|
1164
1163
|
}
|
|
1165
1164
|
|
|
1166
1165
|
case 3:
|
|
1167
|
-
this.
|
|
1166
|
+
this.d9_1 = 6;
|
|
1168
1167
|
var tmp_1 = this;
|
|
1169
1168
|
continue $sm;
|
|
1170
1169
|
case 4:
|
|
1171
|
-
var processedFrame = this.
|
|
1172
|
-
this.
|
|
1173
|
-
suspendResult = this.
|
|
1170
|
+
var processedFrame = this.g3f_1;
|
|
1171
|
+
this.d9_1 = 5;
|
|
1172
|
+
suspendResult = this.f3f_1.u3f_1.s3e().s1c(processedFrame, this);
|
|
1174
1173
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1175
1174
|
return suspendResult;
|
|
1176
1175
|
}
|
|
1177
1176
|
|
|
1178
1177
|
continue $sm;
|
|
1179
1178
|
case 5:
|
|
1180
|
-
this.
|
|
1179
|
+
this.d9_1 = 1;
|
|
1181
1180
|
continue $sm;
|
|
1182
1181
|
case 6:
|
|
1183
1182
|
return Unit_instance;
|
|
1184
1183
|
case 7:
|
|
1185
|
-
throw this.
|
|
1184
|
+
throw this.g9_1;
|
|
1186
1185
|
}
|
|
1187
1186
|
} catch ($p) {
|
|
1188
1187
|
var e = $p;
|
|
1189
|
-
if (this.
|
|
1188
|
+
if (this.e9_1 === 7) {
|
|
1190
1189
|
throw e;
|
|
1191
1190
|
} else {
|
|
1192
|
-
this.
|
|
1193
|
-
this.
|
|
1191
|
+
this.d9_1 = this.e9_1;
|
|
1192
|
+
this.g9_1 = e;
|
|
1194
1193
|
}
|
|
1195
1194
|
}
|
|
1196
1195
|
while (true);
|
|
1197
1196
|
};
|
|
1198
1197
|
function $sendCloseSequenceCOROUTINE$(_this__u8e3s4, reason, exception, resultContinuation) {
|
|
1199
1198
|
CoroutineImpl.call(this, resultContinuation);
|
|
1200
|
-
this.
|
|
1201
|
-
this.
|
|
1202
|
-
this.
|
|
1199
|
+
this.q3f_1 = _this__u8e3s4;
|
|
1200
|
+
this.r3f_1 = reason;
|
|
1201
|
+
this.s3f_1 = exception;
|
|
1203
1202
|
}
|
|
1204
|
-
protoOf($sendCloseSequenceCOROUTINE$).
|
|
1205
|
-
var suspendResult = this.
|
|
1203
|
+
protoOf($sendCloseSequenceCOROUTINE$).l9 = function () {
|
|
1204
|
+
var suspendResult = this.f9_1;
|
|
1206
1205
|
$sm: do
|
|
1207
1206
|
try {
|
|
1208
|
-
var tmp = this.
|
|
1207
|
+
var tmp = this.d9_1;
|
|
1209
1208
|
switch (tmp) {
|
|
1210
1209
|
case 0:
|
|
1211
|
-
this.
|
|
1212
|
-
if (!tryClose(this.
|
|
1210
|
+
this.e9_1 = 6;
|
|
1211
|
+
if (!tryClose(this.q3f_1))
|
|
1213
1212
|
return Unit_instance;
|
|
1214
1213
|
var this_0 = get_LOGGER();
|
|
1215
1214
|
if (get_isTraceEnabled(this_0)) {
|
|
1216
|
-
this_0.
|
|
1215
|
+
this_0.f2u('Sending Close Sequence for session ' + toString(this.q3f_1) + ' with reason ' + toString_0(this.r3f_1) + ' and exception ' + toString_0(this.s3f_1));
|
|
1217
1216
|
}
|
|
1218
1217
|
|
|
1219
|
-
this.
|
|
1218
|
+
this.q3f_1.x3f_1.a12();
|
|
1220
1219
|
var tmp_0 = this;
|
|
1221
|
-
var tmp0_elvis_lhs = this.
|
|
1222
|
-
tmp_0.
|
|
1223
|
-
this.
|
|
1220
|
+
var tmp0_elvis_lhs = this.r3f_1;
|
|
1221
|
+
tmp_0.t3f_1 = tmp0_elvis_lhs == null ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : tmp0_elvis_lhs;
|
|
1222
|
+
this.d9_1 = 1;
|
|
1224
1223
|
continue $sm;
|
|
1225
1224
|
case 1:
|
|
1226
|
-
this.
|
|
1227
|
-
runOrCancelPinger(this.
|
|
1228
|
-
if (!(this.
|
|
1229
|
-
this.
|
|
1230
|
-
suspendResult = this.
|
|
1225
|
+
this.e9_1 = 5;
|
|
1226
|
+
runOrCancelPinger(this.q3f_1);
|
|
1227
|
+
if (!(this.t3f_1.l3e_1 === Codes_CLOSED_ABNORMALLY_getInstance().h3e_1)) {
|
|
1228
|
+
this.d9_1 = 2;
|
|
1229
|
+
suspendResult = this.q3f_1.u3f_1.s3e().s1c(Close_init_$Create$(this.t3f_1), this);
|
|
1231
1230
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1232
1231
|
return suspendResult;
|
|
1233
1232
|
}
|
|
1234
1233
|
continue $sm;
|
|
1235
1234
|
} else {
|
|
1236
|
-
this.
|
|
1235
|
+
this.d9_1 = 3;
|
|
1237
1236
|
continue $sm;
|
|
1238
1237
|
}
|
|
1239
1238
|
|
|
1240
1239
|
case 2:
|
|
1241
|
-
this.
|
|
1240
|
+
this.d9_1 = 3;
|
|
1242
1241
|
continue $sm;
|
|
1243
1242
|
case 3:
|
|
1244
|
-
this.
|
|
1245
|
-
this.
|
|
1243
|
+
this.e9_1 = 6;
|
|
1244
|
+
this.d9_1 = 4;
|
|
1246
1245
|
continue $sm;
|
|
1247
1246
|
case 4:
|
|
1248
|
-
this.
|
|
1249
|
-
this.
|
|
1250
|
-
if (!(this.
|
|
1251
|
-
this.
|
|
1252
|
-
this.
|
|
1247
|
+
this.e9_1 = 6;
|
|
1248
|
+
this.q3f_1.w3f_1.y11(this.t3f_1);
|
|
1249
|
+
if (!(this.s3f_1 == null)) {
|
|
1250
|
+
this.q3f_1.a3g_1.x1c(this.s3f_1);
|
|
1251
|
+
this.q3f_1.z3f_1.x1c(this.s3f_1);
|
|
1253
1252
|
}
|
|
1254
1253
|
|
|
1255
1254
|
return Unit_instance;
|
|
1256
1255
|
case 5:
|
|
1257
|
-
this.
|
|
1258
|
-
var t = this.
|
|
1259
|
-
this.
|
|
1260
|
-
if (!(this.
|
|
1261
|
-
this.
|
|
1262
|
-
this.
|
|
1256
|
+
this.e9_1 = 6;
|
|
1257
|
+
var t = this.g9_1;
|
|
1258
|
+
this.q3f_1.w3f_1.y11(this.t3f_1);
|
|
1259
|
+
if (!(this.s3f_1 == null)) {
|
|
1260
|
+
this.q3f_1.a3g_1.x1c(this.s3f_1);
|
|
1261
|
+
this.q3f_1.z3f_1.x1c(this.s3f_1);
|
|
1263
1262
|
}
|
|
1264
1263
|
|
|
1265
1264
|
throw t;
|
|
1266
1265
|
case 6:
|
|
1267
|
-
throw this.
|
|
1266
|
+
throw this.g9_1;
|
|
1268
1267
|
}
|
|
1269
1268
|
} catch ($p) {
|
|
1270
1269
|
var e = $p;
|
|
1271
|
-
if (this.
|
|
1270
|
+
if (this.e9_1 === 6) {
|
|
1272
1271
|
throw e;
|
|
1273
1272
|
} else {
|
|
1274
|
-
this.
|
|
1275
|
-
this.
|
|
1273
|
+
this.d9_1 = this.e9_1;
|
|
1274
|
+
this.g9_1 = e;
|
|
1276
1275
|
}
|
|
1277
1276
|
}
|
|
1278
1277
|
while (true);
|
|
1279
1278
|
};
|
|
1280
1279
|
function $checkMaxFrameSizeCOROUTINE$(_this__u8e3s4, packet, frame, resultContinuation) {
|
|
1281
1280
|
CoroutineImpl.call(this, resultContinuation);
|
|
1282
|
-
this.
|
|
1283
|
-
this.
|
|
1284
|
-
this.
|
|
1281
|
+
this.q3g_1 = _this__u8e3s4;
|
|
1282
|
+
this.r3g_1 = packet;
|
|
1283
|
+
this.s3g_1 = frame;
|
|
1285
1284
|
}
|
|
1286
|
-
protoOf($checkMaxFrameSizeCOROUTINE$).
|
|
1287
|
-
var suspendResult = this.
|
|
1285
|
+
protoOf($checkMaxFrameSizeCOROUTINE$).l9 = function () {
|
|
1286
|
+
var suspendResult = this.f9_1;
|
|
1288
1287
|
$sm: do
|
|
1289
1288
|
try {
|
|
1290
|
-
var tmp = this.
|
|
1289
|
+
var tmp = this.d9_1;
|
|
1291
1290
|
switch (tmp) {
|
|
1292
1291
|
case 0:
|
|
1293
|
-
this.
|
|
1292
|
+
this.e9_1 = 3;
|
|
1294
1293
|
var tmp_0 = this;
|
|
1295
|
-
var tmp_1 = this.
|
|
1296
|
-
var tmp0_safe_receiver = this.
|
|
1294
|
+
var tmp_1 = this.s3g_1.k3i_1.length;
|
|
1295
|
+
var tmp0_safe_receiver = this.r3g_1;
|
|
1297
1296
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_size(tmp0_safe_receiver);
|
|
1298
|
-
tmp_0.
|
|
1299
|
-
if (fromInt(this.
|
|
1300
|
-
var tmp2_safe_receiver = this.
|
|
1297
|
+
tmp_0.t3g_1 = tmp_1 + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
1298
|
+
if (fromInt(this.t3g_1) > this.q3g_1.q3e()) {
|
|
1299
|
+
var tmp2_safe_receiver = this.r3g_1;
|
|
1301
1300
|
if (tmp2_safe_receiver == null)
|
|
1302
1301
|
null;
|
|
1303
1302
|
else {
|
|
1304
|
-
tmp2_safe_receiver.
|
|
1303
|
+
tmp2_safe_receiver.o4();
|
|
1305
1304
|
}
|
|
1306
|
-
this.
|
|
1307
|
-
suspendResult = close(this.
|
|
1305
|
+
this.d9_1 = 2;
|
|
1306
|
+
suspendResult = close(this.q3g_1, CloseReason_init_$Create$(Codes_TOO_BIG_getInstance(), 'Frame is too big: ' + this.t3g_1 + '. Max size is ' + this.q3g_1.q3e().toString()), this);
|
|
1308
1307
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1309
1308
|
return suspendResult;
|
|
1310
1309
|
}
|
|
1311
1310
|
continue $sm;
|
|
1312
1311
|
} else {
|
|
1313
|
-
this.
|
|
1312
|
+
this.d9_1 = 1;
|
|
1314
1313
|
continue $sm;
|
|
1315
1314
|
}
|
|
1316
1315
|
|
|
1317
1316
|
case 1:
|
|
1318
1317
|
return Unit_instance;
|
|
1319
1318
|
case 2:
|
|
1320
|
-
throw new FrameTooBigException(fromInt(this.
|
|
1319
|
+
throw new FrameTooBigException(fromInt(this.t3g_1));
|
|
1321
1320
|
case 3:
|
|
1322
|
-
throw this.
|
|
1321
|
+
throw this.g9_1;
|
|
1323
1322
|
}
|
|
1324
1323
|
} catch ($p) {
|
|
1325
1324
|
var e = $p;
|
|
1326
|
-
if (this.
|
|
1325
|
+
if (this.e9_1 === 3) {
|
|
1327
1326
|
throw e;
|
|
1328
1327
|
} else {
|
|
1329
|
-
this.
|
|
1330
|
-
this.
|
|
1328
|
+
this.d9_1 = this.e9_1;
|
|
1329
|
+
this.g9_1 = e;
|
|
1331
1330
|
}
|
|
1332
1331
|
}
|
|
1333
1332
|
while (true);
|
|
1334
1333
|
};
|
|
1335
1334
|
function DefaultWebSocketSessionImpl(raw, pingIntervalMillis, timeoutMillis, incomingFramesConfig, outgoingFramesConfig) {
|
|
1336
1335
|
Companion_getInstance_0();
|
|
1337
|
-
this.
|
|
1338
|
-
this.
|
|
1339
|
-
this.
|
|
1340
|
-
this.
|
|
1341
|
-
this.
|
|
1342
|
-
this.
|
|
1343
|
-
this.
|
|
1344
|
-
this.
|
|
1336
|
+
this.u3f_1 = raw;
|
|
1337
|
+
this.v3f_1 = atomic$ref$1(null);
|
|
1338
|
+
this.w3f_1 = CompletableDeferred();
|
|
1339
|
+
this.x3f_1 = Job();
|
|
1340
|
+
this.y3f_1 = this.u3f_1.qt().ah(Key_instance).ch(this.x3f_1).ch(new CoroutineName('ws-default'));
|
|
1341
|
+
this.z3f_1 = from(Factory_getInstance(), incomingFramesConfig);
|
|
1342
|
+
this.a3g_1 = from(Factory_getInstance(), outgoingFramesConfig);
|
|
1343
|
+
this.b3g_1 = atomic$boolean$1(false);
|
|
1345
1344
|
var tmp = this;
|
|
1346
1345
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1347
|
-
tmp.
|
|
1348
|
-
this.
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1346
|
+
tmp.c3g_1 = ArrayList_init_$Create$();
|
|
1347
|
+
this.d3g_1 = atomic$boolean$1(false);
|
|
1348
|
+
this.e3g_1 = pingIntervalMillis;
|
|
1349
|
+
this.f3g_1 = timeoutMillis;
|
|
1350
|
+
this.g3g_1 = this.w3f_1;
|
|
1352
1351
|
}
|
|
1353
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1354
|
-
return this.
|
|
1352
|
+
protoOf(DefaultWebSocketSessionImpl).qt = function () {
|
|
1353
|
+
return this.y3f_1;
|
|
1355
1354
|
};
|
|
1356
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1357
|
-
return this.
|
|
1355
|
+
protoOf(DefaultWebSocketSessionImpl).r3e = function () {
|
|
1356
|
+
return this.z3f_1;
|
|
1358
1357
|
};
|
|
1359
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1360
|
-
return this.
|
|
1358
|
+
protoOf(DefaultWebSocketSessionImpl).s3e = function () {
|
|
1359
|
+
return this.a3g_1;
|
|
1361
1360
|
};
|
|
1362
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1363
|
-
return this.
|
|
1361
|
+
protoOf(DefaultWebSocketSessionImpl).u3g = function () {
|
|
1362
|
+
return this.c3g_1;
|
|
1364
1363
|
};
|
|
1365
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1366
|
-
this.
|
|
1364
|
+
protoOf(DefaultWebSocketSessionImpl).p3e = function (value) {
|
|
1365
|
+
this.u3f_1.p3e(value);
|
|
1367
1366
|
};
|
|
1368
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1369
|
-
return this.
|
|
1367
|
+
protoOf(DefaultWebSocketSessionImpl).q3e = function () {
|
|
1368
|
+
return this.u3f_1.q3e();
|
|
1370
1369
|
};
|
|
1371
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1372
|
-
if (!this.
|
|
1370
|
+
protoOf(DefaultWebSocketSessionImpl).o3e = function (negotiatedExtensions) {
|
|
1371
|
+
if (!this.d3g_1.atomicfu$compareAndSet(false, true)) {
|
|
1373
1372
|
// Inline function 'kotlin.error' call
|
|
1374
1373
|
var message = 'WebSocket session ' + toString(this) + ' is already started.';
|
|
1375
1374
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -1378,16 +1377,16 @@
|
|
|
1378
1377
|
var this_0 = get_LOGGER();
|
|
1379
1378
|
if (get_isTraceEnabled(this_0)) {
|
|
1380
1379
|
var tmp$ret$2 = 'Starting default WebSocketSession(' + toString(this) + ') ' + ('with negotiated extensions: ' + joinToString(negotiatedExtensions));
|
|
1381
|
-
this_0.
|
|
1380
|
+
this_0.f2u(tmp$ret$2);
|
|
1382
1381
|
}
|
|
1383
|
-
this.
|
|
1382
|
+
this.c3g_1.n1(negotiatedExtensions);
|
|
1384
1383
|
runOrCancelPinger(this);
|
|
1385
|
-
var incomingJob = runIncomingProcessor(this, ponger(this, this.
|
|
1384
|
+
var incomingJob = runIncomingProcessor(this, ponger(this, this.s3e()));
|
|
1386
1385
|
var outgoingJob = runOutgoingProcessor(this);
|
|
1387
1386
|
launch(this, VOID, VOID, DefaultWebSocketSessionImpl$start$slambda_0(incomingJob, outgoingJob, this, null));
|
|
1388
1387
|
};
|
|
1389
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1390
|
-
return this.
|
|
1388
|
+
protoOf(DefaultWebSocketSessionImpl).r1o = function ($completion) {
|
|
1389
|
+
return this.u3f_1.r1o($completion);
|
|
1391
1390
|
};
|
|
1392
1391
|
var properties_initialized_DefaultWebSocketSession_kt_6cjlhc;
|
|
1393
1392
|
function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
@@ -1409,20 +1408,20 @@
|
|
|
1409
1408
|
}
|
|
1410
1409
|
}
|
|
1411
1410
|
function readReason(_this__u8e3s4) {
|
|
1412
|
-
if (_this__u8e3s4.
|
|
1411
|
+
if (_this__u8e3s4.k3i_1.length < 2) {
|
|
1413
1412
|
return null;
|
|
1414
1413
|
}
|
|
1415
1414
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1416
1415
|
var builder = new Buffer();
|
|
1417
|
-
writeFully(builder, _this__u8e3s4.
|
|
1416
|
+
writeFully(builder, _this__u8e3s4.k3i_1);
|
|
1418
1417
|
var packet = builder;
|
|
1419
|
-
var code = packet.
|
|
1418
|
+
var code = packet.sq();
|
|
1420
1419
|
var message = readText(packet);
|
|
1421
1420
|
return new CloseReason(code, message);
|
|
1422
1421
|
}
|
|
1423
1422
|
function NonDisposableHandle() {
|
|
1424
1423
|
}
|
|
1425
|
-
protoOf(NonDisposableHandle).
|
|
1424
|
+
protoOf(NonDisposableHandle).ow = function () {
|
|
1426
1425
|
return Unit_instance;
|
|
1427
1426
|
};
|
|
1428
1427
|
protoOf(NonDisposableHandle).toString = function () {
|
|
@@ -1442,20 +1441,19 @@
|
|
|
1442
1441
|
function NonDisposableHandle_getInstance() {
|
|
1443
1442
|
return NonDisposableHandle_instance;
|
|
1444
1443
|
}
|
|
1445
|
-
function FrameTooBigException(frameSize) {
|
|
1446
|
-
|
|
1444
|
+
function FrameTooBigException(frameSize, cause) {
|
|
1445
|
+
cause = cause === VOID ? null : cause;
|
|
1446
|
+
Exception_init_$Init$(cause, this);
|
|
1447
1447
|
captureStack(this, FrameTooBigException);
|
|
1448
|
-
this.
|
|
1448
|
+
this.o3j_1 = frameSize;
|
|
1449
1449
|
delete this.message;
|
|
1450
1450
|
}
|
|
1451
1451
|
protoOf(FrameTooBigException).e = function () {
|
|
1452
|
-
|
|
1452
|
+
var sizeSuffix = this.o3j_1 >= 0n ? ': ' + this.o3j_1.toString() : '';
|
|
1453
|
+
return 'Frame is too big' + sizeSuffix;
|
|
1453
1454
|
};
|
|
1454
|
-
protoOf(FrameTooBigException).
|
|
1455
|
-
|
|
1456
|
-
var this_0 = new FrameTooBigException(this.y3h_1);
|
|
1457
|
-
initCauseBridge(this_0, this);
|
|
1458
|
-
return this_0;
|
|
1455
|
+
protoOf(FrameTooBigException).j12 = function () {
|
|
1456
|
+
return new FrameTooBigException(this.o3j_1, this);
|
|
1459
1457
|
};
|
|
1460
1458
|
var FrameType_TEXT_instance;
|
|
1461
1459
|
var FrameType_BINARY_instance;
|
|
@@ -1479,10 +1477,10 @@
|
|
|
1479
1477
|
tmp$ret$0 = maxElem;
|
|
1480
1478
|
break $l$block_0;
|
|
1481
1479
|
}
|
|
1482
|
-
var maxValue = maxElem.
|
|
1480
|
+
var maxValue = maxElem.s3j_1;
|
|
1483
1481
|
do {
|
|
1484
1482
|
var e = iterator.v();
|
|
1485
|
-
var v = e.
|
|
1483
|
+
var v = e.s3j_1;
|
|
1486
1484
|
if (compareTo(maxValue, v) < 0) {
|
|
1487
1485
|
maxElem = e;
|
|
1488
1486
|
maxValue = v;
|
|
@@ -1491,10 +1489,10 @@
|
|
|
1491
1489
|
while (iterator.u());
|
|
1492
1490
|
tmp$ret$0 = maxElem;
|
|
1493
1491
|
}
|
|
1494
|
-
tmp.
|
|
1492
|
+
tmp.t3j_1 = ensureNotNull(tmp$ret$0).s3j_1;
|
|
1495
1493
|
var tmp_0 = this;
|
|
1496
1494
|
var tmp_1 = 0;
|
|
1497
|
-
var tmp_2 = this.
|
|
1495
|
+
var tmp_2 = this.t3j_1 + 1 | 0;
|
|
1498
1496
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1499
1497
|
var tmp_3 = Array(tmp_2);
|
|
1500
1498
|
while (tmp_1 < tmp_2) {
|
|
@@ -1508,7 +1506,7 @@
|
|
|
1508
1506
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
1509
1507
|
while (_iterator__ex2g4s.u()) {
|
|
1510
1508
|
var element = _iterator__ex2g4s.v();
|
|
1511
|
-
if (element.
|
|
1509
|
+
if (element.s3j_1 === tmp_4) {
|
|
1512
1510
|
if (found) {
|
|
1513
1511
|
tmp$ret$5 = null;
|
|
1514
1512
|
break $l$block_2;
|
|
@@ -1526,7 +1524,7 @@
|
|
|
1526
1524
|
tmp_3[tmp_4] = tmp$ret$5;
|
|
1527
1525
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1528
1526
|
}
|
|
1529
|
-
tmp_0.
|
|
1527
|
+
tmp_0.u3j_1 = tmp_3;
|
|
1530
1528
|
}
|
|
1531
1529
|
var Companion_instance_1;
|
|
1532
1530
|
function Companion_getInstance_1() {
|
|
@@ -1558,8 +1556,8 @@
|
|
|
1558
1556
|
var $ENTRIES_0;
|
|
1559
1557
|
function FrameType(name, ordinal, controlFrame, opcode) {
|
|
1560
1558
|
Enum.call(this, name, ordinal);
|
|
1561
|
-
this.
|
|
1562
|
-
this.
|
|
1559
|
+
this.r3j_1 = controlFrame;
|
|
1560
|
+
this.s3j_1 = opcode;
|
|
1563
1561
|
}
|
|
1564
1562
|
function FrameType_TEXT_getInstance() {
|
|
1565
1563
|
FrameType_initEntries();
|
|
@@ -1602,55 +1600,55 @@
|
|
|
1602
1600
|
_init_properties_PingPong_kt__9aqxey();
|
|
1603
1601
|
var actorJob = Job();
|
|
1604
1602
|
var channel = Channel(2147483647);
|
|
1605
|
-
var tmp = actorJob.
|
|
1603
|
+
var tmp = actorJob.ch(get_PingerCoroutineName());
|
|
1606
1604
|
launch(_this__u8e3s4, tmp, VOID, pinger$slambda_0(periodMillis, timeoutMillis, onTimeout, channel, outgoing, null));
|
|
1607
|
-
var tmp_0 = ensureNotNull(_this__u8e3s4.
|
|
1608
|
-
tmp_0.
|
|
1605
|
+
var tmp_0 = ensureNotNull(_this__u8e3s4.qt().q9(Key_instance));
|
|
1606
|
+
tmp_0.su(pinger$lambda(actorJob));
|
|
1609
1607
|
return channel;
|
|
1610
1608
|
}
|
|
1611
1609
|
function ponger$slambda($channel, $outgoing, resultContinuation) {
|
|
1612
|
-
this.
|
|
1613
|
-
this.
|
|
1610
|
+
this.d3k_1 = $channel;
|
|
1611
|
+
this.e3k_1 = $outgoing;
|
|
1614
1612
|
CoroutineImpl.call(this, resultContinuation);
|
|
1615
1613
|
}
|
|
1616
|
-
protoOf(ponger$slambda).
|
|
1617
|
-
var tmp = this.
|
|
1618
|
-
tmp.
|
|
1619
|
-
tmp.
|
|
1620
|
-
return tmp.
|
|
1614
|
+
protoOf(ponger$slambda).v1x = function ($this$launch, $completion) {
|
|
1615
|
+
var tmp = this.w1x($this$launch, $completion);
|
|
1616
|
+
tmp.f9_1 = Unit_instance;
|
|
1617
|
+
tmp.g9_1 = null;
|
|
1618
|
+
return tmp.l9();
|
|
1621
1619
|
};
|
|
1622
|
-
protoOf(ponger$slambda).
|
|
1623
|
-
return this.
|
|
1620
|
+
protoOf(ponger$slambda).y9 = function (p1, $completion) {
|
|
1621
|
+
return this.v1x((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1624
1622
|
};
|
|
1625
|
-
protoOf(ponger$slambda).
|
|
1626
|
-
var suspendResult = this.
|
|
1623
|
+
protoOf(ponger$slambda).l9 = function () {
|
|
1624
|
+
var suspendResult = this.f9_1;
|
|
1627
1625
|
$sm: do
|
|
1628
1626
|
try {
|
|
1629
|
-
var tmp = this.
|
|
1627
|
+
var tmp = this.d9_1;
|
|
1630
1628
|
switch (tmp) {
|
|
1631
1629
|
case 0:
|
|
1632
|
-
this.
|
|
1633
|
-
this.
|
|
1634
|
-
this.
|
|
1635
|
-
this.
|
|
1630
|
+
this.e9_1 = 14;
|
|
1631
|
+
this.e9_1 = 13;
|
|
1632
|
+
this.j3k_1 = this.d3k_1;
|
|
1633
|
+
this.d9_1 = 1;
|
|
1636
1634
|
continue $sm;
|
|
1637
1635
|
case 1:
|
|
1638
|
-
this.
|
|
1639
|
-
this.
|
|
1640
|
-
this.
|
|
1636
|
+
this.h3k_1 = this.j3k_1;
|
|
1637
|
+
this.g3k_1 = null;
|
|
1638
|
+
this.d9_1 = 2;
|
|
1641
1639
|
continue $sm;
|
|
1642
1640
|
case 2:
|
|
1643
|
-
this.
|
|
1641
|
+
this.d9_1 = 3;
|
|
1644
1642
|
continue $sm;
|
|
1645
1643
|
case 3:
|
|
1646
|
-
this.
|
|
1647
|
-
this.
|
|
1648
|
-
this.
|
|
1649
|
-
this.
|
|
1644
|
+
this.e9_1 = 10;
|
|
1645
|
+
this.e9_1 = 9;
|
|
1646
|
+
this.i3k_1 = this.h3k_1.t();
|
|
1647
|
+
this.d9_1 = 4;
|
|
1650
1648
|
continue $sm;
|
|
1651
1649
|
case 4:
|
|
1652
|
-
this.
|
|
1653
|
-
suspendResult = this.
|
|
1650
|
+
this.d9_1 = 5;
|
|
1651
|
+
suspendResult = this.i3k_1.v1a(this);
|
|
1654
1652
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1655
1653
|
return suspendResult;
|
|
1656
1654
|
}
|
|
@@ -1658,311 +1656,311 @@
|
|
|
1658
1656
|
continue $sm;
|
|
1659
1657
|
case 5:
|
|
1660
1658
|
if (!suspendResult) {
|
|
1661
|
-
this.
|
|
1659
|
+
this.d9_1 = 7;
|
|
1662
1660
|
continue $sm;
|
|
1663
1661
|
}
|
|
1664
1662
|
|
|
1665
|
-
var e = this.
|
|
1666
|
-
get_LOGGER().
|
|
1667
|
-
this.
|
|
1668
|
-
suspendResult = this.
|
|
1663
|
+
var e = this.i3k_1.v();
|
|
1664
|
+
get_LOGGER().f2u('Received ping message, sending pong message');
|
|
1665
|
+
this.d9_1 = 6;
|
|
1666
|
+
suspendResult = this.e3k_1.s1c(new Pong(e.k3i_1), this);
|
|
1669
1667
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1670
1668
|
return suspendResult;
|
|
1671
1669
|
}
|
|
1672
1670
|
|
|
1673
1671
|
continue $sm;
|
|
1674
1672
|
case 6:
|
|
1675
|
-
this.
|
|
1673
|
+
this.d9_1 = 4;
|
|
1676
1674
|
continue $sm;
|
|
1677
1675
|
case 7:
|
|
1678
|
-
this.
|
|
1676
|
+
this.d9_1 = 8;
|
|
1679
1677
|
var tmp_0 = this;
|
|
1680
1678
|
continue $sm;
|
|
1681
1679
|
case 8:
|
|
1682
|
-
this.
|
|
1683
|
-
cancelConsumed(this.
|
|
1684
|
-
this.
|
|
1680
|
+
this.e9_1 = 13;
|
|
1681
|
+
cancelConsumed(this.h3k_1, this.g3k_1);
|
|
1682
|
+
this.d9_1 = 12;
|
|
1685
1683
|
continue $sm;
|
|
1686
1684
|
case 9:
|
|
1687
|
-
this.
|
|
1688
|
-
var tmp_1 = this.
|
|
1685
|
+
this.e9_1 = 10;
|
|
1686
|
+
var tmp_1 = this.g9_1;
|
|
1689
1687
|
if (tmp_1 instanceof Error) {
|
|
1690
|
-
var e_0 = this.
|
|
1688
|
+
var e_0 = this.g9_1;
|
|
1691
1689
|
var tmp_2 = this;
|
|
1692
|
-
this.
|
|
1690
|
+
this.g3k_1 = e_0;
|
|
1693
1691
|
throw e_0;
|
|
1694
1692
|
} else {
|
|
1695
|
-
throw this.
|
|
1693
|
+
throw this.g9_1;
|
|
1696
1694
|
}
|
|
1697
1695
|
|
|
1698
1696
|
case 10:
|
|
1699
|
-
this.
|
|
1700
|
-
var t = this.
|
|
1701
|
-
cancelConsumed(this.
|
|
1697
|
+
this.e9_1 = 13;
|
|
1698
|
+
var t = this.g9_1;
|
|
1699
|
+
cancelConsumed(this.h3k_1, this.g3k_1);
|
|
1702
1700
|
throw t;
|
|
1703
1701
|
case 11:
|
|
1704
|
-
this.
|
|
1705
|
-
cancelConsumed(this.
|
|
1702
|
+
this.e9_1 = 13;
|
|
1703
|
+
cancelConsumed(this.h3k_1, this.g3k_1);
|
|
1706
1704
|
if (false) {
|
|
1707
|
-
this.
|
|
1705
|
+
this.d9_1 = 1;
|
|
1708
1706
|
continue $sm;
|
|
1709
1707
|
}
|
|
1710
1708
|
|
|
1711
|
-
this.
|
|
1709
|
+
this.d9_1 = 12;
|
|
1712
1710
|
continue $sm;
|
|
1713
1711
|
case 12:
|
|
1714
|
-
this.
|
|
1715
|
-
this.
|
|
1712
|
+
this.e9_1 = 14;
|
|
1713
|
+
this.d9_1 = 15;
|
|
1716
1714
|
continue $sm;
|
|
1717
1715
|
case 13:
|
|
1718
|
-
this.
|
|
1719
|
-
var tmp_3 = this.
|
|
1716
|
+
this.e9_1 = 14;
|
|
1717
|
+
var tmp_3 = this.g9_1;
|
|
1720
1718
|
if (tmp_3 instanceof ClosedSendChannelException) {
|
|
1721
|
-
var _unused_var__etf5q3 = this.
|
|
1722
|
-
this.
|
|
1719
|
+
var _unused_var__etf5q3 = this.g9_1;
|
|
1720
|
+
this.d9_1 = 15;
|
|
1723
1721
|
continue $sm;
|
|
1724
1722
|
} else {
|
|
1725
|
-
throw this.
|
|
1723
|
+
throw this.g9_1;
|
|
1726
1724
|
}
|
|
1727
1725
|
|
|
1728
1726
|
case 14:
|
|
1729
|
-
throw this.
|
|
1727
|
+
throw this.g9_1;
|
|
1730
1728
|
case 15:
|
|
1731
|
-
this.
|
|
1729
|
+
this.e9_1 = 14;
|
|
1732
1730
|
return Unit_instance;
|
|
1733
1731
|
}
|
|
1734
1732
|
} catch ($p) {
|
|
1735
1733
|
var e_1 = $p;
|
|
1736
|
-
if (this.
|
|
1734
|
+
if (this.e9_1 === 14) {
|
|
1737
1735
|
throw e_1;
|
|
1738
1736
|
} else {
|
|
1739
|
-
this.
|
|
1740
|
-
this.
|
|
1737
|
+
this.d9_1 = this.e9_1;
|
|
1738
|
+
this.g9_1 = e_1;
|
|
1741
1739
|
}
|
|
1742
1740
|
}
|
|
1743
1741
|
while (true);
|
|
1744
1742
|
};
|
|
1745
|
-
protoOf(ponger$slambda).
|
|
1746
|
-
var i = new ponger$slambda(this.
|
|
1747
|
-
i.
|
|
1743
|
+
protoOf(ponger$slambda).w1x = function ($this$launch, completion) {
|
|
1744
|
+
var i = new ponger$slambda(this.d3k_1, this.e3k_1, completion);
|
|
1745
|
+
i.f3k_1 = $this$launch;
|
|
1748
1746
|
return i;
|
|
1749
1747
|
};
|
|
1750
1748
|
function ponger$slambda_0($channel, $outgoing, resultContinuation) {
|
|
1751
1749
|
var i = new ponger$slambda($channel, $outgoing, resultContinuation);
|
|
1752
1750
|
var l = function ($this$launch, $completion) {
|
|
1753
|
-
return i.
|
|
1751
|
+
return i.v1x($this$launch, $completion);
|
|
1754
1752
|
};
|
|
1755
1753
|
l.$arity = 1;
|
|
1756
1754
|
return l;
|
|
1757
1755
|
}
|
|
1758
1756
|
function pinger$slambda$slambda($channel, resultContinuation) {
|
|
1759
|
-
this.
|
|
1757
|
+
this.s3k_1 = $channel;
|
|
1760
1758
|
CoroutineImpl.call(this, resultContinuation);
|
|
1761
1759
|
}
|
|
1762
|
-
protoOf(pinger$slambda$slambda).
|
|
1763
|
-
var tmp = this.
|
|
1764
|
-
tmp.
|
|
1765
|
-
tmp.
|
|
1766
|
-
return tmp.
|
|
1760
|
+
protoOf(pinger$slambda$slambda).v1x = function ($this$withTimeoutOrNull, $completion) {
|
|
1761
|
+
var tmp = this.w1x($this$withTimeoutOrNull, $completion);
|
|
1762
|
+
tmp.f9_1 = Unit_instance;
|
|
1763
|
+
tmp.g9_1 = null;
|
|
1764
|
+
return tmp.l9();
|
|
1767
1765
|
};
|
|
1768
|
-
protoOf(pinger$slambda$slambda).
|
|
1769
|
-
return this.
|
|
1766
|
+
protoOf(pinger$slambda$slambda).y9 = function (p1, $completion) {
|
|
1767
|
+
return this.v1x((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1770
1768
|
};
|
|
1771
|
-
protoOf(pinger$slambda$slambda).
|
|
1772
|
-
var suspendResult = this.
|
|
1769
|
+
protoOf(pinger$slambda$slambda).l9 = function () {
|
|
1770
|
+
var suspendResult = this.f9_1;
|
|
1773
1771
|
$sm: do
|
|
1774
1772
|
try {
|
|
1775
|
-
var tmp = this.
|
|
1773
|
+
var tmp = this.d9_1;
|
|
1776
1774
|
switch (tmp) {
|
|
1777
1775
|
case 0:
|
|
1778
|
-
this.
|
|
1779
|
-
this.
|
|
1776
|
+
this.e9_1 = 3;
|
|
1777
|
+
this.d9_1 = 1;
|
|
1780
1778
|
continue $sm;
|
|
1781
1779
|
case 1:
|
|
1782
1780
|
if (!true) {
|
|
1783
|
-
this.
|
|
1781
|
+
this.d9_1 = 4;
|
|
1784
1782
|
continue $sm;
|
|
1785
1783
|
}
|
|
1786
1784
|
|
|
1787
|
-
this.
|
|
1788
|
-
suspendResult = this.
|
|
1785
|
+
this.d9_1 = 2;
|
|
1786
|
+
suspendResult = this.s3k_1.v1c(this);
|
|
1789
1787
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1790
1788
|
return suspendResult;
|
|
1791
1789
|
}
|
|
1792
1790
|
|
|
1793
1791
|
continue $sm;
|
|
1794
1792
|
case 2:
|
|
1795
|
-
this.
|
|
1793
|
+
this.d9_1 = 1;
|
|
1796
1794
|
continue $sm;
|
|
1797
1795
|
case 3:
|
|
1798
|
-
throw this.
|
|
1796
|
+
throw this.g9_1;
|
|
1799
1797
|
case 4:
|
|
1800
1798
|
return Unit_instance;
|
|
1801
1799
|
}
|
|
1802
1800
|
} catch ($p) {
|
|
1803
1801
|
var e = $p;
|
|
1804
|
-
if (this.
|
|
1802
|
+
if (this.e9_1 === 3) {
|
|
1805
1803
|
throw e;
|
|
1806
1804
|
} else {
|
|
1807
|
-
this.
|
|
1808
|
-
this.
|
|
1805
|
+
this.d9_1 = this.e9_1;
|
|
1806
|
+
this.g9_1 = e;
|
|
1809
1807
|
}
|
|
1810
1808
|
}
|
|
1811
1809
|
while (true);
|
|
1812
1810
|
};
|
|
1813
|
-
protoOf(pinger$slambda$slambda).
|
|
1814
|
-
var i = new pinger$slambda$slambda(this.
|
|
1815
|
-
i.
|
|
1811
|
+
protoOf(pinger$slambda$slambda).w1x = function ($this$withTimeoutOrNull, completion) {
|
|
1812
|
+
var i = new pinger$slambda$slambda(this.s3k_1, completion);
|
|
1813
|
+
i.t3k_1 = $this$withTimeoutOrNull;
|
|
1816
1814
|
return i;
|
|
1817
1815
|
};
|
|
1818
1816
|
function pinger$slambda$slambda_0($channel, resultContinuation) {
|
|
1819
1817
|
var i = new pinger$slambda$slambda($channel, resultContinuation);
|
|
1820
1818
|
var l = function ($this$withTimeoutOrNull, $completion) {
|
|
1821
|
-
return i.
|
|
1819
|
+
return i.v1x($this$withTimeoutOrNull, $completion);
|
|
1822
1820
|
};
|
|
1823
1821
|
l.$arity = 1;
|
|
1824
1822
|
return l;
|
|
1825
1823
|
}
|
|
1826
1824
|
function pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1827
|
-
this.
|
|
1828
|
-
this.
|
|
1829
|
-
this.
|
|
1825
|
+
this.c3l_1 = $outgoing;
|
|
1826
|
+
this.d3l_1 = $pingMessage;
|
|
1827
|
+
this.e3l_1 = $channel;
|
|
1830
1828
|
CoroutineImpl.call(this, resultContinuation);
|
|
1831
1829
|
}
|
|
1832
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1833
|
-
var tmp = this.
|
|
1834
|
-
tmp.
|
|
1835
|
-
tmp.
|
|
1836
|
-
return tmp.
|
|
1830
|
+
protoOf(pinger$slambda$slambda_1).v1x = function ($this$withTimeoutOrNull, $completion) {
|
|
1831
|
+
var tmp = this.w1x($this$withTimeoutOrNull, $completion);
|
|
1832
|
+
tmp.f9_1 = Unit_instance;
|
|
1833
|
+
tmp.g9_1 = null;
|
|
1834
|
+
return tmp.l9();
|
|
1837
1835
|
};
|
|
1838
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1839
|
-
return this.
|
|
1836
|
+
protoOf(pinger$slambda$slambda_1).y9 = function (p1, $completion) {
|
|
1837
|
+
return this.v1x((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1840
1838
|
};
|
|
1841
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1842
|
-
var suspendResult = this.
|
|
1839
|
+
protoOf(pinger$slambda$slambda_1).l9 = function () {
|
|
1840
|
+
var suspendResult = this.f9_1;
|
|
1843
1841
|
$sm: do
|
|
1844
1842
|
try {
|
|
1845
|
-
var tmp = this.
|
|
1843
|
+
var tmp = this.d9_1;
|
|
1846
1844
|
switch (tmp) {
|
|
1847
1845
|
case 0:
|
|
1848
|
-
this.
|
|
1849
|
-
get_LOGGER().
|
|
1850
|
-
this.
|
|
1851
|
-
suspendResult = this.
|
|
1846
|
+
this.e9_1 = 6;
|
|
1847
|
+
get_LOGGER().f2u('WebSocket Pinger: sending ping frame');
|
|
1848
|
+
this.d9_1 = 1;
|
|
1849
|
+
suspendResult = this.c3l_1.s1c(new Ping(toByteArray(this.d3l_1, Charsets_getInstance().w1y_1)), this);
|
|
1852
1850
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1853
1851
|
return suspendResult;
|
|
1854
1852
|
}
|
|
1855
1853
|
|
|
1856
1854
|
continue $sm;
|
|
1857
1855
|
case 1:
|
|
1858
|
-
this.
|
|
1856
|
+
this.d9_1 = 2;
|
|
1859
1857
|
continue $sm;
|
|
1860
1858
|
case 2:
|
|
1861
1859
|
if (!true) {
|
|
1862
|
-
this.
|
|
1860
|
+
this.d9_1 = 5;
|
|
1863
1861
|
continue $sm;
|
|
1864
1862
|
}
|
|
1865
1863
|
|
|
1866
|
-
this.
|
|
1867
|
-
suspendResult = this.
|
|
1864
|
+
this.d9_1 = 3;
|
|
1865
|
+
suspendResult = this.e3l_1.v1c(this);
|
|
1868
1866
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1869
1867
|
return suspendResult;
|
|
1870
1868
|
}
|
|
1871
1869
|
|
|
1872
1870
|
continue $sm;
|
|
1873
1871
|
case 3:
|
|
1874
|
-
this.
|
|
1875
|
-
if (decodeToString(this.
|
|
1876
|
-
get_LOGGER().
|
|
1877
|
-
this.
|
|
1872
|
+
this.g3l_1 = suspendResult;
|
|
1873
|
+
if (decodeToString(this.g3l_1.k3i_1, 0, 0 + this.g3l_1.k3i_1.length | 0) === this.d3l_1) {
|
|
1874
|
+
get_LOGGER().f2u('WebSocket Pinger: received valid pong frame ' + this.g3l_1.toString());
|
|
1875
|
+
this.d9_1 = 5;
|
|
1878
1876
|
continue $sm;
|
|
1879
1877
|
} else {
|
|
1880
|
-
this.
|
|
1878
|
+
this.d9_1 = 4;
|
|
1881
1879
|
continue $sm;
|
|
1882
1880
|
}
|
|
1883
1881
|
|
|
1884
1882
|
case 4:
|
|
1885
|
-
get_LOGGER().
|
|
1886
|
-
this.
|
|
1883
|
+
get_LOGGER().f2u('WebSocket Pinger: received invalid pong frame ' + this.g3l_1.toString() + ', continue waiting');
|
|
1884
|
+
this.d9_1 = 2;
|
|
1887
1885
|
continue $sm;
|
|
1888
1886
|
case 5:
|
|
1889
1887
|
return Unit_instance;
|
|
1890
1888
|
case 6:
|
|
1891
|
-
throw this.
|
|
1889
|
+
throw this.g9_1;
|
|
1892
1890
|
}
|
|
1893
1891
|
} catch ($p) {
|
|
1894
1892
|
var e = $p;
|
|
1895
|
-
if (this.
|
|
1893
|
+
if (this.e9_1 === 6) {
|
|
1896
1894
|
throw e;
|
|
1897
1895
|
} else {
|
|
1898
|
-
this.
|
|
1899
|
-
this.
|
|
1896
|
+
this.d9_1 = this.e9_1;
|
|
1897
|
+
this.g9_1 = e;
|
|
1900
1898
|
}
|
|
1901
1899
|
}
|
|
1902
1900
|
while (true);
|
|
1903
1901
|
};
|
|
1904
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1905
|
-
var i = new pinger$slambda$slambda_1(this.
|
|
1906
|
-
i.
|
|
1902
|
+
protoOf(pinger$slambda$slambda_1).w1x = function ($this$withTimeoutOrNull, completion) {
|
|
1903
|
+
var i = new pinger$slambda$slambda_1(this.c3l_1, this.d3l_1, this.e3l_1, completion);
|
|
1904
|
+
i.f3l_1 = $this$withTimeoutOrNull;
|
|
1907
1905
|
return i;
|
|
1908
1906
|
};
|
|
1909
1907
|
function pinger$slambda$slambda_2($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1910
1908
|
var i = new pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation);
|
|
1911
1909
|
var l = function ($this$withTimeoutOrNull, $completion) {
|
|
1912
|
-
return i.
|
|
1910
|
+
return i.v1x($this$withTimeoutOrNull, $completion);
|
|
1913
1911
|
};
|
|
1914
1912
|
l.$arity = 1;
|
|
1915
1913
|
return l;
|
|
1916
1914
|
}
|
|
1917
1915
|
function pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
1918
|
-
this.
|
|
1919
|
-
this.
|
|
1920
|
-
this.
|
|
1921
|
-
this.
|
|
1922
|
-
this.
|
|
1916
|
+
this.p3l_1 = $periodMillis;
|
|
1917
|
+
this.q3l_1 = $timeoutMillis;
|
|
1918
|
+
this.r3l_1 = $onTimeout;
|
|
1919
|
+
this.s3l_1 = $channel;
|
|
1920
|
+
this.t3l_1 = $outgoing;
|
|
1923
1921
|
CoroutineImpl.call(this, resultContinuation);
|
|
1924
1922
|
}
|
|
1925
|
-
protoOf(pinger$slambda).
|
|
1926
|
-
var tmp = this.
|
|
1927
|
-
tmp.
|
|
1928
|
-
tmp.
|
|
1929
|
-
return tmp.
|
|
1923
|
+
protoOf(pinger$slambda).v1x = function ($this$launch, $completion) {
|
|
1924
|
+
var tmp = this.w1x($this$launch, $completion);
|
|
1925
|
+
tmp.f9_1 = Unit_instance;
|
|
1926
|
+
tmp.g9_1 = null;
|
|
1927
|
+
return tmp.l9();
|
|
1930
1928
|
};
|
|
1931
|
-
protoOf(pinger$slambda).
|
|
1932
|
-
return this.
|
|
1929
|
+
protoOf(pinger$slambda).y9 = function (p1, $completion) {
|
|
1930
|
+
return this.v1x((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1933
1931
|
};
|
|
1934
|
-
protoOf(pinger$slambda).
|
|
1935
|
-
var suspendResult = this.
|
|
1932
|
+
protoOf(pinger$slambda).l9 = function () {
|
|
1933
|
+
var suspendResult = this.f9_1;
|
|
1936
1934
|
$sm: do
|
|
1937
1935
|
try {
|
|
1938
|
-
var tmp = this.
|
|
1936
|
+
var tmp = this.d9_1;
|
|
1939
1937
|
switch (tmp) {
|
|
1940
1938
|
case 0:
|
|
1941
|
-
this.
|
|
1942
|
-
get_LOGGER().
|
|
1943
|
-
this.
|
|
1944
|
-
this.
|
|
1945
|
-
this.
|
|
1946
|
-
this.
|
|
1939
|
+
this.e9_1 = 9;
|
|
1940
|
+
get_LOGGER().f2u('Starting WebSocket pinger coroutine with period ' + this.p3l_1.toString() + ' ms and timeout ' + this.q3l_1.toString() + ' ms');
|
|
1941
|
+
this.w3l_1 = Random(getTimeMillis());
|
|
1942
|
+
this.v3l_1 = new Int8Array(32);
|
|
1943
|
+
this.e9_1 = 7;
|
|
1944
|
+
this.d9_1 = 1;
|
|
1947
1945
|
continue $sm;
|
|
1948
1946
|
case 1:
|
|
1949
1947
|
if (!true) {
|
|
1950
|
-
this.
|
|
1948
|
+
this.d9_1 = 6;
|
|
1951
1949
|
continue $sm;
|
|
1952
1950
|
}
|
|
1953
1951
|
|
|
1954
|
-
this.
|
|
1955
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1952
|
+
this.d9_1 = 2;
|
|
1953
|
+
suspendResult = withTimeoutOrNull(this.p3l_1, pinger$slambda$slambda_0(this.s3l_1, null), this);
|
|
1956
1954
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1957
1955
|
return suspendResult;
|
|
1958
1956
|
}
|
|
1959
1957
|
|
|
1960
1958
|
continue $sm;
|
|
1961
1959
|
case 2:
|
|
1962
|
-
this.
|
|
1963
|
-
var pingMessage = '[ping ' +
|
|
1964
|
-
this.
|
|
1965
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1960
|
+
this.w3l_1.zi(this.v3l_1);
|
|
1961
|
+
var pingMessage = '[ping ' + toHexString(this.v3l_1) + ' ping]';
|
|
1962
|
+
this.d9_1 = 3;
|
|
1963
|
+
suspendResult = withTimeoutOrNull(this.q3l_1, pinger$slambda$slambda_2(this.t3l_1, pingMessage, this.s3l_1, null), this);
|
|
1966
1964
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1967
1965
|
return suspendResult;
|
|
1968
1966
|
}
|
|
@@ -1971,93 +1969,93 @@
|
|
|
1971
1969
|
case 3:
|
|
1972
1970
|
var rc = suspendResult;
|
|
1973
1971
|
if (rc == null) {
|
|
1974
|
-
get_LOGGER().
|
|
1975
|
-
this.
|
|
1976
|
-
suspendResult = this.
|
|
1972
|
+
get_LOGGER().f2u('WebSocket pinger has timed out');
|
|
1973
|
+
this.d9_1 = 5;
|
|
1974
|
+
suspendResult = this.r3l_1(CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), 'Ping timeout'), this);
|
|
1977
1975
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1978
1976
|
return suspendResult;
|
|
1979
1977
|
}
|
|
1980
1978
|
continue $sm;
|
|
1981
1979
|
} else {
|
|
1982
|
-
this.
|
|
1980
|
+
this.d9_1 = 4;
|
|
1983
1981
|
continue $sm;
|
|
1984
1982
|
}
|
|
1985
1983
|
|
|
1986
1984
|
case 4:
|
|
1987
|
-
this.
|
|
1985
|
+
this.d9_1 = 1;
|
|
1988
1986
|
continue $sm;
|
|
1989
1987
|
case 5:
|
|
1990
|
-
this.
|
|
1988
|
+
this.d9_1 = 6;
|
|
1991
1989
|
continue $sm;
|
|
1992
1990
|
case 6:
|
|
1993
|
-
this.
|
|
1994
|
-
this.
|
|
1991
|
+
this.e9_1 = 9;
|
|
1992
|
+
this.d9_1 = 8;
|
|
1995
1993
|
continue $sm;
|
|
1996
1994
|
case 7:
|
|
1997
|
-
this.
|
|
1998
|
-
var tmp_0 = this.
|
|
1995
|
+
this.e9_1 = 9;
|
|
1996
|
+
var tmp_0 = this.g9_1;
|
|
1999
1997
|
if (tmp_0 instanceof CancellationException) {
|
|
2000
|
-
var ignore = this.
|
|
2001
|
-
this.
|
|
1998
|
+
var ignore = this.g9_1;
|
|
1999
|
+
this.d9_1 = 8;
|
|
2002
2000
|
continue $sm;
|
|
2003
2001
|
} else {
|
|
2004
|
-
var tmp_1 = this.
|
|
2002
|
+
var tmp_1 = this.g9_1;
|
|
2005
2003
|
if (tmp_1 instanceof ClosedReceiveChannelException) {
|
|
2006
|
-
var ignore_0 = this.
|
|
2007
|
-
this.
|
|
2004
|
+
var ignore_0 = this.g9_1;
|
|
2005
|
+
this.d9_1 = 8;
|
|
2008
2006
|
continue $sm;
|
|
2009
2007
|
} else {
|
|
2010
|
-
var tmp_2 = this.
|
|
2008
|
+
var tmp_2 = this.g9_1;
|
|
2011
2009
|
if (tmp_2 instanceof ClosedSendChannelException) {
|
|
2012
|
-
var ignore_1 = this.
|
|
2013
|
-
this.
|
|
2010
|
+
var ignore_1 = this.g9_1;
|
|
2011
|
+
this.d9_1 = 8;
|
|
2014
2012
|
continue $sm;
|
|
2015
2013
|
} else {
|
|
2016
|
-
var tmp_3 = this.
|
|
2014
|
+
var tmp_3 = this.g9_1;
|
|
2017
2015
|
if (tmp_3 instanceof ClosedByteChannelException) {
|
|
2018
|
-
var ignore_2 = this.
|
|
2019
|
-
this.
|
|
2016
|
+
var ignore_2 = this.g9_1;
|
|
2017
|
+
this.d9_1 = 8;
|
|
2020
2018
|
continue $sm;
|
|
2021
2019
|
} else {
|
|
2022
|
-
throw this.
|
|
2020
|
+
throw this.g9_1;
|
|
2023
2021
|
}
|
|
2024
2022
|
}
|
|
2025
2023
|
}
|
|
2026
2024
|
}
|
|
2027
2025
|
|
|
2028
2026
|
case 8:
|
|
2029
|
-
this.
|
|
2027
|
+
this.e9_1 = 9;
|
|
2030
2028
|
return Unit_instance;
|
|
2031
2029
|
case 9:
|
|
2032
|
-
throw this.
|
|
2030
|
+
throw this.g9_1;
|
|
2033
2031
|
}
|
|
2034
2032
|
} catch ($p) {
|
|
2035
2033
|
var e = $p;
|
|
2036
|
-
if (this.
|
|
2034
|
+
if (this.e9_1 === 9) {
|
|
2037
2035
|
throw e;
|
|
2038
2036
|
} else {
|
|
2039
|
-
this.
|
|
2040
|
-
this.
|
|
2037
|
+
this.d9_1 = this.e9_1;
|
|
2038
|
+
this.g9_1 = e;
|
|
2041
2039
|
}
|
|
2042
2040
|
}
|
|
2043
2041
|
while (true);
|
|
2044
2042
|
};
|
|
2045
|
-
protoOf(pinger$slambda).
|
|
2046
|
-
var i = new pinger$slambda(this.
|
|
2047
|
-
i.
|
|
2043
|
+
protoOf(pinger$slambda).w1x = function ($this$launch, completion) {
|
|
2044
|
+
var i = new pinger$slambda(this.p3l_1, this.q3l_1, this.r3l_1, this.s3l_1, this.t3l_1, completion);
|
|
2045
|
+
i.u3l_1 = $this$launch;
|
|
2048
2046
|
return i;
|
|
2049
2047
|
};
|
|
2050
2048
|
function pinger$slambda_0($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
2051
2049
|
var i = new pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation);
|
|
2052
2050
|
var l = function ($this$launch, $completion) {
|
|
2053
|
-
return i.
|
|
2051
|
+
return i.v1x($this$launch, $completion);
|
|
2054
2052
|
};
|
|
2055
2053
|
l.$arity = 1;
|
|
2056
2054
|
return l;
|
|
2057
2055
|
}
|
|
2058
2056
|
function pinger$lambda($actorJob) {
|
|
2059
2057
|
return function (it) {
|
|
2060
|
-
$actorJob.
|
|
2058
|
+
$actorJob.av();
|
|
2061
2059
|
return Unit_instance;
|
|
2062
2060
|
};
|
|
2063
2061
|
}
|
|
@@ -2074,9 +2072,9 @@
|
|
|
2074
2072
|
var tmp = this;
|
|
2075
2073
|
// Inline function 'kotlin.apply' call
|
|
2076
2074
|
var this_0 = new WebSocketChannelsConfig();
|
|
2077
|
-
this_0.
|
|
2078
|
-
this_0.
|
|
2079
|
-
tmp.
|
|
2075
|
+
this_0.v3e_1 = this_0.x3l();
|
|
2076
|
+
this_0.w3e_1 = this_0.x3l();
|
|
2077
|
+
tmp.u3e_1 = this_0;
|
|
2080
2078
|
}
|
|
2081
2079
|
var Companion_instance_2;
|
|
2082
2080
|
function Companion_getInstance_2() {
|
|
@@ -2086,21 +2084,21 @@
|
|
|
2086
2084
|
}
|
|
2087
2085
|
function WebSocketChannelsConfig() {
|
|
2088
2086
|
Companion_getInstance_2();
|
|
2089
|
-
this.
|
|
2090
|
-
this.
|
|
2087
|
+
this.v3e_1 = Companion_getInstance_3().y3l_1;
|
|
2088
|
+
this.w3e_1 = Companion_getInstance_3().y3l_1;
|
|
2091
2089
|
}
|
|
2092
|
-
protoOf(WebSocketChannelsConfig).
|
|
2093
|
-
return Companion_getInstance_3().
|
|
2090
|
+
protoOf(WebSocketChannelsConfig).x3l = function () {
|
|
2091
|
+
return Companion_getInstance_3().y3l_1;
|
|
2094
2092
|
};
|
|
2095
2093
|
function from(_this__u8e3s4, config) {
|
|
2096
2094
|
// Inline function 'kotlin.with' call
|
|
2097
2095
|
var tmp;
|
|
2098
|
-
if (config.
|
|
2096
|
+
if (config.z3l_1 === 2147483647) {
|
|
2099
2097
|
tmp = Channel(2147483647);
|
|
2100
|
-
} else if (config.
|
|
2101
|
-
tmp = Channel(config.
|
|
2102
|
-
} else if (config.
|
|
2103
|
-
tmp = new BoundedChannel(config.
|
|
2098
|
+
} else if (config.a3m_1.equals(ChannelOverflow_SUSPEND_getInstance())) {
|
|
2099
|
+
tmp = Channel(config.z3l_1, BufferOverflow_SUSPEND_getInstance());
|
|
2100
|
+
} else if (config.a3m_1.equals(ChannelOverflow_CLOSE_getInstance())) {
|
|
2101
|
+
tmp = new BoundedChannel(config.z3l_1);
|
|
2104
2102
|
} else {
|
|
2105
2103
|
// Inline function 'kotlin.error' call
|
|
2106
2104
|
var message = 'Unsupported channel config.';
|
|
@@ -2110,7 +2108,7 @@
|
|
|
2110
2108
|
}
|
|
2111
2109
|
function Companion_3() {
|
|
2112
2110
|
Companion_instance_3 = this;
|
|
2113
|
-
this.
|
|
2111
|
+
this.y3l_1 = new ChannelConfig(2147483647, ChannelOverflow_SUSPEND_getInstance());
|
|
2114
2112
|
}
|
|
2115
2113
|
var Companion_instance_3;
|
|
2116
2114
|
function Companion_getInstance_3() {
|
|
@@ -2120,11 +2118,11 @@
|
|
|
2120
2118
|
}
|
|
2121
2119
|
function ChannelConfig(capacity, onOverflow) {
|
|
2122
2120
|
Companion_getInstance_3();
|
|
2123
|
-
this.
|
|
2124
|
-
this.
|
|
2121
|
+
this.z3l_1 = capacity;
|
|
2122
|
+
this.a3m_1 = onOverflow;
|
|
2125
2123
|
}
|
|
2126
|
-
protoOf(ChannelConfig).
|
|
2127
|
-
return this.
|
|
2124
|
+
protoOf(ChannelConfig).b3m = function () {
|
|
2125
|
+
return this.a3m_1.equals(ChannelOverflow_SUSPEND_getInstance()) && !(this.z3l_1 === 2147483647);
|
|
2128
2126
|
};
|
|
2129
2127
|
var ChannelOverflow_SUSPEND_instance;
|
|
2130
2128
|
var ChannelOverflow_CLOSE_instance;
|
|
@@ -2148,14 +2146,14 @@
|
|
|
2148
2146
|
} else {
|
|
2149
2147
|
tmp_0 = $channel._v;
|
|
2150
2148
|
}
|
|
2151
|
-
if (!tmp_0.
|
|
2149
|
+
if (!tmp_0.x1a()) {
|
|
2152
2150
|
var tmp_1;
|
|
2153
2151
|
if ($channel._v == null) {
|
|
2154
2152
|
throwUninitializedPropertyAccessException('channel');
|
|
2155
2153
|
} else {
|
|
2156
2154
|
tmp_1 = $channel._v;
|
|
2157
2155
|
}
|
|
2158
|
-
tmp_1.
|
|
2156
|
+
tmp_1.x1c(new ChannelOverflowException('Channel overflowed'));
|
|
2159
2157
|
tmp = Unit_instance;
|
|
2160
2158
|
}
|
|
2161
2159
|
return Unit_instance;
|
|
@@ -2163,7 +2161,7 @@
|
|
|
2163
2161
|
}
|
|
2164
2162
|
function Companion_4() {
|
|
2165
2163
|
}
|
|
2166
|
-
protoOf(Companion_4).
|
|
2164
|
+
protoOf(Companion_4).c3m = function (capacity) {
|
|
2167
2165
|
var channel = {_v: null};
|
|
2168
2166
|
var tmp = BufferOverflow_DROP_OLDEST_getInstance();
|
|
2169
2167
|
// Inline function 'kotlin.also' call
|
|
@@ -2176,42 +2174,42 @@
|
|
|
2176
2174
|
return Companion_instance_4;
|
|
2177
2175
|
}
|
|
2178
2176
|
function BoundedChannel(capacity, delegate) {
|
|
2179
|
-
delegate = delegate === VOID ? Companion_instance_4.
|
|
2180
|
-
this.
|
|
2177
|
+
delegate = delegate === VOID ? Companion_instance_4.c3m(capacity) : delegate;
|
|
2178
|
+
this.d3m_1 = delegate;
|
|
2181
2179
|
}
|
|
2182
|
-
protoOf(BoundedChannel).
|
|
2183
|
-
var result = this.
|
|
2180
|
+
protoOf(BoundedChannel).e3m = function (element) {
|
|
2181
|
+
var result = this.d3m_1.t1c(element);
|
|
2184
2182
|
if (!_ChannelResult___get_isSuccess__impl__odq1z9(result) && !_ChannelResult___get_isClosed__impl__mg7kuu(result)) {
|
|
2185
|
-
this.
|
|
2183
|
+
this.x1c(new ChannelOverflowException('Channel overflowed'));
|
|
2186
2184
|
}
|
|
2187
2185
|
return result;
|
|
2188
2186
|
};
|
|
2189
|
-
protoOf(BoundedChannel).
|
|
2190
|
-
return this.
|
|
2187
|
+
protoOf(BoundedChannel).t1c = function (element) {
|
|
2188
|
+
return this.e3m(element);
|
|
2191
2189
|
};
|
|
2192
|
-
protoOf(BoundedChannel).
|
|
2193
|
-
return this.
|
|
2190
|
+
protoOf(BoundedChannel).f3m = function (element, $completion) {
|
|
2191
|
+
return this.d3m_1.s1c(element, $completion);
|
|
2194
2192
|
};
|
|
2195
|
-
protoOf(BoundedChannel).
|
|
2196
|
-
return this.
|
|
2193
|
+
protoOf(BoundedChannel).s1c = function (element, $completion) {
|
|
2194
|
+
return this.f3m(element, $completion);
|
|
2197
2195
|
};
|
|
2198
|
-
protoOf(BoundedChannel).
|
|
2199
|
-
return this.
|
|
2196
|
+
protoOf(BoundedChannel).x1c = function (cause) {
|
|
2197
|
+
return this.d3m_1.x1c(cause);
|
|
2200
2198
|
};
|
|
2201
|
-
protoOf(BoundedChannel).
|
|
2202
|
-
return this.
|
|
2199
|
+
protoOf(BoundedChannel).x1a = function () {
|
|
2200
|
+
return this.d3m_1.x1a();
|
|
2203
2201
|
};
|
|
2204
|
-
protoOf(BoundedChannel).
|
|
2205
|
-
return this.
|
|
2202
|
+
protoOf(BoundedChannel).g3m = function ($completion) {
|
|
2203
|
+
return this.d3m_1.v1c($completion);
|
|
2206
2204
|
};
|
|
2207
|
-
protoOf(BoundedChannel).
|
|
2208
|
-
return this.
|
|
2205
|
+
protoOf(BoundedChannel).v1c = function ($completion) {
|
|
2206
|
+
return this.g3m($completion);
|
|
2209
2207
|
};
|
|
2210
2208
|
protoOf(BoundedChannel).t = function () {
|
|
2211
|
-
return this.
|
|
2209
|
+
return this.d3m_1.t();
|
|
2212
2210
|
};
|
|
2213
|
-
protoOf(BoundedChannel).
|
|
2214
|
-
this.
|
|
2211
|
+
protoOf(BoundedChannel).zu = function (cause) {
|
|
2212
|
+
this.d3m_1.zu(cause);
|
|
2215
2213
|
};
|
|
2216
2214
|
function ChannelOverflowException(message) {
|
|
2217
2215
|
RuntimeException_init_$Init$(message, this);
|
|
@@ -2230,16 +2228,16 @@
|
|
|
2230
2228
|
function WebSocketExtensionsConfig() {
|
|
2231
2229
|
var tmp = this;
|
|
2232
2230
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2233
|
-
tmp.
|
|
2231
|
+
tmp.j3m_1 = ArrayList_init_$Create$();
|
|
2234
2232
|
var tmp_0 = this;
|
|
2235
2233
|
// Inline function 'kotlin.arrayOf' call
|
|
2236
2234
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2237
2235
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2238
|
-
tmp_0.
|
|
2236
|
+
tmp_0.k3m_1 = [false, false, false];
|
|
2239
2237
|
}
|
|
2240
|
-
protoOf(WebSocketExtensionsConfig).
|
|
2238
|
+
protoOf(WebSocketExtensionsConfig).i2x = function () {
|
|
2241
2239
|
// Inline function 'kotlin.collections.map' call
|
|
2242
|
-
var this_0 = this.
|
|
2240
|
+
var this_0 = this.j3m_1;
|
|
2243
2241
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2244
2242
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2245
2243
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2251,14 +2249,14 @@
|
|
|
2251
2249
|
return destination;
|
|
2252
2250
|
};
|
|
2253
2251
|
function parametersToString($this) {
|
|
2254
|
-
return $this.
|
|
2252
|
+
return $this.m3m_1.r() ? '' : '; ' + joinToString($this.m3m_1, ';');
|
|
2255
2253
|
}
|
|
2256
2254
|
function WebSocketExtensionHeader(name, parameters) {
|
|
2257
|
-
this.
|
|
2258
|
-
this.
|
|
2255
|
+
this.l3m_1 = name;
|
|
2256
|
+
this.m3m_1 = parameters;
|
|
2259
2257
|
}
|
|
2260
2258
|
protoOf(WebSocketExtensionHeader).toString = function () {
|
|
2261
|
-
return this.
|
|
2259
|
+
return this.l3m_1 + ' ' + parametersToString(this);
|
|
2262
2260
|
};
|
|
2263
2261
|
function parseWebSocketExtensions(value) {
|
|
2264
2262
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2294,9 +2292,9 @@
|
|
|
2294
2292
|
function close(_this__u8e3s4, reason, $completion) {
|
|
2295
2293
|
reason = reason === VOID ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : reason;
|
|
2296
2294
|
var tmp = new $closeCOROUTINE$(_this__u8e3s4, reason, $completion);
|
|
2297
|
-
tmp.
|
|
2298
|
-
tmp.
|
|
2299
|
-
return tmp.
|
|
2295
|
+
tmp.f9_1 = Unit_instance;
|
|
2296
|
+
tmp.g9_1 = null;
|
|
2297
|
+
return tmp.l9();
|
|
2300
2298
|
}
|
|
2301
2299
|
function closeExceptionally(_this__u8e3s4, cause, $completion) {
|
|
2302
2300
|
var tmp;
|
|
@@ -2310,61 +2308,61 @@
|
|
|
2310
2308
|
}
|
|
2311
2309
|
function $closeCOROUTINE$(_this__u8e3s4, reason, resultContinuation) {
|
|
2312
2310
|
CoroutineImpl.call(this, resultContinuation);
|
|
2313
|
-
this.
|
|
2314
|
-
this.
|
|
2311
|
+
this.v3m_1 = _this__u8e3s4;
|
|
2312
|
+
this.w3m_1 = reason;
|
|
2315
2313
|
}
|
|
2316
|
-
protoOf($closeCOROUTINE$).
|
|
2317
|
-
var suspendResult = this.
|
|
2314
|
+
protoOf($closeCOROUTINE$).l9 = function () {
|
|
2315
|
+
var suspendResult = this.f9_1;
|
|
2318
2316
|
$sm: do
|
|
2319
2317
|
try {
|
|
2320
|
-
var tmp = this.
|
|
2318
|
+
var tmp = this.d9_1;
|
|
2321
2319
|
switch (tmp) {
|
|
2322
2320
|
case 0:
|
|
2323
|
-
this.
|
|
2324
|
-
this.
|
|
2325
|
-
this.
|
|
2326
|
-
suspendResult = this.
|
|
2321
|
+
this.e9_1 = 4;
|
|
2322
|
+
this.e9_1 = 3;
|
|
2323
|
+
this.d9_1 = 1;
|
|
2324
|
+
suspendResult = this.v3m_1.t3e(Close_init_$Create$(this.w3m_1), this);
|
|
2327
2325
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2328
2326
|
return suspendResult;
|
|
2329
2327
|
}
|
|
2330
2328
|
|
|
2331
2329
|
continue $sm;
|
|
2332
2330
|
case 1:
|
|
2333
|
-
this.
|
|
2334
|
-
suspendResult = this.
|
|
2331
|
+
this.d9_1 = 2;
|
|
2332
|
+
suspendResult = this.v3m_1.r1o(this);
|
|
2335
2333
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2336
2334
|
return suspendResult;
|
|
2337
2335
|
}
|
|
2338
2336
|
|
|
2339
2337
|
continue $sm;
|
|
2340
2338
|
case 2:
|
|
2341
|
-
this.
|
|
2342
|
-
this.
|
|
2339
|
+
this.e9_1 = 4;
|
|
2340
|
+
this.d9_1 = 5;
|
|
2343
2341
|
continue $sm;
|
|
2344
2342
|
case 3:
|
|
2345
|
-
this.
|
|
2346
|
-
var tmp_0 = this.
|
|
2343
|
+
this.e9_1 = 4;
|
|
2344
|
+
var tmp_0 = this.g9_1;
|
|
2347
2345
|
if (tmp_0 instanceof Error) {
|
|
2348
|
-
var _unused_var__etf5q3 = this.
|
|
2349
|
-
this.
|
|
2346
|
+
var _unused_var__etf5q3 = this.g9_1;
|
|
2347
|
+
this.d9_1 = 5;
|
|
2350
2348
|
continue $sm;
|
|
2351
2349
|
} else {
|
|
2352
|
-
throw this.
|
|
2350
|
+
throw this.g9_1;
|
|
2353
2351
|
}
|
|
2354
2352
|
|
|
2355
2353
|
case 4:
|
|
2356
|
-
throw this.
|
|
2354
|
+
throw this.g9_1;
|
|
2357
2355
|
case 5:
|
|
2358
|
-
this.
|
|
2356
|
+
this.e9_1 = 4;
|
|
2359
2357
|
return Unit_instance;
|
|
2360
2358
|
}
|
|
2361
2359
|
} catch ($p) {
|
|
2362
2360
|
var e = $p;
|
|
2363
|
-
if (this.
|
|
2361
|
+
if (this.e9_1 === 4) {
|
|
2364
2362
|
throw e;
|
|
2365
2363
|
} else {
|
|
2366
|
-
this.
|
|
2367
|
-
this.
|
|
2364
|
+
this.d9_1 = this.e9_1;
|
|
2365
|
+
this.g9_1 = e;
|
|
2368
2366
|
}
|
|
2369
2367
|
}
|
|
2370
2368
|
while (true);
|
|
@@ -2390,8 +2388,8 @@
|
|
|
2390
2388
|
function Close_init_$Init$(reason, $this) {
|
|
2391
2389
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
2392
2390
|
var builder = new Buffer();
|
|
2393
|
-
builder.
|
|
2394
|
-
writeText(builder, reason.
|
|
2391
|
+
builder.as(reason.l3e_1);
|
|
2392
|
+
writeText(builder, reason.m3e_1);
|
|
2395
2393
|
Close_init_$Init$_0(builder, $this);
|
|
2396
2394
|
return $this;
|
|
2397
2395
|
}
|
|
@@ -2403,7 +2401,7 @@
|
|
|
2403
2401
|
return $this;
|
|
2404
2402
|
}
|
|
2405
2403
|
function Close_init_$Init$_1($this) {
|
|
2406
|
-
Close.call($this, Companion_getInstance_5().
|
|
2404
|
+
Close.call($this, Companion_getInstance_5().p3i_1);
|
|
2407
2405
|
return $this;
|
|
2408
2406
|
}
|
|
2409
2407
|
function Close_init_$Create$_0() {
|
|
@@ -2433,9 +2431,9 @@
|
|
|
2433
2431
|
}
|
|
2434
2432
|
function Companion_5() {
|
|
2435
2433
|
Companion_instance_5 = this;
|
|
2436
|
-
this.
|
|
2434
|
+
this.p3i_1 = new Int8Array(0);
|
|
2437
2435
|
}
|
|
2438
|
-
protoOf(Companion_5).
|
|
2436
|
+
protoOf(Companion_5).q3i = function (fin, frameType, data, rsv1, rsv2, rsv3) {
|
|
2439
2437
|
var tmp;
|
|
2440
2438
|
switch (frameType.a1_1) {
|
|
2441
2439
|
case 1:
|
|
@@ -2471,28 +2469,28 @@
|
|
|
2471
2469
|
rsv1 = rsv1 === VOID ? false : rsv1;
|
|
2472
2470
|
rsv2 = rsv2 === VOID ? false : rsv2;
|
|
2473
2471
|
rsv3 = rsv3 === VOID ? false : rsv3;
|
|
2474
|
-
this.
|
|
2475
|
-
this.
|
|
2476
|
-
this.
|
|
2477
|
-
this.
|
|
2478
|
-
this.
|
|
2479
|
-
this.
|
|
2480
|
-
this.
|
|
2472
|
+
this.i3i_1 = fin;
|
|
2473
|
+
this.j3i_1 = frameType;
|
|
2474
|
+
this.k3i_1 = data;
|
|
2475
|
+
this.l3i_1 = disposableHandle;
|
|
2476
|
+
this.m3i_1 = rsv1;
|
|
2477
|
+
this.n3i_1 = rsv2;
|
|
2478
|
+
this.o3i_1 = rsv3;
|
|
2481
2479
|
}
|
|
2482
2480
|
protoOf(Frame).toString = function () {
|
|
2483
|
-
return 'Frame ' + this.
|
|
2481
|
+
return 'Frame ' + this.j3i_1.toString() + ' (fin=' + this.i3i_1 + ', buffer len = ' + this.k3i_1.length + ')';
|
|
2484
2482
|
};
|
|
2485
2483
|
function get_OUTGOING_CHANNEL_CAPACITY() {
|
|
2486
2484
|
return OUTGOING_CHANNEL_CAPACITY;
|
|
2487
2485
|
}
|
|
2488
2486
|
var OUTGOING_CHANNEL_CAPACITY;
|
|
2489
2487
|
//region block: post-declaration
|
|
2490
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
2488
|
+
protoOf(DefaultWebSocketSessionImpl).t3e = send;
|
|
2491
2489
|
defineProp(protoOf(FrameTooBigException), 'message', function () {
|
|
2492
2490
|
return this.e();
|
|
2493
2491
|
});
|
|
2494
|
-
protoOf(BoundedChannel).
|
|
2495
|
-
protoOf(BoundedChannel).
|
|
2492
|
+
protoOf(BoundedChannel).z1c = close$default;
|
|
2493
|
+
protoOf(BoundedChannel).b1d = cancel$default;
|
|
2496
2494
|
//endregion
|
|
2497
2495
|
//region block: init
|
|
2498
2496
|
NonDisposableHandle_instance = new NonDisposableHandle();
|