@doordeck/doordeck-headless-sdk 0.203.0 → 0.205.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 +7 -7
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.d.ts +21 -2
- package/kotlin/doordeck-sdk.js +12895 -12809
- package/kotlin/kotlin-kotlin-stdlib.js +1711 -1579
- package/kotlin/kotlinx-atomicfu.js +18 -18
- package/kotlin/kotlinx-coroutines-core.js +2093 -2115
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +48 -48
- package/kotlin/kotlinx-io-kotlinx-io-core.js +476 -476
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1917 -1916
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1498 -1501
- package/kotlin/ktor-ktor-client-auth.js +284 -299
- package/kotlin/ktor-ktor-client-content-negotiation.js +160 -165
- package/kotlin/ktor-ktor-client-core.js +2380 -2491
- package/kotlin/ktor-ktor-client-logging.js +694 -719
- package/kotlin/ktor-ktor-events.js +12 -12
- package/kotlin/ktor-ktor-http-cio.js +381 -386
- package/kotlin/ktor-ktor-http.js +809 -808
- package/kotlin/ktor-ktor-io.js +702 -704
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +166 -173
- package/kotlin/ktor-ktor-serialization.js +76 -79
- package/kotlin/ktor-ktor-utils.js +927 -947
- package/kotlin/ktor-ktor-websockets.js +449 -464
- package/package.json +1 -1
|
@@ -4,103 +4,104 @@
|
|
|
4
4
|
var imul = Math.imul;
|
|
5
5
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.b6;
|
|
6
6
|
var mapCapacity = kotlin_kotlin.$_$.u7;
|
|
7
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
8
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
9
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
10
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
11
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
7
|
+
var coerceAtLeast = kotlin_kotlin.$_$.pc;
|
|
8
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.r3;
|
|
9
|
+
var Unit_instance = kotlin_kotlin.$_$.z2;
|
|
10
|
+
var protoOf = kotlin_kotlin.$_$.hc;
|
|
11
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.lb;
|
|
12
12
|
var enumEntries = kotlin_kotlin.$_$.u9;
|
|
13
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
14
|
-
var Enum = kotlin_kotlin.$_$.
|
|
15
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
13
|
+
var objectCreate = kotlin_kotlin.$_$.gc;
|
|
14
|
+
var Enum = kotlin_kotlin.$_$.ag;
|
|
15
|
+
var initMetadataForClass = kotlin_kotlin.$_$.kb;
|
|
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.$_$.
|
|
22
|
-
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
17
|
+
var toString = kotlin_kotlin.$_$.kc;
|
|
18
|
+
var getStringHashCode = kotlin_kotlin.$_$.ib;
|
|
19
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.ob;
|
|
20
|
+
var isInterface = kotlin_kotlin.$_$.zb;
|
|
21
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.o4;
|
|
22
|
+
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e;
|
|
23
23
|
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b2;
|
|
24
|
-
var CoroutineStart_UNDISPATCHED_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
24
|
+
var CoroutineStart_UNDISPATCHED_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k;
|
|
25
25
|
var ChannelResult = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u;
|
|
26
|
-
var _ChannelResult___get_isSuccess__impl__odq1z9 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
26
|
+
var _ChannelResult___get_isSuccess__impl__odq1z9 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b;
|
|
27
27
|
var CoroutineImpl = kotlin_kotlin.$_$.s9;
|
|
28
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
28
|
+
var THROW_CCE = kotlin_kotlin.$_$.jg;
|
|
29
29
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r1;
|
|
30
30
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.b9;
|
|
31
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
31
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.pb;
|
|
32
|
+
var constructCallableReference = kotlin_kotlin.$_$.ab;
|
|
32
33
|
var get_isTraceEnabled = kotlin_io_ktor_ktor_utils.$_$.k;
|
|
33
34
|
var BytePacketBuilder = kotlin_io_ktor_ktor_io.$_$.x;
|
|
34
35
|
var writeFully = kotlin_io_ktor_ktor_io.$_$.g1;
|
|
35
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
36
|
+
var ensureNotNull = kotlin_kotlin.$_$.bh;
|
|
36
37
|
var build = kotlin_io_ktor_ktor_io.$_$.y;
|
|
37
38
|
var readByteArray = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
38
39
|
var cancelConsumed = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b1;
|
|
39
40
|
var ClosedSendChannelException = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.x;
|
|
40
|
-
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.
|
|
41
|
+
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.z3;
|
|
41
42
|
var ChannelIOException = kotlin_io_ktor_ktor_utils.$_$.d;
|
|
42
43
|
var CancellationException = kotlin_kotlin.$_$.a9;
|
|
43
44
|
var ClosedReceiveChannelException = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.w;
|
|
44
45
|
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
45
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
46
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
46
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.mb;
|
|
47
|
+
var toString_0 = kotlin_kotlin.$_$.mh;
|
|
47
48
|
var get_size = kotlin_io_ktor_ktor_io.$_$.d1;
|
|
48
49
|
var fromInt = kotlin_kotlin.$_$.da;
|
|
49
50
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
|
|
50
51
|
var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l1;
|
|
51
52
|
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t1;
|
|
52
|
-
var Key_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
53
|
+
var Key_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g;
|
|
53
54
|
var CoroutineName = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p1;
|
|
54
|
-
var Factory_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
55
|
+
var Factory_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c;
|
|
55
56
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.b;
|
|
56
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
57
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
57
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j3;
|
|
58
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.s4;
|
|
58
59
|
var joinToString = kotlin_kotlin.$_$.m7;
|
|
59
60
|
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.j;
|
|
60
61
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
61
62
|
var readText = kotlin_io_ktor_ktor_io.$_$.b1;
|
|
62
63
|
var DisposableHandle = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s1;
|
|
63
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
64
|
-
var Exception = kotlin_kotlin.$_$.
|
|
65
|
-
var Exception_init_$Init$ = kotlin_kotlin.$_$.
|
|
64
|
+
var initMetadataForObject = kotlin_kotlin.$_$.qb;
|
|
65
|
+
var Exception = kotlin_kotlin.$_$.cg;
|
|
66
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.g4;
|
|
66
67
|
var captureStack = kotlin_kotlin.$_$.sa;
|
|
67
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
68
|
+
var defineProp = kotlin_kotlin.$_$.bb;
|
|
68
69
|
var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n1;
|
|
69
70
|
var compareTo = kotlin_kotlin.$_$.za;
|
|
70
71
|
var Channel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.v;
|
|
71
|
-
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.
|
|
72
|
+
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.b;
|
|
72
73
|
var toByteArray = kotlin_io_ktor_ktor_io.$_$.f1;
|
|
73
|
-
var decodeToString = kotlin_kotlin.$_$.
|
|
74
|
+
var decodeToString = kotlin_kotlin.$_$.od;
|
|
74
75
|
var getTimeMillis = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
75
|
-
var Random = kotlin_kotlin.$_$.
|
|
76
|
-
var withTimeoutOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
77
|
-
var toHexString = kotlin_kotlin.$_$.
|
|
76
|
+
var Random = kotlin_kotlin.$_$.nc;
|
|
77
|
+
var withTimeoutOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r;
|
|
78
|
+
var toHexString = kotlin_kotlin.$_$.af;
|
|
78
79
|
var ClosedByteChannelException = kotlin_io_ktor_ktor_io.$_$.o1;
|
|
79
|
-
var BufferOverflow_SUSPEND_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
80
|
+
var BufferOverflow_SUSPEND_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j;
|
|
80
81
|
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.v9;
|
|
81
|
-
var BufferOverflow_DROP_OLDEST_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
82
|
-
var _ChannelResult___get_isClosed__impl__mg7kuu = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
83
|
-
var close$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
84
|
-
var cancel$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
85
|
-
var ReceiveChannel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z;
|
|
82
|
+
var BufferOverflow_DROP_OLDEST_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i;
|
|
83
|
+
var _ChannelResult___get_isClosed__impl__mg7kuu = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a;
|
|
84
|
+
var close$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
|
|
85
|
+
var cancel$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s;
|
|
86
86
|
var SendChannel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a1;
|
|
87
|
-
var
|
|
88
|
-
var
|
|
89
|
-
var
|
|
90
|
-
var
|
|
87
|
+
var ReceiveChannel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z;
|
|
88
|
+
var RuntimeException = kotlin_kotlin.$_$.ig;
|
|
89
|
+
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.a5;
|
|
90
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i3;
|
|
91
|
+
var split = kotlin_kotlin.$_$.je;
|
|
91
92
|
var first = kotlin_kotlin.$_$.e7;
|
|
92
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
93
|
-
var trim = kotlin_kotlin.$_$.
|
|
93
|
+
var isCharSequence = kotlin_kotlin.$_$.vb;
|
|
94
|
+
var trim = kotlin_kotlin.$_$.nf;
|
|
94
95
|
var drop = kotlin_kotlin.$_$.v6;
|
|
95
96
|
var writeText = kotlin_io_ktor_ktor_io.$_$.h1;
|
|
96
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
97
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ih;
|
|
97
98
|
//endregion
|
|
98
99
|
//region block: pre-declaration
|
|
99
100
|
initMetadataForCompanion(Companion);
|
|
100
101
|
initMetadataForClass(Codes, 'Codes', VOID, Enum);
|
|
101
102
|
initMetadataForClass(CloseReason, 'CloseReason');
|
|
102
103
|
function send(frame, $completion) {
|
|
103
|
-
return this.
|
|
104
|
+
return this.z3e().w1c(frame, $completion);
|
|
104
105
|
}
|
|
105
106
|
initMetadataForInterface(WebSocketSession, 'WebSocketSession', VOID, VOID, [CoroutineScope], [1, 0]);
|
|
106
107
|
initMetadataForInterface(DefaultWebSocketSession, 'DefaultWebSocketSession', VOID, VOID, [WebSocketSession], [1, 0]);
|
|
@@ -127,7 +128,7 @@
|
|
|
127
128
|
initMetadataForClass(ChannelConfig, 'ChannelConfig');
|
|
128
129
|
initMetadataForClass(ChannelOverflow, 'ChannelOverflow', VOID, Enum);
|
|
129
130
|
initMetadataForCompanion(Companion_4);
|
|
130
|
-
initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [
|
|
131
|
+
initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [SendChannel, ReceiveChannel], [1, 0]);
|
|
131
132
|
initMetadataForClass(ChannelOverflowException, 'ChannelOverflowException', VOID, RuntimeException);
|
|
132
133
|
initMetadataForInterface(WebSocketExtension, 'WebSocketExtension');
|
|
133
134
|
initMetadataForClass(WebSocketExtensionsConfig, 'WebSocketExtensionsConfig', WebSocketExtensionsConfig);
|
|
@@ -164,14 +165,14 @@
|
|
|
164
165
|
var _iterator__ex2g4s = this_0.t();
|
|
165
166
|
while (_iterator__ex2g4s.u()) {
|
|
166
167
|
var element = _iterator__ex2g4s.v();
|
|
167
|
-
var tmp$ret$2 = element.
|
|
168
|
+
var tmp$ret$2 = element.o3e_1;
|
|
168
169
|
destination.y2(tmp$ret$2, element);
|
|
169
170
|
}
|
|
170
|
-
tmp.
|
|
171
|
-
this.
|
|
171
|
+
tmp.p3e_1 = destination;
|
|
172
|
+
this.q3e_1 = Codes_INTERNAL_ERROR_getInstance();
|
|
172
173
|
}
|
|
173
|
-
protoOf(Companion).
|
|
174
|
-
return this.
|
|
174
|
+
protoOf(Companion).r3e = function (code) {
|
|
175
|
+
return this.p3e_1.g3(code);
|
|
175
176
|
};
|
|
176
177
|
var Companion_instance;
|
|
177
178
|
function Companion_getInstance() {
|
|
@@ -209,7 +210,7 @@
|
|
|
209
210
|
}
|
|
210
211
|
var $ENTRIES;
|
|
211
212
|
function CloseReason_init_$Init$(code, message, $this) {
|
|
212
|
-
CloseReason.call($this, code.
|
|
213
|
+
CloseReason.call($this, code.o3e_1, message);
|
|
213
214
|
return $this;
|
|
214
215
|
}
|
|
215
216
|
function CloseReason_init_$Create$(code, message) {
|
|
@@ -217,7 +218,7 @@
|
|
|
217
218
|
}
|
|
218
219
|
function Codes(name, ordinal, code) {
|
|
219
220
|
Enum.call(this, name, ordinal);
|
|
220
|
-
this.
|
|
221
|
+
this.o3e_1 = code;
|
|
221
222
|
}
|
|
222
223
|
function Codes_NORMAL_getInstance() {
|
|
223
224
|
Codes_initEntries();
|
|
@@ -268,19 +269,19 @@
|
|
|
268
269
|
return Codes_TRY_AGAIN_LATER_instance;
|
|
269
270
|
}
|
|
270
271
|
function CloseReason(code, message) {
|
|
271
|
-
this.
|
|
272
|
-
this.
|
|
272
|
+
this.s3e_1 = code;
|
|
273
|
+
this.t3e_1 = message;
|
|
273
274
|
}
|
|
274
|
-
protoOf(CloseReason).
|
|
275
|
-
return Companion_getInstance().
|
|
275
|
+
protoOf(CloseReason).u3e = function () {
|
|
276
|
+
return Companion_getInstance().r3e(this.s3e_1);
|
|
276
277
|
};
|
|
277
278
|
protoOf(CloseReason).toString = function () {
|
|
278
|
-
var tmp0_elvis_lhs = this.
|
|
279
|
-
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.
|
|
279
|
+
var tmp0_elvis_lhs = this.u3e();
|
|
280
|
+
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.s3e_1 : tmp0_elvis_lhs) + ', message=' + this.t3e_1 + ')';
|
|
280
281
|
};
|
|
281
282
|
protoOf(CloseReason).hashCode = function () {
|
|
282
|
-
var result = this.
|
|
283
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
283
|
+
var result = this.s3e_1;
|
|
284
|
+
result = imul(result, 31) + getStringHashCode(this.t3e_1) | 0;
|
|
284
285
|
return result;
|
|
285
286
|
};
|
|
286
287
|
protoOf(CloseReason).equals = function (other) {
|
|
@@ -288,9 +289,9 @@
|
|
|
288
289
|
return true;
|
|
289
290
|
if (!(other instanceof CloseReason))
|
|
290
291
|
return false;
|
|
291
|
-
if (!(this.
|
|
292
|
+
if (!(this.s3e_1 === other.s3e_1))
|
|
292
293
|
return false;
|
|
293
|
-
if (!(this.
|
|
294
|
+
if (!(this.t3e_1 === other.t3e_1))
|
|
294
295
|
return false;
|
|
295
296
|
return true;
|
|
296
297
|
};
|
|
@@ -320,21 +321,21 @@
|
|
|
320
321
|
function DefaultWebSocketSession_0(session, pingIntervalMillis, timeoutMillis, channelsConfig) {
|
|
321
322
|
pingIntervalMillis = pingIntervalMillis === VOID ? 0n : pingIntervalMillis;
|
|
322
323
|
timeoutMillis = timeoutMillis === VOID ? 15000n : timeoutMillis;
|
|
323
|
-
channelsConfig = channelsConfig === VOID ? Companion_getInstance_2().
|
|
324
|
+
channelsConfig = channelsConfig === VOID ? Companion_getInstance_2().b3f_1 : channelsConfig;
|
|
324
325
|
_init_properties_DefaultWebSocketSession_kt__469s0y();
|
|
325
326
|
// Inline function 'kotlin.require' call
|
|
326
327
|
if (!!isInterface(session, DefaultWebSocketSession)) {
|
|
327
328
|
var message = 'Cannot wrap other DefaultWebSocketSession';
|
|
328
329
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
329
330
|
}
|
|
330
|
-
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.
|
|
331
|
+
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.c3f_1, channelsConfig.d3f_1);
|
|
331
332
|
}
|
|
332
333
|
function runIncomingProcessor($this, ponger) {
|
|
333
|
-
var tmp = get_IncomingProcessorCoroutineName().
|
|
334
|
+
var tmp = get_IncomingProcessorCoroutineName().gh(Dispatchers_getInstance().l16_1);
|
|
334
335
|
return launch($this, tmp, VOID, DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0($this, ponger, null));
|
|
335
336
|
}
|
|
336
337
|
function runOutgoingProcessor($this) {
|
|
337
|
-
var tmp = get_OutgoingProcessorCoroutineName().
|
|
338
|
+
var tmp = get_OutgoingProcessorCoroutineName().gh(Dispatchers_getInstance().l16_1);
|
|
338
339
|
var tmp_0 = CoroutineStart_UNDISPATCHED_getInstance();
|
|
339
340
|
return launch($this, tmp, tmp_0, DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0($this, null));
|
|
340
341
|
}
|
|
@@ -352,32 +353,32 @@
|
|
|
352
353
|
return tmp.l9();
|
|
353
354
|
}
|
|
354
355
|
function tryClose($this) {
|
|
355
|
-
return $this.
|
|
356
|
+
return $this.i3g_1.atomicfu$compareAndSet(false, true);
|
|
356
357
|
}
|
|
357
358
|
function runOrCancelPinger($this) {
|
|
358
|
-
var interval = $this.
|
|
359
|
+
var interval = $this.l3g_1;
|
|
359
360
|
var tmp;
|
|
360
|
-
if ($this.
|
|
361
|
+
if ($this.i3g_1.kotlinx$atomicfu$value) {
|
|
361
362
|
tmp = null;
|
|
362
363
|
} else if (interval > 0n) {
|
|
363
|
-
var tmp_0 = $this.
|
|
364
|
-
var tmp_1 = $this.
|
|
364
|
+
var tmp_0 = $this.b3g_1.z3e();
|
|
365
|
+
var tmp_1 = $this.m3g_1;
|
|
365
366
|
tmp = pinger($this, tmp_0, interval, tmp_1, DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0($this, null));
|
|
366
367
|
} else {
|
|
367
368
|
tmp = null;
|
|
368
369
|
}
|
|
369
370
|
var newPinger = tmp;
|
|
370
|
-
var tmp0_safe_receiver = $this.
|
|
371
|
+
var tmp0_safe_receiver = $this.c3g_1.atomicfu$getAndSet(newPinger);
|
|
371
372
|
if (tmp0_safe_receiver == null)
|
|
372
373
|
null;
|
|
373
374
|
else
|
|
374
|
-
tmp0_safe_receiver.
|
|
375
|
-
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.
|
|
375
|
+
tmp0_safe_receiver.d1d();
|
|
376
|
+
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.x1c(Companion_getInstance_0().o3g_1));
|
|
376
377
|
if (tmp2_safe_receiver == null)
|
|
377
378
|
null;
|
|
378
379
|
else
|
|
379
|
-
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.
|
|
380
|
-
if ($this.
|
|
380
|
+
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.h1b_1);
|
|
381
|
+
if ($this.i3g_1.kotlinx$atomicfu$value && !(newPinger == null)) {
|
|
381
382
|
runOrCancelPinger($this);
|
|
382
383
|
}
|
|
383
384
|
}
|
|
@@ -390,28 +391,28 @@
|
|
|
390
391
|
function processIncomingExtensions($this, frame) {
|
|
391
392
|
// Inline function 'kotlin.collections.fold' call
|
|
392
393
|
var accumulator = frame;
|
|
393
|
-
var _iterator__ex2g4s = $this.
|
|
394
|
+
var _iterator__ex2g4s = $this.b3h().t();
|
|
394
395
|
while (_iterator__ex2g4s.u()) {
|
|
395
396
|
var element = _iterator__ex2g4s.v();
|
|
396
397
|
var current = accumulator;
|
|
397
|
-
accumulator = element.
|
|
398
|
+
accumulator = element.c3h(current);
|
|
398
399
|
}
|
|
399
400
|
return accumulator;
|
|
400
401
|
}
|
|
401
402
|
function processOutgoingExtensions($this, frame) {
|
|
402
403
|
// Inline function 'kotlin.collections.fold' call
|
|
403
404
|
var accumulator = frame;
|
|
404
|
-
var _iterator__ex2g4s = $this.
|
|
405
|
+
var _iterator__ex2g4s = $this.b3h().t();
|
|
405
406
|
while (_iterator__ex2g4s.u()) {
|
|
406
407
|
var element = _iterator__ex2g4s.v();
|
|
407
408
|
var current = accumulator;
|
|
408
|
-
accumulator = element.
|
|
409
|
+
accumulator = element.d3h(current);
|
|
409
410
|
}
|
|
410
411
|
return accumulator;
|
|
411
412
|
}
|
|
412
413
|
function Companion_0() {
|
|
413
414
|
Companion_instance_0 = this;
|
|
414
|
-
this.
|
|
415
|
+
this.o3g_1 = new Pong(new Int8Array(0), NonDisposableHandle_instance);
|
|
415
416
|
}
|
|
416
417
|
var Companion_instance_0;
|
|
417
418
|
function Companion_getInstance_0() {
|
|
@@ -420,19 +421,19 @@
|
|
|
420
421
|
return Companion_instance_0;
|
|
421
422
|
}
|
|
422
423
|
function DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
423
|
-
this.
|
|
424
|
-
this.
|
|
425
|
-
this.
|
|
424
|
+
this.m3h_1 = $incomingJob;
|
|
425
|
+
this.n3h_1 = $outgoingJob;
|
|
426
|
+
this.o3h_1 = this$0;
|
|
426
427
|
CoroutineImpl.call(this, resultContinuation);
|
|
427
428
|
}
|
|
428
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
429
|
-
var tmp = this.
|
|
429
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).c1y = function ($this$launch, $completion) {
|
|
430
|
+
var tmp = this.d1y($this$launch, $completion);
|
|
430
431
|
tmp.f9_1 = Unit_instance;
|
|
431
432
|
tmp.g9_1 = null;
|
|
432
433
|
return tmp.l9();
|
|
433
434
|
};
|
|
434
435
|
protoOf(DefaultWebSocketSessionImpl$start$slambda).y9 = function (p1, $completion) {
|
|
435
|
-
return this.
|
|
436
|
+
return this.c1y((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
436
437
|
};
|
|
437
438
|
protoOf(DefaultWebSocketSessionImpl$start$slambda).l9 = function () {
|
|
438
439
|
var suspendResult = this.f9_1;
|
|
@@ -443,7 +444,7 @@
|
|
|
443
444
|
case 0:
|
|
444
445
|
this.e9_1 = 3;
|
|
445
446
|
this.d9_1 = 1;
|
|
446
|
-
suspendResult = this.
|
|
447
|
+
suspendResult = this.m3h_1.av(this);
|
|
447
448
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
448
449
|
return suspendResult;
|
|
449
450
|
}
|
|
@@ -451,14 +452,14 @@
|
|
|
451
452
|
continue $sm;
|
|
452
453
|
case 1:
|
|
453
454
|
this.d9_1 = 2;
|
|
454
|
-
suspendResult = this.
|
|
455
|
+
suspendResult = this.n3h_1.av(this);
|
|
455
456
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
456
457
|
return suspendResult;
|
|
457
458
|
}
|
|
458
459
|
|
|
459
460
|
continue $sm;
|
|
460
461
|
case 2:
|
|
461
|
-
this.
|
|
462
|
+
this.o3h_1.e3g_1.ev();
|
|
462
463
|
return Unit_instance;
|
|
463
464
|
case 3:
|
|
464
465
|
throw this.g9_1;
|
|
@@ -474,32 +475,30 @@
|
|
|
474
475
|
}
|
|
475
476
|
while (true);
|
|
476
477
|
};
|
|
477
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
478
|
-
var i = new DefaultWebSocketSessionImpl$start$slambda(this.
|
|
479
|
-
i.
|
|
478
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).d1y = function ($this$launch, completion) {
|
|
479
|
+
var i = new DefaultWebSocketSessionImpl$start$slambda(this.m3h_1, this.n3h_1, this.o3h_1, completion);
|
|
480
|
+
i.p3h_1 = $this$launch;
|
|
480
481
|
return i;
|
|
481
482
|
};
|
|
482
483
|
function DefaultWebSocketSessionImpl$start$slambda_0($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
483
484
|
var i = new DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation);
|
|
484
|
-
|
|
485
|
-
return i.
|
|
486
|
-
};
|
|
487
|
-
l.$arity = 1;
|
|
488
|
-
return l;
|
|
485
|
+
return constructCallableReference(function ($this$launch, $completion) {
|
|
486
|
+
return i.c1y($this$launch, $completion);
|
|
487
|
+
}, 1);
|
|
489
488
|
}
|
|
490
489
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation) {
|
|
491
|
-
this.
|
|
492
|
-
this.
|
|
490
|
+
this.y3h_1 = this$0;
|
|
491
|
+
this.z3h_1 = $ponger;
|
|
493
492
|
CoroutineImpl.call(this, resultContinuation);
|
|
494
493
|
}
|
|
495
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
496
|
-
var tmp = this.
|
|
494
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).c1y = function ($this$launch, $completion) {
|
|
495
|
+
var tmp = this.d1y($this$launch, $completion);
|
|
497
496
|
tmp.f9_1 = Unit_instance;
|
|
498
497
|
tmp.g9_1 = null;
|
|
499
498
|
return tmp.l9();
|
|
500
499
|
};
|
|
501
500
|
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).y9 = function (p1, $completion) {
|
|
502
|
-
return this.
|
|
501
|
+
return this.c1y((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
503
502
|
};
|
|
504
503
|
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).l9 = function () {
|
|
505
504
|
var suspendResult = this.f9_1;
|
|
@@ -509,10 +508,10 @@
|
|
|
509
508
|
switch (tmp) {
|
|
510
509
|
case 0:
|
|
511
510
|
this.e9_1 = 39;
|
|
511
|
+
this.k3i_1 = null;
|
|
512
512
|
this.d3i_1 = null;
|
|
513
|
-
this.
|
|
514
|
-
this.
|
|
515
|
-
this.x3h_1 = Unit_instance;
|
|
513
|
+
this.c3i_1 = false;
|
|
514
|
+
this.e3i_1 = Unit_instance;
|
|
516
515
|
this.d9_1 = 1;
|
|
517
516
|
continue $sm;
|
|
518
517
|
case 1:
|
|
@@ -521,12 +520,12 @@
|
|
|
521
520
|
case 2:
|
|
522
521
|
this.e9_1 = 33;
|
|
523
522
|
this.e9_1 = 32;
|
|
524
|
-
this.
|
|
523
|
+
this.o3i_1 = this.y3h_1.b3g_1.y3e();
|
|
525
524
|
this.d9_1 = 3;
|
|
526
525
|
continue $sm;
|
|
527
526
|
case 3:
|
|
528
|
-
this.
|
|
529
|
-
this.
|
|
527
|
+
this.h3i_1 = this.o3i_1;
|
|
528
|
+
this.g3i_1 = null;
|
|
530
529
|
this.d9_1 = 4;
|
|
531
530
|
continue $sm;
|
|
532
531
|
case 4:
|
|
@@ -538,12 +537,12 @@
|
|
|
538
537
|
case 6:
|
|
539
538
|
this.e9_1 = 29;
|
|
540
539
|
this.e9_1 = 28;
|
|
541
|
-
this.
|
|
540
|
+
this.n3i_1 = this.h3i_1.t();
|
|
542
541
|
this.d9_1 = 7;
|
|
543
542
|
continue $sm;
|
|
544
543
|
case 7:
|
|
545
544
|
this.d9_1 = 8;
|
|
546
|
-
suspendResult = this.
|
|
545
|
+
suspendResult = this.n3i_1.z1a(this);
|
|
547
546
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
548
547
|
return suspendResult;
|
|
549
548
|
}
|
|
@@ -555,24 +554,24 @@
|
|
|
555
554
|
continue $sm;
|
|
556
555
|
}
|
|
557
556
|
|
|
558
|
-
var e = this.
|
|
559
|
-
this.
|
|
557
|
+
var e = this.n3i_1.v();
|
|
558
|
+
this.m3i_1 = e;
|
|
560
559
|
this.d9_1 = 9;
|
|
561
560
|
continue $sm;
|
|
562
561
|
case 9:
|
|
563
|
-
this.
|
|
562
|
+
this.l3i_1 = this.m3i_1;
|
|
564
563
|
var this_0 = get_LOGGER();
|
|
565
564
|
if (get_isTraceEnabled(this_0)) {
|
|
566
|
-
this_0.
|
|
565
|
+
this_0.m2u('WebSocketSession(' + toString(this.a3i_1) + ') receiving frame ' + this.l3i_1.toString());
|
|
567
566
|
}
|
|
568
567
|
|
|
569
|
-
var tmp0_subject = this.
|
|
568
|
+
var tmp0_subject = this.l3i_1;
|
|
570
569
|
if (tmp0_subject instanceof Close) {
|
|
571
|
-
if (!this.
|
|
570
|
+
if (!this.y3h_1.z3e().b1b()) {
|
|
572
571
|
this.d9_1 = 18;
|
|
573
|
-
var tmp_0 = this.
|
|
574
|
-
var tmp1_elvis_lhs = readReason(this.
|
|
575
|
-
suspendResult = tmp_0.
|
|
572
|
+
var tmp_0 = this.y3h_1.z3e();
|
|
573
|
+
var tmp1_elvis_lhs = readReason(this.l3i_1);
|
|
574
|
+
suspendResult = tmp_0.w1c(Close_init_$Create$(tmp1_elvis_lhs == null ? get_NORMAL_CLOSE() : tmp1_elvis_lhs), this);
|
|
576
575
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
577
576
|
return suspendResult;
|
|
578
577
|
}
|
|
@@ -583,14 +582,14 @@
|
|
|
583
582
|
}
|
|
584
583
|
} else {
|
|
585
584
|
if (tmp0_subject instanceof Pong) {
|
|
586
|
-
var tmp2_safe_receiver = this.
|
|
585
|
+
var tmp2_safe_receiver = this.y3h_1.c3g_1.kotlinx$atomicfu$value;
|
|
587
586
|
if (tmp2_safe_receiver == null) {
|
|
588
|
-
this.
|
|
587
|
+
this.j3i_1 = null;
|
|
589
588
|
this.d9_1 = 17;
|
|
590
589
|
continue $sm;
|
|
591
590
|
} else {
|
|
592
591
|
this.d9_1 = 16;
|
|
593
|
-
suspendResult = tmp2_safe_receiver.
|
|
592
|
+
suspendResult = tmp2_safe_receiver.w1c(this.l3i_1, this);
|
|
594
593
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
595
594
|
return suspendResult;
|
|
596
595
|
}
|
|
@@ -599,14 +598,14 @@
|
|
|
599
598
|
} else {
|
|
600
599
|
if (tmp0_subject instanceof Ping) {
|
|
601
600
|
this.d9_1 = 15;
|
|
602
|
-
suspendResult = this.
|
|
601
|
+
suspendResult = this.z3h_1.w1c(this.l3i_1, this);
|
|
603
602
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
604
603
|
return suspendResult;
|
|
605
604
|
}
|
|
606
605
|
continue $sm;
|
|
607
606
|
} else {
|
|
608
607
|
this.d9_1 = 10;
|
|
609
|
-
suspendResult = checkMaxFrameSize(this.
|
|
608
|
+
suspendResult = checkMaxFrameSize(this.y3h_1, this.d3i_1, this.l3i_1, this);
|
|
610
609
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
611
610
|
return suspendResult;
|
|
612
611
|
}
|
|
@@ -616,14 +615,14 @@
|
|
|
616
615
|
}
|
|
617
616
|
|
|
618
617
|
case 10:
|
|
619
|
-
if (!this.
|
|
620
|
-
if (this.
|
|
621
|
-
this.
|
|
618
|
+
if (!this.l3i_1.p3i_1) {
|
|
619
|
+
if (this.k3i_1 == null) {
|
|
620
|
+
this.k3i_1 = this.l3i_1;
|
|
622
621
|
}
|
|
623
|
-
if (this.
|
|
624
|
-
this.
|
|
622
|
+
if (this.d3i_1 == null) {
|
|
623
|
+
this.d3i_1 = BytePacketBuilder();
|
|
625
624
|
}
|
|
626
|
-
writeFully(this.
|
|
625
|
+
writeFully(this.d3i_1, this.l3i_1.r3i_1);
|
|
627
626
|
this.d9_1 = 21;
|
|
628
627
|
continue $sm;
|
|
629
628
|
} else {
|
|
@@ -632,9 +631,9 @@
|
|
|
632
631
|
}
|
|
633
632
|
|
|
634
633
|
case 11:
|
|
635
|
-
if (this.
|
|
634
|
+
if (this.k3i_1 == null) {
|
|
636
635
|
this.d9_1 = 14;
|
|
637
|
-
suspendResult = this.
|
|
636
|
+
suspendResult = this.y3h_1.g3g_1.w1c(processIncomingExtensions(this.y3h_1, this.l3i_1), this);
|
|
638
637
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
639
638
|
return suspendResult;
|
|
640
639
|
}
|
|
@@ -645,11 +644,11 @@
|
|
|
645
644
|
}
|
|
646
645
|
|
|
647
646
|
case 12:
|
|
648
|
-
writeFully(ensureNotNull(this.
|
|
649
|
-
var defragmented = Companion_getInstance_5().
|
|
650
|
-
this.
|
|
647
|
+
writeFully(ensureNotNull(this.d3i_1), this.l3i_1.r3i_1);
|
|
648
|
+
var defragmented = Companion_getInstance_5().x3i(true, this.k3i_1.q3i_1, readByteArray(build(this.d3i_1)), this.k3i_1.t3i_1, this.k3i_1.u3i_1, this.k3i_1.v3i_1);
|
|
649
|
+
this.k3i_1 = null;
|
|
651
650
|
this.d9_1 = 13;
|
|
652
|
-
suspendResult = this.
|
|
651
|
+
suspendResult = this.y3h_1.g3g_1.w1c(processIncomingExtensions(this.y3h_1, defragmented), this);
|
|
653
652
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
654
653
|
return suspendResult;
|
|
655
654
|
}
|
|
@@ -657,7 +656,7 @@
|
|
|
657
656
|
continue $sm;
|
|
658
657
|
case 13:
|
|
659
658
|
var tmp_1 = this;
|
|
660
|
-
tmp_1.
|
|
659
|
+
tmp_1.i3i_1 = Unit_instance;
|
|
661
660
|
this.d9_1 = 20;
|
|
662
661
|
continue $sm;
|
|
663
662
|
case 14:
|
|
@@ -665,23 +664,23 @@
|
|
|
665
664
|
continue $sm;
|
|
666
665
|
case 15:
|
|
667
666
|
var tmp_2 = this;
|
|
668
|
-
tmp_2.
|
|
667
|
+
tmp_2.i3i_1 = Unit_instance;
|
|
669
668
|
this.d9_1 = 20;
|
|
670
669
|
continue $sm;
|
|
671
670
|
case 16:
|
|
672
671
|
var tmp_3 = this;
|
|
673
|
-
tmp_3.
|
|
672
|
+
tmp_3.j3i_1 = Unit_instance;
|
|
674
673
|
this.d9_1 = 17;
|
|
675
674
|
continue $sm;
|
|
676
675
|
case 17:
|
|
677
|
-
this.
|
|
676
|
+
this.i3i_1 = this.j3i_1;
|
|
678
677
|
this.d9_1 = 20;
|
|
679
678
|
continue $sm;
|
|
680
679
|
case 18:
|
|
681
680
|
this.d9_1 = 19;
|
|
682
681
|
continue $sm;
|
|
683
682
|
case 19:
|
|
684
|
-
this.
|
|
683
|
+
this.c3i_1 = true;
|
|
685
684
|
this.d9_1 = 22;
|
|
686
685
|
var tmp_4 = this;
|
|
687
686
|
continue $sm;
|
|
@@ -698,24 +697,24 @@
|
|
|
698
697
|
continue $sm;
|
|
699
698
|
case 22:
|
|
700
699
|
this.e9_1 = 32;
|
|
701
|
-
cancelConsumed(this.
|
|
700
|
+
cancelConsumed(this.h3i_1, this.g3i_1);
|
|
702
701
|
this.e9_1 = 39;
|
|
703
702
|
this.d9_1 = 23;
|
|
704
703
|
continue $sm;
|
|
705
704
|
case 23:
|
|
706
705
|
this.e9_1 = 39;
|
|
707
|
-
this.
|
|
708
|
-
var tmp0_safe_receiver = this.
|
|
706
|
+
this.z3h_1.d1d();
|
|
707
|
+
var tmp0_safe_receiver = this.d3i_1;
|
|
709
708
|
if (tmp0_safe_receiver == null)
|
|
710
709
|
null;
|
|
711
710
|
else {
|
|
712
711
|
tmp0_safe_receiver.o4();
|
|
713
712
|
}
|
|
714
713
|
|
|
715
|
-
this.
|
|
716
|
-
if (!this.
|
|
714
|
+
this.y3h_1.g3g_1.d1d();
|
|
715
|
+
if (!this.c3i_1) {
|
|
717
716
|
this.d9_1 = 24;
|
|
718
|
-
suspendResult = close(this.
|
|
717
|
+
suspendResult = close(this.y3h_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
719
718
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
720
719
|
return suspendResult;
|
|
721
720
|
}
|
|
@@ -737,7 +736,7 @@
|
|
|
737
736
|
continue $sm;
|
|
738
737
|
case 27:
|
|
739
738
|
this.e9_1 = 32;
|
|
740
|
-
cancelConsumed(this.
|
|
739
|
+
cancelConsumed(this.h3i_1, this.g3i_1);
|
|
741
740
|
this.d9_1 = 31;
|
|
742
741
|
continue $sm;
|
|
743
742
|
case 28:
|
|
@@ -746,7 +745,7 @@
|
|
|
746
745
|
if (tmp_7 instanceof Error) {
|
|
747
746
|
var e_0 = this.g9_1;
|
|
748
747
|
var tmp_8 = this;
|
|
749
|
-
this.
|
|
748
|
+
this.g3i_1 = e_0;
|
|
750
749
|
throw e_0;
|
|
751
750
|
} else {
|
|
752
751
|
throw this.g9_1;
|
|
@@ -755,11 +754,11 @@
|
|
|
755
754
|
case 29:
|
|
756
755
|
this.e9_1 = 32;
|
|
757
756
|
var t = this.g9_1;
|
|
758
|
-
cancelConsumed(this.
|
|
757
|
+
cancelConsumed(this.h3i_1, this.g3i_1);
|
|
759
758
|
throw t;
|
|
760
759
|
case 30:
|
|
761
760
|
this.e9_1 = 32;
|
|
762
|
-
cancelConsumed(this.
|
|
761
|
+
cancelConsumed(this.h3i_1, this.g3i_1);
|
|
763
762
|
if (false) {
|
|
764
763
|
this.d9_1 = 3;
|
|
765
764
|
continue $sm;
|
|
@@ -768,7 +767,7 @@
|
|
|
768
767
|
this.d9_1 = 31;
|
|
769
768
|
continue $sm;
|
|
770
769
|
case 31:
|
|
771
|
-
this.
|
|
770
|
+
this.e3i_1 = Unit_instance;
|
|
772
771
|
this.e9_1 = 39;
|
|
773
772
|
this.d9_1 = 36;
|
|
774
773
|
continue $sm;
|
|
@@ -778,7 +777,7 @@
|
|
|
778
777
|
if (tmp_9 instanceof ClosedSendChannelException) {
|
|
779
778
|
var _unused_var__etf5q3 = this.g9_1;
|
|
780
779
|
var tmp_10 = this;
|
|
781
|
-
tmp_10.
|
|
780
|
+
tmp_10.e3i_1 = Unit_instance;
|
|
782
781
|
this.e9_1 = 39;
|
|
783
782
|
this.d9_1 = 36;
|
|
784
783
|
continue $sm;
|
|
@@ -787,8 +786,8 @@
|
|
|
787
786
|
if (tmp_11 instanceof Error) {
|
|
788
787
|
var cause = this.g9_1;
|
|
789
788
|
var tmp_12 = this;
|
|
790
|
-
this.
|
|
791
|
-
tmp_12.
|
|
789
|
+
this.z3h_1.d1d();
|
|
790
|
+
tmp_12.e3i_1 = this.y3h_1.g3g_1.b1d(cause);
|
|
792
791
|
this.e9_1 = 39;
|
|
793
792
|
this.d9_1 = 36;
|
|
794
793
|
continue $sm;
|
|
@@ -799,19 +798,19 @@
|
|
|
799
798
|
|
|
800
799
|
case 33:
|
|
801
800
|
this.e9_1 = 39;
|
|
802
|
-
this.
|
|
803
|
-
this.
|
|
804
|
-
var tmp0_safe_receiver_0 = this.
|
|
801
|
+
this.f3i_1 = this.g9_1;
|
|
802
|
+
this.z3h_1.d1d();
|
|
803
|
+
var tmp0_safe_receiver_0 = this.d3i_1;
|
|
805
804
|
if (tmp0_safe_receiver_0 == null)
|
|
806
805
|
null;
|
|
807
806
|
else {
|
|
808
807
|
tmp0_safe_receiver_0.o4();
|
|
809
808
|
}
|
|
810
809
|
|
|
811
|
-
this.
|
|
812
|
-
if (!this.
|
|
810
|
+
this.y3h_1.g3g_1.d1d();
|
|
811
|
+
if (!this.c3i_1) {
|
|
813
812
|
this.d9_1 = 34;
|
|
814
|
-
suspendResult = close(this.
|
|
813
|
+
suspendResult = close(this.y3h_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
815
814
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
816
815
|
return suspendResult;
|
|
817
816
|
}
|
|
@@ -825,22 +824,22 @@
|
|
|
825
824
|
this.d9_1 = 35;
|
|
826
825
|
continue $sm;
|
|
827
826
|
case 35:
|
|
828
|
-
throw this.
|
|
827
|
+
throw this.f3i_1;
|
|
829
828
|
case 36:
|
|
830
|
-
this.
|
|
829
|
+
this.b3i_1 = this.e3i_1;
|
|
831
830
|
this.e9_1 = 39;
|
|
832
|
-
this.
|
|
833
|
-
var tmp0_safe_receiver_1 = this.
|
|
831
|
+
this.z3h_1.d1d();
|
|
832
|
+
var tmp0_safe_receiver_1 = this.d3i_1;
|
|
834
833
|
if (tmp0_safe_receiver_1 == null)
|
|
835
834
|
null;
|
|
836
835
|
else {
|
|
837
836
|
tmp0_safe_receiver_1.o4();
|
|
838
837
|
}
|
|
839
838
|
|
|
840
|
-
this.
|
|
841
|
-
if (!this.
|
|
839
|
+
this.y3h_1.g3g_1.d1d();
|
|
840
|
+
if (!this.c3i_1) {
|
|
842
841
|
this.d9_1 = 37;
|
|
843
|
-
suspendResult = close(this.
|
|
842
|
+
suspendResult = close(this.y3h_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
844
843
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
845
844
|
return suspendResult;
|
|
846
845
|
}
|
|
@@ -869,31 +868,29 @@
|
|
|
869
868
|
}
|
|
870
869
|
while (true);
|
|
871
870
|
};
|
|
872
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
873
|
-
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.
|
|
874
|
-
i.
|
|
871
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d1y = function ($this$launch, completion) {
|
|
872
|
+
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.y3h_1, this.z3h_1, completion);
|
|
873
|
+
i.a3i_1 = $this$launch;
|
|
875
874
|
return i;
|
|
876
875
|
};
|
|
877
876
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0(this$0, $ponger, resultContinuation) {
|
|
878
877
|
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation);
|
|
879
|
-
|
|
880
|
-
return i.
|
|
881
|
-
};
|
|
882
|
-
l.$arity = 1;
|
|
883
|
-
return l;
|
|
878
|
+
return constructCallableReference(function ($this$launch, $completion) {
|
|
879
|
+
return i.c1y($this$launch, $completion);
|
|
880
|
+
}, 1);
|
|
884
881
|
}
|
|
885
882
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation) {
|
|
886
|
-
this.
|
|
883
|
+
this.g3j_1 = this$0;
|
|
887
884
|
CoroutineImpl.call(this, resultContinuation);
|
|
888
885
|
}
|
|
889
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
890
|
-
var tmp = this.
|
|
886
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).c1y = function ($this$launch, $completion) {
|
|
887
|
+
var tmp = this.d1y($this$launch, $completion);
|
|
891
888
|
tmp.f9_1 = Unit_instance;
|
|
892
889
|
tmp.g9_1 = null;
|
|
893
890
|
return tmp.l9();
|
|
894
891
|
};
|
|
895
892
|
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).y9 = function (p1, $completion) {
|
|
896
|
-
return this.
|
|
893
|
+
return this.c1y((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
897
894
|
};
|
|
898
895
|
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).l9 = function () {
|
|
899
896
|
var suspendResult = this.f9_1;
|
|
@@ -912,7 +909,7 @@
|
|
|
912
909
|
this.e9_1 = 9;
|
|
913
910
|
this.e9_1 = 4;
|
|
914
911
|
this.d9_1 = 3;
|
|
915
|
-
suspendResult = outgoingProcessorLoop(this.
|
|
912
|
+
suspendResult = outgoingProcessorLoop(this.g3j_1, this);
|
|
916
913
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
917
914
|
return suspendResult;
|
|
918
915
|
}
|
|
@@ -942,7 +939,7 @@
|
|
|
942
939
|
if (tmp_2 instanceof CancellationException) {
|
|
943
940
|
var _unused_var__etf5q3_1 = this.g9_1;
|
|
944
941
|
this.d9_1 = 5;
|
|
945
|
-
suspendResult = sendCloseSequence(this.
|
|
942
|
+
suspendResult = sendCloseSequence(this.g3j_1, CloseReason_init_$Create$(Codes_NORMAL_getInstance(), ''), VOID, this);
|
|
946
943
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
947
944
|
return suspendResult;
|
|
948
945
|
}
|
|
@@ -958,9 +955,9 @@
|
|
|
958
955
|
var tmp_4 = this.g9_1;
|
|
959
956
|
if (tmp_4 instanceof Error) {
|
|
960
957
|
var cause = this.g9_1;
|
|
961
|
-
this.
|
|
958
|
+
this.g3j_1.h3g_1.dv(CancellationException_init_$Create$('Failed to send frame', cause));
|
|
962
959
|
this.d9_1 = 6;
|
|
963
|
-
suspendResult = closeExceptionally(this.
|
|
960
|
+
suspendResult = closeExceptionally(this.g3j_1.b3g_1, cause, this);
|
|
964
961
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
965
962
|
return suspendResult;
|
|
966
963
|
}
|
|
@@ -983,9 +980,9 @@
|
|
|
983
980
|
continue $sm;
|
|
984
981
|
case 7:
|
|
985
982
|
this.e9_1 = 13;
|
|
986
|
-
this.
|
|
983
|
+
this.g3j_1.h3g_1.f1d();
|
|
987
984
|
this.d9_1 = 8;
|
|
988
|
-
suspendResult = close(this.
|
|
985
|
+
suspendResult = close(this.g3j_1.b3g_1, VOID, this);
|
|
989
986
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
990
987
|
return suspendResult;
|
|
991
988
|
}
|
|
@@ -995,22 +992,22 @@
|
|
|
995
992
|
return Unit_instance;
|
|
996
993
|
case 9:
|
|
997
994
|
this.e9_1 = 13;
|
|
998
|
-
this.
|
|
999
|
-
this.
|
|
995
|
+
this.i3j_1 = this.g9_1;
|
|
996
|
+
this.g3j_1.h3g_1.f1d();
|
|
1000
997
|
this.d9_1 = 10;
|
|
1001
|
-
suspendResult = close(this.
|
|
998
|
+
suspendResult = close(this.g3j_1.b3g_1, VOID, this);
|
|
1002
999
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1003
1000
|
return suspendResult;
|
|
1004
1001
|
}
|
|
1005
1002
|
|
|
1006
1003
|
continue $sm;
|
|
1007
1004
|
case 10:
|
|
1008
|
-
throw this.
|
|
1005
|
+
throw this.i3j_1;
|
|
1009
1006
|
case 11:
|
|
1010
1007
|
this.e9_1 = 13;
|
|
1011
|
-
this.
|
|
1008
|
+
this.g3j_1.h3g_1.f1d();
|
|
1012
1009
|
this.d9_1 = 12;
|
|
1013
|
-
suspendResult = close(this.
|
|
1010
|
+
suspendResult = close(this.g3j_1.b3g_1, VOID, this);
|
|
1014
1011
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1015
1012
|
return suspendResult;
|
|
1016
1013
|
}
|
|
@@ -1032,31 +1029,29 @@
|
|
|
1032
1029
|
}
|
|
1033
1030
|
while (true);
|
|
1034
1031
|
};
|
|
1035
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
1036
|
-
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.
|
|
1037
|
-
i.
|
|
1032
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).d1y = function ($this$launch, completion) {
|
|
1033
|
+
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.g3j_1, completion);
|
|
1034
|
+
i.h3j_1 = $this$launch;
|
|
1038
1035
|
return i;
|
|
1039
1036
|
};
|
|
1040
1037
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0(this$0, resultContinuation) {
|
|
1041
1038
|
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation);
|
|
1042
|
-
|
|
1043
|
-
return i.
|
|
1044
|
-
};
|
|
1045
|
-
l.$arity = 1;
|
|
1046
|
-
return l;
|
|
1039
|
+
return constructCallableReference(function ($this$launch, $completion) {
|
|
1040
|
+
return i.c1y($this$launch, $completion);
|
|
1041
|
+
}, 1);
|
|
1047
1042
|
}
|
|
1048
1043
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation) {
|
|
1049
|
-
this.
|
|
1044
|
+
this.r3j_1 = this$0;
|
|
1050
1045
|
CoroutineImpl.call(this, resultContinuation);
|
|
1051
1046
|
}
|
|
1052
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1053
|
-
var tmp = this.
|
|
1047
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).t3j = function (it, $completion) {
|
|
1048
|
+
var tmp = this.u3j(it, $completion);
|
|
1054
1049
|
tmp.f9_1 = Unit_instance;
|
|
1055
1050
|
tmp.g9_1 = null;
|
|
1056
1051
|
return tmp.l9();
|
|
1057
1052
|
};
|
|
1058
1053
|
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).y9 = function (p1, $completion) {
|
|
1059
|
-
return this.
|
|
1054
|
+
return this.t3j(p1 instanceof CloseReason ? p1 : THROW_CCE(), $completion);
|
|
1060
1055
|
};
|
|
1061
1056
|
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).l9 = function () {
|
|
1062
1057
|
var suspendResult = this.f9_1;
|
|
@@ -1067,7 +1062,7 @@
|
|
|
1067
1062
|
case 0:
|
|
1068
1063
|
this.e9_1 = 2;
|
|
1069
1064
|
this.d9_1 = 1;
|
|
1070
|
-
suspendResult = sendCloseSequence(this.
|
|
1065
|
+
suspendResult = sendCloseSequence(this.r3j_1, this.s3j_1, IOException_init_$Create$('Ping timeout'), this);
|
|
1071
1066
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1072
1067
|
return suspendResult;
|
|
1073
1068
|
}
|
|
@@ -1089,22 +1084,20 @@
|
|
|
1089
1084
|
}
|
|
1090
1085
|
while (true);
|
|
1091
1086
|
};
|
|
1092
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1093
|
-
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.
|
|
1094
|
-
i.
|
|
1087
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).u3j = function (it, completion) {
|
|
1088
|
+
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.r3j_1, completion);
|
|
1089
|
+
i.s3j_1 = it;
|
|
1095
1090
|
return i;
|
|
1096
1091
|
};
|
|
1097
1092
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0(this$0, resultContinuation) {
|
|
1098
1093
|
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation);
|
|
1099
|
-
|
|
1100
|
-
return i.
|
|
1101
|
-
};
|
|
1102
|
-
l.$arity = 1;
|
|
1103
|
-
return l;
|
|
1094
|
+
return constructCallableReference(function (it, $completion) {
|
|
1095
|
+
return i.t3j(it, $completion);
|
|
1096
|
+
}, 1);
|
|
1104
1097
|
}
|
|
1105
1098
|
function $outgoingProcessorLoopCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1106
1099
|
CoroutineImpl.call(this, resultContinuation);
|
|
1107
|
-
this.
|
|
1100
|
+
this.m3f_1 = _this__u8e3s4;
|
|
1108
1101
|
}
|
|
1109
1102
|
protoOf($outgoingProcessorLoopCOROUTINE$).l9 = function () {
|
|
1110
1103
|
var suspendResult = this.f9_1;
|
|
@@ -1114,12 +1107,12 @@
|
|
|
1114
1107
|
switch (tmp) {
|
|
1115
1108
|
case 0:
|
|
1116
1109
|
this.e9_1 = 7;
|
|
1117
|
-
this.
|
|
1110
|
+
this.o3f_1 = this.m3f_1.h3g_1.t();
|
|
1118
1111
|
this.d9_1 = 1;
|
|
1119
1112
|
continue $sm;
|
|
1120
1113
|
case 1:
|
|
1121
1114
|
this.d9_1 = 2;
|
|
1122
|
-
suspendResult = this.
|
|
1115
|
+
suspendResult = this.o3f_1.z1a(this);
|
|
1123
1116
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1124
1117
|
return suspendResult;
|
|
1125
1118
|
}
|
|
@@ -1131,15 +1124,15 @@
|
|
|
1131
1124
|
continue $sm;
|
|
1132
1125
|
}
|
|
1133
1126
|
|
|
1134
|
-
var frame = this.
|
|
1127
|
+
var frame = this.o3f_1.v();
|
|
1135
1128
|
var this_0 = get_LOGGER();
|
|
1136
1129
|
if (get_isTraceEnabled(this_0)) {
|
|
1137
|
-
this_0.
|
|
1130
|
+
this_0.m2u('Sending ' + frame.toString() + ' from session ' + toString(this.m3f_1));
|
|
1138
1131
|
}
|
|
1139
1132
|
|
|
1140
1133
|
if (frame instanceof Close) {
|
|
1141
1134
|
this.d9_1 = 3;
|
|
1142
|
-
suspendResult = sendCloseSequence(this.
|
|
1135
|
+
suspendResult = sendCloseSequence(this.m3f_1, readReason(frame), VOID, this);
|
|
1143
1136
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1144
1137
|
return suspendResult;
|
|
1145
1138
|
}
|
|
@@ -1152,11 +1145,11 @@
|
|
|
1152
1145
|
tmp_0 = frame instanceof Binary;
|
|
1153
1146
|
}
|
|
1154
1147
|
if (tmp_0) {
|
|
1155
|
-
this.
|
|
1148
|
+
this.n3f_1 = processOutgoingExtensions(this.m3f_1, frame);
|
|
1156
1149
|
this.d9_1 = 4;
|
|
1157
1150
|
continue $sm;
|
|
1158
1151
|
} else {
|
|
1159
|
-
this.
|
|
1152
|
+
this.n3f_1 = frame;
|
|
1160
1153
|
this.d9_1 = 4;
|
|
1161
1154
|
continue $sm;
|
|
1162
1155
|
}
|
|
@@ -1167,9 +1160,9 @@
|
|
|
1167
1160
|
var tmp_1 = this;
|
|
1168
1161
|
continue $sm;
|
|
1169
1162
|
case 4:
|
|
1170
|
-
var processedFrame = this.
|
|
1163
|
+
var processedFrame = this.n3f_1;
|
|
1171
1164
|
this.d9_1 = 5;
|
|
1172
|
-
suspendResult = this.
|
|
1165
|
+
suspendResult = this.m3f_1.b3g_1.z3e().w1c(processedFrame, this);
|
|
1173
1166
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1174
1167
|
return suspendResult;
|
|
1175
1168
|
}
|
|
@@ -1196,9 +1189,9 @@
|
|
|
1196
1189
|
};
|
|
1197
1190
|
function $sendCloseSequenceCOROUTINE$(_this__u8e3s4, reason, exception, resultContinuation) {
|
|
1198
1191
|
CoroutineImpl.call(this, resultContinuation);
|
|
1199
|
-
this.
|
|
1200
|
-
this.
|
|
1201
|
-
this.
|
|
1192
|
+
this.x3f_1 = _this__u8e3s4;
|
|
1193
|
+
this.y3f_1 = reason;
|
|
1194
|
+
this.z3f_1 = exception;
|
|
1202
1195
|
}
|
|
1203
1196
|
protoOf($sendCloseSequenceCOROUTINE$).l9 = function () {
|
|
1204
1197
|
var suspendResult = this.f9_1;
|
|
@@ -1208,25 +1201,25 @@
|
|
|
1208
1201
|
switch (tmp) {
|
|
1209
1202
|
case 0:
|
|
1210
1203
|
this.e9_1 = 6;
|
|
1211
|
-
if (!tryClose(this.
|
|
1204
|
+
if (!tryClose(this.x3f_1))
|
|
1212
1205
|
return Unit_instance;
|
|
1213
1206
|
var this_0 = get_LOGGER();
|
|
1214
1207
|
if (get_isTraceEnabled(this_0)) {
|
|
1215
|
-
this_0.
|
|
1208
|
+
this_0.m2u('Sending Close Sequence for session ' + toString(this.x3f_1) + ' with reason ' + toString_0(this.y3f_1) + ' and exception ' + toString_0(this.z3f_1));
|
|
1216
1209
|
}
|
|
1217
1210
|
|
|
1218
|
-
this.
|
|
1211
|
+
this.x3f_1.e3g_1.e12();
|
|
1219
1212
|
var tmp_0 = this;
|
|
1220
|
-
var tmp0_elvis_lhs = this.
|
|
1221
|
-
tmp_0.
|
|
1213
|
+
var tmp0_elvis_lhs = this.y3f_1;
|
|
1214
|
+
tmp_0.a3g_1 = tmp0_elvis_lhs == null ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : tmp0_elvis_lhs;
|
|
1222
1215
|
this.d9_1 = 1;
|
|
1223
1216
|
continue $sm;
|
|
1224
1217
|
case 1:
|
|
1225
1218
|
this.e9_1 = 5;
|
|
1226
|
-
runOrCancelPinger(this.
|
|
1227
|
-
if (!(this.
|
|
1219
|
+
runOrCancelPinger(this.x3f_1);
|
|
1220
|
+
if (!(this.a3g_1.s3e_1 === Codes_CLOSED_ABNORMALLY_getInstance().o3e_1)) {
|
|
1228
1221
|
this.d9_1 = 2;
|
|
1229
|
-
suspendResult = this.
|
|
1222
|
+
suspendResult = this.x3f_1.b3g_1.z3e().w1c(Close_init_$Create$(this.a3g_1), this);
|
|
1230
1223
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1231
1224
|
return suspendResult;
|
|
1232
1225
|
}
|
|
@@ -1245,20 +1238,20 @@
|
|
|
1245
1238
|
continue $sm;
|
|
1246
1239
|
case 4:
|
|
1247
1240
|
this.e9_1 = 6;
|
|
1248
|
-
this.
|
|
1249
|
-
if (!(this.
|
|
1250
|
-
this.
|
|
1251
|
-
this.
|
|
1241
|
+
this.x3f_1.d3g_1.c12(this.a3g_1);
|
|
1242
|
+
if (!(this.z3f_1 == null)) {
|
|
1243
|
+
this.x3f_1.h3g_1.b1d(this.z3f_1);
|
|
1244
|
+
this.x3f_1.g3g_1.b1d(this.z3f_1);
|
|
1252
1245
|
}
|
|
1253
1246
|
|
|
1254
1247
|
return Unit_instance;
|
|
1255
1248
|
case 5:
|
|
1256
1249
|
this.e9_1 = 6;
|
|
1257
1250
|
var t = this.g9_1;
|
|
1258
|
-
this.
|
|
1259
|
-
if (!(this.
|
|
1260
|
-
this.
|
|
1261
|
-
this.
|
|
1251
|
+
this.x3f_1.d3g_1.c12(this.a3g_1);
|
|
1252
|
+
if (!(this.z3f_1 == null)) {
|
|
1253
|
+
this.x3f_1.h3g_1.b1d(this.z3f_1);
|
|
1254
|
+
this.x3f_1.g3g_1.b1d(this.z3f_1);
|
|
1262
1255
|
}
|
|
1263
1256
|
|
|
1264
1257
|
throw t;
|
|
@@ -1278,9 +1271,9 @@
|
|
|
1278
1271
|
};
|
|
1279
1272
|
function $checkMaxFrameSizeCOROUTINE$(_this__u8e3s4, packet, frame, resultContinuation) {
|
|
1280
1273
|
CoroutineImpl.call(this, resultContinuation);
|
|
1281
|
-
this.
|
|
1282
|
-
this.
|
|
1283
|
-
this.
|
|
1274
|
+
this.x3g_1 = _this__u8e3s4;
|
|
1275
|
+
this.y3g_1 = packet;
|
|
1276
|
+
this.z3g_1 = frame;
|
|
1284
1277
|
}
|
|
1285
1278
|
protoOf($checkMaxFrameSizeCOROUTINE$).l9 = function () {
|
|
1286
1279
|
var suspendResult = this.f9_1;
|
|
@@ -1291,19 +1284,19 @@
|
|
|
1291
1284
|
case 0:
|
|
1292
1285
|
this.e9_1 = 3;
|
|
1293
1286
|
var tmp_0 = this;
|
|
1294
|
-
var tmp_1 = this.
|
|
1295
|
-
var tmp0_safe_receiver = this.
|
|
1287
|
+
var tmp_1 = this.z3g_1.r3i_1.length;
|
|
1288
|
+
var tmp0_safe_receiver = this.y3g_1;
|
|
1296
1289
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_size(tmp0_safe_receiver);
|
|
1297
|
-
tmp_0.
|
|
1298
|
-
if (fromInt(this.
|
|
1299
|
-
var tmp2_safe_receiver = this.
|
|
1290
|
+
tmp_0.a3h_1 = tmp_1 + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
1291
|
+
if (fromInt(this.a3h_1) > this.x3g_1.x3e()) {
|
|
1292
|
+
var tmp2_safe_receiver = this.y3g_1;
|
|
1300
1293
|
if (tmp2_safe_receiver == null)
|
|
1301
1294
|
null;
|
|
1302
1295
|
else {
|
|
1303
1296
|
tmp2_safe_receiver.o4();
|
|
1304
1297
|
}
|
|
1305
1298
|
this.d9_1 = 2;
|
|
1306
|
-
suspendResult = close(this.
|
|
1299
|
+
suspendResult = close(this.x3g_1, CloseReason_init_$Create$(Codes_TOO_BIG_getInstance(), 'Frame is too big: ' + this.a3h_1 + '. Max size is ' + this.x3g_1.x3e().toString()), this);
|
|
1307
1300
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1308
1301
|
return suspendResult;
|
|
1309
1302
|
}
|
|
@@ -1316,7 +1309,7 @@
|
|
|
1316
1309
|
case 1:
|
|
1317
1310
|
return Unit_instance;
|
|
1318
1311
|
case 2:
|
|
1319
|
-
throw new FrameTooBigException(fromInt(this.
|
|
1312
|
+
throw new FrameTooBigException(fromInt(this.a3h_1));
|
|
1320
1313
|
case 3:
|
|
1321
1314
|
throw this.g9_1;
|
|
1322
1315
|
}
|
|
@@ -1333,42 +1326,42 @@
|
|
|
1333
1326
|
};
|
|
1334
1327
|
function DefaultWebSocketSessionImpl(raw, pingIntervalMillis, timeoutMillis, incomingFramesConfig, outgoingFramesConfig) {
|
|
1335
1328
|
Companion_getInstance_0();
|
|
1336
|
-
this.
|
|
1337
|
-
this.
|
|
1338
|
-
this.
|
|
1339
|
-
this.
|
|
1340
|
-
this.
|
|
1341
|
-
this.
|
|
1342
|
-
this.
|
|
1343
|
-
this.
|
|
1329
|
+
this.b3g_1 = raw;
|
|
1330
|
+
this.c3g_1 = atomic$ref$1(null);
|
|
1331
|
+
this.d3g_1 = CompletableDeferred();
|
|
1332
|
+
this.e3g_1 = Job();
|
|
1333
|
+
this.f3g_1 = this.b3g_1.ut().eh(Key_instance).gh(this.e3g_1).gh(new CoroutineName('ws-default'));
|
|
1334
|
+
this.g3g_1 = from(Factory_getInstance(), incomingFramesConfig);
|
|
1335
|
+
this.h3g_1 = from(Factory_getInstance(), outgoingFramesConfig);
|
|
1336
|
+
this.i3g_1 = atomic$boolean$1(false);
|
|
1344
1337
|
var tmp = this;
|
|
1345
1338
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1346
|
-
tmp.
|
|
1347
|
-
this.
|
|
1348
|
-
this.
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1339
|
+
tmp.j3g_1 = ArrayList_init_$Create$();
|
|
1340
|
+
this.k3g_1 = atomic$boolean$1(false);
|
|
1341
|
+
this.l3g_1 = pingIntervalMillis;
|
|
1342
|
+
this.m3g_1 = timeoutMillis;
|
|
1343
|
+
this.n3g_1 = this.d3g_1;
|
|
1351
1344
|
}
|
|
1352
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1353
|
-
return this.
|
|
1345
|
+
protoOf(DefaultWebSocketSessionImpl).ut = function () {
|
|
1346
|
+
return this.f3g_1;
|
|
1354
1347
|
};
|
|
1355
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1356
|
-
return this.
|
|
1348
|
+
protoOf(DefaultWebSocketSessionImpl).y3e = function () {
|
|
1349
|
+
return this.g3g_1;
|
|
1357
1350
|
};
|
|
1358
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1359
|
-
return this.
|
|
1351
|
+
protoOf(DefaultWebSocketSessionImpl).z3e = function () {
|
|
1352
|
+
return this.h3g_1;
|
|
1360
1353
|
};
|
|
1361
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1362
|
-
return this.
|
|
1354
|
+
protoOf(DefaultWebSocketSessionImpl).b3h = function () {
|
|
1355
|
+
return this.j3g_1;
|
|
1363
1356
|
};
|
|
1364
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1365
|
-
this.
|
|
1357
|
+
protoOf(DefaultWebSocketSessionImpl).w3e = function (value) {
|
|
1358
|
+
this.b3g_1.w3e(value);
|
|
1366
1359
|
};
|
|
1367
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1368
|
-
return this.
|
|
1360
|
+
protoOf(DefaultWebSocketSessionImpl).x3e = function () {
|
|
1361
|
+
return this.b3g_1.x3e();
|
|
1369
1362
|
};
|
|
1370
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1371
|
-
if (!this.
|
|
1363
|
+
protoOf(DefaultWebSocketSessionImpl).v3e = function (negotiatedExtensions) {
|
|
1364
|
+
if (!this.k3g_1.atomicfu$compareAndSet(false, true)) {
|
|
1372
1365
|
// Inline function 'kotlin.error' call
|
|
1373
1366
|
var message = 'WebSocket session ' + toString(this) + ' is already started.';
|
|
1374
1367
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -1377,16 +1370,16 @@
|
|
|
1377
1370
|
var this_0 = get_LOGGER();
|
|
1378
1371
|
if (get_isTraceEnabled(this_0)) {
|
|
1379
1372
|
var tmp$ret$2 = 'Starting default WebSocketSession(' + toString(this) + ') ' + ('with negotiated extensions: ' + joinToString(negotiatedExtensions));
|
|
1380
|
-
this_0.
|
|
1373
|
+
this_0.m2u(tmp$ret$2);
|
|
1381
1374
|
}
|
|
1382
|
-
this.
|
|
1375
|
+
this.j3g_1.n1(negotiatedExtensions);
|
|
1383
1376
|
runOrCancelPinger(this);
|
|
1384
|
-
var incomingJob = runIncomingProcessor(this, ponger(this, this.
|
|
1377
|
+
var incomingJob = runIncomingProcessor(this, ponger(this, this.z3e()));
|
|
1385
1378
|
var outgoingJob = runOutgoingProcessor(this);
|
|
1386
1379
|
launch(this, VOID, VOID, DefaultWebSocketSessionImpl$start$slambda_0(incomingJob, outgoingJob, this, null));
|
|
1387
1380
|
};
|
|
1388
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1389
|
-
return this.
|
|
1381
|
+
protoOf(DefaultWebSocketSessionImpl).v1o = function ($completion) {
|
|
1382
|
+
return this.b3g_1.v1o($completion);
|
|
1390
1383
|
};
|
|
1391
1384
|
var properties_initialized_DefaultWebSocketSession_kt_6cjlhc;
|
|
1392
1385
|
function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
@@ -1408,20 +1401,20 @@
|
|
|
1408
1401
|
}
|
|
1409
1402
|
}
|
|
1410
1403
|
function readReason(_this__u8e3s4) {
|
|
1411
|
-
if (_this__u8e3s4.
|
|
1404
|
+
if (_this__u8e3s4.r3i_1.length < 2) {
|
|
1412
1405
|
return null;
|
|
1413
1406
|
}
|
|
1414
1407
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1415
1408
|
var builder = new Buffer();
|
|
1416
|
-
writeFully(builder, _this__u8e3s4.
|
|
1409
|
+
writeFully(builder, _this__u8e3s4.r3i_1);
|
|
1417
1410
|
var packet = builder;
|
|
1418
|
-
var code = packet.
|
|
1411
|
+
var code = packet.wq();
|
|
1419
1412
|
var message = readText(packet);
|
|
1420
1413
|
return new CloseReason(code, message);
|
|
1421
1414
|
}
|
|
1422
1415
|
function NonDisposableHandle() {
|
|
1423
1416
|
}
|
|
1424
|
-
protoOf(NonDisposableHandle).
|
|
1417
|
+
protoOf(NonDisposableHandle).sw = function () {
|
|
1425
1418
|
return Unit_instance;
|
|
1426
1419
|
};
|
|
1427
1420
|
protoOf(NonDisposableHandle).toString = function () {
|
|
@@ -1445,15 +1438,15 @@
|
|
|
1445
1438
|
cause = cause === VOID ? null : cause;
|
|
1446
1439
|
Exception_init_$Init$(cause, this);
|
|
1447
1440
|
captureStack(this, FrameTooBigException);
|
|
1448
|
-
this.
|
|
1441
|
+
this.v3j_1 = frameSize;
|
|
1449
1442
|
delete this.message;
|
|
1450
1443
|
}
|
|
1451
1444
|
protoOf(FrameTooBigException).e = function () {
|
|
1452
|
-
var sizeSuffix = this.
|
|
1445
|
+
var sizeSuffix = this.v3j_1 >= 0n ? ': ' + this.v3j_1.toString() : '';
|
|
1453
1446
|
return 'Frame is too big' + sizeSuffix;
|
|
1454
1447
|
};
|
|
1455
|
-
protoOf(FrameTooBigException).
|
|
1456
|
-
return new FrameTooBigException(this.
|
|
1448
|
+
protoOf(FrameTooBigException).n12 = function () {
|
|
1449
|
+
return new FrameTooBigException(this.v3j_1, this);
|
|
1457
1450
|
};
|
|
1458
1451
|
var FrameType_TEXT_instance;
|
|
1459
1452
|
var FrameType_BINARY_instance;
|
|
@@ -1477,10 +1470,10 @@
|
|
|
1477
1470
|
tmp$ret$0 = maxElem;
|
|
1478
1471
|
break $l$block_0;
|
|
1479
1472
|
}
|
|
1480
|
-
var maxValue = maxElem.
|
|
1473
|
+
var maxValue = maxElem.z3j_1;
|
|
1481
1474
|
do {
|
|
1482
1475
|
var e = iterator.v();
|
|
1483
|
-
var v = e.
|
|
1476
|
+
var v = e.z3j_1;
|
|
1484
1477
|
if (compareTo(maxValue, v) < 0) {
|
|
1485
1478
|
maxElem = e;
|
|
1486
1479
|
maxValue = v;
|
|
@@ -1489,10 +1482,10 @@
|
|
|
1489
1482
|
while (iterator.u());
|
|
1490
1483
|
tmp$ret$0 = maxElem;
|
|
1491
1484
|
}
|
|
1492
|
-
tmp.
|
|
1485
|
+
tmp.a3k_1 = ensureNotNull(tmp$ret$0).z3j_1;
|
|
1493
1486
|
var tmp_0 = this;
|
|
1494
1487
|
var tmp_1 = 0;
|
|
1495
|
-
var tmp_2 = this.
|
|
1488
|
+
var tmp_2 = this.a3k_1 + 1 | 0;
|
|
1496
1489
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1497
1490
|
var tmp_3 = Array(tmp_2);
|
|
1498
1491
|
while (tmp_1 < tmp_2) {
|
|
@@ -1506,7 +1499,7 @@
|
|
|
1506
1499
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
1507
1500
|
while (_iterator__ex2g4s.u()) {
|
|
1508
1501
|
var element = _iterator__ex2g4s.v();
|
|
1509
|
-
if (element.
|
|
1502
|
+
if (element.z3j_1 === tmp_4) {
|
|
1510
1503
|
if (found) {
|
|
1511
1504
|
tmp$ret$5 = null;
|
|
1512
1505
|
break $l$block_2;
|
|
@@ -1524,7 +1517,7 @@
|
|
|
1524
1517
|
tmp_3[tmp_4] = tmp$ret$5;
|
|
1525
1518
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1526
1519
|
}
|
|
1527
|
-
tmp_0.
|
|
1520
|
+
tmp_0.b3k_1 = tmp_3;
|
|
1528
1521
|
}
|
|
1529
1522
|
var Companion_instance_1;
|
|
1530
1523
|
function Companion_getInstance_1() {
|
|
@@ -1556,8 +1549,8 @@
|
|
|
1556
1549
|
var $ENTRIES_0;
|
|
1557
1550
|
function FrameType(name, ordinal, controlFrame, opcode) {
|
|
1558
1551
|
Enum.call(this, name, ordinal);
|
|
1559
|
-
this.
|
|
1560
|
-
this.
|
|
1552
|
+
this.y3j_1 = controlFrame;
|
|
1553
|
+
this.z3j_1 = opcode;
|
|
1561
1554
|
}
|
|
1562
1555
|
function FrameType_TEXT_getInstance() {
|
|
1563
1556
|
FrameType_initEntries();
|
|
@@ -1600,25 +1593,25 @@
|
|
|
1600
1593
|
_init_properties_PingPong_kt__9aqxey();
|
|
1601
1594
|
var actorJob = Job();
|
|
1602
1595
|
var channel = Channel(2147483647);
|
|
1603
|
-
var tmp = actorJob.
|
|
1596
|
+
var tmp = actorJob.gh(get_PingerCoroutineName());
|
|
1604
1597
|
launch(_this__u8e3s4, tmp, VOID, pinger$slambda_0(periodMillis, timeoutMillis, onTimeout, channel, outgoing, null));
|
|
1605
|
-
var tmp_0 = ensureNotNull(_this__u8e3s4.
|
|
1606
|
-
tmp_0.
|
|
1598
|
+
var tmp_0 = ensureNotNull(_this__u8e3s4.ut().q9(Key_instance));
|
|
1599
|
+
tmp_0.wu(pinger$lambda(actorJob));
|
|
1607
1600
|
return channel;
|
|
1608
1601
|
}
|
|
1609
1602
|
function ponger$slambda($channel, $outgoing, resultContinuation) {
|
|
1610
|
-
this.
|
|
1611
|
-
this.
|
|
1603
|
+
this.k3k_1 = $channel;
|
|
1604
|
+
this.l3k_1 = $outgoing;
|
|
1612
1605
|
CoroutineImpl.call(this, resultContinuation);
|
|
1613
1606
|
}
|
|
1614
|
-
protoOf(ponger$slambda).
|
|
1615
|
-
var tmp = this.
|
|
1607
|
+
protoOf(ponger$slambda).c1y = function ($this$launch, $completion) {
|
|
1608
|
+
var tmp = this.d1y($this$launch, $completion);
|
|
1616
1609
|
tmp.f9_1 = Unit_instance;
|
|
1617
1610
|
tmp.g9_1 = null;
|
|
1618
1611
|
return tmp.l9();
|
|
1619
1612
|
};
|
|
1620
1613
|
protoOf(ponger$slambda).y9 = function (p1, $completion) {
|
|
1621
|
-
return this.
|
|
1614
|
+
return this.c1y((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1622
1615
|
};
|
|
1623
1616
|
protoOf(ponger$slambda).l9 = function () {
|
|
1624
1617
|
var suspendResult = this.f9_1;
|
|
@@ -1629,12 +1622,12 @@
|
|
|
1629
1622
|
case 0:
|
|
1630
1623
|
this.e9_1 = 14;
|
|
1631
1624
|
this.e9_1 = 13;
|
|
1632
|
-
this.
|
|
1625
|
+
this.q3k_1 = this.k3k_1;
|
|
1633
1626
|
this.d9_1 = 1;
|
|
1634
1627
|
continue $sm;
|
|
1635
1628
|
case 1:
|
|
1636
|
-
this.
|
|
1637
|
-
this.
|
|
1629
|
+
this.o3k_1 = this.q3k_1;
|
|
1630
|
+
this.n3k_1 = null;
|
|
1638
1631
|
this.d9_1 = 2;
|
|
1639
1632
|
continue $sm;
|
|
1640
1633
|
case 2:
|
|
@@ -1643,12 +1636,12 @@
|
|
|
1643
1636
|
case 3:
|
|
1644
1637
|
this.e9_1 = 10;
|
|
1645
1638
|
this.e9_1 = 9;
|
|
1646
|
-
this.
|
|
1639
|
+
this.p3k_1 = this.o3k_1.t();
|
|
1647
1640
|
this.d9_1 = 4;
|
|
1648
1641
|
continue $sm;
|
|
1649
1642
|
case 4:
|
|
1650
1643
|
this.d9_1 = 5;
|
|
1651
|
-
suspendResult = this.
|
|
1644
|
+
suspendResult = this.p3k_1.z1a(this);
|
|
1652
1645
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1653
1646
|
return suspendResult;
|
|
1654
1647
|
}
|
|
@@ -1660,10 +1653,10 @@
|
|
|
1660
1653
|
continue $sm;
|
|
1661
1654
|
}
|
|
1662
1655
|
|
|
1663
|
-
var e = this.
|
|
1664
|
-
get_LOGGER().
|
|
1656
|
+
var e = this.p3k_1.v();
|
|
1657
|
+
get_LOGGER().m2u('Received ping message, sending pong message');
|
|
1665
1658
|
this.d9_1 = 6;
|
|
1666
|
-
suspendResult = this.
|
|
1659
|
+
suspendResult = this.l3k_1.w1c(new Pong(e.r3i_1), this);
|
|
1667
1660
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1668
1661
|
return suspendResult;
|
|
1669
1662
|
}
|
|
@@ -1678,7 +1671,7 @@
|
|
|
1678
1671
|
continue $sm;
|
|
1679
1672
|
case 8:
|
|
1680
1673
|
this.e9_1 = 13;
|
|
1681
|
-
cancelConsumed(this.
|
|
1674
|
+
cancelConsumed(this.o3k_1, this.n3k_1);
|
|
1682
1675
|
this.d9_1 = 12;
|
|
1683
1676
|
continue $sm;
|
|
1684
1677
|
case 9:
|
|
@@ -1687,7 +1680,7 @@
|
|
|
1687
1680
|
if (tmp_1 instanceof Error) {
|
|
1688
1681
|
var e_0 = this.g9_1;
|
|
1689
1682
|
var tmp_2 = this;
|
|
1690
|
-
this.
|
|
1683
|
+
this.n3k_1 = e_0;
|
|
1691
1684
|
throw e_0;
|
|
1692
1685
|
} else {
|
|
1693
1686
|
throw this.g9_1;
|
|
@@ -1696,11 +1689,11 @@
|
|
|
1696
1689
|
case 10:
|
|
1697
1690
|
this.e9_1 = 13;
|
|
1698
1691
|
var t = this.g9_1;
|
|
1699
|
-
cancelConsumed(this.
|
|
1692
|
+
cancelConsumed(this.o3k_1, this.n3k_1);
|
|
1700
1693
|
throw t;
|
|
1701
1694
|
case 11:
|
|
1702
1695
|
this.e9_1 = 13;
|
|
1703
|
-
cancelConsumed(this.
|
|
1696
|
+
cancelConsumed(this.o3k_1, this.n3k_1);
|
|
1704
1697
|
if (false) {
|
|
1705
1698
|
this.d9_1 = 1;
|
|
1706
1699
|
continue $sm;
|
|
@@ -1740,31 +1733,29 @@
|
|
|
1740
1733
|
}
|
|
1741
1734
|
while (true);
|
|
1742
1735
|
};
|
|
1743
|
-
protoOf(ponger$slambda).
|
|
1744
|
-
var i = new ponger$slambda(this.
|
|
1745
|
-
i.
|
|
1736
|
+
protoOf(ponger$slambda).d1y = function ($this$launch, completion) {
|
|
1737
|
+
var i = new ponger$slambda(this.k3k_1, this.l3k_1, completion);
|
|
1738
|
+
i.m3k_1 = $this$launch;
|
|
1746
1739
|
return i;
|
|
1747
1740
|
};
|
|
1748
1741
|
function ponger$slambda_0($channel, $outgoing, resultContinuation) {
|
|
1749
1742
|
var i = new ponger$slambda($channel, $outgoing, resultContinuation);
|
|
1750
|
-
|
|
1751
|
-
return i.
|
|
1752
|
-
};
|
|
1753
|
-
l.$arity = 1;
|
|
1754
|
-
return l;
|
|
1743
|
+
return constructCallableReference(function ($this$launch, $completion) {
|
|
1744
|
+
return i.c1y($this$launch, $completion);
|
|
1745
|
+
}, 1);
|
|
1755
1746
|
}
|
|
1756
1747
|
function pinger$slambda$slambda($channel, resultContinuation) {
|
|
1757
|
-
this.
|
|
1748
|
+
this.z3k_1 = $channel;
|
|
1758
1749
|
CoroutineImpl.call(this, resultContinuation);
|
|
1759
1750
|
}
|
|
1760
|
-
protoOf(pinger$slambda$slambda).
|
|
1761
|
-
var tmp = this.
|
|
1751
|
+
protoOf(pinger$slambda$slambda).c1y = function ($this$withTimeoutOrNull, $completion) {
|
|
1752
|
+
var tmp = this.d1y($this$withTimeoutOrNull, $completion);
|
|
1762
1753
|
tmp.f9_1 = Unit_instance;
|
|
1763
1754
|
tmp.g9_1 = null;
|
|
1764
1755
|
return tmp.l9();
|
|
1765
1756
|
};
|
|
1766
1757
|
protoOf(pinger$slambda$slambda).y9 = function (p1, $completion) {
|
|
1767
|
-
return this.
|
|
1758
|
+
return this.c1y((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1768
1759
|
};
|
|
1769
1760
|
protoOf(pinger$slambda$slambda).l9 = function () {
|
|
1770
1761
|
var suspendResult = this.f9_1;
|
|
@@ -1783,7 +1774,7 @@
|
|
|
1783
1774
|
}
|
|
1784
1775
|
|
|
1785
1776
|
this.d9_1 = 2;
|
|
1786
|
-
suspendResult = this.
|
|
1777
|
+
suspendResult = this.z3k_1.z1c(this);
|
|
1787
1778
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1788
1779
|
return suspendResult;
|
|
1789
1780
|
}
|
|
@@ -1808,33 +1799,31 @@
|
|
|
1808
1799
|
}
|
|
1809
1800
|
while (true);
|
|
1810
1801
|
};
|
|
1811
|
-
protoOf(pinger$slambda$slambda).
|
|
1812
|
-
var i = new pinger$slambda$slambda(this.
|
|
1813
|
-
i.
|
|
1802
|
+
protoOf(pinger$slambda$slambda).d1y = function ($this$withTimeoutOrNull, completion) {
|
|
1803
|
+
var i = new pinger$slambda$slambda(this.z3k_1, completion);
|
|
1804
|
+
i.a3l_1 = $this$withTimeoutOrNull;
|
|
1814
1805
|
return i;
|
|
1815
1806
|
};
|
|
1816
1807
|
function pinger$slambda$slambda_0($channel, resultContinuation) {
|
|
1817
1808
|
var i = new pinger$slambda$slambda($channel, resultContinuation);
|
|
1818
|
-
|
|
1819
|
-
return i.
|
|
1820
|
-
};
|
|
1821
|
-
l.$arity = 1;
|
|
1822
|
-
return l;
|
|
1809
|
+
return constructCallableReference(function ($this$withTimeoutOrNull, $completion) {
|
|
1810
|
+
return i.c1y($this$withTimeoutOrNull, $completion);
|
|
1811
|
+
}, 1);
|
|
1823
1812
|
}
|
|
1824
1813
|
function pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1825
|
-
this.
|
|
1826
|
-
this.
|
|
1827
|
-
this.
|
|
1814
|
+
this.j3l_1 = $outgoing;
|
|
1815
|
+
this.k3l_1 = $pingMessage;
|
|
1816
|
+
this.l3l_1 = $channel;
|
|
1828
1817
|
CoroutineImpl.call(this, resultContinuation);
|
|
1829
1818
|
}
|
|
1830
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1831
|
-
var tmp = this.
|
|
1819
|
+
protoOf(pinger$slambda$slambda_1).c1y = function ($this$withTimeoutOrNull, $completion) {
|
|
1820
|
+
var tmp = this.d1y($this$withTimeoutOrNull, $completion);
|
|
1832
1821
|
tmp.f9_1 = Unit_instance;
|
|
1833
1822
|
tmp.g9_1 = null;
|
|
1834
1823
|
return tmp.l9();
|
|
1835
1824
|
};
|
|
1836
1825
|
protoOf(pinger$slambda$slambda_1).y9 = function (p1, $completion) {
|
|
1837
|
-
return this.
|
|
1826
|
+
return this.c1y((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1838
1827
|
};
|
|
1839
1828
|
protoOf(pinger$slambda$slambda_1).l9 = function () {
|
|
1840
1829
|
var suspendResult = this.f9_1;
|
|
@@ -1844,9 +1833,9 @@
|
|
|
1844
1833
|
switch (tmp) {
|
|
1845
1834
|
case 0:
|
|
1846
1835
|
this.e9_1 = 6;
|
|
1847
|
-
get_LOGGER().
|
|
1836
|
+
get_LOGGER().m2u('WebSocket Pinger: sending ping frame');
|
|
1848
1837
|
this.d9_1 = 1;
|
|
1849
|
-
suspendResult = this.
|
|
1838
|
+
suspendResult = this.j3l_1.w1c(new Ping(toByteArray(this.k3l_1, Charsets_getInstance().d1z_1)), this);
|
|
1850
1839
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1851
1840
|
return suspendResult;
|
|
1852
1841
|
}
|
|
@@ -1862,16 +1851,16 @@
|
|
|
1862
1851
|
}
|
|
1863
1852
|
|
|
1864
1853
|
this.d9_1 = 3;
|
|
1865
|
-
suspendResult = this.
|
|
1854
|
+
suspendResult = this.l3l_1.z1c(this);
|
|
1866
1855
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1867
1856
|
return suspendResult;
|
|
1868
1857
|
}
|
|
1869
1858
|
|
|
1870
1859
|
continue $sm;
|
|
1871
1860
|
case 3:
|
|
1872
|
-
this.
|
|
1873
|
-
if (decodeToString(this.
|
|
1874
|
-
get_LOGGER().
|
|
1861
|
+
this.n3l_1 = suspendResult;
|
|
1862
|
+
if (decodeToString(this.n3l_1.r3i_1, 0, 0 + this.n3l_1.r3i_1.length | 0) === this.k3l_1) {
|
|
1863
|
+
get_LOGGER().m2u('WebSocket Pinger: received valid pong frame ' + this.n3l_1.toString());
|
|
1875
1864
|
this.d9_1 = 5;
|
|
1876
1865
|
continue $sm;
|
|
1877
1866
|
} else {
|
|
@@ -1880,7 +1869,7 @@
|
|
|
1880
1869
|
}
|
|
1881
1870
|
|
|
1882
1871
|
case 4:
|
|
1883
|
-
get_LOGGER().
|
|
1872
|
+
get_LOGGER().m2u('WebSocket Pinger: received invalid pong frame ' + this.n3l_1.toString() + ', continue waiting');
|
|
1884
1873
|
this.d9_1 = 2;
|
|
1885
1874
|
continue $sm;
|
|
1886
1875
|
case 5:
|
|
@@ -1899,35 +1888,33 @@
|
|
|
1899
1888
|
}
|
|
1900
1889
|
while (true);
|
|
1901
1890
|
};
|
|
1902
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1903
|
-
var i = new pinger$slambda$slambda_1(this.
|
|
1904
|
-
i.
|
|
1891
|
+
protoOf(pinger$slambda$slambda_1).d1y = function ($this$withTimeoutOrNull, completion) {
|
|
1892
|
+
var i = new pinger$slambda$slambda_1(this.j3l_1, this.k3l_1, this.l3l_1, completion);
|
|
1893
|
+
i.m3l_1 = $this$withTimeoutOrNull;
|
|
1905
1894
|
return i;
|
|
1906
1895
|
};
|
|
1907
1896
|
function pinger$slambda$slambda_2($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1908
1897
|
var i = new pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation);
|
|
1909
|
-
|
|
1910
|
-
return i.
|
|
1911
|
-
};
|
|
1912
|
-
l.$arity = 1;
|
|
1913
|
-
return l;
|
|
1898
|
+
return constructCallableReference(function ($this$withTimeoutOrNull, $completion) {
|
|
1899
|
+
return i.c1y($this$withTimeoutOrNull, $completion);
|
|
1900
|
+
}, 1);
|
|
1914
1901
|
}
|
|
1915
1902
|
function pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
1916
|
-
this.
|
|
1917
|
-
this.
|
|
1918
|
-
this.
|
|
1919
|
-
this.
|
|
1920
|
-
this.
|
|
1903
|
+
this.w3l_1 = $periodMillis;
|
|
1904
|
+
this.x3l_1 = $timeoutMillis;
|
|
1905
|
+
this.y3l_1 = $onTimeout;
|
|
1906
|
+
this.z3l_1 = $channel;
|
|
1907
|
+
this.a3m_1 = $outgoing;
|
|
1921
1908
|
CoroutineImpl.call(this, resultContinuation);
|
|
1922
1909
|
}
|
|
1923
|
-
protoOf(pinger$slambda).
|
|
1924
|
-
var tmp = this.
|
|
1910
|
+
protoOf(pinger$slambda).c1y = function ($this$launch, $completion) {
|
|
1911
|
+
var tmp = this.d1y($this$launch, $completion);
|
|
1925
1912
|
tmp.f9_1 = Unit_instance;
|
|
1926
1913
|
tmp.g9_1 = null;
|
|
1927
1914
|
return tmp.l9();
|
|
1928
1915
|
};
|
|
1929
1916
|
protoOf(pinger$slambda).y9 = function (p1, $completion) {
|
|
1930
|
-
return this.
|
|
1917
|
+
return this.c1y((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1931
1918
|
};
|
|
1932
1919
|
protoOf(pinger$slambda).l9 = function () {
|
|
1933
1920
|
var suspendResult = this.f9_1;
|
|
@@ -1937,9 +1924,9 @@
|
|
|
1937
1924
|
switch (tmp) {
|
|
1938
1925
|
case 0:
|
|
1939
1926
|
this.e9_1 = 9;
|
|
1940
|
-
get_LOGGER().
|
|
1941
|
-
this.
|
|
1942
|
-
this.
|
|
1927
|
+
get_LOGGER().m2u('Starting WebSocket pinger coroutine with period ' + this.w3l_1.toString() + ' ms and timeout ' + this.x3l_1.toString() + ' ms');
|
|
1928
|
+
this.d3m_1 = Random(getTimeMillis());
|
|
1929
|
+
this.c3m_1 = new Int8Array(32);
|
|
1943
1930
|
this.e9_1 = 7;
|
|
1944
1931
|
this.d9_1 = 1;
|
|
1945
1932
|
continue $sm;
|
|
@@ -1950,17 +1937,17 @@
|
|
|
1950
1937
|
}
|
|
1951
1938
|
|
|
1952
1939
|
this.d9_1 = 2;
|
|
1953
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1940
|
+
suspendResult = withTimeoutOrNull(this.w3l_1, pinger$slambda$slambda_0(this.z3l_1, null), this);
|
|
1954
1941
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1955
1942
|
return suspendResult;
|
|
1956
1943
|
}
|
|
1957
1944
|
|
|
1958
1945
|
continue $sm;
|
|
1959
1946
|
case 2:
|
|
1960
|
-
this.
|
|
1961
|
-
var pingMessage = '[ping ' + toHexString(this.
|
|
1947
|
+
this.d3m_1.dj(this.c3m_1);
|
|
1948
|
+
var pingMessage = '[ping ' + toHexString(this.c3m_1) + ' ping]';
|
|
1962
1949
|
this.d9_1 = 3;
|
|
1963
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1950
|
+
suspendResult = withTimeoutOrNull(this.x3l_1, pinger$slambda$slambda_2(this.a3m_1, pingMessage, this.z3l_1, null), this);
|
|
1964
1951
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1965
1952
|
return suspendResult;
|
|
1966
1953
|
}
|
|
@@ -1969,9 +1956,9 @@
|
|
|
1969
1956
|
case 3:
|
|
1970
1957
|
var rc = suspendResult;
|
|
1971
1958
|
if (rc == null) {
|
|
1972
|
-
get_LOGGER().
|
|
1959
|
+
get_LOGGER().m2u('WebSocket pinger has timed out');
|
|
1973
1960
|
this.d9_1 = 5;
|
|
1974
|
-
suspendResult = this.
|
|
1961
|
+
suspendResult = this.y3l_1(CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), 'Ping timeout'), this);
|
|
1975
1962
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1976
1963
|
return suspendResult;
|
|
1977
1964
|
}
|
|
@@ -2040,22 +2027,20 @@
|
|
|
2040
2027
|
}
|
|
2041
2028
|
while (true);
|
|
2042
2029
|
};
|
|
2043
|
-
protoOf(pinger$slambda).
|
|
2044
|
-
var i = new pinger$slambda(this.
|
|
2045
|
-
i.
|
|
2030
|
+
protoOf(pinger$slambda).d1y = function ($this$launch, completion) {
|
|
2031
|
+
var i = new pinger$slambda(this.w3l_1, this.x3l_1, this.y3l_1, this.z3l_1, this.a3m_1, completion);
|
|
2032
|
+
i.b3m_1 = $this$launch;
|
|
2046
2033
|
return i;
|
|
2047
2034
|
};
|
|
2048
2035
|
function pinger$slambda_0($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
2049
2036
|
var i = new pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation);
|
|
2050
|
-
|
|
2051
|
-
return i.
|
|
2052
|
-
};
|
|
2053
|
-
l.$arity = 1;
|
|
2054
|
-
return l;
|
|
2037
|
+
return constructCallableReference(function ($this$launch, $completion) {
|
|
2038
|
+
return i.c1y($this$launch, $completion);
|
|
2039
|
+
}, 1);
|
|
2055
2040
|
}
|
|
2056
2041
|
function pinger$lambda($actorJob) {
|
|
2057
2042
|
return function (it) {
|
|
2058
|
-
$actorJob.
|
|
2043
|
+
$actorJob.ev();
|
|
2059
2044
|
return Unit_instance;
|
|
2060
2045
|
};
|
|
2061
2046
|
}
|
|
@@ -2072,9 +2057,9 @@
|
|
|
2072
2057
|
var tmp = this;
|
|
2073
2058
|
// Inline function 'kotlin.apply' call
|
|
2074
2059
|
var this_0 = new WebSocketChannelsConfig();
|
|
2075
|
-
this_0.
|
|
2076
|
-
this_0.
|
|
2077
|
-
tmp.
|
|
2060
|
+
this_0.c3f_1 = this_0.e3m();
|
|
2061
|
+
this_0.d3f_1 = this_0.e3m();
|
|
2062
|
+
tmp.b3f_1 = this_0;
|
|
2078
2063
|
}
|
|
2079
2064
|
var Companion_instance_2;
|
|
2080
2065
|
function Companion_getInstance_2() {
|
|
@@ -2084,21 +2069,21 @@
|
|
|
2084
2069
|
}
|
|
2085
2070
|
function WebSocketChannelsConfig() {
|
|
2086
2071
|
Companion_getInstance_2();
|
|
2087
|
-
this.
|
|
2088
|
-
this.
|
|
2072
|
+
this.c3f_1 = Companion_getInstance_3().f3m_1;
|
|
2073
|
+
this.d3f_1 = Companion_getInstance_3().f3m_1;
|
|
2089
2074
|
}
|
|
2090
|
-
protoOf(WebSocketChannelsConfig).
|
|
2091
|
-
return Companion_getInstance_3().
|
|
2075
|
+
protoOf(WebSocketChannelsConfig).e3m = function () {
|
|
2076
|
+
return Companion_getInstance_3().f3m_1;
|
|
2092
2077
|
};
|
|
2093
2078
|
function from(_this__u8e3s4, config) {
|
|
2094
2079
|
// Inline function 'kotlin.with' call
|
|
2095
2080
|
var tmp;
|
|
2096
|
-
if (config.
|
|
2081
|
+
if (config.g3m_1 === 2147483647) {
|
|
2097
2082
|
tmp = Channel(2147483647);
|
|
2098
|
-
} else if (config.
|
|
2099
|
-
tmp = Channel(config.
|
|
2100
|
-
} else if (config.
|
|
2101
|
-
tmp = new BoundedChannel(config.
|
|
2083
|
+
} else if (config.h3m_1.equals(ChannelOverflow_SUSPEND_getInstance())) {
|
|
2084
|
+
tmp = Channel(config.g3m_1, BufferOverflow_SUSPEND_getInstance());
|
|
2085
|
+
} else if (config.h3m_1.equals(ChannelOverflow_CLOSE_getInstance())) {
|
|
2086
|
+
tmp = new BoundedChannel(config.g3m_1);
|
|
2102
2087
|
} else {
|
|
2103
2088
|
// Inline function 'kotlin.error' call
|
|
2104
2089
|
var message = 'Unsupported channel config.';
|
|
@@ -2108,7 +2093,7 @@
|
|
|
2108
2093
|
}
|
|
2109
2094
|
function Companion_3() {
|
|
2110
2095
|
Companion_instance_3 = this;
|
|
2111
|
-
this.
|
|
2096
|
+
this.f3m_1 = new ChannelConfig(2147483647, ChannelOverflow_SUSPEND_getInstance());
|
|
2112
2097
|
}
|
|
2113
2098
|
var Companion_instance_3;
|
|
2114
2099
|
function Companion_getInstance_3() {
|
|
@@ -2118,11 +2103,11 @@
|
|
|
2118
2103
|
}
|
|
2119
2104
|
function ChannelConfig(capacity, onOverflow) {
|
|
2120
2105
|
Companion_getInstance_3();
|
|
2121
|
-
this.
|
|
2122
|
-
this.
|
|
2106
|
+
this.g3m_1 = capacity;
|
|
2107
|
+
this.h3m_1 = onOverflow;
|
|
2123
2108
|
}
|
|
2124
|
-
protoOf(ChannelConfig).
|
|
2125
|
-
return this.
|
|
2109
|
+
protoOf(ChannelConfig).i3m = function () {
|
|
2110
|
+
return this.h3m_1.equals(ChannelOverflow_SUSPEND_getInstance()) && !(this.g3m_1 === 2147483647);
|
|
2126
2111
|
};
|
|
2127
2112
|
var ChannelOverflow_SUSPEND_instance;
|
|
2128
2113
|
var ChannelOverflow_CLOSE_instance;
|
|
@@ -2146,14 +2131,14 @@
|
|
|
2146
2131
|
} else {
|
|
2147
2132
|
tmp_0 = $channel._v;
|
|
2148
2133
|
}
|
|
2149
|
-
if (!tmp_0.
|
|
2134
|
+
if (!tmp_0.b1b()) {
|
|
2150
2135
|
var tmp_1;
|
|
2151
2136
|
if ($channel._v == null) {
|
|
2152
2137
|
throwUninitializedPropertyAccessException('channel');
|
|
2153
2138
|
} else {
|
|
2154
2139
|
tmp_1 = $channel._v;
|
|
2155
2140
|
}
|
|
2156
|
-
tmp_1.
|
|
2141
|
+
tmp_1.b1d(new ChannelOverflowException('Channel overflowed'));
|
|
2157
2142
|
tmp = Unit_instance;
|
|
2158
2143
|
}
|
|
2159
2144
|
return Unit_instance;
|
|
@@ -2161,7 +2146,7 @@
|
|
|
2161
2146
|
}
|
|
2162
2147
|
function Companion_4() {
|
|
2163
2148
|
}
|
|
2164
|
-
protoOf(Companion_4).
|
|
2149
|
+
protoOf(Companion_4).j3m = function (capacity) {
|
|
2165
2150
|
var channel = {_v: null};
|
|
2166
2151
|
var tmp = BufferOverflow_DROP_OLDEST_getInstance();
|
|
2167
2152
|
// Inline function 'kotlin.also' call
|
|
@@ -2174,42 +2159,42 @@
|
|
|
2174
2159
|
return Companion_instance_4;
|
|
2175
2160
|
}
|
|
2176
2161
|
function BoundedChannel(capacity, delegate) {
|
|
2177
|
-
delegate = delegate === VOID ? Companion_instance_4.
|
|
2178
|
-
this.
|
|
2162
|
+
delegate = delegate === VOID ? Companion_instance_4.j3m(capacity) : delegate;
|
|
2163
|
+
this.k3m_1 = delegate;
|
|
2179
2164
|
}
|
|
2180
|
-
protoOf(BoundedChannel).
|
|
2181
|
-
var result = this.
|
|
2165
|
+
protoOf(BoundedChannel).l3m = function (element) {
|
|
2166
|
+
var result = this.k3m_1.x1c(element);
|
|
2182
2167
|
if (!_ChannelResult___get_isSuccess__impl__odq1z9(result) && !_ChannelResult___get_isClosed__impl__mg7kuu(result)) {
|
|
2183
|
-
this.
|
|
2168
|
+
this.b1d(new ChannelOverflowException('Channel overflowed'));
|
|
2184
2169
|
}
|
|
2185
2170
|
return result;
|
|
2186
2171
|
};
|
|
2187
|
-
protoOf(BoundedChannel).
|
|
2188
|
-
return this.
|
|
2172
|
+
protoOf(BoundedChannel).x1c = function (element) {
|
|
2173
|
+
return this.l3m(element);
|
|
2189
2174
|
};
|
|
2190
|
-
protoOf(BoundedChannel).
|
|
2191
|
-
return this.
|
|
2175
|
+
protoOf(BoundedChannel).m3m = function (element, $completion) {
|
|
2176
|
+
return this.k3m_1.w1c(element, $completion);
|
|
2192
2177
|
};
|
|
2193
|
-
protoOf(BoundedChannel).
|
|
2194
|
-
return this.
|
|
2178
|
+
protoOf(BoundedChannel).w1c = function (element, $completion) {
|
|
2179
|
+
return this.m3m(element, $completion);
|
|
2195
2180
|
};
|
|
2196
|
-
protoOf(BoundedChannel).
|
|
2197
|
-
return this.
|
|
2181
|
+
protoOf(BoundedChannel).b1d = function (cause) {
|
|
2182
|
+
return this.k3m_1.b1d(cause);
|
|
2198
2183
|
};
|
|
2199
|
-
protoOf(BoundedChannel).
|
|
2200
|
-
return this.
|
|
2184
|
+
protoOf(BoundedChannel).b1b = function () {
|
|
2185
|
+
return this.k3m_1.b1b();
|
|
2201
2186
|
};
|
|
2202
|
-
protoOf(BoundedChannel).
|
|
2203
|
-
return this.
|
|
2187
|
+
protoOf(BoundedChannel).n3m = function ($completion) {
|
|
2188
|
+
return this.k3m_1.z1c($completion);
|
|
2204
2189
|
};
|
|
2205
|
-
protoOf(BoundedChannel).
|
|
2206
|
-
return this.
|
|
2190
|
+
protoOf(BoundedChannel).z1c = function ($completion) {
|
|
2191
|
+
return this.n3m($completion);
|
|
2207
2192
|
};
|
|
2208
2193
|
protoOf(BoundedChannel).t = function () {
|
|
2209
|
-
return this.
|
|
2194
|
+
return this.k3m_1.t();
|
|
2210
2195
|
};
|
|
2211
|
-
protoOf(BoundedChannel).
|
|
2212
|
-
this.
|
|
2196
|
+
protoOf(BoundedChannel).dv = function (cause) {
|
|
2197
|
+
this.k3m_1.dv(cause);
|
|
2213
2198
|
};
|
|
2214
2199
|
function ChannelOverflowException(message) {
|
|
2215
2200
|
RuntimeException_init_$Init$(message, this);
|
|
@@ -2228,16 +2213,16 @@
|
|
|
2228
2213
|
function WebSocketExtensionsConfig() {
|
|
2229
2214
|
var tmp = this;
|
|
2230
2215
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2231
|
-
tmp.
|
|
2216
|
+
tmp.q3m_1 = ArrayList_init_$Create$();
|
|
2232
2217
|
var tmp_0 = this;
|
|
2233
2218
|
// Inline function 'kotlin.arrayOf' call
|
|
2234
2219
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2235
2220
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2236
|
-
tmp_0.
|
|
2221
|
+
tmp_0.r3m_1 = [false, false, false];
|
|
2237
2222
|
}
|
|
2238
|
-
protoOf(WebSocketExtensionsConfig).
|
|
2223
|
+
protoOf(WebSocketExtensionsConfig).p2x = function () {
|
|
2239
2224
|
// Inline function 'kotlin.collections.map' call
|
|
2240
|
-
var this_0 = this.
|
|
2225
|
+
var this_0 = this.q3m_1;
|
|
2241
2226
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2242
2227
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2243
2228
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2249,14 +2234,14 @@
|
|
|
2249
2234
|
return destination;
|
|
2250
2235
|
};
|
|
2251
2236
|
function parametersToString($this) {
|
|
2252
|
-
return $this.
|
|
2237
|
+
return $this.t3m_1.r() ? '' : '; ' + joinToString($this.t3m_1, ';');
|
|
2253
2238
|
}
|
|
2254
2239
|
function WebSocketExtensionHeader(name, parameters) {
|
|
2255
|
-
this.
|
|
2256
|
-
this.
|
|
2240
|
+
this.s3m_1 = name;
|
|
2241
|
+
this.t3m_1 = parameters;
|
|
2257
2242
|
}
|
|
2258
2243
|
protoOf(WebSocketExtensionHeader).toString = function () {
|
|
2259
|
-
return this.
|
|
2244
|
+
return this.s3m_1 + ' ' + parametersToString(this);
|
|
2260
2245
|
};
|
|
2261
2246
|
function parseWebSocketExtensions(value) {
|
|
2262
2247
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2308,8 +2293,8 @@
|
|
|
2308
2293
|
}
|
|
2309
2294
|
function $closeCOROUTINE$(_this__u8e3s4, reason, resultContinuation) {
|
|
2310
2295
|
CoroutineImpl.call(this, resultContinuation);
|
|
2311
|
-
this.
|
|
2312
|
-
this.
|
|
2296
|
+
this.c3n_1 = _this__u8e3s4;
|
|
2297
|
+
this.d3n_1 = reason;
|
|
2313
2298
|
}
|
|
2314
2299
|
protoOf($closeCOROUTINE$).l9 = function () {
|
|
2315
2300
|
var suspendResult = this.f9_1;
|
|
@@ -2321,7 +2306,7 @@
|
|
|
2321
2306
|
this.e9_1 = 4;
|
|
2322
2307
|
this.e9_1 = 3;
|
|
2323
2308
|
this.d9_1 = 1;
|
|
2324
|
-
suspendResult = this.
|
|
2309
|
+
suspendResult = this.c3n_1.a3f(Close_init_$Create$(this.d3n_1), this);
|
|
2325
2310
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2326
2311
|
return suspendResult;
|
|
2327
2312
|
}
|
|
@@ -2329,7 +2314,7 @@
|
|
|
2329
2314
|
continue $sm;
|
|
2330
2315
|
case 1:
|
|
2331
2316
|
this.d9_1 = 2;
|
|
2332
|
-
suspendResult = this.
|
|
2317
|
+
suspendResult = this.c3n_1.v1o(this);
|
|
2333
2318
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2334
2319
|
return suspendResult;
|
|
2335
2320
|
}
|
|
@@ -2388,8 +2373,8 @@
|
|
|
2388
2373
|
function Close_init_$Init$(reason, $this) {
|
|
2389
2374
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
2390
2375
|
var builder = new Buffer();
|
|
2391
|
-
builder.
|
|
2392
|
-
writeText(builder, reason.
|
|
2376
|
+
builder.es(reason.s3e_1);
|
|
2377
|
+
writeText(builder, reason.t3e_1);
|
|
2393
2378
|
Close_init_$Init$_0(builder, $this);
|
|
2394
2379
|
return $this;
|
|
2395
2380
|
}
|
|
@@ -2401,7 +2386,7 @@
|
|
|
2401
2386
|
return $this;
|
|
2402
2387
|
}
|
|
2403
2388
|
function Close_init_$Init$_1($this) {
|
|
2404
|
-
Close.call($this, Companion_getInstance_5().
|
|
2389
|
+
Close.call($this, Companion_getInstance_5().w3i_1);
|
|
2405
2390
|
return $this;
|
|
2406
2391
|
}
|
|
2407
2392
|
function Close_init_$Create$_0() {
|
|
@@ -2431,9 +2416,9 @@
|
|
|
2431
2416
|
}
|
|
2432
2417
|
function Companion_5() {
|
|
2433
2418
|
Companion_instance_5 = this;
|
|
2434
|
-
this.
|
|
2419
|
+
this.w3i_1 = new Int8Array(0);
|
|
2435
2420
|
}
|
|
2436
|
-
protoOf(Companion_5).
|
|
2421
|
+
protoOf(Companion_5).x3i = function (fin, frameType, data, rsv1, rsv2, rsv3) {
|
|
2437
2422
|
var tmp;
|
|
2438
2423
|
switch (frameType.a1_1) {
|
|
2439
2424
|
case 1:
|
|
@@ -2469,28 +2454,28 @@
|
|
|
2469
2454
|
rsv1 = rsv1 === VOID ? false : rsv1;
|
|
2470
2455
|
rsv2 = rsv2 === VOID ? false : rsv2;
|
|
2471
2456
|
rsv3 = rsv3 === VOID ? false : rsv3;
|
|
2472
|
-
this.
|
|
2473
|
-
this.
|
|
2474
|
-
this.
|
|
2475
|
-
this.
|
|
2476
|
-
this.
|
|
2477
|
-
this.
|
|
2478
|
-
this.
|
|
2457
|
+
this.p3i_1 = fin;
|
|
2458
|
+
this.q3i_1 = frameType;
|
|
2459
|
+
this.r3i_1 = data;
|
|
2460
|
+
this.s3i_1 = disposableHandle;
|
|
2461
|
+
this.t3i_1 = rsv1;
|
|
2462
|
+
this.u3i_1 = rsv2;
|
|
2463
|
+
this.v3i_1 = rsv3;
|
|
2479
2464
|
}
|
|
2480
2465
|
protoOf(Frame).toString = function () {
|
|
2481
|
-
return 'Frame ' + this.
|
|
2466
|
+
return 'Frame ' + this.q3i_1.toString() + ' (fin=' + this.p3i_1 + ', buffer len = ' + this.r3i_1.length + ')';
|
|
2482
2467
|
};
|
|
2483
2468
|
function get_OUTGOING_CHANNEL_CAPACITY() {
|
|
2484
2469
|
return OUTGOING_CHANNEL_CAPACITY;
|
|
2485
2470
|
}
|
|
2486
2471
|
var OUTGOING_CHANNEL_CAPACITY;
|
|
2487
2472
|
//region block: post-declaration
|
|
2488
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
2473
|
+
protoOf(DefaultWebSocketSessionImpl).a3f = send;
|
|
2489
2474
|
defineProp(protoOf(FrameTooBigException), 'message', function () {
|
|
2490
2475
|
return this.e();
|
|
2491
2476
|
});
|
|
2492
|
-
protoOf(BoundedChannel).
|
|
2493
|
-
protoOf(BoundedChannel).
|
|
2477
|
+
protoOf(BoundedChannel).d1d = close$default;
|
|
2478
|
+
protoOf(BoundedChannel).f1d = cancel$default;
|
|
2494
2479
|
//endregion
|
|
2495
2480
|
//region block: init
|
|
2496
2481
|
NonDisposableHandle_instance = new NonDisposableHandle();
|