@doordeck/doordeck-headless-sdk 0.208.0 → 0.210.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 +60 -60
- package/kotlin/Kermit-kermit.js +8 -8
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/Signum-indispensable-asn1.js +4 -0
- package/kotlin/doordeck-sdk.d.ts +36 -1
- package/kotlin/doordeck-sdk.js +12351 -11885
- package/kotlin/kotlin-kotlin-stdlib.js +483 -465
- package/kotlin/kotlinx-atomicfu.js +8 -8
- package/kotlin/kotlinx-coroutines-core.js +183 -156
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +20 -20
- package/kotlin/kotlinx-io-kotlinx-io-core.js +35 -35
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +2084 -1887
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1514 -1514
- package/kotlin/kotlinx-serialization-kotlinx-serialization-properties.js +100 -0
- package/kotlin/ktor-ktor-client-auth.js +273 -273
- package/kotlin/ktor-ktor-client-content-negotiation.js +163 -163
- package/kotlin/ktor-ktor-client-core.js +2156 -2134
- package/kotlin/ktor-ktor-client-logging.js +654 -654
- package/kotlin/ktor-ktor-events.js +12 -12
- package/kotlin/ktor-ktor-http-cio.js +379 -379
- package/kotlin/ktor-ktor-http.js +847 -900
- package/kotlin/ktor-ktor-io.js +109 -162
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +165 -348
- package/kotlin/ktor-ktor-serialization.js +70 -92
- package/kotlin/ktor-ktor-utils.js +920 -919
- package/kotlin/ktor-ktor-websockets.js +397 -397
- package/package.json +1 -1
|
@@ -2,106 +2,106 @@
|
|
|
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.$_$.
|
|
8
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
9
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
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.$_$.
|
|
5
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.f6;
|
|
6
|
+
var mapCapacity = kotlin_kotlin.$_$.y7;
|
|
7
|
+
var coerceAtLeast = kotlin_kotlin.$_$.vc;
|
|
8
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.v3;
|
|
9
|
+
var Unit_instance = kotlin_kotlin.$_$.c3;
|
|
10
|
+
var protoOf = kotlin_kotlin.$_$.nc;
|
|
11
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.rb;
|
|
12
|
+
var enumEntries = kotlin_kotlin.$_$.aa;
|
|
13
|
+
var objectCreate = kotlin_kotlin.$_$.mc;
|
|
14
|
+
var Enum = kotlin_kotlin.$_$.gg;
|
|
15
|
+
var initMetadataForClass = kotlin_kotlin.$_$.qb;
|
|
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.$_$.qc;
|
|
18
|
+
var getStringHashCode = kotlin_kotlin.$_$.ob;
|
|
19
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.ub;
|
|
20
|
+
var isInterface = kotlin_kotlin.$_$.fc;
|
|
21
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s4;
|
|
22
22
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e;
|
|
23
|
-
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
23
|
+
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c2;
|
|
24
24
|
var CoroutineStart_UNDISPATCHED_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k;
|
|
25
|
-
var ChannelResult = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
25
|
+
var ChannelResult = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.v;
|
|
26
26
|
var _ChannelResult___get_isSuccess__impl__odq1z9 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b;
|
|
27
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
28
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
29
|
-
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
30
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
31
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
32
|
-
var constructCallableReference = kotlin_kotlin.$_$.
|
|
27
|
+
var CoroutineImpl = kotlin_kotlin.$_$.y9;
|
|
28
|
+
var THROW_CCE = kotlin_kotlin.$_$.pg;
|
|
29
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s1;
|
|
30
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.h9;
|
|
31
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.vb;
|
|
32
|
+
var constructCallableReference = kotlin_kotlin.$_$.gb;
|
|
33
33
|
var get_isTraceEnabled = kotlin_io_ktor_ktor_utils.$_$.k;
|
|
34
|
-
var BytePacketBuilder = kotlin_io_ktor_ktor_io.$_$.
|
|
35
|
-
var writeFully = kotlin_io_ktor_ktor_io.$_$.
|
|
36
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
37
|
-
var build = kotlin_io_ktor_ktor_io.$_$.
|
|
34
|
+
var BytePacketBuilder = kotlin_io_ktor_ktor_io.$_$.w;
|
|
35
|
+
var writeFully = kotlin_io_ktor_ktor_io.$_$.f1;
|
|
36
|
+
var ensureNotNull = kotlin_kotlin.$_$.hh;
|
|
37
|
+
var build = kotlin_io_ktor_ktor_io.$_$.x;
|
|
38
38
|
var readByteArray = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
39
|
-
var cancelConsumed = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
40
|
-
var ClosedSendChannelException = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
41
|
-
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.
|
|
39
|
+
var cancelConsumed = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c1;
|
|
40
|
+
var ClosedSendChannelException = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
|
|
41
|
+
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.d4;
|
|
42
42
|
var ChannelIOException = kotlin_io_ktor_ktor_utils.$_$.d;
|
|
43
|
-
var CancellationException = kotlin_kotlin.$_$.
|
|
44
|
-
var ClosedReceiveChannelException = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
43
|
+
var CancellationException = kotlin_kotlin.$_$.g9;
|
|
44
|
+
var ClosedReceiveChannelException = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.x;
|
|
45
45
|
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
46
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
47
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
48
|
-
var get_size = kotlin_io_ktor_ktor_io.$_$.
|
|
49
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
46
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.sb;
|
|
47
|
+
var toString_0 = kotlin_kotlin.$_$.sh;
|
|
48
|
+
var get_size = kotlin_io_ktor_ktor_io.$_$.c1;
|
|
49
|
+
var fromInt = kotlin_kotlin.$_$.ja;
|
|
50
50
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
|
|
51
|
-
var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
52
|
-
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
51
|
+
var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m1;
|
|
52
|
+
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u1;
|
|
53
53
|
var Key_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g;
|
|
54
|
-
var CoroutineName = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
54
|
+
var CoroutineName = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q1;
|
|
55
55
|
var Factory_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c;
|
|
56
56
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.b;
|
|
57
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
58
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
59
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
57
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n3;
|
|
58
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.w4;
|
|
59
|
+
var joinToString = kotlin_kotlin.$_$.q7;
|
|
60
60
|
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.j;
|
|
61
61
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
62
|
-
var readText = kotlin_io_ktor_ktor_io.$_$.
|
|
63
|
-
var DisposableHandle = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
64
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
65
|
-
var Exception = kotlin_kotlin.$_$.
|
|
66
|
-
var Exception_init_$Init$ = kotlin_kotlin.$_$.
|
|
67
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
68
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
69
|
-
var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
70
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
71
|
-
var Channel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
62
|
+
var readText = kotlin_io_ktor_ktor_io.$_$.a1;
|
|
63
|
+
var DisposableHandle = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t1;
|
|
64
|
+
var initMetadataForObject = kotlin_kotlin.$_$.wb;
|
|
65
|
+
var Exception = kotlin_kotlin.$_$.ig;
|
|
66
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.k4;
|
|
67
|
+
var captureStack = kotlin_kotlin.$_$.ya;
|
|
68
|
+
var defineProp = kotlin_kotlin.$_$.hb;
|
|
69
|
+
var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o1;
|
|
70
|
+
var compareTo = kotlin_kotlin.$_$.fb;
|
|
71
|
+
var Channel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.w;
|
|
72
72
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.b;
|
|
73
|
-
var toByteArray = kotlin_io_ktor_ktor_io.$_$.
|
|
74
|
-
var decodeToString = kotlin_kotlin.$_$.
|
|
73
|
+
var toByteArray = kotlin_io_ktor_ktor_io.$_$.e1;
|
|
74
|
+
var decodeToString = kotlin_kotlin.$_$.ud;
|
|
75
75
|
var getTimeMillis = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
76
|
-
var Random = kotlin_kotlin.$_$.
|
|
77
|
-
var withTimeoutOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
78
|
-
var toHexString = kotlin_kotlin.$_$.
|
|
76
|
+
var Random = kotlin_kotlin.$_$.tc;
|
|
77
|
+
var withTimeoutOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s;
|
|
78
|
+
var toHexString = kotlin_kotlin.$_$.gf;
|
|
79
79
|
var ClosedByteChannelException = kotlin_io_ktor_ktor_io.$_$.o1;
|
|
80
80
|
var BufferOverflow_SUSPEND_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j;
|
|
81
|
-
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.
|
|
81
|
+
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.ba;
|
|
82
82
|
var BufferOverflow_DROP_OLDEST_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i;
|
|
83
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.$_$.
|
|
85
|
-
var cancel$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
86
|
-
var ReceiveChannel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
87
|
-
var SendChannel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
88
|
-
var RuntimeException = kotlin_kotlin.$_$.
|
|
89
|
-
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.
|
|
90
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
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.$_$.
|
|
96
|
-
var writeText = kotlin_io_ktor_ktor_io.$_$.
|
|
97
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
84
|
+
var close$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u;
|
|
85
|
+
var cancel$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
|
|
86
|
+
var ReceiveChannel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a1;
|
|
87
|
+
var SendChannel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b1;
|
|
88
|
+
var RuntimeException = kotlin_kotlin.$_$.og;
|
|
89
|
+
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.e5;
|
|
90
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.m3;
|
|
91
|
+
var split = kotlin_kotlin.$_$.pe;
|
|
92
|
+
var first = kotlin_kotlin.$_$.i7;
|
|
93
|
+
var isCharSequence = kotlin_kotlin.$_$.bc;
|
|
94
|
+
var trim = kotlin_kotlin.$_$.tf;
|
|
95
|
+
var drop = kotlin_kotlin.$_$.z6;
|
|
96
|
+
var writeText = kotlin_io_ktor_ktor_io.$_$.g1;
|
|
97
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.oh;
|
|
98
98
|
//endregion
|
|
99
99
|
//region block: pre-declaration
|
|
100
100
|
initMetadataForCompanion(Companion);
|
|
101
101
|
initMetadataForClass(Codes, 'Codes', VOID, Enum);
|
|
102
102
|
initMetadataForClass(CloseReason, 'CloseReason');
|
|
103
103
|
function send(frame, $completion) {
|
|
104
|
-
return this.
|
|
104
|
+
return this.p3f().w1c(frame, $completion);
|
|
105
105
|
}
|
|
106
106
|
initMetadataForInterface(WebSocketSession, 'WebSocketSession', VOID, VOID, [CoroutineScope], [1, 0]);
|
|
107
107
|
initMetadataForInterface(DefaultWebSocketSession, 'DefaultWebSocketSession', VOID, VOID, [WebSocketSession], [1, 0]);
|
|
@@ -165,14 +165,14 @@
|
|
|
165
165
|
var _iterator__ex2g4s = this_0.t();
|
|
166
166
|
while (_iterator__ex2g4s.u()) {
|
|
167
167
|
var element = _iterator__ex2g4s.v();
|
|
168
|
-
var tmp$ret$2 = element.
|
|
168
|
+
var tmp$ret$2 = element.e3f_1;
|
|
169
169
|
destination.y2(tmp$ret$2, element);
|
|
170
170
|
}
|
|
171
|
-
tmp.
|
|
172
|
-
this.
|
|
171
|
+
tmp.f3f_1 = destination;
|
|
172
|
+
this.g3f_1 = Codes_INTERNAL_ERROR_getInstance();
|
|
173
173
|
}
|
|
174
|
-
protoOf(Companion).
|
|
175
|
-
return this.
|
|
174
|
+
protoOf(Companion).h3f = function (code) {
|
|
175
|
+
return this.f3f_1.g3(code);
|
|
176
176
|
};
|
|
177
177
|
var Companion_instance;
|
|
178
178
|
function Companion_getInstance() {
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
}
|
|
211
211
|
var $ENTRIES;
|
|
212
212
|
function CloseReason_init_$Init$(code, message, $this) {
|
|
213
|
-
CloseReason.call($this, code.
|
|
213
|
+
CloseReason.call($this, code.e3f_1, message);
|
|
214
214
|
return $this;
|
|
215
215
|
}
|
|
216
216
|
function CloseReason_init_$Create$(code, message) {
|
|
@@ -218,7 +218,7 @@
|
|
|
218
218
|
}
|
|
219
219
|
function Codes(name, ordinal, code) {
|
|
220
220
|
Enum.call(this, name, ordinal);
|
|
221
|
-
this.
|
|
221
|
+
this.e3f_1 = code;
|
|
222
222
|
}
|
|
223
223
|
function Codes_NORMAL_getInstance() {
|
|
224
224
|
Codes_initEntries();
|
|
@@ -269,19 +269,19 @@
|
|
|
269
269
|
return Codes_TRY_AGAIN_LATER_instance;
|
|
270
270
|
}
|
|
271
271
|
function CloseReason(code, message) {
|
|
272
|
-
this.
|
|
273
|
-
this.
|
|
272
|
+
this.i3f_1 = code;
|
|
273
|
+
this.j3f_1 = message;
|
|
274
274
|
}
|
|
275
|
-
protoOf(CloseReason).
|
|
276
|
-
return Companion_getInstance().
|
|
275
|
+
protoOf(CloseReason).k3f = function () {
|
|
276
|
+
return Companion_getInstance().h3f(this.i3f_1);
|
|
277
277
|
};
|
|
278
278
|
protoOf(CloseReason).toString = function () {
|
|
279
|
-
var tmp0_elvis_lhs = this.
|
|
280
|
-
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.
|
|
279
|
+
var tmp0_elvis_lhs = this.k3f();
|
|
280
|
+
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.i3f_1 : tmp0_elvis_lhs) + ', message=' + this.j3f_1 + ')';
|
|
281
281
|
};
|
|
282
282
|
protoOf(CloseReason).hashCode = function () {
|
|
283
|
-
var result = this.
|
|
284
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
283
|
+
var result = this.i3f_1;
|
|
284
|
+
result = imul(result, 31) + getStringHashCode(this.j3f_1) | 0;
|
|
285
285
|
return result;
|
|
286
286
|
};
|
|
287
287
|
protoOf(CloseReason).equals = function (other) {
|
|
@@ -289,9 +289,9 @@
|
|
|
289
289
|
return true;
|
|
290
290
|
if (!(other instanceof CloseReason))
|
|
291
291
|
return false;
|
|
292
|
-
if (!(this.
|
|
292
|
+
if (!(this.i3f_1 === other.i3f_1))
|
|
293
293
|
return false;
|
|
294
|
-
if (!(this.
|
|
294
|
+
if (!(this.j3f_1 === other.j3f_1))
|
|
295
295
|
return false;
|
|
296
296
|
return true;
|
|
297
297
|
};
|
|
@@ -321,14 +321,14 @@
|
|
|
321
321
|
function DefaultWebSocketSession_0(session, pingIntervalMillis, timeoutMillis, channelsConfig) {
|
|
322
322
|
pingIntervalMillis = pingIntervalMillis === VOID ? 0n : pingIntervalMillis;
|
|
323
323
|
timeoutMillis = timeoutMillis === VOID ? 15000n : timeoutMillis;
|
|
324
|
-
channelsConfig = channelsConfig === VOID ? Companion_getInstance_2().
|
|
324
|
+
channelsConfig = channelsConfig === VOID ? Companion_getInstance_2().r3f_1 : channelsConfig;
|
|
325
325
|
_init_properties_DefaultWebSocketSession_kt__469s0y();
|
|
326
326
|
// Inline function 'kotlin.require' call
|
|
327
327
|
if (!!isInterface(session, DefaultWebSocketSession)) {
|
|
328
328
|
var message = 'Cannot wrap other DefaultWebSocketSession';
|
|
329
329
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
330
330
|
}
|
|
331
|
-
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.
|
|
331
|
+
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.s3f_1, channelsConfig.t3f_1);
|
|
332
332
|
}
|
|
333
333
|
function runIncomingProcessor($this, ponger) {
|
|
334
334
|
var tmp = get_IncomingProcessorCoroutineName().gh(Dispatchers_getInstance().l16_1);
|
|
@@ -353,32 +353,32 @@
|
|
|
353
353
|
return tmp.l9();
|
|
354
354
|
}
|
|
355
355
|
function tryClose($this) {
|
|
356
|
-
return $this.
|
|
356
|
+
return $this.y3g_1.atomicfu$compareAndSet(false, true);
|
|
357
357
|
}
|
|
358
358
|
function runOrCancelPinger($this) {
|
|
359
|
-
var interval = $this.
|
|
359
|
+
var interval = $this.b3h_1;
|
|
360
360
|
var tmp;
|
|
361
|
-
if ($this.
|
|
361
|
+
if ($this.y3g_1.kotlinx$atomicfu$value) {
|
|
362
362
|
tmp = null;
|
|
363
363
|
} else if (interval > 0n) {
|
|
364
|
-
var tmp_0 = $this.
|
|
365
|
-
var tmp_1 = $this.
|
|
364
|
+
var tmp_0 = $this.r3g_1.p3f();
|
|
365
|
+
var tmp_1 = $this.c3h_1;
|
|
366
366
|
tmp = pinger($this, tmp_0, interval, tmp_1, DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0($this, null));
|
|
367
367
|
} else {
|
|
368
368
|
tmp = null;
|
|
369
369
|
}
|
|
370
370
|
var newPinger = tmp;
|
|
371
|
-
var tmp0_safe_receiver = $this.
|
|
371
|
+
var tmp0_safe_receiver = $this.s3g_1.atomicfu$getAndSet(newPinger);
|
|
372
372
|
if (tmp0_safe_receiver == null)
|
|
373
373
|
null;
|
|
374
374
|
else
|
|
375
375
|
tmp0_safe_receiver.d1d();
|
|
376
|
-
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.x1c(Companion_getInstance_0().
|
|
376
|
+
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.x1c(Companion_getInstance_0().e3h_1));
|
|
377
377
|
if (tmp2_safe_receiver == null)
|
|
378
378
|
null;
|
|
379
379
|
else
|
|
380
380
|
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.h1b_1);
|
|
381
|
-
if ($this.
|
|
381
|
+
if ($this.y3g_1.kotlinx$atomicfu$value && !(newPinger == null)) {
|
|
382
382
|
runOrCancelPinger($this);
|
|
383
383
|
}
|
|
384
384
|
}
|
|
@@ -391,28 +391,28 @@
|
|
|
391
391
|
function processIncomingExtensions($this, frame) {
|
|
392
392
|
// Inline function 'kotlin.collections.fold' call
|
|
393
393
|
var accumulator = frame;
|
|
394
|
-
var _iterator__ex2g4s = $this.
|
|
394
|
+
var _iterator__ex2g4s = $this.r3h().t();
|
|
395
395
|
while (_iterator__ex2g4s.u()) {
|
|
396
396
|
var element = _iterator__ex2g4s.v();
|
|
397
397
|
var current = accumulator;
|
|
398
|
-
accumulator = element.
|
|
398
|
+
accumulator = element.s3h(current);
|
|
399
399
|
}
|
|
400
400
|
return accumulator;
|
|
401
401
|
}
|
|
402
402
|
function processOutgoingExtensions($this, frame) {
|
|
403
403
|
// Inline function 'kotlin.collections.fold' call
|
|
404
404
|
var accumulator = frame;
|
|
405
|
-
var _iterator__ex2g4s = $this.
|
|
405
|
+
var _iterator__ex2g4s = $this.r3h().t();
|
|
406
406
|
while (_iterator__ex2g4s.u()) {
|
|
407
407
|
var element = _iterator__ex2g4s.v();
|
|
408
408
|
var current = accumulator;
|
|
409
|
-
accumulator = element.
|
|
409
|
+
accumulator = element.t3h(current);
|
|
410
410
|
}
|
|
411
411
|
return accumulator;
|
|
412
412
|
}
|
|
413
413
|
function Companion_0() {
|
|
414
414
|
Companion_instance_0 = this;
|
|
415
|
-
this.
|
|
415
|
+
this.e3h_1 = new Pong(new Int8Array(0), NonDisposableHandle_instance);
|
|
416
416
|
}
|
|
417
417
|
var Companion_instance_0;
|
|
418
418
|
function Companion_getInstance_0() {
|
|
@@ -421,9 +421,9 @@
|
|
|
421
421
|
return Companion_instance_0;
|
|
422
422
|
}
|
|
423
423
|
function DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
424
|
-
this.
|
|
425
|
-
this.
|
|
426
|
-
this.
|
|
424
|
+
this.c3i_1 = $incomingJob;
|
|
425
|
+
this.d3i_1 = $outgoingJob;
|
|
426
|
+
this.e3i_1 = this$0;
|
|
427
427
|
CoroutineImpl.call(this, resultContinuation);
|
|
428
428
|
}
|
|
429
429
|
protoOf(DefaultWebSocketSessionImpl$start$slambda).c1y = function ($this$launch, $completion) {
|
|
@@ -444,7 +444,7 @@
|
|
|
444
444
|
case 0:
|
|
445
445
|
this.e9_1 = 3;
|
|
446
446
|
this.d9_1 = 1;
|
|
447
|
-
suspendResult = this.
|
|
447
|
+
suspendResult = this.c3i_1.av(this);
|
|
448
448
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
449
449
|
return suspendResult;
|
|
450
450
|
}
|
|
@@ -452,14 +452,14 @@
|
|
|
452
452
|
continue $sm;
|
|
453
453
|
case 1:
|
|
454
454
|
this.d9_1 = 2;
|
|
455
|
-
suspendResult = this.
|
|
455
|
+
suspendResult = this.d3i_1.av(this);
|
|
456
456
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
457
457
|
return suspendResult;
|
|
458
458
|
}
|
|
459
459
|
|
|
460
460
|
continue $sm;
|
|
461
461
|
case 2:
|
|
462
|
-
this.
|
|
462
|
+
this.e3i_1.u3g_1.ev();
|
|
463
463
|
return Unit_instance;
|
|
464
464
|
case 3:
|
|
465
465
|
throw this.g9_1;
|
|
@@ -476,8 +476,8 @@
|
|
|
476
476
|
while (true);
|
|
477
477
|
};
|
|
478
478
|
protoOf(DefaultWebSocketSessionImpl$start$slambda).d1y = function ($this$launch, completion) {
|
|
479
|
-
var i = new DefaultWebSocketSessionImpl$start$slambda(this.
|
|
480
|
-
i.
|
|
479
|
+
var i = new DefaultWebSocketSessionImpl$start$slambda(this.c3i_1, this.d3i_1, this.e3i_1, completion);
|
|
480
|
+
i.f3i_1 = $this$launch;
|
|
481
481
|
return i;
|
|
482
482
|
};
|
|
483
483
|
function DefaultWebSocketSessionImpl$start$slambda_0($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
@@ -487,8 +487,8 @@
|
|
|
487
487
|
}, 1);
|
|
488
488
|
}
|
|
489
489
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation) {
|
|
490
|
-
this.
|
|
491
|
-
this.
|
|
490
|
+
this.o3i_1 = this$0;
|
|
491
|
+
this.p3i_1 = $ponger;
|
|
492
492
|
CoroutineImpl.call(this, resultContinuation);
|
|
493
493
|
}
|
|
494
494
|
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).c1y = function ($this$launch, $completion) {
|
|
@@ -508,10 +508,10 @@
|
|
|
508
508
|
switch (tmp) {
|
|
509
509
|
case 0:
|
|
510
510
|
this.e9_1 = 39;
|
|
511
|
-
this.
|
|
512
|
-
this.
|
|
513
|
-
this.
|
|
514
|
-
this.
|
|
511
|
+
this.a3j_1 = null;
|
|
512
|
+
this.t3i_1 = null;
|
|
513
|
+
this.s3i_1 = false;
|
|
514
|
+
this.u3i_1 = Unit_instance;
|
|
515
515
|
this.d9_1 = 1;
|
|
516
516
|
continue $sm;
|
|
517
517
|
case 1:
|
|
@@ -520,12 +520,12 @@
|
|
|
520
520
|
case 2:
|
|
521
521
|
this.e9_1 = 33;
|
|
522
522
|
this.e9_1 = 32;
|
|
523
|
-
this.
|
|
523
|
+
this.e3j_1 = this.o3i_1.r3g_1.o3f();
|
|
524
524
|
this.d9_1 = 3;
|
|
525
525
|
continue $sm;
|
|
526
526
|
case 3:
|
|
527
|
-
this.
|
|
528
|
-
this.
|
|
527
|
+
this.x3i_1 = this.e3j_1;
|
|
528
|
+
this.w3i_1 = null;
|
|
529
529
|
this.d9_1 = 4;
|
|
530
530
|
continue $sm;
|
|
531
531
|
case 4:
|
|
@@ -537,12 +537,12 @@
|
|
|
537
537
|
case 6:
|
|
538
538
|
this.e9_1 = 29;
|
|
539
539
|
this.e9_1 = 28;
|
|
540
|
-
this.
|
|
540
|
+
this.d3j_1 = this.x3i_1.t();
|
|
541
541
|
this.d9_1 = 7;
|
|
542
542
|
continue $sm;
|
|
543
543
|
case 7:
|
|
544
544
|
this.d9_1 = 8;
|
|
545
|
-
suspendResult = this.
|
|
545
|
+
suspendResult = this.d3j_1.z1a(this);
|
|
546
546
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
547
547
|
return suspendResult;
|
|
548
548
|
}
|
|
@@ -554,23 +554,23 @@
|
|
|
554
554
|
continue $sm;
|
|
555
555
|
}
|
|
556
556
|
|
|
557
|
-
var e = this.
|
|
558
|
-
this.
|
|
557
|
+
var e = this.d3j_1.v();
|
|
558
|
+
this.c3j_1 = e;
|
|
559
559
|
this.d9_1 = 9;
|
|
560
560
|
continue $sm;
|
|
561
561
|
case 9:
|
|
562
|
-
this.
|
|
562
|
+
this.b3j_1 = this.c3j_1;
|
|
563
563
|
var this_0 = get_LOGGER();
|
|
564
564
|
if (get_isTraceEnabled(this_0)) {
|
|
565
|
-
this_0.
|
|
565
|
+
this_0.d2v('WebSocketSession(' + toString(this.q3i_1) + ') receiving frame ' + this.b3j_1.toString());
|
|
566
566
|
}
|
|
567
567
|
|
|
568
|
-
var tmp0_subject = this.
|
|
568
|
+
var tmp0_subject = this.b3j_1;
|
|
569
569
|
if (tmp0_subject instanceof Close) {
|
|
570
|
-
if (!this.
|
|
570
|
+
if (!this.o3i_1.p3f().b1b()) {
|
|
571
571
|
this.d9_1 = 18;
|
|
572
|
-
var tmp_0 = this.
|
|
573
|
-
var tmp1_elvis_lhs = readReason(this.
|
|
572
|
+
var tmp_0 = this.o3i_1.p3f();
|
|
573
|
+
var tmp1_elvis_lhs = readReason(this.b3j_1);
|
|
574
574
|
suspendResult = tmp_0.w1c(Close_init_$Create$(tmp1_elvis_lhs == null ? get_NORMAL_CLOSE() : tmp1_elvis_lhs), this);
|
|
575
575
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
576
576
|
return suspendResult;
|
|
@@ -582,14 +582,14 @@
|
|
|
582
582
|
}
|
|
583
583
|
} else {
|
|
584
584
|
if (tmp0_subject instanceof Pong) {
|
|
585
|
-
var tmp2_safe_receiver = this.
|
|
585
|
+
var tmp2_safe_receiver = this.o3i_1.s3g_1.kotlinx$atomicfu$value;
|
|
586
586
|
if (tmp2_safe_receiver == null) {
|
|
587
|
-
this.
|
|
587
|
+
this.z3i_1 = null;
|
|
588
588
|
this.d9_1 = 17;
|
|
589
589
|
continue $sm;
|
|
590
590
|
} else {
|
|
591
591
|
this.d9_1 = 16;
|
|
592
|
-
suspendResult = tmp2_safe_receiver.w1c(this.
|
|
592
|
+
suspendResult = tmp2_safe_receiver.w1c(this.b3j_1, this);
|
|
593
593
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
594
594
|
return suspendResult;
|
|
595
595
|
}
|
|
@@ -598,14 +598,14 @@
|
|
|
598
598
|
} else {
|
|
599
599
|
if (tmp0_subject instanceof Ping) {
|
|
600
600
|
this.d9_1 = 15;
|
|
601
|
-
suspendResult = this.
|
|
601
|
+
suspendResult = this.p3i_1.w1c(this.b3j_1, this);
|
|
602
602
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
603
603
|
return suspendResult;
|
|
604
604
|
}
|
|
605
605
|
continue $sm;
|
|
606
606
|
} else {
|
|
607
607
|
this.d9_1 = 10;
|
|
608
|
-
suspendResult = checkMaxFrameSize(this.
|
|
608
|
+
suspendResult = checkMaxFrameSize(this.o3i_1, this.t3i_1, this.b3j_1, this);
|
|
609
609
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
610
610
|
return suspendResult;
|
|
611
611
|
}
|
|
@@ -615,14 +615,14 @@
|
|
|
615
615
|
}
|
|
616
616
|
|
|
617
617
|
case 10:
|
|
618
|
-
if (!this.
|
|
619
|
-
if (this.
|
|
620
|
-
this.
|
|
618
|
+
if (!this.b3j_1.f3j_1) {
|
|
619
|
+
if (this.a3j_1 == null) {
|
|
620
|
+
this.a3j_1 = this.b3j_1;
|
|
621
621
|
}
|
|
622
|
-
if (this.
|
|
623
|
-
this.
|
|
622
|
+
if (this.t3i_1 == null) {
|
|
623
|
+
this.t3i_1 = BytePacketBuilder();
|
|
624
624
|
}
|
|
625
|
-
writeFully(this.
|
|
625
|
+
writeFully(this.t3i_1, this.b3j_1.h3j_1);
|
|
626
626
|
this.d9_1 = 21;
|
|
627
627
|
continue $sm;
|
|
628
628
|
} else {
|
|
@@ -631,9 +631,9 @@
|
|
|
631
631
|
}
|
|
632
632
|
|
|
633
633
|
case 11:
|
|
634
|
-
if (this.
|
|
634
|
+
if (this.a3j_1 == null) {
|
|
635
635
|
this.d9_1 = 14;
|
|
636
|
-
suspendResult = this.
|
|
636
|
+
suspendResult = this.o3i_1.w3g_1.w1c(processIncomingExtensions(this.o3i_1, this.b3j_1), this);
|
|
637
637
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
638
638
|
return suspendResult;
|
|
639
639
|
}
|
|
@@ -644,11 +644,11 @@
|
|
|
644
644
|
}
|
|
645
645
|
|
|
646
646
|
case 12:
|
|
647
|
-
writeFully(ensureNotNull(this.
|
|
648
|
-
var defragmented = Companion_getInstance_5().
|
|
649
|
-
this.
|
|
647
|
+
writeFully(ensureNotNull(this.t3i_1), this.b3j_1.h3j_1);
|
|
648
|
+
var defragmented = Companion_getInstance_5().n3j(true, this.a3j_1.g3j_1, readByteArray(build(this.t3i_1)), this.a3j_1.j3j_1, this.a3j_1.k3j_1, this.a3j_1.l3j_1);
|
|
649
|
+
this.a3j_1 = null;
|
|
650
650
|
this.d9_1 = 13;
|
|
651
|
-
suspendResult = this.
|
|
651
|
+
suspendResult = this.o3i_1.w3g_1.w1c(processIncomingExtensions(this.o3i_1, defragmented), this);
|
|
652
652
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
653
653
|
return suspendResult;
|
|
654
654
|
}
|
|
@@ -656,7 +656,7 @@
|
|
|
656
656
|
continue $sm;
|
|
657
657
|
case 13:
|
|
658
658
|
var tmp_1 = this;
|
|
659
|
-
tmp_1.
|
|
659
|
+
tmp_1.y3i_1 = Unit_instance;
|
|
660
660
|
this.d9_1 = 20;
|
|
661
661
|
continue $sm;
|
|
662
662
|
case 14:
|
|
@@ -664,23 +664,23 @@
|
|
|
664
664
|
continue $sm;
|
|
665
665
|
case 15:
|
|
666
666
|
var tmp_2 = this;
|
|
667
|
-
tmp_2.
|
|
667
|
+
tmp_2.y3i_1 = Unit_instance;
|
|
668
668
|
this.d9_1 = 20;
|
|
669
669
|
continue $sm;
|
|
670
670
|
case 16:
|
|
671
671
|
var tmp_3 = this;
|
|
672
|
-
tmp_3.
|
|
672
|
+
tmp_3.z3i_1 = Unit_instance;
|
|
673
673
|
this.d9_1 = 17;
|
|
674
674
|
continue $sm;
|
|
675
675
|
case 17:
|
|
676
|
-
this.
|
|
676
|
+
this.y3i_1 = this.z3i_1;
|
|
677
677
|
this.d9_1 = 20;
|
|
678
678
|
continue $sm;
|
|
679
679
|
case 18:
|
|
680
680
|
this.d9_1 = 19;
|
|
681
681
|
continue $sm;
|
|
682
682
|
case 19:
|
|
683
|
-
this.
|
|
683
|
+
this.s3i_1 = true;
|
|
684
684
|
this.d9_1 = 22;
|
|
685
685
|
var tmp_4 = this;
|
|
686
686
|
continue $sm;
|
|
@@ -697,24 +697,24 @@
|
|
|
697
697
|
continue $sm;
|
|
698
698
|
case 22:
|
|
699
699
|
this.e9_1 = 32;
|
|
700
|
-
cancelConsumed(this.
|
|
700
|
+
cancelConsumed(this.x3i_1, this.w3i_1);
|
|
701
701
|
this.e9_1 = 39;
|
|
702
702
|
this.d9_1 = 23;
|
|
703
703
|
continue $sm;
|
|
704
704
|
case 23:
|
|
705
705
|
this.e9_1 = 39;
|
|
706
|
-
this.
|
|
707
|
-
var tmp0_safe_receiver = this.
|
|
706
|
+
this.p3i_1.d1d();
|
|
707
|
+
var tmp0_safe_receiver = this.t3i_1;
|
|
708
708
|
if (tmp0_safe_receiver == null)
|
|
709
709
|
null;
|
|
710
710
|
else {
|
|
711
711
|
tmp0_safe_receiver.o4();
|
|
712
712
|
}
|
|
713
713
|
|
|
714
|
-
this.
|
|
715
|
-
if (!this.
|
|
714
|
+
this.o3i_1.w3g_1.d1d();
|
|
715
|
+
if (!this.s3i_1) {
|
|
716
716
|
this.d9_1 = 24;
|
|
717
|
-
suspendResult = close(this.
|
|
717
|
+
suspendResult = close(this.o3i_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
718
718
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
719
719
|
return suspendResult;
|
|
720
720
|
}
|
|
@@ -736,7 +736,7 @@
|
|
|
736
736
|
continue $sm;
|
|
737
737
|
case 27:
|
|
738
738
|
this.e9_1 = 32;
|
|
739
|
-
cancelConsumed(this.
|
|
739
|
+
cancelConsumed(this.x3i_1, this.w3i_1);
|
|
740
740
|
this.d9_1 = 31;
|
|
741
741
|
continue $sm;
|
|
742
742
|
case 28:
|
|
@@ -745,7 +745,7 @@
|
|
|
745
745
|
if (tmp_7 instanceof Error) {
|
|
746
746
|
var e_0 = this.g9_1;
|
|
747
747
|
var tmp_8 = this;
|
|
748
|
-
this.
|
|
748
|
+
this.w3i_1 = e_0;
|
|
749
749
|
throw e_0;
|
|
750
750
|
} else {
|
|
751
751
|
throw this.g9_1;
|
|
@@ -754,11 +754,11 @@
|
|
|
754
754
|
case 29:
|
|
755
755
|
this.e9_1 = 32;
|
|
756
756
|
var t = this.g9_1;
|
|
757
|
-
cancelConsumed(this.
|
|
757
|
+
cancelConsumed(this.x3i_1, this.w3i_1);
|
|
758
758
|
throw t;
|
|
759
759
|
case 30:
|
|
760
760
|
this.e9_1 = 32;
|
|
761
|
-
cancelConsumed(this.
|
|
761
|
+
cancelConsumed(this.x3i_1, this.w3i_1);
|
|
762
762
|
if (false) {
|
|
763
763
|
this.d9_1 = 3;
|
|
764
764
|
continue $sm;
|
|
@@ -767,7 +767,7 @@
|
|
|
767
767
|
this.d9_1 = 31;
|
|
768
768
|
continue $sm;
|
|
769
769
|
case 31:
|
|
770
|
-
this.
|
|
770
|
+
this.u3i_1 = Unit_instance;
|
|
771
771
|
this.e9_1 = 39;
|
|
772
772
|
this.d9_1 = 36;
|
|
773
773
|
continue $sm;
|
|
@@ -777,7 +777,7 @@
|
|
|
777
777
|
if (tmp_9 instanceof ClosedSendChannelException) {
|
|
778
778
|
var _unused_var__etf5q3 = this.g9_1;
|
|
779
779
|
var tmp_10 = this;
|
|
780
|
-
tmp_10.
|
|
780
|
+
tmp_10.u3i_1 = Unit_instance;
|
|
781
781
|
this.e9_1 = 39;
|
|
782
782
|
this.d9_1 = 36;
|
|
783
783
|
continue $sm;
|
|
@@ -786,8 +786,8 @@
|
|
|
786
786
|
if (tmp_11 instanceof Error) {
|
|
787
787
|
var cause = this.g9_1;
|
|
788
788
|
var tmp_12 = this;
|
|
789
|
-
this.
|
|
790
|
-
tmp_12.
|
|
789
|
+
this.p3i_1.d1d();
|
|
790
|
+
tmp_12.u3i_1 = this.o3i_1.w3g_1.b1d(cause);
|
|
791
791
|
this.e9_1 = 39;
|
|
792
792
|
this.d9_1 = 36;
|
|
793
793
|
continue $sm;
|
|
@@ -798,19 +798,19 @@
|
|
|
798
798
|
|
|
799
799
|
case 33:
|
|
800
800
|
this.e9_1 = 39;
|
|
801
|
-
this.
|
|
802
|
-
this.
|
|
803
|
-
var tmp0_safe_receiver_0 = this.
|
|
801
|
+
this.v3i_1 = this.g9_1;
|
|
802
|
+
this.p3i_1.d1d();
|
|
803
|
+
var tmp0_safe_receiver_0 = this.t3i_1;
|
|
804
804
|
if (tmp0_safe_receiver_0 == null)
|
|
805
805
|
null;
|
|
806
806
|
else {
|
|
807
807
|
tmp0_safe_receiver_0.o4();
|
|
808
808
|
}
|
|
809
809
|
|
|
810
|
-
this.
|
|
811
|
-
if (!this.
|
|
810
|
+
this.o3i_1.w3g_1.d1d();
|
|
811
|
+
if (!this.s3i_1) {
|
|
812
812
|
this.d9_1 = 34;
|
|
813
|
-
suspendResult = close(this.
|
|
813
|
+
suspendResult = close(this.o3i_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
814
814
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
815
815
|
return suspendResult;
|
|
816
816
|
}
|
|
@@ -824,22 +824,22 @@
|
|
|
824
824
|
this.d9_1 = 35;
|
|
825
825
|
continue $sm;
|
|
826
826
|
case 35:
|
|
827
|
-
throw this.
|
|
827
|
+
throw this.v3i_1;
|
|
828
828
|
case 36:
|
|
829
|
-
this.
|
|
829
|
+
this.r3i_1 = this.u3i_1;
|
|
830
830
|
this.e9_1 = 39;
|
|
831
|
-
this.
|
|
832
|
-
var tmp0_safe_receiver_1 = this.
|
|
831
|
+
this.p3i_1.d1d();
|
|
832
|
+
var tmp0_safe_receiver_1 = this.t3i_1;
|
|
833
833
|
if (tmp0_safe_receiver_1 == null)
|
|
834
834
|
null;
|
|
835
835
|
else {
|
|
836
836
|
tmp0_safe_receiver_1.o4();
|
|
837
837
|
}
|
|
838
838
|
|
|
839
|
-
this.
|
|
840
|
-
if (!this.
|
|
839
|
+
this.o3i_1.w3g_1.d1d();
|
|
840
|
+
if (!this.s3i_1) {
|
|
841
841
|
this.d9_1 = 37;
|
|
842
|
-
suspendResult = close(this.
|
|
842
|
+
suspendResult = close(this.o3i_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
843
843
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
844
844
|
return suspendResult;
|
|
845
845
|
}
|
|
@@ -869,8 +869,8 @@
|
|
|
869
869
|
while (true);
|
|
870
870
|
};
|
|
871
871
|
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d1y = function ($this$launch, completion) {
|
|
872
|
-
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.
|
|
873
|
-
i.
|
|
872
|
+
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.o3i_1, this.p3i_1, completion);
|
|
873
|
+
i.q3i_1 = $this$launch;
|
|
874
874
|
return i;
|
|
875
875
|
};
|
|
876
876
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0(this$0, $ponger, resultContinuation) {
|
|
@@ -880,7 +880,7 @@
|
|
|
880
880
|
}, 1);
|
|
881
881
|
}
|
|
882
882
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation) {
|
|
883
|
-
this.
|
|
883
|
+
this.w3j_1 = this$0;
|
|
884
884
|
CoroutineImpl.call(this, resultContinuation);
|
|
885
885
|
}
|
|
886
886
|
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).c1y = function ($this$launch, $completion) {
|
|
@@ -909,7 +909,7 @@
|
|
|
909
909
|
this.e9_1 = 9;
|
|
910
910
|
this.e9_1 = 4;
|
|
911
911
|
this.d9_1 = 3;
|
|
912
|
-
suspendResult = outgoingProcessorLoop(this.
|
|
912
|
+
suspendResult = outgoingProcessorLoop(this.w3j_1, this);
|
|
913
913
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
914
914
|
return suspendResult;
|
|
915
915
|
}
|
|
@@ -939,7 +939,7 @@
|
|
|
939
939
|
if (tmp_2 instanceof CancellationException) {
|
|
940
940
|
var _unused_var__etf5q3_1 = this.g9_1;
|
|
941
941
|
this.d9_1 = 5;
|
|
942
|
-
suspendResult = sendCloseSequence(this.
|
|
942
|
+
suspendResult = sendCloseSequence(this.w3j_1, CloseReason_init_$Create$(Codes_NORMAL_getInstance(), ''), VOID, this);
|
|
943
943
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
944
944
|
return suspendResult;
|
|
945
945
|
}
|
|
@@ -955,9 +955,9 @@
|
|
|
955
955
|
var tmp_4 = this.g9_1;
|
|
956
956
|
if (tmp_4 instanceof Error) {
|
|
957
957
|
var cause = this.g9_1;
|
|
958
|
-
this.
|
|
958
|
+
this.w3j_1.x3g_1.dv(CancellationException_init_$Create$('Failed to send frame', cause));
|
|
959
959
|
this.d9_1 = 6;
|
|
960
|
-
suspendResult = closeExceptionally(this.
|
|
960
|
+
suspendResult = closeExceptionally(this.w3j_1.r3g_1, cause, this);
|
|
961
961
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
962
962
|
return suspendResult;
|
|
963
963
|
}
|
|
@@ -980,9 +980,9 @@
|
|
|
980
980
|
continue $sm;
|
|
981
981
|
case 7:
|
|
982
982
|
this.e9_1 = 13;
|
|
983
|
-
this.
|
|
983
|
+
this.w3j_1.x3g_1.f1d();
|
|
984
984
|
this.d9_1 = 8;
|
|
985
|
-
suspendResult = close(this.
|
|
985
|
+
suspendResult = close(this.w3j_1.r3g_1, VOID, this);
|
|
986
986
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
987
987
|
return suspendResult;
|
|
988
988
|
}
|
|
@@ -992,22 +992,22 @@
|
|
|
992
992
|
return Unit_instance;
|
|
993
993
|
case 9:
|
|
994
994
|
this.e9_1 = 13;
|
|
995
|
-
this.
|
|
996
|
-
this.
|
|
995
|
+
this.y3j_1 = this.g9_1;
|
|
996
|
+
this.w3j_1.x3g_1.f1d();
|
|
997
997
|
this.d9_1 = 10;
|
|
998
|
-
suspendResult = close(this.
|
|
998
|
+
suspendResult = close(this.w3j_1.r3g_1, VOID, this);
|
|
999
999
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1000
1000
|
return suspendResult;
|
|
1001
1001
|
}
|
|
1002
1002
|
|
|
1003
1003
|
continue $sm;
|
|
1004
1004
|
case 10:
|
|
1005
|
-
throw this.
|
|
1005
|
+
throw this.y3j_1;
|
|
1006
1006
|
case 11:
|
|
1007
1007
|
this.e9_1 = 13;
|
|
1008
|
-
this.
|
|
1008
|
+
this.w3j_1.x3g_1.f1d();
|
|
1009
1009
|
this.d9_1 = 12;
|
|
1010
|
-
suspendResult = close(this.
|
|
1010
|
+
suspendResult = close(this.w3j_1.r3g_1, VOID, this);
|
|
1011
1011
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1012
1012
|
return suspendResult;
|
|
1013
1013
|
}
|
|
@@ -1030,8 +1030,8 @@
|
|
|
1030
1030
|
while (true);
|
|
1031
1031
|
};
|
|
1032
1032
|
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).d1y = function ($this$launch, completion) {
|
|
1033
|
-
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.
|
|
1034
|
-
i.
|
|
1033
|
+
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.w3j_1, completion);
|
|
1034
|
+
i.x3j_1 = $this$launch;
|
|
1035
1035
|
return i;
|
|
1036
1036
|
};
|
|
1037
1037
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0(this$0, resultContinuation) {
|
|
@@ -1041,17 +1041,17 @@
|
|
|
1041
1041
|
}, 1);
|
|
1042
1042
|
}
|
|
1043
1043
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation) {
|
|
1044
|
-
this.
|
|
1044
|
+
this.h3k_1 = this$0;
|
|
1045
1045
|
CoroutineImpl.call(this, resultContinuation);
|
|
1046
1046
|
}
|
|
1047
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1048
|
-
var tmp = this.
|
|
1047
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).j3k = function (it, $completion) {
|
|
1048
|
+
var tmp = this.k3k(it, $completion);
|
|
1049
1049
|
tmp.f9_1 = Unit_instance;
|
|
1050
1050
|
tmp.g9_1 = null;
|
|
1051
1051
|
return tmp.l9();
|
|
1052
1052
|
};
|
|
1053
1053
|
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).y9 = function (p1, $completion) {
|
|
1054
|
-
return this.
|
|
1054
|
+
return this.j3k(p1 instanceof CloseReason ? p1 : THROW_CCE(), $completion);
|
|
1055
1055
|
};
|
|
1056
1056
|
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).l9 = function () {
|
|
1057
1057
|
var suspendResult = this.f9_1;
|
|
@@ -1062,7 +1062,7 @@
|
|
|
1062
1062
|
case 0:
|
|
1063
1063
|
this.e9_1 = 2;
|
|
1064
1064
|
this.d9_1 = 1;
|
|
1065
|
-
suspendResult = sendCloseSequence(this.
|
|
1065
|
+
suspendResult = sendCloseSequence(this.h3k_1, this.i3k_1, IOException_init_$Create$('Ping timeout'), this);
|
|
1066
1066
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1067
1067
|
return suspendResult;
|
|
1068
1068
|
}
|
|
@@ -1084,20 +1084,20 @@
|
|
|
1084
1084
|
}
|
|
1085
1085
|
while (true);
|
|
1086
1086
|
};
|
|
1087
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1088
|
-
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.
|
|
1089
|
-
i.
|
|
1087
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).k3k = function (it, completion) {
|
|
1088
|
+
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.h3k_1, completion);
|
|
1089
|
+
i.i3k_1 = it;
|
|
1090
1090
|
return i;
|
|
1091
1091
|
};
|
|
1092
1092
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0(this$0, resultContinuation) {
|
|
1093
1093
|
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation);
|
|
1094
1094
|
return constructCallableReference(function (it, $completion) {
|
|
1095
|
-
return i.
|
|
1095
|
+
return i.j3k(it, $completion);
|
|
1096
1096
|
}, 1);
|
|
1097
1097
|
}
|
|
1098
1098
|
function $outgoingProcessorLoopCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1099
1099
|
CoroutineImpl.call(this, resultContinuation);
|
|
1100
|
-
this.
|
|
1100
|
+
this.c3g_1 = _this__u8e3s4;
|
|
1101
1101
|
}
|
|
1102
1102
|
protoOf($outgoingProcessorLoopCOROUTINE$).l9 = function () {
|
|
1103
1103
|
var suspendResult = this.f9_1;
|
|
@@ -1107,12 +1107,12 @@
|
|
|
1107
1107
|
switch (tmp) {
|
|
1108
1108
|
case 0:
|
|
1109
1109
|
this.e9_1 = 7;
|
|
1110
|
-
this.
|
|
1110
|
+
this.e3g_1 = this.c3g_1.x3g_1.t();
|
|
1111
1111
|
this.d9_1 = 1;
|
|
1112
1112
|
continue $sm;
|
|
1113
1113
|
case 1:
|
|
1114
1114
|
this.d9_1 = 2;
|
|
1115
|
-
suspendResult = this.
|
|
1115
|
+
suspendResult = this.e3g_1.z1a(this);
|
|
1116
1116
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1117
1117
|
return suspendResult;
|
|
1118
1118
|
}
|
|
@@ -1124,15 +1124,15 @@
|
|
|
1124
1124
|
continue $sm;
|
|
1125
1125
|
}
|
|
1126
1126
|
|
|
1127
|
-
var frame = this.
|
|
1127
|
+
var frame = this.e3g_1.v();
|
|
1128
1128
|
var this_0 = get_LOGGER();
|
|
1129
1129
|
if (get_isTraceEnabled(this_0)) {
|
|
1130
|
-
this_0.
|
|
1130
|
+
this_0.d2v('Sending ' + frame.toString() + ' from session ' + toString(this.c3g_1));
|
|
1131
1131
|
}
|
|
1132
1132
|
|
|
1133
1133
|
if (frame instanceof Close) {
|
|
1134
1134
|
this.d9_1 = 3;
|
|
1135
|
-
suspendResult = sendCloseSequence(this.
|
|
1135
|
+
suspendResult = sendCloseSequence(this.c3g_1, readReason(frame), VOID, this);
|
|
1136
1136
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1137
1137
|
return suspendResult;
|
|
1138
1138
|
}
|
|
@@ -1145,11 +1145,11 @@
|
|
|
1145
1145
|
tmp_0 = frame instanceof Binary;
|
|
1146
1146
|
}
|
|
1147
1147
|
if (tmp_0) {
|
|
1148
|
-
this.
|
|
1148
|
+
this.d3g_1 = processOutgoingExtensions(this.c3g_1, frame);
|
|
1149
1149
|
this.d9_1 = 4;
|
|
1150
1150
|
continue $sm;
|
|
1151
1151
|
} else {
|
|
1152
|
-
this.
|
|
1152
|
+
this.d3g_1 = frame;
|
|
1153
1153
|
this.d9_1 = 4;
|
|
1154
1154
|
continue $sm;
|
|
1155
1155
|
}
|
|
@@ -1160,9 +1160,9 @@
|
|
|
1160
1160
|
var tmp_1 = this;
|
|
1161
1161
|
continue $sm;
|
|
1162
1162
|
case 4:
|
|
1163
|
-
var processedFrame = this.
|
|
1163
|
+
var processedFrame = this.d3g_1;
|
|
1164
1164
|
this.d9_1 = 5;
|
|
1165
|
-
suspendResult = this.
|
|
1165
|
+
suspendResult = this.c3g_1.r3g_1.p3f().w1c(processedFrame, this);
|
|
1166
1166
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1167
1167
|
return suspendResult;
|
|
1168
1168
|
}
|
|
@@ -1189,9 +1189,9 @@
|
|
|
1189
1189
|
};
|
|
1190
1190
|
function $sendCloseSequenceCOROUTINE$(_this__u8e3s4, reason, exception, resultContinuation) {
|
|
1191
1191
|
CoroutineImpl.call(this, resultContinuation);
|
|
1192
|
-
this.
|
|
1193
|
-
this.
|
|
1194
|
-
this.
|
|
1192
|
+
this.n3g_1 = _this__u8e3s4;
|
|
1193
|
+
this.o3g_1 = reason;
|
|
1194
|
+
this.p3g_1 = exception;
|
|
1195
1195
|
}
|
|
1196
1196
|
protoOf($sendCloseSequenceCOROUTINE$).l9 = function () {
|
|
1197
1197
|
var suspendResult = this.f9_1;
|
|
@@ -1201,25 +1201,25 @@
|
|
|
1201
1201
|
switch (tmp) {
|
|
1202
1202
|
case 0:
|
|
1203
1203
|
this.e9_1 = 6;
|
|
1204
|
-
if (!tryClose(this.
|
|
1204
|
+
if (!tryClose(this.n3g_1))
|
|
1205
1205
|
return Unit_instance;
|
|
1206
1206
|
var this_0 = get_LOGGER();
|
|
1207
1207
|
if (get_isTraceEnabled(this_0)) {
|
|
1208
|
-
this_0.
|
|
1208
|
+
this_0.d2v('Sending Close Sequence for session ' + toString(this.n3g_1) + ' with reason ' + toString_0(this.o3g_1) + ' and exception ' + toString_0(this.p3g_1));
|
|
1209
1209
|
}
|
|
1210
1210
|
|
|
1211
|
-
this.
|
|
1211
|
+
this.n3g_1.u3g_1.e12();
|
|
1212
1212
|
var tmp_0 = this;
|
|
1213
|
-
var tmp0_elvis_lhs = this.
|
|
1214
|
-
tmp_0.
|
|
1213
|
+
var tmp0_elvis_lhs = this.o3g_1;
|
|
1214
|
+
tmp_0.q3g_1 = tmp0_elvis_lhs == null ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : tmp0_elvis_lhs;
|
|
1215
1215
|
this.d9_1 = 1;
|
|
1216
1216
|
continue $sm;
|
|
1217
1217
|
case 1:
|
|
1218
1218
|
this.e9_1 = 5;
|
|
1219
|
-
runOrCancelPinger(this.
|
|
1220
|
-
if (!(this.
|
|
1219
|
+
runOrCancelPinger(this.n3g_1);
|
|
1220
|
+
if (!(this.q3g_1.i3f_1 === Codes_CLOSED_ABNORMALLY_getInstance().e3f_1)) {
|
|
1221
1221
|
this.d9_1 = 2;
|
|
1222
|
-
suspendResult = this.
|
|
1222
|
+
suspendResult = this.n3g_1.r3g_1.p3f().w1c(Close_init_$Create$(this.q3g_1), this);
|
|
1223
1223
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1224
1224
|
return suspendResult;
|
|
1225
1225
|
}
|
|
@@ -1238,20 +1238,20 @@
|
|
|
1238
1238
|
continue $sm;
|
|
1239
1239
|
case 4:
|
|
1240
1240
|
this.e9_1 = 6;
|
|
1241
|
-
this.
|
|
1242
|
-
if (!(this.
|
|
1243
|
-
this.
|
|
1244
|
-
this.
|
|
1241
|
+
this.n3g_1.t3g_1.c12(this.q3g_1);
|
|
1242
|
+
if (!(this.p3g_1 == null)) {
|
|
1243
|
+
this.n3g_1.x3g_1.b1d(this.p3g_1);
|
|
1244
|
+
this.n3g_1.w3g_1.b1d(this.p3g_1);
|
|
1245
1245
|
}
|
|
1246
1246
|
|
|
1247
1247
|
return Unit_instance;
|
|
1248
1248
|
case 5:
|
|
1249
1249
|
this.e9_1 = 6;
|
|
1250
1250
|
var t = this.g9_1;
|
|
1251
|
-
this.
|
|
1252
|
-
if (!(this.
|
|
1253
|
-
this.
|
|
1254
|
-
this.
|
|
1251
|
+
this.n3g_1.t3g_1.c12(this.q3g_1);
|
|
1252
|
+
if (!(this.p3g_1 == null)) {
|
|
1253
|
+
this.n3g_1.x3g_1.b1d(this.p3g_1);
|
|
1254
|
+
this.n3g_1.w3g_1.b1d(this.p3g_1);
|
|
1255
1255
|
}
|
|
1256
1256
|
|
|
1257
1257
|
throw t;
|
|
@@ -1271,9 +1271,9 @@
|
|
|
1271
1271
|
};
|
|
1272
1272
|
function $checkMaxFrameSizeCOROUTINE$(_this__u8e3s4, packet, frame, resultContinuation) {
|
|
1273
1273
|
CoroutineImpl.call(this, resultContinuation);
|
|
1274
|
-
this.
|
|
1275
|
-
this.
|
|
1276
|
-
this.
|
|
1274
|
+
this.n3h_1 = _this__u8e3s4;
|
|
1275
|
+
this.o3h_1 = packet;
|
|
1276
|
+
this.p3h_1 = frame;
|
|
1277
1277
|
}
|
|
1278
1278
|
protoOf($checkMaxFrameSizeCOROUTINE$).l9 = function () {
|
|
1279
1279
|
var suspendResult = this.f9_1;
|
|
@@ -1284,19 +1284,19 @@
|
|
|
1284
1284
|
case 0:
|
|
1285
1285
|
this.e9_1 = 3;
|
|
1286
1286
|
var tmp_0 = this;
|
|
1287
|
-
var tmp_1 = this.
|
|
1288
|
-
var tmp0_safe_receiver = this.
|
|
1287
|
+
var tmp_1 = this.p3h_1.h3j_1.length;
|
|
1288
|
+
var tmp0_safe_receiver = this.o3h_1;
|
|
1289
1289
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_size(tmp0_safe_receiver);
|
|
1290
|
-
tmp_0.
|
|
1291
|
-
if (fromInt(this.
|
|
1292
|
-
var tmp2_safe_receiver = this.
|
|
1290
|
+
tmp_0.q3h_1 = tmp_1 + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
1291
|
+
if (fromInt(this.q3h_1) > this.n3h_1.n3f()) {
|
|
1292
|
+
var tmp2_safe_receiver = this.o3h_1;
|
|
1293
1293
|
if (tmp2_safe_receiver == null)
|
|
1294
1294
|
null;
|
|
1295
1295
|
else {
|
|
1296
1296
|
tmp2_safe_receiver.o4();
|
|
1297
1297
|
}
|
|
1298
1298
|
this.d9_1 = 2;
|
|
1299
|
-
suspendResult = close(this.
|
|
1299
|
+
suspendResult = close(this.n3h_1, CloseReason_init_$Create$(Codes_TOO_BIG_getInstance(), 'Frame is too big: ' + this.q3h_1 + '. Max size is ' + this.n3h_1.n3f().toString()), this);
|
|
1300
1300
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1301
1301
|
return suspendResult;
|
|
1302
1302
|
}
|
|
@@ -1309,7 +1309,7 @@
|
|
|
1309
1309
|
case 1:
|
|
1310
1310
|
return Unit_instance;
|
|
1311
1311
|
case 2:
|
|
1312
|
-
throw new FrameTooBigException(fromInt(this.
|
|
1312
|
+
throw new FrameTooBigException(fromInt(this.q3h_1));
|
|
1313
1313
|
case 3:
|
|
1314
1314
|
throw this.g9_1;
|
|
1315
1315
|
}
|
|
@@ -1326,42 +1326,42 @@
|
|
|
1326
1326
|
};
|
|
1327
1327
|
function DefaultWebSocketSessionImpl(raw, pingIntervalMillis, timeoutMillis, incomingFramesConfig, outgoingFramesConfig) {
|
|
1328
1328
|
Companion_getInstance_0();
|
|
1329
|
-
this.
|
|
1330
|
-
this.
|
|
1331
|
-
this.
|
|
1332
|
-
this.
|
|
1333
|
-
this.
|
|
1334
|
-
this.
|
|
1335
|
-
this.
|
|
1336
|
-
this.
|
|
1329
|
+
this.r3g_1 = raw;
|
|
1330
|
+
this.s3g_1 = atomic$ref$1(null);
|
|
1331
|
+
this.t3g_1 = CompletableDeferred();
|
|
1332
|
+
this.u3g_1 = Job();
|
|
1333
|
+
this.v3g_1 = this.r3g_1.ut().eh(Key_instance).gh(this.u3g_1).gh(new CoroutineName('ws-default'));
|
|
1334
|
+
this.w3g_1 = from(Factory_getInstance(), incomingFramesConfig);
|
|
1335
|
+
this.x3g_1 = from(Factory_getInstance(), outgoingFramesConfig);
|
|
1336
|
+
this.y3g_1 = atomic$boolean$1(false);
|
|
1337
1337
|
var tmp = this;
|
|
1338
1338
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1339
|
-
tmp.
|
|
1340
|
-
this.
|
|
1341
|
-
this.
|
|
1342
|
-
this.
|
|
1343
|
-
this.
|
|
1339
|
+
tmp.z3g_1 = ArrayList_init_$Create$();
|
|
1340
|
+
this.a3h_1 = atomic$boolean$1(false);
|
|
1341
|
+
this.b3h_1 = pingIntervalMillis;
|
|
1342
|
+
this.c3h_1 = timeoutMillis;
|
|
1343
|
+
this.d3h_1 = this.t3g_1;
|
|
1344
1344
|
}
|
|
1345
1345
|
protoOf(DefaultWebSocketSessionImpl).ut = function () {
|
|
1346
|
-
return this.
|
|
1346
|
+
return this.v3g_1;
|
|
1347
1347
|
};
|
|
1348
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1349
|
-
return this.
|
|
1348
|
+
protoOf(DefaultWebSocketSessionImpl).o3f = function () {
|
|
1349
|
+
return this.w3g_1;
|
|
1350
1350
|
};
|
|
1351
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1352
|
-
return this.
|
|
1351
|
+
protoOf(DefaultWebSocketSessionImpl).p3f = function () {
|
|
1352
|
+
return this.x3g_1;
|
|
1353
1353
|
};
|
|
1354
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1355
|
-
return this.
|
|
1354
|
+
protoOf(DefaultWebSocketSessionImpl).r3h = function () {
|
|
1355
|
+
return this.z3g_1;
|
|
1356
1356
|
};
|
|
1357
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1358
|
-
this.
|
|
1357
|
+
protoOf(DefaultWebSocketSessionImpl).m3f = function (value) {
|
|
1358
|
+
this.r3g_1.m3f(value);
|
|
1359
1359
|
};
|
|
1360
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1361
|
-
return this.
|
|
1360
|
+
protoOf(DefaultWebSocketSessionImpl).n3f = function () {
|
|
1361
|
+
return this.r3g_1.n3f();
|
|
1362
1362
|
};
|
|
1363
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1364
|
-
if (!this.
|
|
1363
|
+
protoOf(DefaultWebSocketSessionImpl).l3f = function (negotiatedExtensions) {
|
|
1364
|
+
if (!this.a3h_1.atomicfu$compareAndSet(false, true)) {
|
|
1365
1365
|
// Inline function 'kotlin.error' call
|
|
1366
1366
|
var message = 'WebSocket session ' + toString(this) + ' is already started.';
|
|
1367
1367
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -1370,16 +1370,16 @@
|
|
|
1370
1370
|
var this_0 = get_LOGGER();
|
|
1371
1371
|
if (get_isTraceEnabled(this_0)) {
|
|
1372
1372
|
var tmp$ret$2 = 'Starting default WebSocketSession(' + toString(this) + ') ' + ('with negotiated extensions: ' + joinToString(negotiatedExtensions));
|
|
1373
|
-
this_0.
|
|
1373
|
+
this_0.d2v(tmp$ret$2);
|
|
1374
1374
|
}
|
|
1375
|
-
this.
|
|
1375
|
+
this.z3g_1.n1(negotiatedExtensions);
|
|
1376
1376
|
runOrCancelPinger(this);
|
|
1377
|
-
var incomingJob = runIncomingProcessor(this, ponger(this, this.
|
|
1377
|
+
var incomingJob = runIncomingProcessor(this, ponger(this, this.p3f()));
|
|
1378
1378
|
var outgoingJob = runOutgoingProcessor(this);
|
|
1379
1379
|
launch(this, VOID, VOID, DefaultWebSocketSessionImpl$start$slambda_0(incomingJob, outgoingJob, this, null));
|
|
1380
1380
|
};
|
|
1381
1381
|
protoOf(DefaultWebSocketSessionImpl).v1o = function ($completion) {
|
|
1382
|
-
return this.
|
|
1382
|
+
return this.r3g_1.v1o($completion);
|
|
1383
1383
|
};
|
|
1384
1384
|
var properties_initialized_DefaultWebSocketSession_kt_6cjlhc;
|
|
1385
1385
|
function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
@@ -1401,12 +1401,12 @@
|
|
|
1401
1401
|
}
|
|
1402
1402
|
}
|
|
1403
1403
|
function readReason(_this__u8e3s4) {
|
|
1404
|
-
if (_this__u8e3s4.
|
|
1404
|
+
if (_this__u8e3s4.h3j_1.length < 2) {
|
|
1405
1405
|
return null;
|
|
1406
1406
|
}
|
|
1407
1407
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1408
1408
|
var builder = new Buffer();
|
|
1409
|
-
writeFully(builder, _this__u8e3s4.
|
|
1409
|
+
writeFully(builder, _this__u8e3s4.h3j_1);
|
|
1410
1410
|
var packet = builder;
|
|
1411
1411
|
var code = packet.wq();
|
|
1412
1412
|
var message = readText(packet);
|
|
@@ -1438,15 +1438,15 @@
|
|
|
1438
1438
|
cause = cause === VOID ? null : cause;
|
|
1439
1439
|
Exception_init_$Init$(cause, this);
|
|
1440
1440
|
captureStack(this, FrameTooBigException);
|
|
1441
|
-
this.
|
|
1441
|
+
this.l3k_1 = frameSize;
|
|
1442
1442
|
delete this.message;
|
|
1443
1443
|
}
|
|
1444
1444
|
protoOf(FrameTooBigException).e = function () {
|
|
1445
|
-
var sizeSuffix = this.
|
|
1445
|
+
var sizeSuffix = this.l3k_1 >= 0n ? ': ' + this.l3k_1.toString() : '';
|
|
1446
1446
|
return 'Frame is too big' + sizeSuffix;
|
|
1447
1447
|
};
|
|
1448
1448
|
protoOf(FrameTooBigException).n12 = function () {
|
|
1449
|
-
return new FrameTooBigException(this.
|
|
1449
|
+
return new FrameTooBigException(this.l3k_1, this);
|
|
1450
1450
|
};
|
|
1451
1451
|
var FrameType_TEXT_instance;
|
|
1452
1452
|
var FrameType_BINARY_instance;
|
|
@@ -1470,10 +1470,10 @@
|
|
|
1470
1470
|
tmp$ret$0 = maxElem;
|
|
1471
1471
|
break $l$block_0;
|
|
1472
1472
|
}
|
|
1473
|
-
var maxValue = maxElem.
|
|
1473
|
+
var maxValue = maxElem.p3k_1;
|
|
1474
1474
|
do {
|
|
1475
1475
|
var e = iterator.v();
|
|
1476
|
-
var v = e.
|
|
1476
|
+
var v = e.p3k_1;
|
|
1477
1477
|
if (compareTo(maxValue, v) < 0) {
|
|
1478
1478
|
maxElem = e;
|
|
1479
1479
|
maxValue = v;
|
|
@@ -1482,10 +1482,10 @@
|
|
|
1482
1482
|
while (iterator.u());
|
|
1483
1483
|
tmp$ret$0 = maxElem;
|
|
1484
1484
|
}
|
|
1485
|
-
tmp.
|
|
1485
|
+
tmp.q3k_1 = ensureNotNull(tmp$ret$0).p3k_1;
|
|
1486
1486
|
var tmp_0 = this;
|
|
1487
1487
|
var tmp_1 = 0;
|
|
1488
|
-
var tmp_2 = this.
|
|
1488
|
+
var tmp_2 = this.q3k_1 + 1 | 0;
|
|
1489
1489
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1490
1490
|
var tmp_3 = Array(tmp_2);
|
|
1491
1491
|
while (tmp_1 < tmp_2) {
|
|
@@ -1499,7 +1499,7 @@
|
|
|
1499
1499
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
1500
1500
|
while (_iterator__ex2g4s.u()) {
|
|
1501
1501
|
var element = _iterator__ex2g4s.v();
|
|
1502
|
-
if (element.
|
|
1502
|
+
if (element.p3k_1 === tmp_4) {
|
|
1503
1503
|
if (found) {
|
|
1504
1504
|
tmp$ret$5 = null;
|
|
1505
1505
|
break $l$block_2;
|
|
@@ -1517,7 +1517,7 @@
|
|
|
1517
1517
|
tmp_3[tmp_4] = tmp$ret$5;
|
|
1518
1518
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1519
1519
|
}
|
|
1520
|
-
tmp_0.
|
|
1520
|
+
tmp_0.r3k_1 = tmp_3;
|
|
1521
1521
|
}
|
|
1522
1522
|
var Companion_instance_1;
|
|
1523
1523
|
function Companion_getInstance_1() {
|
|
@@ -1549,8 +1549,8 @@
|
|
|
1549
1549
|
var $ENTRIES_0;
|
|
1550
1550
|
function FrameType(name, ordinal, controlFrame, opcode) {
|
|
1551
1551
|
Enum.call(this, name, ordinal);
|
|
1552
|
-
this.
|
|
1553
|
-
this.
|
|
1552
|
+
this.o3k_1 = controlFrame;
|
|
1553
|
+
this.p3k_1 = opcode;
|
|
1554
1554
|
}
|
|
1555
1555
|
function FrameType_TEXT_getInstance() {
|
|
1556
1556
|
FrameType_initEntries();
|
|
@@ -1600,8 +1600,8 @@
|
|
|
1600
1600
|
return channel;
|
|
1601
1601
|
}
|
|
1602
1602
|
function ponger$slambda($channel, $outgoing, resultContinuation) {
|
|
1603
|
-
this.
|
|
1604
|
-
this.
|
|
1603
|
+
this.a3l_1 = $channel;
|
|
1604
|
+
this.b3l_1 = $outgoing;
|
|
1605
1605
|
CoroutineImpl.call(this, resultContinuation);
|
|
1606
1606
|
}
|
|
1607
1607
|
protoOf(ponger$slambda).c1y = function ($this$launch, $completion) {
|
|
@@ -1622,12 +1622,12 @@
|
|
|
1622
1622
|
case 0:
|
|
1623
1623
|
this.e9_1 = 14;
|
|
1624
1624
|
this.e9_1 = 13;
|
|
1625
|
-
this.
|
|
1625
|
+
this.g3l_1 = this.a3l_1;
|
|
1626
1626
|
this.d9_1 = 1;
|
|
1627
1627
|
continue $sm;
|
|
1628
1628
|
case 1:
|
|
1629
|
-
this.
|
|
1630
|
-
this.
|
|
1629
|
+
this.e3l_1 = this.g3l_1;
|
|
1630
|
+
this.d3l_1 = null;
|
|
1631
1631
|
this.d9_1 = 2;
|
|
1632
1632
|
continue $sm;
|
|
1633
1633
|
case 2:
|
|
@@ -1636,12 +1636,12 @@
|
|
|
1636
1636
|
case 3:
|
|
1637
1637
|
this.e9_1 = 10;
|
|
1638
1638
|
this.e9_1 = 9;
|
|
1639
|
-
this.
|
|
1639
|
+
this.f3l_1 = this.e3l_1.t();
|
|
1640
1640
|
this.d9_1 = 4;
|
|
1641
1641
|
continue $sm;
|
|
1642
1642
|
case 4:
|
|
1643
1643
|
this.d9_1 = 5;
|
|
1644
|
-
suspendResult = this.
|
|
1644
|
+
suspendResult = this.f3l_1.z1a(this);
|
|
1645
1645
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1646
1646
|
return suspendResult;
|
|
1647
1647
|
}
|
|
@@ -1653,10 +1653,10 @@
|
|
|
1653
1653
|
continue $sm;
|
|
1654
1654
|
}
|
|
1655
1655
|
|
|
1656
|
-
var e = this.
|
|
1657
|
-
get_LOGGER().
|
|
1656
|
+
var e = this.f3l_1.v();
|
|
1657
|
+
get_LOGGER().d2v('Received ping message, sending pong message');
|
|
1658
1658
|
this.d9_1 = 6;
|
|
1659
|
-
suspendResult = this.
|
|
1659
|
+
suspendResult = this.b3l_1.w1c(new Pong(e.h3j_1), this);
|
|
1660
1660
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1661
1661
|
return suspendResult;
|
|
1662
1662
|
}
|
|
@@ -1671,7 +1671,7 @@
|
|
|
1671
1671
|
continue $sm;
|
|
1672
1672
|
case 8:
|
|
1673
1673
|
this.e9_1 = 13;
|
|
1674
|
-
cancelConsumed(this.
|
|
1674
|
+
cancelConsumed(this.e3l_1, this.d3l_1);
|
|
1675
1675
|
this.d9_1 = 12;
|
|
1676
1676
|
continue $sm;
|
|
1677
1677
|
case 9:
|
|
@@ -1680,7 +1680,7 @@
|
|
|
1680
1680
|
if (tmp_1 instanceof Error) {
|
|
1681
1681
|
var e_0 = this.g9_1;
|
|
1682
1682
|
var tmp_2 = this;
|
|
1683
|
-
this.
|
|
1683
|
+
this.d3l_1 = e_0;
|
|
1684
1684
|
throw e_0;
|
|
1685
1685
|
} else {
|
|
1686
1686
|
throw this.g9_1;
|
|
@@ -1689,11 +1689,11 @@
|
|
|
1689
1689
|
case 10:
|
|
1690
1690
|
this.e9_1 = 13;
|
|
1691
1691
|
var t = this.g9_1;
|
|
1692
|
-
cancelConsumed(this.
|
|
1692
|
+
cancelConsumed(this.e3l_1, this.d3l_1);
|
|
1693
1693
|
throw t;
|
|
1694
1694
|
case 11:
|
|
1695
1695
|
this.e9_1 = 13;
|
|
1696
|
-
cancelConsumed(this.
|
|
1696
|
+
cancelConsumed(this.e3l_1, this.d3l_1);
|
|
1697
1697
|
if (false) {
|
|
1698
1698
|
this.d9_1 = 1;
|
|
1699
1699
|
continue $sm;
|
|
@@ -1734,8 +1734,8 @@
|
|
|
1734
1734
|
while (true);
|
|
1735
1735
|
};
|
|
1736
1736
|
protoOf(ponger$slambda).d1y = function ($this$launch, completion) {
|
|
1737
|
-
var i = new ponger$slambda(this.
|
|
1738
|
-
i.
|
|
1737
|
+
var i = new ponger$slambda(this.a3l_1, this.b3l_1, completion);
|
|
1738
|
+
i.c3l_1 = $this$launch;
|
|
1739
1739
|
return i;
|
|
1740
1740
|
};
|
|
1741
1741
|
function ponger$slambda_0($channel, $outgoing, resultContinuation) {
|
|
@@ -1745,7 +1745,7 @@
|
|
|
1745
1745
|
}, 1);
|
|
1746
1746
|
}
|
|
1747
1747
|
function pinger$slambda$slambda($channel, resultContinuation) {
|
|
1748
|
-
this.
|
|
1748
|
+
this.p3l_1 = $channel;
|
|
1749
1749
|
CoroutineImpl.call(this, resultContinuation);
|
|
1750
1750
|
}
|
|
1751
1751
|
protoOf(pinger$slambda$slambda).c1y = function ($this$withTimeoutOrNull, $completion) {
|
|
@@ -1774,7 +1774,7 @@
|
|
|
1774
1774
|
}
|
|
1775
1775
|
|
|
1776
1776
|
this.d9_1 = 2;
|
|
1777
|
-
suspendResult = this.
|
|
1777
|
+
suspendResult = this.p3l_1.z1c(this);
|
|
1778
1778
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1779
1779
|
return suspendResult;
|
|
1780
1780
|
}
|
|
@@ -1800,8 +1800,8 @@
|
|
|
1800
1800
|
while (true);
|
|
1801
1801
|
};
|
|
1802
1802
|
protoOf(pinger$slambda$slambda).d1y = function ($this$withTimeoutOrNull, completion) {
|
|
1803
|
-
var i = new pinger$slambda$slambda(this.
|
|
1804
|
-
i.
|
|
1803
|
+
var i = new pinger$slambda$slambda(this.p3l_1, completion);
|
|
1804
|
+
i.q3l_1 = $this$withTimeoutOrNull;
|
|
1805
1805
|
return i;
|
|
1806
1806
|
};
|
|
1807
1807
|
function pinger$slambda$slambda_0($channel, resultContinuation) {
|
|
@@ -1811,9 +1811,9 @@
|
|
|
1811
1811
|
}, 1);
|
|
1812
1812
|
}
|
|
1813
1813
|
function pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1814
|
-
this.
|
|
1815
|
-
this.
|
|
1816
|
-
this.
|
|
1814
|
+
this.z3l_1 = $outgoing;
|
|
1815
|
+
this.a3m_1 = $pingMessage;
|
|
1816
|
+
this.b3m_1 = $channel;
|
|
1817
1817
|
CoroutineImpl.call(this, resultContinuation);
|
|
1818
1818
|
}
|
|
1819
1819
|
protoOf(pinger$slambda$slambda_1).c1y = function ($this$withTimeoutOrNull, $completion) {
|
|
@@ -1833,9 +1833,9 @@
|
|
|
1833
1833
|
switch (tmp) {
|
|
1834
1834
|
case 0:
|
|
1835
1835
|
this.e9_1 = 6;
|
|
1836
|
-
get_LOGGER().
|
|
1836
|
+
get_LOGGER().d2v('WebSocket Pinger: sending ping frame');
|
|
1837
1837
|
this.d9_1 = 1;
|
|
1838
|
-
suspendResult = this.
|
|
1838
|
+
suspendResult = this.z3l_1.w1c(new Ping(toByteArray(this.a3m_1, Charsets_getInstance().d1z_1)), this);
|
|
1839
1839
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1840
1840
|
return suspendResult;
|
|
1841
1841
|
}
|
|
@@ -1851,16 +1851,16 @@
|
|
|
1851
1851
|
}
|
|
1852
1852
|
|
|
1853
1853
|
this.d9_1 = 3;
|
|
1854
|
-
suspendResult = this.
|
|
1854
|
+
suspendResult = this.b3m_1.z1c(this);
|
|
1855
1855
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1856
1856
|
return suspendResult;
|
|
1857
1857
|
}
|
|
1858
1858
|
|
|
1859
1859
|
continue $sm;
|
|
1860
1860
|
case 3:
|
|
1861
|
-
this.
|
|
1862
|
-
if (decodeToString(this.
|
|
1863
|
-
get_LOGGER().
|
|
1861
|
+
this.d3m_1 = suspendResult;
|
|
1862
|
+
if (decodeToString(this.d3m_1.h3j_1, 0, 0 + this.d3m_1.h3j_1.length | 0) === this.a3m_1) {
|
|
1863
|
+
get_LOGGER().d2v('WebSocket Pinger: received valid pong frame ' + this.d3m_1.toString());
|
|
1864
1864
|
this.d9_1 = 5;
|
|
1865
1865
|
continue $sm;
|
|
1866
1866
|
} else {
|
|
@@ -1869,7 +1869,7 @@
|
|
|
1869
1869
|
}
|
|
1870
1870
|
|
|
1871
1871
|
case 4:
|
|
1872
|
-
get_LOGGER().
|
|
1872
|
+
get_LOGGER().d2v('WebSocket Pinger: received invalid pong frame ' + this.d3m_1.toString() + ', continue waiting');
|
|
1873
1873
|
this.d9_1 = 2;
|
|
1874
1874
|
continue $sm;
|
|
1875
1875
|
case 5:
|
|
@@ -1889,8 +1889,8 @@
|
|
|
1889
1889
|
while (true);
|
|
1890
1890
|
};
|
|
1891
1891
|
protoOf(pinger$slambda$slambda_1).d1y = function ($this$withTimeoutOrNull, completion) {
|
|
1892
|
-
var i = new pinger$slambda$slambda_1(this.
|
|
1893
|
-
i.
|
|
1892
|
+
var i = new pinger$slambda$slambda_1(this.z3l_1, this.a3m_1, this.b3m_1, completion);
|
|
1893
|
+
i.c3m_1 = $this$withTimeoutOrNull;
|
|
1894
1894
|
return i;
|
|
1895
1895
|
};
|
|
1896
1896
|
function pinger$slambda$slambda_2($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
@@ -1900,11 +1900,11 @@
|
|
|
1900
1900
|
}, 1);
|
|
1901
1901
|
}
|
|
1902
1902
|
function pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
1903
|
-
this.
|
|
1904
|
-
this.
|
|
1905
|
-
this.
|
|
1906
|
-
this.
|
|
1907
|
-
this.
|
|
1903
|
+
this.m3m_1 = $periodMillis;
|
|
1904
|
+
this.n3m_1 = $timeoutMillis;
|
|
1905
|
+
this.o3m_1 = $onTimeout;
|
|
1906
|
+
this.p3m_1 = $channel;
|
|
1907
|
+
this.q3m_1 = $outgoing;
|
|
1908
1908
|
CoroutineImpl.call(this, resultContinuation);
|
|
1909
1909
|
}
|
|
1910
1910
|
protoOf(pinger$slambda).c1y = function ($this$launch, $completion) {
|
|
@@ -1924,9 +1924,9 @@
|
|
|
1924
1924
|
switch (tmp) {
|
|
1925
1925
|
case 0:
|
|
1926
1926
|
this.e9_1 = 9;
|
|
1927
|
-
get_LOGGER().
|
|
1928
|
-
this.
|
|
1929
|
-
this.
|
|
1927
|
+
get_LOGGER().d2v('Starting WebSocket pinger coroutine with period ' + this.m3m_1.toString() + ' ms and timeout ' + this.n3m_1.toString() + ' ms');
|
|
1928
|
+
this.t3m_1 = Random(getTimeMillis());
|
|
1929
|
+
this.s3m_1 = new Int8Array(32);
|
|
1930
1930
|
this.e9_1 = 7;
|
|
1931
1931
|
this.d9_1 = 1;
|
|
1932
1932
|
continue $sm;
|
|
@@ -1937,17 +1937,17 @@
|
|
|
1937
1937
|
}
|
|
1938
1938
|
|
|
1939
1939
|
this.d9_1 = 2;
|
|
1940
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1940
|
+
suspendResult = withTimeoutOrNull(this.m3m_1, pinger$slambda$slambda_0(this.p3m_1, null), this);
|
|
1941
1941
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1942
1942
|
return suspendResult;
|
|
1943
1943
|
}
|
|
1944
1944
|
|
|
1945
1945
|
continue $sm;
|
|
1946
1946
|
case 2:
|
|
1947
|
-
this.
|
|
1948
|
-
var pingMessage = '[ping ' + toHexString(this.
|
|
1947
|
+
this.t3m_1.dj(this.s3m_1);
|
|
1948
|
+
var pingMessage = '[ping ' + toHexString(this.s3m_1) + ' ping]';
|
|
1949
1949
|
this.d9_1 = 3;
|
|
1950
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1950
|
+
suspendResult = withTimeoutOrNull(this.n3m_1, pinger$slambda$slambda_2(this.q3m_1, pingMessage, this.p3m_1, null), this);
|
|
1951
1951
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1952
1952
|
return suspendResult;
|
|
1953
1953
|
}
|
|
@@ -1956,9 +1956,9 @@
|
|
|
1956
1956
|
case 3:
|
|
1957
1957
|
var rc = suspendResult;
|
|
1958
1958
|
if (rc == null) {
|
|
1959
|
-
get_LOGGER().
|
|
1959
|
+
get_LOGGER().d2v('WebSocket pinger has timed out');
|
|
1960
1960
|
this.d9_1 = 5;
|
|
1961
|
-
suspendResult = this.
|
|
1961
|
+
suspendResult = this.o3m_1(CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), 'Ping timeout'), this);
|
|
1962
1962
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1963
1963
|
return suspendResult;
|
|
1964
1964
|
}
|
|
@@ -2028,8 +2028,8 @@
|
|
|
2028
2028
|
while (true);
|
|
2029
2029
|
};
|
|
2030
2030
|
protoOf(pinger$slambda).d1y = function ($this$launch, completion) {
|
|
2031
|
-
var i = new pinger$slambda(this.
|
|
2032
|
-
i.
|
|
2031
|
+
var i = new pinger$slambda(this.m3m_1, this.n3m_1, this.o3m_1, this.p3m_1, this.q3m_1, completion);
|
|
2032
|
+
i.r3m_1 = $this$launch;
|
|
2033
2033
|
return i;
|
|
2034
2034
|
};
|
|
2035
2035
|
function pinger$slambda_0($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
@@ -2057,9 +2057,9 @@
|
|
|
2057
2057
|
var tmp = this;
|
|
2058
2058
|
// Inline function 'kotlin.apply' call
|
|
2059
2059
|
var this_0 = new WebSocketChannelsConfig();
|
|
2060
|
-
this_0.
|
|
2061
|
-
this_0.
|
|
2062
|
-
tmp.
|
|
2060
|
+
this_0.s3f_1 = this_0.u3m();
|
|
2061
|
+
this_0.t3f_1 = this_0.u3m();
|
|
2062
|
+
tmp.r3f_1 = this_0;
|
|
2063
2063
|
}
|
|
2064
2064
|
var Companion_instance_2;
|
|
2065
2065
|
function Companion_getInstance_2() {
|
|
@@ -2069,21 +2069,21 @@
|
|
|
2069
2069
|
}
|
|
2070
2070
|
function WebSocketChannelsConfig() {
|
|
2071
2071
|
Companion_getInstance_2();
|
|
2072
|
-
this.
|
|
2073
|
-
this.
|
|
2072
|
+
this.s3f_1 = Companion_getInstance_3().v3m_1;
|
|
2073
|
+
this.t3f_1 = Companion_getInstance_3().v3m_1;
|
|
2074
2074
|
}
|
|
2075
|
-
protoOf(WebSocketChannelsConfig).
|
|
2076
|
-
return Companion_getInstance_3().
|
|
2075
|
+
protoOf(WebSocketChannelsConfig).u3m = function () {
|
|
2076
|
+
return Companion_getInstance_3().v3m_1;
|
|
2077
2077
|
};
|
|
2078
2078
|
function from(_this__u8e3s4, config) {
|
|
2079
2079
|
// Inline function 'kotlin.with' call
|
|
2080
2080
|
var tmp;
|
|
2081
|
-
if (config.
|
|
2081
|
+
if (config.w3m_1 === 2147483647) {
|
|
2082
2082
|
tmp = Channel(2147483647);
|
|
2083
|
-
} else if (config.
|
|
2084
|
-
tmp = Channel(config.
|
|
2085
|
-
} else if (config.
|
|
2086
|
-
tmp = new BoundedChannel(config.
|
|
2083
|
+
} else if (config.x3m_1.equals(ChannelOverflow_SUSPEND_getInstance())) {
|
|
2084
|
+
tmp = Channel(config.w3m_1, BufferOverflow_SUSPEND_getInstance());
|
|
2085
|
+
} else if (config.x3m_1.equals(ChannelOverflow_CLOSE_getInstance())) {
|
|
2086
|
+
tmp = new BoundedChannel(config.w3m_1);
|
|
2087
2087
|
} else {
|
|
2088
2088
|
// Inline function 'kotlin.error' call
|
|
2089
2089
|
var message = 'Unsupported channel config.';
|
|
@@ -2093,7 +2093,7 @@
|
|
|
2093
2093
|
}
|
|
2094
2094
|
function Companion_3() {
|
|
2095
2095
|
Companion_instance_3 = this;
|
|
2096
|
-
this.
|
|
2096
|
+
this.v3m_1 = new ChannelConfig(2147483647, ChannelOverflow_SUSPEND_getInstance());
|
|
2097
2097
|
}
|
|
2098
2098
|
var Companion_instance_3;
|
|
2099
2099
|
function Companion_getInstance_3() {
|
|
@@ -2103,11 +2103,11 @@
|
|
|
2103
2103
|
}
|
|
2104
2104
|
function ChannelConfig(capacity, onOverflow) {
|
|
2105
2105
|
Companion_getInstance_3();
|
|
2106
|
-
this.
|
|
2107
|
-
this.
|
|
2106
|
+
this.w3m_1 = capacity;
|
|
2107
|
+
this.x3m_1 = onOverflow;
|
|
2108
2108
|
}
|
|
2109
|
-
protoOf(ChannelConfig).
|
|
2110
|
-
return this.
|
|
2109
|
+
protoOf(ChannelConfig).y3m = function () {
|
|
2110
|
+
return this.x3m_1.equals(ChannelOverflow_SUSPEND_getInstance()) && !(this.w3m_1 === 2147483647);
|
|
2111
2111
|
};
|
|
2112
2112
|
var ChannelOverflow_SUSPEND_instance;
|
|
2113
2113
|
var ChannelOverflow_CLOSE_instance;
|
|
@@ -2146,7 +2146,7 @@
|
|
|
2146
2146
|
}
|
|
2147
2147
|
function Companion_4() {
|
|
2148
2148
|
}
|
|
2149
|
-
protoOf(Companion_4).
|
|
2149
|
+
protoOf(Companion_4).z3m = function (capacity) {
|
|
2150
2150
|
var channel = {_v: null};
|
|
2151
2151
|
var tmp = BufferOverflow_DROP_OLDEST_getInstance();
|
|
2152
2152
|
// Inline function 'kotlin.also' call
|
|
@@ -2159,42 +2159,42 @@
|
|
|
2159
2159
|
return Companion_instance_4;
|
|
2160
2160
|
}
|
|
2161
2161
|
function BoundedChannel(capacity, delegate) {
|
|
2162
|
-
delegate = delegate === VOID ? Companion_instance_4.
|
|
2163
|
-
this.
|
|
2162
|
+
delegate = delegate === VOID ? Companion_instance_4.z3m(capacity) : delegate;
|
|
2163
|
+
this.a3n_1 = delegate;
|
|
2164
2164
|
}
|
|
2165
|
-
protoOf(BoundedChannel).
|
|
2166
|
-
var result = this.
|
|
2165
|
+
protoOf(BoundedChannel).b3n = function (element) {
|
|
2166
|
+
var result = this.a3n_1.x1c(element);
|
|
2167
2167
|
if (!_ChannelResult___get_isSuccess__impl__odq1z9(result) && !_ChannelResult___get_isClosed__impl__mg7kuu(result)) {
|
|
2168
2168
|
this.b1d(new ChannelOverflowException('Channel overflowed'));
|
|
2169
2169
|
}
|
|
2170
2170
|
return result;
|
|
2171
2171
|
};
|
|
2172
2172
|
protoOf(BoundedChannel).x1c = function (element) {
|
|
2173
|
-
return this.
|
|
2173
|
+
return this.b3n(element);
|
|
2174
2174
|
};
|
|
2175
|
-
protoOf(BoundedChannel).
|
|
2176
|
-
return this.
|
|
2175
|
+
protoOf(BoundedChannel).c3n = function (element, $completion) {
|
|
2176
|
+
return this.a3n_1.w1c(element, $completion);
|
|
2177
2177
|
};
|
|
2178
2178
|
protoOf(BoundedChannel).w1c = function (element, $completion) {
|
|
2179
|
-
return this.
|
|
2179
|
+
return this.c3n(element, $completion);
|
|
2180
2180
|
};
|
|
2181
2181
|
protoOf(BoundedChannel).b1d = function (cause) {
|
|
2182
|
-
return this.
|
|
2182
|
+
return this.a3n_1.b1d(cause);
|
|
2183
2183
|
};
|
|
2184
2184
|
protoOf(BoundedChannel).b1b = function () {
|
|
2185
|
-
return this.
|
|
2185
|
+
return this.a3n_1.b1b();
|
|
2186
2186
|
};
|
|
2187
|
-
protoOf(BoundedChannel).
|
|
2188
|
-
return this.
|
|
2187
|
+
protoOf(BoundedChannel).d3n = function ($completion) {
|
|
2188
|
+
return this.a3n_1.z1c($completion);
|
|
2189
2189
|
};
|
|
2190
2190
|
protoOf(BoundedChannel).z1c = function ($completion) {
|
|
2191
|
-
return this.
|
|
2191
|
+
return this.d3n($completion);
|
|
2192
2192
|
};
|
|
2193
2193
|
protoOf(BoundedChannel).t = function () {
|
|
2194
|
-
return this.
|
|
2194
|
+
return this.a3n_1.t();
|
|
2195
2195
|
};
|
|
2196
2196
|
protoOf(BoundedChannel).dv = function (cause) {
|
|
2197
|
-
this.
|
|
2197
|
+
this.a3n_1.dv(cause);
|
|
2198
2198
|
};
|
|
2199
2199
|
function ChannelOverflowException(message) {
|
|
2200
2200
|
RuntimeException_init_$Init$(message, this);
|
|
@@ -2213,16 +2213,16 @@
|
|
|
2213
2213
|
function WebSocketExtensionsConfig() {
|
|
2214
2214
|
var tmp = this;
|
|
2215
2215
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2216
|
-
tmp.
|
|
2216
|
+
tmp.g3n_1 = ArrayList_init_$Create$();
|
|
2217
2217
|
var tmp_0 = this;
|
|
2218
2218
|
// Inline function 'kotlin.arrayOf' call
|
|
2219
2219
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2220
2220
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2221
|
-
tmp_0.
|
|
2221
|
+
tmp_0.h3n_1 = [false, false, false];
|
|
2222
2222
|
}
|
|
2223
|
-
protoOf(WebSocketExtensionsConfig).
|
|
2223
|
+
protoOf(WebSocketExtensionsConfig).g2y = function () {
|
|
2224
2224
|
// Inline function 'kotlin.collections.map' call
|
|
2225
|
-
var this_0 = this.
|
|
2225
|
+
var this_0 = this.g3n_1;
|
|
2226
2226
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2227
2227
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2228
2228
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2234,14 +2234,14 @@
|
|
|
2234
2234
|
return destination;
|
|
2235
2235
|
};
|
|
2236
2236
|
function parametersToString($this) {
|
|
2237
|
-
return $this.
|
|
2237
|
+
return $this.j3n_1.r() ? '' : '; ' + joinToString($this.j3n_1, ';');
|
|
2238
2238
|
}
|
|
2239
2239
|
function WebSocketExtensionHeader(name, parameters) {
|
|
2240
|
-
this.
|
|
2241
|
-
this.
|
|
2240
|
+
this.i3n_1 = name;
|
|
2241
|
+
this.j3n_1 = parameters;
|
|
2242
2242
|
}
|
|
2243
2243
|
protoOf(WebSocketExtensionHeader).toString = function () {
|
|
2244
|
-
return this.
|
|
2244
|
+
return this.i3n_1 + ' ' + parametersToString(this);
|
|
2245
2245
|
};
|
|
2246
2246
|
function parseWebSocketExtensions(value) {
|
|
2247
2247
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2293,8 +2293,8 @@
|
|
|
2293
2293
|
}
|
|
2294
2294
|
function $closeCOROUTINE$(_this__u8e3s4, reason, resultContinuation) {
|
|
2295
2295
|
CoroutineImpl.call(this, resultContinuation);
|
|
2296
|
-
this.
|
|
2297
|
-
this.
|
|
2296
|
+
this.s3n_1 = _this__u8e3s4;
|
|
2297
|
+
this.t3n_1 = reason;
|
|
2298
2298
|
}
|
|
2299
2299
|
protoOf($closeCOROUTINE$).l9 = function () {
|
|
2300
2300
|
var suspendResult = this.f9_1;
|
|
@@ -2306,7 +2306,7 @@
|
|
|
2306
2306
|
this.e9_1 = 4;
|
|
2307
2307
|
this.e9_1 = 3;
|
|
2308
2308
|
this.d9_1 = 1;
|
|
2309
|
-
suspendResult = this.
|
|
2309
|
+
suspendResult = this.s3n_1.q3f(Close_init_$Create$(this.t3n_1), this);
|
|
2310
2310
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2311
2311
|
return suspendResult;
|
|
2312
2312
|
}
|
|
@@ -2314,7 +2314,7 @@
|
|
|
2314
2314
|
continue $sm;
|
|
2315
2315
|
case 1:
|
|
2316
2316
|
this.d9_1 = 2;
|
|
2317
|
-
suspendResult = this.
|
|
2317
|
+
suspendResult = this.s3n_1.v1o(this);
|
|
2318
2318
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2319
2319
|
return suspendResult;
|
|
2320
2320
|
}
|
|
@@ -2373,8 +2373,8 @@
|
|
|
2373
2373
|
function Close_init_$Init$(reason, $this) {
|
|
2374
2374
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
2375
2375
|
var builder = new Buffer();
|
|
2376
|
-
builder.es(reason.
|
|
2377
|
-
writeText(builder, reason.
|
|
2376
|
+
builder.es(reason.i3f_1);
|
|
2377
|
+
writeText(builder, reason.j3f_1);
|
|
2378
2378
|
Close_init_$Init$_0(builder, $this);
|
|
2379
2379
|
return $this;
|
|
2380
2380
|
}
|
|
@@ -2386,7 +2386,7 @@
|
|
|
2386
2386
|
return $this;
|
|
2387
2387
|
}
|
|
2388
2388
|
function Close_init_$Init$_1($this) {
|
|
2389
|
-
Close.call($this, Companion_getInstance_5().
|
|
2389
|
+
Close.call($this, Companion_getInstance_5().m3j_1);
|
|
2390
2390
|
return $this;
|
|
2391
2391
|
}
|
|
2392
2392
|
function Close_init_$Create$_0() {
|
|
@@ -2416,9 +2416,9 @@
|
|
|
2416
2416
|
}
|
|
2417
2417
|
function Companion_5() {
|
|
2418
2418
|
Companion_instance_5 = this;
|
|
2419
|
-
this.
|
|
2419
|
+
this.m3j_1 = new Int8Array(0);
|
|
2420
2420
|
}
|
|
2421
|
-
protoOf(Companion_5).
|
|
2421
|
+
protoOf(Companion_5).n3j = function (fin, frameType, data, rsv1, rsv2, rsv3) {
|
|
2422
2422
|
var tmp;
|
|
2423
2423
|
switch (frameType.a1_1) {
|
|
2424
2424
|
case 1:
|
|
@@ -2454,23 +2454,23 @@
|
|
|
2454
2454
|
rsv1 = rsv1 === VOID ? false : rsv1;
|
|
2455
2455
|
rsv2 = rsv2 === VOID ? false : rsv2;
|
|
2456
2456
|
rsv3 = rsv3 === VOID ? false : rsv3;
|
|
2457
|
-
this.
|
|
2458
|
-
this.
|
|
2459
|
-
this.
|
|
2460
|
-
this.
|
|
2461
|
-
this.
|
|
2462
|
-
this.
|
|
2463
|
-
this.
|
|
2457
|
+
this.f3j_1 = fin;
|
|
2458
|
+
this.g3j_1 = frameType;
|
|
2459
|
+
this.h3j_1 = data;
|
|
2460
|
+
this.i3j_1 = disposableHandle;
|
|
2461
|
+
this.j3j_1 = rsv1;
|
|
2462
|
+
this.k3j_1 = rsv2;
|
|
2463
|
+
this.l3j_1 = rsv3;
|
|
2464
2464
|
}
|
|
2465
2465
|
protoOf(Frame).toString = function () {
|
|
2466
|
-
return 'Frame ' + this.
|
|
2466
|
+
return 'Frame ' + this.g3j_1.toString() + ' (fin=' + this.f3j_1 + ', buffer len = ' + this.h3j_1.length + ')';
|
|
2467
2467
|
};
|
|
2468
2468
|
function get_OUTGOING_CHANNEL_CAPACITY() {
|
|
2469
2469
|
return OUTGOING_CHANNEL_CAPACITY;
|
|
2470
2470
|
}
|
|
2471
2471
|
var OUTGOING_CHANNEL_CAPACITY;
|
|
2472
2472
|
//region block: post-declaration
|
|
2473
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
2473
|
+
protoOf(DefaultWebSocketSessionImpl).q3f = send;
|
|
2474
2474
|
defineProp(protoOf(FrameTooBigException), 'message', function () {
|
|
2475
2475
|
return this.e();
|
|
2476
2476
|
});
|