@doordeck/doordeck-headless-sdk 0.195.0 → 0.197.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 +57 -57
- package/kotlin/Kermit-kermit.js +8 -8
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +22 -22
- package/kotlin/doordeck-sdk.js +10188 -10162
- package/kotlin/kotlin-kotlin-stdlib.js +442 -688
- package/kotlin/kotlinx-atomicfu.js +21 -21
- package/kotlin/kotlinx-coroutines-core.js +2034 -2034
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +46 -46
- package/kotlin/kotlinx-io-kotlinx-io-core.js +475 -475
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1843 -1843
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1440 -1440
- package/kotlin/ktor-ktor-client-auth.js +264 -264
- package/kotlin/ktor-ktor-client-content-negotiation.js +156 -156
- package/kotlin/ktor-ktor-client-core.js +2195 -2156
- package/kotlin/ktor-ktor-client-logging.js +670 -679
- package/kotlin/ktor-ktor-events.js +11 -11
- package/kotlin/ktor-ktor-http-cio.js +369 -369
- package/kotlin/ktor-ktor-http.js +789 -789
- package/kotlin/ktor-ktor-io.js +663 -663
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +6 -6
- package/kotlin/ktor-ktor-serialization-kotlinx.js +151 -151
- package/kotlin/ktor-ktor-serialization.js +70 -70
- package/kotlin/ktor-ktor-utils.js +1549 -1014
- package/kotlin/ktor-ktor-websockets.js +422 -422
- package/package.json +1 -1
|
@@ -2,50 +2,50 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
6
|
-
var mapCapacity = kotlin_kotlin.$_$.
|
|
7
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
5
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.z5;
|
|
6
|
+
var mapCapacity = kotlin_kotlin.$_$.s7;
|
|
7
|
+
var coerceAtLeast = kotlin_kotlin.$_$.kc;
|
|
8
8
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
9
9
|
var Unit_instance = kotlin_kotlin.$_$.z;
|
|
10
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
11
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
12
|
-
var enumEntries = kotlin_kotlin.$_$.
|
|
13
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
14
|
-
var Enum = kotlin_kotlin.$_$.
|
|
15
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
10
|
+
var protoOf = kotlin_kotlin.$_$.cc;
|
|
11
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.gb;
|
|
12
|
+
var enumEntries = kotlin_kotlin.$_$.q9;
|
|
13
|
+
var objectCreate = kotlin_kotlin.$_$.bc;
|
|
14
|
+
var Enum = kotlin_kotlin.$_$.tf;
|
|
15
|
+
var initMetadataForClass = kotlin_kotlin.$_$.fb;
|
|
16
16
|
var VOID = kotlin_kotlin.$_$.b;
|
|
17
|
-
var toString = kotlin_kotlin.$_$.
|
|
18
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
19
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
20
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
17
|
+
var toString = kotlin_kotlin.$_$.fc;
|
|
18
|
+
var getStringHashCode = kotlin_kotlin.$_$.db;
|
|
19
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.jb;
|
|
20
|
+
var isInterface = kotlin_kotlin.$_$.ub;
|
|
21
21
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n2;
|
|
22
22
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c;
|
|
23
23
|
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a2;
|
|
24
24
|
var CoroutineStart_UNDISPATCHED_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i;
|
|
25
25
|
var ChannelResult = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u;
|
|
26
26
|
var _ChannelResult___get_isSuccess__impl__odq1z9 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
|
|
27
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
28
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
27
|
+
var CoroutineImpl = kotlin_kotlin.$_$.o9;
|
|
28
|
+
var THROW_CCE = kotlin_kotlin.$_$.cg;
|
|
29
29
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q1;
|
|
30
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
31
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
30
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.y8;
|
|
31
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.kb;
|
|
32
32
|
var get_isTraceEnabled = kotlin_io_ktor_ktor_utils.$_$.l;
|
|
33
33
|
var BytePacketBuilder = kotlin_io_ktor_ktor_io.$_$.x;
|
|
34
34
|
var writeFully = kotlin_io_ktor_ktor_io.$_$.g1;
|
|
35
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
35
|
+
var ensureNotNull = kotlin_kotlin.$_$.ug;
|
|
36
36
|
var build = kotlin_io_ktor_ktor_io.$_$.y;
|
|
37
37
|
var readByteArray = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
38
38
|
var cancelConsumed = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b1;
|
|
39
39
|
var ClosedSendChannelException = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.x;
|
|
40
40
|
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.z1;
|
|
41
41
|
var ChannelIOException = kotlin_io_ktor_ktor_utils.$_$.d;
|
|
42
|
-
var CancellationException = kotlin_kotlin.$_$.
|
|
42
|
+
var CancellationException = kotlin_kotlin.$_$.x8;
|
|
43
43
|
var ClosedReceiveChannelException = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.w;
|
|
44
44
|
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
45
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
46
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
45
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.hb;
|
|
46
|
+
var toString_0 = kotlin_kotlin.$_$.fh;
|
|
47
47
|
var get_size = kotlin_io_ktor_ktor_io.$_$.d1;
|
|
48
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
48
|
+
var fromInt = kotlin_kotlin.$_$.z9;
|
|
49
49
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
|
|
50
50
|
var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l1;
|
|
51
51
|
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s1;
|
|
@@ -55,53 +55,53 @@
|
|
|
55
55
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.b;
|
|
56
56
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j1;
|
|
57
57
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r2;
|
|
58
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
58
|
+
var joinToString = kotlin_kotlin.$_$.k7;
|
|
59
59
|
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.k;
|
|
60
60
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
61
61
|
var readText = kotlin_io_ktor_ktor_io.$_$.b1;
|
|
62
62
|
var DisposableHandle = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r1;
|
|
63
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
64
|
-
var Exception = kotlin_kotlin.$_$.
|
|
63
|
+
var initMetadataForObject = kotlin_kotlin.$_$.lb;
|
|
64
|
+
var Exception = kotlin_kotlin.$_$.vf;
|
|
65
65
|
var Exception_init_$Init$ = kotlin_kotlin.$_$.g2;
|
|
66
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
66
|
+
var captureStack = kotlin_kotlin.$_$.oa;
|
|
67
67
|
var initCauseBridge = kotlin_io_ktor_ktor_utils.$_$.j;
|
|
68
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
68
|
+
var defineProp = kotlin_kotlin.$_$.wa;
|
|
69
69
|
var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n1;
|
|
70
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
70
|
+
var compareTo = kotlin_kotlin.$_$.va;
|
|
71
71
|
var Channel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.v;
|
|
72
72
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.a;
|
|
73
73
|
var toByteArray = kotlin_io_ktor_ktor_io.$_$.f1;
|
|
74
|
-
var decodeToString = kotlin_kotlin.$_$.
|
|
74
|
+
var decodeToString = kotlin_kotlin.$_$.id;
|
|
75
75
|
var getTimeMillis = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
76
|
-
var Random = kotlin_kotlin.$_$.
|
|
76
|
+
var Random = kotlin_kotlin.$_$.ic;
|
|
77
77
|
var withTimeoutOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p;
|
|
78
|
-
var hex = kotlin_io_ktor_ktor_utils.$_$.
|
|
78
|
+
var hex = kotlin_io_ktor_ktor_utils.$_$.g1;
|
|
79
79
|
var ClosedByteChannelException = kotlin_io_ktor_ktor_io.$_$.o1;
|
|
80
80
|
var BufferOverflow_SUSPEND_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.h;
|
|
81
|
-
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.
|
|
81
|
+
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.r9;
|
|
82
82
|
var BufferOverflow_DROP_OLDEST_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g;
|
|
83
83
|
var _ChannelResult___get_isClosed__impl__mg7kuu = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s;
|
|
84
84
|
var close$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r;
|
|
85
85
|
var cancel$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q;
|
|
86
86
|
var SendChannel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a1;
|
|
87
87
|
var ReceiveChannel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z;
|
|
88
|
-
var RuntimeException = kotlin_kotlin.$_$.
|
|
88
|
+
var RuntimeException = kotlin_kotlin.$_$.bg;
|
|
89
89
|
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.z2;
|
|
90
90
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i1;
|
|
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.$_$.
|
|
91
|
+
var split = kotlin_kotlin.$_$.de;
|
|
92
|
+
var first = kotlin_kotlin.$_$.c7;
|
|
93
|
+
var isCharSequence = kotlin_kotlin.$_$.qb;
|
|
94
|
+
var trim = kotlin_kotlin.$_$.gf;
|
|
95
|
+
var drop = kotlin_kotlin.$_$.t6;
|
|
96
96
|
var writeText = kotlin_io_ktor_ktor_io.$_$.h1;
|
|
97
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
97
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.bh;
|
|
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.a3d().q1b(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.p3c_1;
|
|
169
169
|
destination.y2(tmp$ret$2, element);
|
|
170
170
|
}
|
|
171
|
-
tmp.
|
|
172
|
-
this.
|
|
171
|
+
tmp.q3c_1 = destination;
|
|
172
|
+
this.r3c_1 = Codes_INTERNAL_ERROR_getInstance();
|
|
173
173
|
}
|
|
174
|
-
protoOf(Companion).
|
|
175
|
-
return this.
|
|
174
|
+
protoOf(Companion).s3c = function (code) {
|
|
175
|
+
return this.q3c_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.p3c_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.p3c_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.t3c_1 = code;
|
|
273
|
+
this.u3c_1 = message;
|
|
274
274
|
}
|
|
275
|
-
protoOf(CloseReason).
|
|
276
|
-
return Companion_getInstance().
|
|
275
|
+
protoOf(CloseReason).v3c = function () {
|
|
276
|
+
return Companion_getInstance().s3c(this.t3c_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.v3c();
|
|
280
|
+
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.t3c_1 : tmp0_elvis_lhs) + ', message=' + this.u3c_1 + ')';
|
|
281
281
|
};
|
|
282
282
|
protoOf(CloseReason).hashCode = function () {
|
|
283
|
-
var result = this.
|
|
284
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
283
|
+
var result = this.t3c_1;
|
|
284
|
+
result = imul(result, 31) + getStringHashCode(this.u3c_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.t3c_1 === other.t3c_1))
|
|
293
293
|
return false;
|
|
294
|
-
if (!(this.
|
|
294
|
+
if (!(this.u3c_1 === other.u3c_1))
|
|
295
295
|
return false;
|
|
296
296
|
return true;
|
|
297
297
|
};
|
|
@@ -321,21 +321,21 @@
|
|
|
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().c3d_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.d3d_1, channelsConfig.e3d_1);
|
|
332
332
|
}
|
|
333
333
|
function runIncomingProcessor($this, ponger) {
|
|
334
|
-
var tmp = get_IncomingProcessorCoroutineName().yg(Dispatchers_getInstance().
|
|
334
|
+
var tmp = get_IncomingProcessorCoroutineName().yg(Dispatchers_getInstance().f15_1);
|
|
335
335
|
return launch($this, tmp, VOID, DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0($this, ponger, null));
|
|
336
336
|
}
|
|
337
337
|
function runOutgoingProcessor($this) {
|
|
338
|
-
var tmp = get_OutgoingProcessorCoroutineName().yg(Dispatchers_getInstance().
|
|
338
|
+
var tmp = get_OutgoingProcessorCoroutineName().yg(Dispatchers_getInstance().f15_1);
|
|
339
339
|
var tmp_0 = CoroutineStart_UNDISPATCHED_getInstance();
|
|
340
340
|
return launch($this, tmp, tmp_0, DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0($this, null));
|
|
341
341
|
}
|
|
@@ -353,32 +353,32 @@
|
|
|
353
353
|
return tmp.i9();
|
|
354
354
|
}
|
|
355
355
|
function tryClose($this) {
|
|
356
|
-
return $this.
|
|
356
|
+
return $this.j3e_1.atomicfu$compareAndSet(false, true);
|
|
357
357
|
}
|
|
358
358
|
function runOrCancelPinger($this) {
|
|
359
|
-
var interval = $this.
|
|
359
|
+
var interval = $this.m3e_1;
|
|
360
360
|
var tmp;
|
|
361
|
-
if ($this.
|
|
361
|
+
if ($this.j3e_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.c3e_1.a3d();
|
|
365
|
+
var tmp_1 = $this.n3e_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.d3e_1.atomicfu$getAndSet(newPinger);
|
|
372
372
|
if (tmp0_safe_receiver == null)
|
|
373
373
|
null;
|
|
374
374
|
else
|
|
375
|
-
tmp0_safe_receiver.
|
|
376
|
-
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.
|
|
375
|
+
tmp0_safe_receiver.y1b();
|
|
376
|
+
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.r1b(Companion_getInstance_0().p3e_1));
|
|
377
377
|
if (tmp2_safe_receiver == null)
|
|
378
378
|
null;
|
|
379
379
|
else
|
|
380
|
-
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.
|
|
381
|
-
if ($this.
|
|
380
|
+
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.b1a_1);
|
|
381
|
+
if ($this.j3e_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.c3f().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.d3f(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.c3f().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.e3f(current);
|
|
410
410
|
}
|
|
411
411
|
return accumulator;
|
|
412
412
|
}
|
|
413
413
|
function Companion_0() {
|
|
414
414
|
Companion_instance_0 = this;
|
|
415
|
-
this.
|
|
415
|
+
this.p3e_1 = new Pong(new Int8Array(0), NonDisposableHandle_instance);
|
|
416
416
|
}
|
|
417
417
|
var Companion_instance_0;
|
|
418
418
|
function Companion_getInstance_0() {
|
|
@@ -421,19 +421,19 @@
|
|
|
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.n3f_1 = $incomingJob;
|
|
425
|
+
this.o3f_1 = $outgoingJob;
|
|
426
|
+
this.p3f_1 = this$0;
|
|
427
427
|
CoroutineImpl.call(this, resultContinuation);
|
|
428
428
|
}
|
|
429
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
430
|
-
var tmp = this.
|
|
429
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).t1w = function ($this$launch, $completion) {
|
|
430
|
+
var tmp = this.u1w($this$launch, $completion);
|
|
431
431
|
tmp.c9_1 = Unit_instance;
|
|
432
432
|
tmp.d9_1 = null;
|
|
433
433
|
return tmp.i9();
|
|
434
434
|
};
|
|
435
435
|
protoOf(DefaultWebSocketSessionImpl$start$slambda).u9 = function (p1, $completion) {
|
|
436
|
-
return this.
|
|
436
|
+
return this.t1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
437
437
|
};
|
|
438
438
|
protoOf(DefaultWebSocketSessionImpl$start$slambda).i9 = function () {
|
|
439
439
|
var suspendResult = this.c9_1;
|
|
@@ -444,7 +444,7 @@
|
|
|
444
444
|
case 0:
|
|
445
445
|
this.b9_1 = 3;
|
|
446
446
|
this.a9_1 = 1;
|
|
447
|
-
suspendResult = this.
|
|
447
|
+
suspendResult = this.n3f_1.ut(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.a9_1 = 2;
|
|
455
|
-
suspendResult = this.
|
|
455
|
+
suspendResult = this.o3f_1.ut(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.p3f_1.f3e_1.yt();
|
|
463
463
|
return Unit_instance;
|
|
464
464
|
case 3:
|
|
465
465
|
throw this.d9_1;
|
|
@@ -475,32 +475,32 @@
|
|
|
475
475
|
}
|
|
476
476
|
while (true);
|
|
477
477
|
};
|
|
478
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
479
|
-
var i = new DefaultWebSocketSessionImpl$start$slambda(this.
|
|
480
|
-
i.
|
|
478
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).u1w = function ($this$launch, completion) {
|
|
479
|
+
var i = new DefaultWebSocketSessionImpl$start$slambda(this.n3f_1, this.o3f_1, this.p3f_1, completion);
|
|
480
|
+
i.q3f_1 = $this$launch;
|
|
481
481
|
return i;
|
|
482
482
|
};
|
|
483
483
|
function DefaultWebSocketSessionImpl$start$slambda_0($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
484
484
|
var i = new DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation);
|
|
485
485
|
var l = function ($this$launch, $completion) {
|
|
486
|
-
return i.
|
|
486
|
+
return i.t1w($this$launch, $completion);
|
|
487
487
|
};
|
|
488
488
|
l.$arity = 1;
|
|
489
489
|
return l;
|
|
490
490
|
}
|
|
491
491
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation) {
|
|
492
|
-
this.
|
|
493
|
-
this.
|
|
492
|
+
this.z3f_1 = this$0;
|
|
493
|
+
this.a3g_1 = $ponger;
|
|
494
494
|
CoroutineImpl.call(this, resultContinuation);
|
|
495
495
|
}
|
|
496
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
497
|
-
var tmp = this.
|
|
496
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t1w = function ($this$launch, $completion) {
|
|
497
|
+
var tmp = this.u1w($this$launch, $completion);
|
|
498
498
|
tmp.c9_1 = Unit_instance;
|
|
499
499
|
tmp.d9_1 = null;
|
|
500
500
|
return tmp.i9();
|
|
501
501
|
};
|
|
502
502
|
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u9 = function (p1, $completion) {
|
|
503
|
-
return this.
|
|
503
|
+
return this.t1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
504
504
|
};
|
|
505
505
|
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).i9 = function () {
|
|
506
506
|
var suspendResult = this.c9_1;
|
|
@@ -510,10 +510,10 @@
|
|
|
510
510
|
switch (tmp) {
|
|
511
511
|
case 0:
|
|
512
512
|
this.b9_1 = 39;
|
|
513
|
-
this.
|
|
514
|
-
this.
|
|
515
|
-
this.
|
|
516
|
-
this.
|
|
513
|
+
this.l3g_1 = null;
|
|
514
|
+
this.e3g_1 = null;
|
|
515
|
+
this.d3g_1 = false;
|
|
516
|
+
this.f3g_1 = Unit_instance;
|
|
517
517
|
this.a9_1 = 1;
|
|
518
518
|
continue $sm;
|
|
519
519
|
case 1:
|
|
@@ -522,12 +522,12 @@
|
|
|
522
522
|
case 2:
|
|
523
523
|
this.b9_1 = 33;
|
|
524
524
|
this.b9_1 = 32;
|
|
525
|
-
this.
|
|
525
|
+
this.p3g_1 = this.z3f_1.c3e_1.z3c();
|
|
526
526
|
this.a9_1 = 3;
|
|
527
527
|
continue $sm;
|
|
528
528
|
case 3:
|
|
529
|
-
this.
|
|
530
|
-
this.
|
|
529
|
+
this.i3g_1 = this.p3g_1;
|
|
530
|
+
this.h3g_1 = null;
|
|
531
531
|
this.a9_1 = 4;
|
|
532
532
|
continue $sm;
|
|
533
533
|
case 4:
|
|
@@ -539,12 +539,12 @@
|
|
|
539
539
|
case 6:
|
|
540
540
|
this.b9_1 = 29;
|
|
541
541
|
this.b9_1 = 28;
|
|
542
|
-
this.
|
|
542
|
+
this.o3g_1 = this.i3g_1.t();
|
|
543
543
|
this.a9_1 = 7;
|
|
544
544
|
continue $sm;
|
|
545
545
|
case 7:
|
|
546
546
|
this.a9_1 = 8;
|
|
547
|
-
suspendResult = this.
|
|
547
|
+
suspendResult = this.o3g_1.t19(this);
|
|
548
548
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
549
549
|
return suspendResult;
|
|
550
550
|
}
|
|
@@ -556,24 +556,24 @@
|
|
|
556
556
|
continue $sm;
|
|
557
557
|
}
|
|
558
558
|
|
|
559
|
-
var e = this.
|
|
560
|
-
this.
|
|
559
|
+
var e = this.o3g_1.v();
|
|
560
|
+
this.n3g_1 = e;
|
|
561
561
|
this.a9_1 = 9;
|
|
562
562
|
continue $sm;
|
|
563
563
|
case 9:
|
|
564
|
-
this.
|
|
564
|
+
this.m3g_1 = this.n3g_1;
|
|
565
565
|
var this_0 = get_LOGGER();
|
|
566
566
|
if (get_isTraceEnabled(this_0)) {
|
|
567
|
-
this_0.
|
|
567
|
+
this_0.b2t('WebSocketSession(' + toString(this.b3g_1) + ') receiving frame ' + this.m3g_1.toString());
|
|
568
568
|
}
|
|
569
569
|
|
|
570
|
-
var tmp0_subject = this.
|
|
570
|
+
var tmp0_subject = this.m3g_1;
|
|
571
571
|
if (tmp0_subject instanceof Close) {
|
|
572
|
-
if (!this.
|
|
572
|
+
if (!this.z3f_1.a3d().v19()) {
|
|
573
573
|
this.a9_1 = 18;
|
|
574
|
-
var tmp_0 = this.
|
|
575
|
-
var tmp1_elvis_lhs = readReason(this.
|
|
576
|
-
suspendResult = tmp_0.
|
|
574
|
+
var tmp_0 = this.z3f_1.a3d();
|
|
575
|
+
var tmp1_elvis_lhs = readReason(this.m3g_1);
|
|
576
|
+
suspendResult = tmp_0.q1b(Close_init_$Create$(tmp1_elvis_lhs == null ? get_NORMAL_CLOSE() : tmp1_elvis_lhs), this);
|
|
577
577
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
578
578
|
return suspendResult;
|
|
579
579
|
}
|
|
@@ -584,14 +584,14 @@
|
|
|
584
584
|
}
|
|
585
585
|
} else {
|
|
586
586
|
if (tmp0_subject instanceof Pong) {
|
|
587
|
-
var tmp2_safe_receiver = this.
|
|
587
|
+
var tmp2_safe_receiver = this.z3f_1.d3e_1.kotlinx$atomicfu$value;
|
|
588
588
|
if (tmp2_safe_receiver == null) {
|
|
589
|
-
this.
|
|
589
|
+
this.k3g_1 = null;
|
|
590
590
|
this.a9_1 = 17;
|
|
591
591
|
continue $sm;
|
|
592
592
|
} else {
|
|
593
593
|
this.a9_1 = 16;
|
|
594
|
-
suspendResult = tmp2_safe_receiver.
|
|
594
|
+
suspendResult = tmp2_safe_receiver.q1b(this.m3g_1, this);
|
|
595
595
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
596
596
|
return suspendResult;
|
|
597
597
|
}
|
|
@@ -600,14 +600,14 @@
|
|
|
600
600
|
} else {
|
|
601
601
|
if (tmp0_subject instanceof Ping) {
|
|
602
602
|
this.a9_1 = 15;
|
|
603
|
-
suspendResult = this.
|
|
603
|
+
suspendResult = this.a3g_1.q1b(this.m3g_1, this);
|
|
604
604
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
605
605
|
return suspendResult;
|
|
606
606
|
}
|
|
607
607
|
continue $sm;
|
|
608
608
|
} else {
|
|
609
609
|
this.a9_1 = 10;
|
|
610
|
-
suspendResult = checkMaxFrameSize(this.
|
|
610
|
+
suspendResult = checkMaxFrameSize(this.z3f_1, this.e3g_1, this.m3g_1, this);
|
|
611
611
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
612
612
|
return suspendResult;
|
|
613
613
|
}
|
|
@@ -617,14 +617,14 @@
|
|
|
617
617
|
}
|
|
618
618
|
|
|
619
619
|
case 10:
|
|
620
|
-
if (!this.
|
|
621
|
-
if (this.
|
|
622
|
-
this.
|
|
620
|
+
if (!this.m3g_1.q3g_1) {
|
|
621
|
+
if (this.l3g_1 == null) {
|
|
622
|
+
this.l3g_1 = this.m3g_1;
|
|
623
623
|
}
|
|
624
|
-
if (this.
|
|
625
|
-
this.
|
|
624
|
+
if (this.e3g_1 == null) {
|
|
625
|
+
this.e3g_1 = BytePacketBuilder();
|
|
626
626
|
}
|
|
627
|
-
writeFully(this.
|
|
627
|
+
writeFully(this.e3g_1, this.m3g_1.s3g_1);
|
|
628
628
|
this.a9_1 = 21;
|
|
629
629
|
continue $sm;
|
|
630
630
|
} else {
|
|
@@ -633,9 +633,9 @@
|
|
|
633
633
|
}
|
|
634
634
|
|
|
635
635
|
case 11:
|
|
636
|
-
if (this.
|
|
636
|
+
if (this.l3g_1 == null) {
|
|
637
637
|
this.a9_1 = 14;
|
|
638
|
-
suspendResult = this.
|
|
638
|
+
suspendResult = this.z3f_1.h3e_1.q1b(processIncomingExtensions(this.z3f_1, this.m3g_1), this);
|
|
639
639
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
640
640
|
return suspendResult;
|
|
641
641
|
}
|
|
@@ -646,11 +646,11 @@
|
|
|
646
646
|
}
|
|
647
647
|
|
|
648
648
|
case 12:
|
|
649
|
-
writeFully(ensureNotNull(this.
|
|
650
|
-
var defragmented = Companion_getInstance_5().
|
|
651
|
-
this.
|
|
649
|
+
writeFully(ensureNotNull(this.e3g_1), this.m3g_1.s3g_1);
|
|
650
|
+
var defragmented = Companion_getInstance_5().y3g(true, this.l3g_1.r3g_1, readByteArray(build(this.e3g_1)), this.l3g_1.u3g_1, this.l3g_1.v3g_1, this.l3g_1.w3g_1);
|
|
651
|
+
this.l3g_1 = null;
|
|
652
652
|
this.a9_1 = 13;
|
|
653
|
-
suspendResult = this.
|
|
653
|
+
suspendResult = this.z3f_1.h3e_1.q1b(processIncomingExtensions(this.z3f_1, defragmented), this);
|
|
654
654
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
655
655
|
return suspendResult;
|
|
656
656
|
}
|
|
@@ -658,7 +658,7 @@
|
|
|
658
658
|
continue $sm;
|
|
659
659
|
case 13:
|
|
660
660
|
var tmp_1 = this;
|
|
661
|
-
tmp_1.
|
|
661
|
+
tmp_1.j3g_1 = Unit_instance;
|
|
662
662
|
this.a9_1 = 20;
|
|
663
663
|
continue $sm;
|
|
664
664
|
case 14:
|
|
@@ -666,23 +666,23 @@
|
|
|
666
666
|
continue $sm;
|
|
667
667
|
case 15:
|
|
668
668
|
var tmp_2 = this;
|
|
669
|
-
tmp_2.
|
|
669
|
+
tmp_2.j3g_1 = Unit_instance;
|
|
670
670
|
this.a9_1 = 20;
|
|
671
671
|
continue $sm;
|
|
672
672
|
case 16:
|
|
673
673
|
var tmp_3 = this;
|
|
674
|
-
tmp_3.
|
|
674
|
+
tmp_3.k3g_1 = Unit_instance;
|
|
675
675
|
this.a9_1 = 17;
|
|
676
676
|
continue $sm;
|
|
677
677
|
case 17:
|
|
678
|
-
this.
|
|
678
|
+
this.j3g_1 = this.k3g_1;
|
|
679
679
|
this.a9_1 = 20;
|
|
680
680
|
continue $sm;
|
|
681
681
|
case 18:
|
|
682
682
|
this.a9_1 = 19;
|
|
683
683
|
continue $sm;
|
|
684
684
|
case 19:
|
|
685
|
-
this.
|
|
685
|
+
this.d3g_1 = true;
|
|
686
686
|
this.a9_1 = 22;
|
|
687
687
|
var tmp_4 = this;
|
|
688
688
|
continue $sm;
|
|
@@ -699,24 +699,24 @@
|
|
|
699
699
|
continue $sm;
|
|
700
700
|
case 22:
|
|
701
701
|
this.b9_1 = 32;
|
|
702
|
-
cancelConsumed(this.
|
|
702
|
+
cancelConsumed(this.i3g_1, this.h3g_1);
|
|
703
703
|
this.b9_1 = 39;
|
|
704
704
|
this.a9_1 = 23;
|
|
705
705
|
continue $sm;
|
|
706
706
|
case 23:
|
|
707
707
|
this.b9_1 = 39;
|
|
708
|
-
this.
|
|
709
|
-
var tmp0_safe_receiver = this.
|
|
708
|
+
this.a3g_1.y1b();
|
|
709
|
+
var tmp0_safe_receiver = this.e3g_1;
|
|
710
710
|
if (tmp0_safe_receiver == null)
|
|
711
711
|
null;
|
|
712
712
|
else {
|
|
713
713
|
tmp0_safe_receiver.l4();
|
|
714
714
|
}
|
|
715
715
|
|
|
716
|
-
this.
|
|
717
|
-
if (!this.
|
|
716
|
+
this.z3f_1.h3e_1.y1b();
|
|
717
|
+
if (!this.d3g_1) {
|
|
718
718
|
this.a9_1 = 24;
|
|
719
|
-
suspendResult = close(this.
|
|
719
|
+
suspendResult = close(this.z3f_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
720
720
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
721
721
|
return suspendResult;
|
|
722
722
|
}
|
|
@@ -738,7 +738,7 @@
|
|
|
738
738
|
continue $sm;
|
|
739
739
|
case 27:
|
|
740
740
|
this.b9_1 = 32;
|
|
741
|
-
cancelConsumed(this.
|
|
741
|
+
cancelConsumed(this.i3g_1, this.h3g_1);
|
|
742
742
|
this.a9_1 = 31;
|
|
743
743
|
continue $sm;
|
|
744
744
|
case 28:
|
|
@@ -747,7 +747,7 @@
|
|
|
747
747
|
if (tmp_7 instanceof Error) {
|
|
748
748
|
var e_0 = this.d9_1;
|
|
749
749
|
var tmp_8 = this;
|
|
750
|
-
this.
|
|
750
|
+
this.h3g_1 = e_0;
|
|
751
751
|
throw e_0;
|
|
752
752
|
} else {
|
|
753
753
|
throw this.d9_1;
|
|
@@ -756,11 +756,11 @@
|
|
|
756
756
|
case 29:
|
|
757
757
|
this.b9_1 = 32;
|
|
758
758
|
var t = this.d9_1;
|
|
759
|
-
cancelConsumed(this.
|
|
759
|
+
cancelConsumed(this.i3g_1, this.h3g_1);
|
|
760
760
|
throw t;
|
|
761
761
|
case 30:
|
|
762
762
|
this.b9_1 = 32;
|
|
763
|
-
cancelConsumed(this.
|
|
763
|
+
cancelConsumed(this.i3g_1, this.h3g_1);
|
|
764
764
|
if (false) {
|
|
765
765
|
this.a9_1 = 3;
|
|
766
766
|
continue $sm;
|
|
@@ -769,7 +769,7 @@
|
|
|
769
769
|
this.a9_1 = 31;
|
|
770
770
|
continue $sm;
|
|
771
771
|
case 31:
|
|
772
|
-
this.
|
|
772
|
+
this.f3g_1 = Unit_instance;
|
|
773
773
|
this.b9_1 = 39;
|
|
774
774
|
this.a9_1 = 36;
|
|
775
775
|
continue $sm;
|
|
@@ -779,7 +779,7 @@
|
|
|
779
779
|
if (tmp_9 instanceof ClosedSendChannelException) {
|
|
780
780
|
var _unused_var__etf5q3 = this.d9_1;
|
|
781
781
|
var tmp_10 = this;
|
|
782
|
-
tmp_10.
|
|
782
|
+
tmp_10.f3g_1 = Unit_instance;
|
|
783
783
|
this.b9_1 = 39;
|
|
784
784
|
this.a9_1 = 36;
|
|
785
785
|
continue $sm;
|
|
@@ -788,8 +788,8 @@
|
|
|
788
788
|
if (tmp_11 instanceof Error) {
|
|
789
789
|
var cause = this.d9_1;
|
|
790
790
|
var tmp_12 = this;
|
|
791
|
-
this.
|
|
792
|
-
tmp_12.
|
|
791
|
+
this.a3g_1.y1b();
|
|
792
|
+
tmp_12.f3g_1 = this.z3f_1.h3e_1.w1b(cause);
|
|
793
793
|
this.b9_1 = 39;
|
|
794
794
|
this.a9_1 = 36;
|
|
795
795
|
continue $sm;
|
|
@@ -800,19 +800,19 @@
|
|
|
800
800
|
|
|
801
801
|
case 33:
|
|
802
802
|
this.b9_1 = 39;
|
|
803
|
-
this.
|
|
804
|
-
this.
|
|
805
|
-
var tmp0_safe_receiver_0 = this.
|
|
803
|
+
this.g3g_1 = this.d9_1;
|
|
804
|
+
this.a3g_1.y1b();
|
|
805
|
+
var tmp0_safe_receiver_0 = this.e3g_1;
|
|
806
806
|
if (tmp0_safe_receiver_0 == null)
|
|
807
807
|
null;
|
|
808
808
|
else {
|
|
809
809
|
tmp0_safe_receiver_0.l4();
|
|
810
810
|
}
|
|
811
811
|
|
|
812
|
-
this.
|
|
813
|
-
if (!this.
|
|
812
|
+
this.z3f_1.h3e_1.y1b();
|
|
813
|
+
if (!this.d3g_1) {
|
|
814
814
|
this.a9_1 = 34;
|
|
815
|
-
suspendResult = close(this.
|
|
815
|
+
suspendResult = close(this.z3f_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
816
816
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
817
817
|
return suspendResult;
|
|
818
818
|
}
|
|
@@ -826,22 +826,22 @@
|
|
|
826
826
|
this.a9_1 = 35;
|
|
827
827
|
continue $sm;
|
|
828
828
|
case 35:
|
|
829
|
-
throw this.
|
|
829
|
+
throw this.g3g_1;
|
|
830
830
|
case 36:
|
|
831
|
-
this.
|
|
831
|
+
this.c3g_1 = this.f3g_1;
|
|
832
832
|
this.b9_1 = 39;
|
|
833
|
-
this.
|
|
834
|
-
var tmp0_safe_receiver_1 = this.
|
|
833
|
+
this.a3g_1.y1b();
|
|
834
|
+
var tmp0_safe_receiver_1 = this.e3g_1;
|
|
835
835
|
if (tmp0_safe_receiver_1 == null)
|
|
836
836
|
null;
|
|
837
837
|
else {
|
|
838
838
|
tmp0_safe_receiver_1.l4();
|
|
839
839
|
}
|
|
840
840
|
|
|
841
|
-
this.
|
|
842
|
-
if (!this.
|
|
841
|
+
this.z3f_1.h3e_1.y1b();
|
|
842
|
+
if (!this.d3g_1) {
|
|
843
843
|
this.a9_1 = 37;
|
|
844
|
-
suspendResult = close(this.
|
|
844
|
+
suspendResult = close(this.z3f_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
845
845
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
846
846
|
return suspendResult;
|
|
847
847
|
}
|
|
@@ -870,31 +870,31 @@
|
|
|
870
870
|
}
|
|
871
871
|
while (true);
|
|
872
872
|
};
|
|
873
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
874
|
-
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.
|
|
875
|
-
i.
|
|
873
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u1w = function ($this$launch, completion) {
|
|
874
|
+
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.z3f_1, this.a3g_1, completion);
|
|
875
|
+
i.b3g_1 = $this$launch;
|
|
876
876
|
return i;
|
|
877
877
|
};
|
|
878
878
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0(this$0, $ponger, resultContinuation) {
|
|
879
879
|
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation);
|
|
880
880
|
var l = function ($this$launch, $completion) {
|
|
881
|
-
return i.
|
|
881
|
+
return i.t1w($this$launch, $completion);
|
|
882
882
|
};
|
|
883
883
|
l.$arity = 1;
|
|
884
884
|
return l;
|
|
885
885
|
}
|
|
886
886
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation) {
|
|
887
|
-
this.
|
|
887
|
+
this.h3h_1 = this$0;
|
|
888
888
|
CoroutineImpl.call(this, resultContinuation);
|
|
889
889
|
}
|
|
890
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
891
|
-
var tmp = this.
|
|
890
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).t1w = function ($this$launch, $completion) {
|
|
891
|
+
var tmp = this.u1w($this$launch, $completion);
|
|
892
892
|
tmp.c9_1 = Unit_instance;
|
|
893
893
|
tmp.d9_1 = null;
|
|
894
894
|
return tmp.i9();
|
|
895
895
|
};
|
|
896
896
|
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).u9 = function (p1, $completion) {
|
|
897
|
-
return this.
|
|
897
|
+
return this.t1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
898
898
|
};
|
|
899
899
|
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).i9 = function () {
|
|
900
900
|
var suspendResult = this.c9_1;
|
|
@@ -913,7 +913,7 @@
|
|
|
913
913
|
this.b9_1 = 9;
|
|
914
914
|
this.b9_1 = 4;
|
|
915
915
|
this.a9_1 = 3;
|
|
916
|
-
suspendResult = outgoingProcessorLoop(this.
|
|
916
|
+
suspendResult = outgoingProcessorLoop(this.h3h_1, this);
|
|
917
917
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
918
918
|
return suspendResult;
|
|
919
919
|
}
|
|
@@ -943,7 +943,7 @@
|
|
|
943
943
|
if (tmp_2 instanceof CancellationException) {
|
|
944
944
|
var _unused_var__etf5q3_1 = this.d9_1;
|
|
945
945
|
this.a9_1 = 5;
|
|
946
|
-
suspendResult = sendCloseSequence(this.
|
|
946
|
+
suspendResult = sendCloseSequence(this.h3h_1, CloseReason_init_$Create$(Codes_NORMAL_getInstance(), ''), VOID, this);
|
|
947
947
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
948
948
|
return suspendResult;
|
|
949
949
|
}
|
|
@@ -959,9 +959,9 @@
|
|
|
959
959
|
var tmp_4 = this.d9_1;
|
|
960
960
|
if (tmp_4 instanceof Error) {
|
|
961
961
|
var cause = this.d9_1;
|
|
962
|
-
this.
|
|
962
|
+
this.h3h_1.i3e_1.xt(CancellationException_init_$Create$('Failed to send frame', cause));
|
|
963
963
|
this.a9_1 = 6;
|
|
964
|
-
suspendResult = closeExceptionally(this.
|
|
964
|
+
suspendResult = closeExceptionally(this.h3h_1.c3e_1, cause, this);
|
|
965
965
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
966
966
|
return suspendResult;
|
|
967
967
|
}
|
|
@@ -984,9 +984,9 @@
|
|
|
984
984
|
continue $sm;
|
|
985
985
|
case 7:
|
|
986
986
|
this.b9_1 = 13;
|
|
987
|
-
this.
|
|
987
|
+
this.h3h_1.i3e_1.a1c();
|
|
988
988
|
this.a9_1 = 8;
|
|
989
|
-
suspendResult = close(this.
|
|
989
|
+
suspendResult = close(this.h3h_1.c3e_1, VOID, this);
|
|
990
990
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
991
991
|
return suspendResult;
|
|
992
992
|
}
|
|
@@ -996,22 +996,22 @@
|
|
|
996
996
|
return Unit_instance;
|
|
997
997
|
case 9:
|
|
998
998
|
this.b9_1 = 13;
|
|
999
|
-
this.
|
|
1000
|
-
this.
|
|
999
|
+
this.j3h_1 = this.d9_1;
|
|
1000
|
+
this.h3h_1.i3e_1.a1c();
|
|
1001
1001
|
this.a9_1 = 10;
|
|
1002
|
-
suspendResult = close(this.
|
|
1002
|
+
suspendResult = close(this.h3h_1.c3e_1, VOID, this);
|
|
1003
1003
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1004
1004
|
return suspendResult;
|
|
1005
1005
|
}
|
|
1006
1006
|
|
|
1007
1007
|
continue $sm;
|
|
1008
1008
|
case 10:
|
|
1009
|
-
throw this.
|
|
1009
|
+
throw this.j3h_1;
|
|
1010
1010
|
case 11:
|
|
1011
1011
|
this.b9_1 = 13;
|
|
1012
|
-
this.
|
|
1012
|
+
this.h3h_1.i3e_1.a1c();
|
|
1013
1013
|
this.a9_1 = 12;
|
|
1014
|
-
suspendResult = close(this.
|
|
1014
|
+
suspendResult = close(this.h3h_1.c3e_1, VOID, this);
|
|
1015
1015
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1016
1016
|
return suspendResult;
|
|
1017
1017
|
}
|
|
@@ -1033,31 +1033,31 @@
|
|
|
1033
1033
|
}
|
|
1034
1034
|
while (true);
|
|
1035
1035
|
};
|
|
1036
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
1037
|
-
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.
|
|
1038
|
-
i.
|
|
1036
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).u1w = function ($this$launch, completion) {
|
|
1037
|
+
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.h3h_1, completion);
|
|
1038
|
+
i.i3h_1 = $this$launch;
|
|
1039
1039
|
return i;
|
|
1040
1040
|
};
|
|
1041
1041
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0(this$0, resultContinuation) {
|
|
1042
1042
|
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation);
|
|
1043
1043
|
var l = function ($this$launch, $completion) {
|
|
1044
|
-
return i.
|
|
1044
|
+
return i.t1w($this$launch, $completion);
|
|
1045
1045
|
};
|
|
1046
1046
|
l.$arity = 1;
|
|
1047
1047
|
return l;
|
|
1048
1048
|
}
|
|
1049
1049
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation) {
|
|
1050
|
-
this.
|
|
1050
|
+
this.s3h_1 = this$0;
|
|
1051
1051
|
CoroutineImpl.call(this, resultContinuation);
|
|
1052
1052
|
}
|
|
1053
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1054
|
-
var tmp = this.
|
|
1053
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).u3h = function (it, $completion) {
|
|
1054
|
+
var tmp = this.v3h(it, $completion);
|
|
1055
1055
|
tmp.c9_1 = Unit_instance;
|
|
1056
1056
|
tmp.d9_1 = null;
|
|
1057
1057
|
return tmp.i9();
|
|
1058
1058
|
};
|
|
1059
1059
|
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).u9 = function (p1, $completion) {
|
|
1060
|
-
return this.
|
|
1060
|
+
return this.u3h(p1 instanceof CloseReason ? p1 : THROW_CCE(), $completion);
|
|
1061
1061
|
};
|
|
1062
1062
|
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).i9 = function () {
|
|
1063
1063
|
var suspendResult = this.c9_1;
|
|
@@ -1068,7 +1068,7 @@
|
|
|
1068
1068
|
case 0:
|
|
1069
1069
|
this.b9_1 = 2;
|
|
1070
1070
|
this.a9_1 = 1;
|
|
1071
|
-
suspendResult = sendCloseSequence(this.
|
|
1071
|
+
suspendResult = sendCloseSequence(this.s3h_1, this.t3h_1, IOException_init_$Create$('Ping timeout'), this);
|
|
1072
1072
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1073
1073
|
return suspendResult;
|
|
1074
1074
|
}
|
|
@@ -1090,22 +1090,22 @@
|
|
|
1090
1090
|
}
|
|
1091
1091
|
while (true);
|
|
1092
1092
|
};
|
|
1093
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1094
|
-
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.
|
|
1095
|
-
i.
|
|
1093
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).v3h = function (it, completion) {
|
|
1094
|
+
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.s3h_1, completion);
|
|
1095
|
+
i.t3h_1 = it;
|
|
1096
1096
|
return i;
|
|
1097
1097
|
};
|
|
1098
1098
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0(this$0, resultContinuation) {
|
|
1099
1099
|
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation);
|
|
1100
1100
|
var l = function (it, $completion) {
|
|
1101
|
-
return i.
|
|
1101
|
+
return i.u3h(it, $completion);
|
|
1102
1102
|
};
|
|
1103
1103
|
l.$arity = 1;
|
|
1104
1104
|
return l;
|
|
1105
1105
|
}
|
|
1106
1106
|
function $outgoingProcessorLoopCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1107
1107
|
CoroutineImpl.call(this, resultContinuation);
|
|
1108
|
-
this.
|
|
1108
|
+
this.n3d_1 = _this__u8e3s4;
|
|
1109
1109
|
}
|
|
1110
1110
|
protoOf($outgoingProcessorLoopCOROUTINE$).i9 = function () {
|
|
1111
1111
|
var suspendResult = this.c9_1;
|
|
@@ -1115,12 +1115,12 @@
|
|
|
1115
1115
|
switch (tmp) {
|
|
1116
1116
|
case 0:
|
|
1117
1117
|
this.b9_1 = 7;
|
|
1118
|
-
this.
|
|
1118
|
+
this.p3d_1 = this.n3d_1.i3e_1.t();
|
|
1119
1119
|
this.a9_1 = 1;
|
|
1120
1120
|
continue $sm;
|
|
1121
1121
|
case 1:
|
|
1122
1122
|
this.a9_1 = 2;
|
|
1123
|
-
suspendResult = this.
|
|
1123
|
+
suspendResult = this.p3d_1.t19(this);
|
|
1124
1124
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1125
1125
|
return suspendResult;
|
|
1126
1126
|
}
|
|
@@ -1132,15 +1132,15 @@
|
|
|
1132
1132
|
continue $sm;
|
|
1133
1133
|
}
|
|
1134
1134
|
|
|
1135
|
-
var frame = this.
|
|
1135
|
+
var frame = this.p3d_1.v();
|
|
1136
1136
|
var this_0 = get_LOGGER();
|
|
1137
1137
|
if (get_isTraceEnabled(this_0)) {
|
|
1138
|
-
this_0.
|
|
1138
|
+
this_0.b2t('Sending ' + frame.toString() + ' from session ' + toString(this.n3d_1));
|
|
1139
1139
|
}
|
|
1140
1140
|
|
|
1141
1141
|
if (frame instanceof Close) {
|
|
1142
1142
|
this.a9_1 = 3;
|
|
1143
|
-
suspendResult = sendCloseSequence(this.
|
|
1143
|
+
suspendResult = sendCloseSequence(this.n3d_1, readReason(frame), VOID, this);
|
|
1144
1144
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1145
1145
|
return suspendResult;
|
|
1146
1146
|
}
|
|
@@ -1153,11 +1153,11 @@
|
|
|
1153
1153
|
tmp_0 = frame instanceof Binary;
|
|
1154
1154
|
}
|
|
1155
1155
|
if (tmp_0) {
|
|
1156
|
-
this.
|
|
1156
|
+
this.o3d_1 = processOutgoingExtensions(this.n3d_1, frame);
|
|
1157
1157
|
this.a9_1 = 4;
|
|
1158
1158
|
continue $sm;
|
|
1159
1159
|
} else {
|
|
1160
|
-
this.
|
|
1160
|
+
this.o3d_1 = frame;
|
|
1161
1161
|
this.a9_1 = 4;
|
|
1162
1162
|
continue $sm;
|
|
1163
1163
|
}
|
|
@@ -1168,9 +1168,9 @@
|
|
|
1168
1168
|
var tmp_1 = this;
|
|
1169
1169
|
continue $sm;
|
|
1170
1170
|
case 4:
|
|
1171
|
-
var processedFrame = this.
|
|
1171
|
+
var processedFrame = this.o3d_1;
|
|
1172
1172
|
this.a9_1 = 5;
|
|
1173
|
-
suspendResult = this.
|
|
1173
|
+
suspendResult = this.n3d_1.c3e_1.a3d().q1b(processedFrame, this);
|
|
1174
1174
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1175
1175
|
return suspendResult;
|
|
1176
1176
|
}
|
|
@@ -1197,9 +1197,9 @@
|
|
|
1197
1197
|
};
|
|
1198
1198
|
function $sendCloseSequenceCOROUTINE$(_this__u8e3s4, reason, exception, resultContinuation) {
|
|
1199
1199
|
CoroutineImpl.call(this, resultContinuation);
|
|
1200
|
-
this.
|
|
1201
|
-
this.
|
|
1202
|
-
this.
|
|
1200
|
+
this.y3d_1 = _this__u8e3s4;
|
|
1201
|
+
this.z3d_1 = reason;
|
|
1202
|
+
this.a3e_1 = exception;
|
|
1203
1203
|
}
|
|
1204
1204
|
protoOf($sendCloseSequenceCOROUTINE$).i9 = function () {
|
|
1205
1205
|
var suspendResult = this.c9_1;
|
|
@@ -1209,25 +1209,25 @@
|
|
|
1209
1209
|
switch (tmp) {
|
|
1210
1210
|
case 0:
|
|
1211
1211
|
this.b9_1 = 6;
|
|
1212
|
-
if (!tryClose(this.
|
|
1212
|
+
if (!tryClose(this.y3d_1))
|
|
1213
1213
|
return Unit_instance;
|
|
1214
1214
|
var this_0 = get_LOGGER();
|
|
1215
1215
|
if (get_isTraceEnabled(this_0)) {
|
|
1216
|
-
this_0.
|
|
1216
|
+
this_0.b2t('Sending Close Sequence for session ' + toString(this.y3d_1) + ' with reason ' + toString_0(this.z3d_1) + ' and exception ' + toString_0(this.a3e_1));
|
|
1217
1217
|
}
|
|
1218
1218
|
|
|
1219
|
-
this.
|
|
1219
|
+
this.y3d_1.f3e_1.y10();
|
|
1220
1220
|
var tmp_0 = this;
|
|
1221
|
-
var tmp0_elvis_lhs = this.
|
|
1222
|
-
tmp_0.
|
|
1221
|
+
var tmp0_elvis_lhs = this.z3d_1;
|
|
1222
|
+
tmp_0.b3e_1 = tmp0_elvis_lhs == null ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : tmp0_elvis_lhs;
|
|
1223
1223
|
this.a9_1 = 1;
|
|
1224
1224
|
continue $sm;
|
|
1225
1225
|
case 1:
|
|
1226
1226
|
this.b9_1 = 5;
|
|
1227
|
-
runOrCancelPinger(this.
|
|
1228
|
-
if (!(this.
|
|
1227
|
+
runOrCancelPinger(this.y3d_1);
|
|
1228
|
+
if (!(this.b3e_1.t3c_1 === Codes_CLOSED_ABNORMALLY_getInstance().p3c_1)) {
|
|
1229
1229
|
this.a9_1 = 2;
|
|
1230
|
-
suspendResult = this.
|
|
1230
|
+
suspendResult = this.y3d_1.c3e_1.a3d().q1b(Close_init_$Create$(this.b3e_1), this);
|
|
1231
1231
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1232
1232
|
return suspendResult;
|
|
1233
1233
|
}
|
|
@@ -1246,20 +1246,20 @@
|
|
|
1246
1246
|
continue $sm;
|
|
1247
1247
|
case 4:
|
|
1248
1248
|
this.b9_1 = 6;
|
|
1249
|
-
this.
|
|
1250
|
-
if (!(this.
|
|
1251
|
-
this.
|
|
1252
|
-
this.
|
|
1249
|
+
this.y3d_1.e3e_1.w10(this.b3e_1);
|
|
1250
|
+
if (!(this.a3e_1 == null)) {
|
|
1251
|
+
this.y3d_1.i3e_1.w1b(this.a3e_1);
|
|
1252
|
+
this.y3d_1.h3e_1.w1b(this.a3e_1);
|
|
1253
1253
|
}
|
|
1254
1254
|
|
|
1255
1255
|
return Unit_instance;
|
|
1256
1256
|
case 5:
|
|
1257
1257
|
this.b9_1 = 6;
|
|
1258
1258
|
var t = this.d9_1;
|
|
1259
|
-
this.
|
|
1260
|
-
if (!(this.
|
|
1261
|
-
this.
|
|
1262
|
-
this.
|
|
1259
|
+
this.y3d_1.e3e_1.w10(this.b3e_1);
|
|
1260
|
+
if (!(this.a3e_1 == null)) {
|
|
1261
|
+
this.y3d_1.i3e_1.w1b(this.a3e_1);
|
|
1262
|
+
this.y3d_1.h3e_1.w1b(this.a3e_1);
|
|
1263
1263
|
}
|
|
1264
1264
|
|
|
1265
1265
|
throw t;
|
|
@@ -1279,9 +1279,9 @@
|
|
|
1279
1279
|
};
|
|
1280
1280
|
function $checkMaxFrameSizeCOROUTINE$(_this__u8e3s4, packet, frame, resultContinuation) {
|
|
1281
1281
|
CoroutineImpl.call(this, resultContinuation);
|
|
1282
|
-
this.
|
|
1283
|
-
this.
|
|
1284
|
-
this.
|
|
1282
|
+
this.y3e_1 = _this__u8e3s4;
|
|
1283
|
+
this.z3e_1 = packet;
|
|
1284
|
+
this.a3f_1 = frame;
|
|
1285
1285
|
}
|
|
1286
1286
|
protoOf($checkMaxFrameSizeCOROUTINE$).i9 = function () {
|
|
1287
1287
|
var suspendResult = this.c9_1;
|
|
@@ -1292,19 +1292,19 @@
|
|
|
1292
1292
|
case 0:
|
|
1293
1293
|
this.b9_1 = 3;
|
|
1294
1294
|
var tmp_0 = this;
|
|
1295
|
-
var tmp_1 = this.
|
|
1296
|
-
var tmp0_safe_receiver = this.
|
|
1295
|
+
var tmp_1 = this.a3f_1.s3g_1.length;
|
|
1296
|
+
var tmp0_safe_receiver = this.z3e_1;
|
|
1297
1297
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_size(tmp0_safe_receiver);
|
|
1298
|
-
tmp_0.
|
|
1299
|
-
if (fromInt(this.
|
|
1300
|
-
var tmp2_safe_receiver = this.
|
|
1298
|
+
tmp_0.b3f_1 = tmp_1 + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
1299
|
+
if (fromInt(this.b3f_1) > this.y3e_1.y3c()) {
|
|
1300
|
+
var tmp2_safe_receiver = this.z3e_1;
|
|
1301
1301
|
if (tmp2_safe_receiver == null)
|
|
1302
1302
|
null;
|
|
1303
1303
|
else {
|
|
1304
1304
|
tmp2_safe_receiver.l4();
|
|
1305
1305
|
}
|
|
1306
1306
|
this.a9_1 = 2;
|
|
1307
|
-
suspendResult = close(this.
|
|
1307
|
+
suspendResult = close(this.y3e_1, CloseReason_init_$Create$(Codes_TOO_BIG_getInstance(), 'Frame is too big: ' + this.b3f_1 + '. Max size is ' + this.y3e_1.y3c().toString()), this);
|
|
1308
1308
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1309
1309
|
return suspendResult;
|
|
1310
1310
|
}
|
|
@@ -1317,7 +1317,7 @@
|
|
|
1317
1317
|
case 1:
|
|
1318
1318
|
return Unit_instance;
|
|
1319
1319
|
case 2:
|
|
1320
|
-
throw new FrameTooBigException(fromInt(this.
|
|
1320
|
+
throw new FrameTooBigException(fromInt(this.b3f_1));
|
|
1321
1321
|
case 3:
|
|
1322
1322
|
throw this.d9_1;
|
|
1323
1323
|
}
|
|
@@ -1334,42 +1334,42 @@
|
|
|
1334
1334
|
};
|
|
1335
1335
|
function DefaultWebSocketSessionImpl(raw, pingIntervalMillis, timeoutMillis, incomingFramesConfig, outgoingFramesConfig) {
|
|
1336
1336
|
Companion_getInstance_0();
|
|
1337
|
-
this.
|
|
1338
|
-
this.
|
|
1339
|
-
this.
|
|
1340
|
-
this.
|
|
1341
|
-
this.
|
|
1342
|
-
this.
|
|
1343
|
-
this.
|
|
1344
|
-
this.
|
|
1337
|
+
this.c3e_1 = raw;
|
|
1338
|
+
this.d3e_1 = atomic$ref$1(null);
|
|
1339
|
+
this.e3e_1 = CompletableDeferred();
|
|
1340
|
+
this.f3e_1 = Job();
|
|
1341
|
+
this.g3e_1 = this.c3e_1.os().wg(Key_instance).yg(this.f3e_1).yg(new CoroutineName('ws-default'));
|
|
1342
|
+
this.h3e_1 = from(Factory_getInstance(), incomingFramesConfig);
|
|
1343
|
+
this.i3e_1 = from(Factory_getInstance(), outgoingFramesConfig);
|
|
1344
|
+
this.j3e_1 = atomic$boolean$1(false);
|
|
1345
1345
|
var tmp = this;
|
|
1346
1346
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1347
|
-
tmp.
|
|
1348
|
-
this.
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1347
|
+
tmp.k3e_1 = ArrayList_init_$Create$();
|
|
1348
|
+
this.l3e_1 = atomic$boolean$1(false);
|
|
1349
|
+
this.m3e_1 = pingIntervalMillis;
|
|
1350
|
+
this.n3e_1 = timeoutMillis;
|
|
1351
|
+
this.o3e_1 = this.e3e_1;
|
|
1352
1352
|
}
|
|
1353
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1354
|
-
return this.
|
|
1353
|
+
protoOf(DefaultWebSocketSessionImpl).os = function () {
|
|
1354
|
+
return this.g3e_1;
|
|
1355
1355
|
};
|
|
1356
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1357
|
-
return this.
|
|
1356
|
+
protoOf(DefaultWebSocketSessionImpl).z3c = function () {
|
|
1357
|
+
return this.h3e_1;
|
|
1358
1358
|
};
|
|
1359
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1360
|
-
return this.
|
|
1359
|
+
protoOf(DefaultWebSocketSessionImpl).a3d = function () {
|
|
1360
|
+
return this.i3e_1;
|
|
1361
1361
|
};
|
|
1362
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1363
|
-
return this.
|
|
1362
|
+
protoOf(DefaultWebSocketSessionImpl).c3f = function () {
|
|
1363
|
+
return this.k3e_1;
|
|
1364
1364
|
};
|
|
1365
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1366
|
-
this.
|
|
1365
|
+
protoOf(DefaultWebSocketSessionImpl).x3c = function (value) {
|
|
1366
|
+
this.c3e_1.x3c(value);
|
|
1367
1367
|
};
|
|
1368
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1369
|
-
return this.
|
|
1368
|
+
protoOf(DefaultWebSocketSessionImpl).y3c = function () {
|
|
1369
|
+
return this.c3e_1.y3c();
|
|
1370
1370
|
};
|
|
1371
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1372
|
-
if (!this.
|
|
1371
|
+
protoOf(DefaultWebSocketSessionImpl).w3c = function (negotiatedExtensions) {
|
|
1372
|
+
if (!this.l3e_1.atomicfu$compareAndSet(false, true)) {
|
|
1373
1373
|
// Inline function 'kotlin.error' call
|
|
1374
1374
|
var message = 'WebSocket session ' + toString(this) + ' is already started.';
|
|
1375
1375
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -1378,16 +1378,16 @@
|
|
|
1378
1378
|
var this_0 = get_LOGGER();
|
|
1379
1379
|
if (get_isTraceEnabled(this_0)) {
|
|
1380
1380
|
var tmp$ret$2 = 'Starting default WebSocketSession(' + toString(this) + ') ' + ('with negotiated extensions: ' + joinToString(negotiatedExtensions));
|
|
1381
|
-
this_0.
|
|
1381
|
+
this_0.b2t(tmp$ret$2);
|
|
1382
1382
|
}
|
|
1383
|
-
this.
|
|
1383
|
+
this.k3e_1.n1(negotiatedExtensions);
|
|
1384
1384
|
runOrCancelPinger(this);
|
|
1385
|
-
var incomingJob = runIncomingProcessor(this, ponger(this, this.
|
|
1385
|
+
var incomingJob = runIncomingProcessor(this, ponger(this, this.a3d()));
|
|
1386
1386
|
var outgoingJob = runOutgoingProcessor(this);
|
|
1387
1387
|
launch(this, VOID, VOID, DefaultWebSocketSessionImpl$start$slambda_0(incomingJob, outgoingJob, this, null));
|
|
1388
1388
|
};
|
|
1389
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1390
|
-
return this.
|
|
1389
|
+
protoOf(DefaultWebSocketSessionImpl).n1n = function ($completion) {
|
|
1390
|
+
return this.c3e_1.n1n($completion);
|
|
1391
1391
|
};
|
|
1392
1392
|
var properties_initialized_DefaultWebSocketSession_kt_6cjlhc;
|
|
1393
1393
|
function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
@@ -1409,20 +1409,20 @@
|
|
|
1409
1409
|
}
|
|
1410
1410
|
}
|
|
1411
1411
|
function readReason(_this__u8e3s4) {
|
|
1412
|
-
if (_this__u8e3s4.
|
|
1412
|
+
if (_this__u8e3s4.s3g_1.length < 2) {
|
|
1413
1413
|
return null;
|
|
1414
1414
|
}
|
|
1415
1415
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1416
1416
|
var builder = new Buffer();
|
|
1417
|
-
writeFully(builder, _this__u8e3s4.
|
|
1417
|
+
writeFully(builder, _this__u8e3s4.s3g_1);
|
|
1418
1418
|
var packet = builder;
|
|
1419
|
-
var code = packet.
|
|
1419
|
+
var code = packet.qp();
|
|
1420
1420
|
var message = readText(packet);
|
|
1421
1421
|
return new CloseReason(code, message);
|
|
1422
1422
|
}
|
|
1423
1423
|
function NonDisposableHandle() {
|
|
1424
1424
|
}
|
|
1425
|
-
protoOf(NonDisposableHandle).
|
|
1425
|
+
protoOf(NonDisposableHandle).mv = function () {
|
|
1426
1426
|
return Unit_instance;
|
|
1427
1427
|
};
|
|
1428
1428
|
protoOf(NonDisposableHandle).toString = function () {
|
|
@@ -1445,15 +1445,15 @@
|
|
|
1445
1445
|
function FrameTooBigException(frameSize) {
|
|
1446
1446
|
Exception_init_$Init$(this);
|
|
1447
1447
|
captureStack(this, FrameTooBigException);
|
|
1448
|
-
this.
|
|
1448
|
+
this.w3h_1 = frameSize;
|
|
1449
1449
|
delete this.message;
|
|
1450
1450
|
}
|
|
1451
1451
|
protoOf(FrameTooBigException).e = function () {
|
|
1452
|
-
return 'Frame is too big: ' + this.
|
|
1452
|
+
return 'Frame is too big: ' + this.w3h_1.toString();
|
|
1453
1453
|
};
|
|
1454
|
-
protoOf(FrameTooBigException).
|
|
1454
|
+
protoOf(FrameTooBigException).h11 = function () {
|
|
1455
1455
|
// Inline function 'kotlin.also' call
|
|
1456
|
-
var this_0 = new FrameTooBigException(this.
|
|
1456
|
+
var this_0 = new FrameTooBigException(this.w3h_1);
|
|
1457
1457
|
initCauseBridge(this_0, this);
|
|
1458
1458
|
return this_0;
|
|
1459
1459
|
};
|
|
@@ -1479,10 +1479,10 @@
|
|
|
1479
1479
|
tmp$ret$0 = maxElem;
|
|
1480
1480
|
break $l$block_0;
|
|
1481
1481
|
}
|
|
1482
|
-
var maxValue = maxElem.
|
|
1482
|
+
var maxValue = maxElem.a3i_1;
|
|
1483
1483
|
do {
|
|
1484
1484
|
var e = iterator.v();
|
|
1485
|
-
var v = e.
|
|
1485
|
+
var v = e.a3i_1;
|
|
1486
1486
|
if (compareTo(maxValue, v) < 0) {
|
|
1487
1487
|
maxElem = e;
|
|
1488
1488
|
maxValue = v;
|
|
@@ -1491,10 +1491,10 @@
|
|
|
1491
1491
|
while (iterator.u());
|
|
1492
1492
|
tmp$ret$0 = maxElem;
|
|
1493
1493
|
}
|
|
1494
|
-
tmp.
|
|
1494
|
+
tmp.b3i_1 = ensureNotNull(tmp$ret$0).a3i_1;
|
|
1495
1495
|
var tmp_0 = this;
|
|
1496
1496
|
var tmp_1 = 0;
|
|
1497
|
-
var tmp_2 = this.
|
|
1497
|
+
var tmp_2 = this.b3i_1 + 1 | 0;
|
|
1498
1498
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1499
1499
|
var tmp_3 = Array(tmp_2);
|
|
1500
1500
|
while (tmp_1 < tmp_2) {
|
|
@@ -1508,7 +1508,7 @@
|
|
|
1508
1508
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
1509
1509
|
while (_iterator__ex2g4s.u()) {
|
|
1510
1510
|
var element = _iterator__ex2g4s.v();
|
|
1511
|
-
if (element.
|
|
1511
|
+
if (element.a3i_1 === tmp_4) {
|
|
1512
1512
|
if (found) {
|
|
1513
1513
|
tmp$ret$5 = null;
|
|
1514
1514
|
break $l$block_2;
|
|
@@ -1526,7 +1526,7 @@
|
|
|
1526
1526
|
tmp_3[tmp_4] = tmp$ret$5;
|
|
1527
1527
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1528
1528
|
}
|
|
1529
|
-
tmp_0.
|
|
1529
|
+
tmp_0.c3i_1 = tmp_3;
|
|
1530
1530
|
}
|
|
1531
1531
|
var Companion_instance_1;
|
|
1532
1532
|
function Companion_getInstance_1() {
|
|
@@ -1558,8 +1558,8 @@
|
|
|
1558
1558
|
var $ENTRIES_0;
|
|
1559
1559
|
function FrameType(name, ordinal, controlFrame, opcode) {
|
|
1560
1560
|
Enum.call(this, name, ordinal);
|
|
1561
|
-
this.
|
|
1562
|
-
this.
|
|
1561
|
+
this.z3h_1 = controlFrame;
|
|
1562
|
+
this.a3i_1 = opcode;
|
|
1563
1563
|
}
|
|
1564
1564
|
function FrameType_TEXT_getInstance() {
|
|
1565
1565
|
FrameType_initEntries();
|
|
@@ -1604,23 +1604,23 @@
|
|
|
1604
1604
|
var channel = Channel(2147483647);
|
|
1605
1605
|
var tmp = actorJob.yg(get_PingerCoroutineName());
|
|
1606
1606
|
launch(_this__u8e3s4, tmp, VOID, pinger$slambda_0(periodMillis, timeoutMillis, onTimeout, channel, outgoing, null));
|
|
1607
|
-
var tmp_0 = ensureNotNull(_this__u8e3s4.
|
|
1608
|
-
tmp_0.
|
|
1607
|
+
var tmp_0 = ensureNotNull(_this__u8e3s4.os().n9(Key_instance));
|
|
1608
|
+
tmp_0.qt(pinger$lambda(actorJob));
|
|
1609
1609
|
return channel;
|
|
1610
1610
|
}
|
|
1611
1611
|
function ponger$slambda($channel, $outgoing, resultContinuation) {
|
|
1612
|
-
this.
|
|
1613
|
-
this.
|
|
1612
|
+
this.l3i_1 = $channel;
|
|
1613
|
+
this.m3i_1 = $outgoing;
|
|
1614
1614
|
CoroutineImpl.call(this, resultContinuation);
|
|
1615
1615
|
}
|
|
1616
|
-
protoOf(ponger$slambda).
|
|
1617
|
-
var tmp = this.
|
|
1616
|
+
protoOf(ponger$slambda).t1w = function ($this$launch, $completion) {
|
|
1617
|
+
var tmp = this.u1w($this$launch, $completion);
|
|
1618
1618
|
tmp.c9_1 = Unit_instance;
|
|
1619
1619
|
tmp.d9_1 = null;
|
|
1620
1620
|
return tmp.i9();
|
|
1621
1621
|
};
|
|
1622
1622
|
protoOf(ponger$slambda).u9 = function (p1, $completion) {
|
|
1623
|
-
return this.
|
|
1623
|
+
return this.t1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1624
1624
|
};
|
|
1625
1625
|
protoOf(ponger$slambda).i9 = function () {
|
|
1626
1626
|
var suspendResult = this.c9_1;
|
|
@@ -1631,12 +1631,12 @@
|
|
|
1631
1631
|
case 0:
|
|
1632
1632
|
this.b9_1 = 14;
|
|
1633
1633
|
this.b9_1 = 13;
|
|
1634
|
-
this.
|
|
1634
|
+
this.r3i_1 = this.l3i_1;
|
|
1635
1635
|
this.a9_1 = 1;
|
|
1636
1636
|
continue $sm;
|
|
1637
1637
|
case 1:
|
|
1638
|
-
this.
|
|
1639
|
-
this.
|
|
1638
|
+
this.p3i_1 = this.r3i_1;
|
|
1639
|
+
this.o3i_1 = null;
|
|
1640
1640
|
this.a9_1 = 2;
|
|
1641
1641
|
continue $sm;
|
|
1642
1642
|
case 2:
|
|
@@ -1645,12 +1645,12 @@
|
|
|
1645
1645
|
case 3:
|
|
1646
1646
|
this.b9_1 = 10;
|
|
1647
1647
|
this.b9_1 = 9;
|
|
1648
|
-
this.
|
|
1648
|
+
this.q3i_1 = this.p3i_1.t();
|
|
1649
1649
|
this.a9_1 = 4;
|
|
1650
1650
|
continue $sm;
|
|
1651
1651
|
case 4:
|
|
1652
1652
|
this.a9_1 = 5;
|
|
1653
|
-
suspendResult = this.
|
|
1653
|
+
suspendResult = this.q3i_1.t19(this);
|
|
1654
1654
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1655
1655
|
return suspendResult;
|
|
1656
1656
|
}
|
|
@@ -1662,10 +1662,10 @@
|
|
|
1662
1662
|
continue $sm;
|
|
1663
1663
|
}
|
|
1664
1664
|
|
|
1665
|
-
var e = this.
|
|
1666
|
-
get_LOGGER().
|
|
1665
|
+
var e = this.q3i_1.v();
|
|
1666
|
+
get_LOGGER().b2t('Received ping message, sending pong message');
|
|
1667
1667
|
this.a9_1 = 6;
|
|
1668
|
-
suspendResult = this.
|
|
1668
|
+
suspendResult = this.m3i_1.q1b(new Pong(e.s3g_1), this);
|
|
1669
1669
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1670
1670
|
return suspendResult;
|
|
1671
1671
|
}
|
|
@@ -1680,7 +1680,7 @@
|
|
|
1680
1680
|
continue $sm;
|
|
1681
1681
|
case 8:
|
|
1682
1682
|
this.b9_1 = 13;
|
|
1683
|
-
cancelConsumed(this.
|
|
1683
|
+
cancelConsumed(this.p3i_1, this.o3i_1);
|
|
1684
1684
|
this.a9_1 = 12;
|
|
1685
1685
|
continue $sm;
|
|
1686
1686
|
case 9:
|
|
@@ -1689,7 +1689,7 @@
|
|
|
1689
1689
|
if (tmp_1 instanceof Error) {
|
|
1690
1690
|
var e_0 = this.d9_1;
|
|
1691
1691
|
var tmp_2 = this;
|
|
1692
|
-
this.
|
|
1692
|
+
this.o3i_1 = e_0;
|
|
1693
1693
|
throw e_0;
|
|
1694
1694
|
} else {
|
|
1695
1695
|
throw this.d9_1;
|
|
@@ -1698,11 +1698,11 @@
|
|
|
1698
1698
|
case 10:
|
|
1699
1699
|
this.b9_1 = 13;
|
|
1700
1700
|
var t = this.d9_1;
|
|
1701
|
-
cancelConsumed(this.
|
|
1701
|
+
cancelConsumed(this.p3i_1, this.o3i_1);
|
|
1702
1702
|
throw t;
|
|
1703
1703
|
case 11:
|
|
1704
1704
|
this.b9_1 = 13;
|
|
1705
|
-
cancelConsumed(this.
|
|
1705
|
+
cancelConsumed(this.p3i_1, this.o3i_1);
|
|
1706
1706
|
if (false) {
|
|
1707
1707
|
this.a9_1 = 1;
|
|
1708
1708
|
continue $sm;
|
|
@@ -1742,31 +1742,31 @@
|
|
|
1742
1742
|
}
|
|
1743
1743
|
while (true);
|
|
1744
1744
|
};
|
|
1745
|
-
protoOf(ponger$slambda).
|
|
1746
|
-
var i = new ponger$slambda(this.
|
|
1747
|
-
i.
|
|
1745
|
+
protoOf(ponger$slambda).u1w = function ($this$launch, completion) {
|
|
1746
|
+
var i = new ponger$slambda(this.l3i_1, this.m3i_1, completion);
|
|
1747
|
+
i.n3i_1 = $this$launch;
|
|
1748
1748
|
return i;
|
|
1749
1749
|
};
|
|
1750
1750
|
function ponger$slambda_0($channel, $outgoing, resultContinuation) {
|
|
1751
1751
|
var i = new ponger$slambda($channel, $outgoing, resultContinuation);
|
|
1752
1752
|
var l = function ($this$launch, $completion) {
|
|
1753
|
-
return i.
|
|
1753
|
+
return i.t1w($this$launch, $completion);
|
|
1754
1754
|
};
|
|
1755
1755
|
l.$arity = 1;
|
|
1756
1756
|
return l;
|
|
1757
1757
|
}
|
|
1758
1758
|
function pinger$slambda$slambda($channel, resultContinuation) {
|
|
1759
|
-
this.
|
|
1759
|
+
this.a3j_1 = $channel;
|
|
1760
1760
|
CoroutineImpl.call(this, resultContinuation);
|
|
1761
1761
|
}
|
|
1762
|
-
protoOf(pinger$slambda$slambda).
|
|
1763
|
-
var tmp = this.
|
|
1762
|
+
protoOf(pinger$slambda$slambda).t1w = function ($this$withTimeoutOrNull, $completion) {
|
|
1763
|
+
var tmp = this.u1w($this$withTimeoutOrNull, $completion);
|
|
1764
1764
|
tmp.c9_1 = Unit_instance;
|
|
1765
1765
|
tmp.d9_1 = null;
|
|
1766
1766
|
return tmp.i9();
|
|
1767
1767
|
};
|
|
1768
1768
|
protoOf(pinger$slambda$slambda).u9 = function (p1, $completion) {
|
|
1769
|
-
return this.
|
|
1769
|
+
return this.t1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1770
1770
|
};
|
|
1771
1771
|
protoOf(pinger$slambda$slambda).i9 = function () {
|
|
1772
1772
|
var suspendResult = this.c9_1;
|
|
@@ -1785,7 +1785,7 @@
|
|
|
1785
1785
|
}
|
|
1786
1786
|
|
|
1787
1787
|
this.a9_1 = 2;
|
|
1788
|
-
suspendResult = this.
|
|
1788
|
+
suspendResult = this.a3j_1.u1b(this);
|
|
1789
1789
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1790
1790
|
return suspendResult;
|
|
1791
1791
|
}
|
|
@@ -1810,33 +1810,33 @@
|
|
|
1810
1810
|
}
|
|
1811
1811
|
while (true);
|
|
1812
1812
|
};
|
|
1813
|
-
protoOf(pinger$slambda$slambda).
|
|
1814
|
-
var i = new pinger$slambda$slambda(this.
|
|
1815
|
-
i.
|
|
1813
|
+
protoOf(pinger$slambda$slambda).u1w = function ($this$withTimeoutOrNull, completion) {
|
|
1814
|
+
var i = new pinger$slambda$slambda(this.a3j_1, completion);
|
|
1815
|
+
i.b3j_1 = $this$withTimeoutOrNull;
|
|
1816
1816
|
return i;
|
|
1817
1817
|
};
|
|
1818
1818
|
function pinger$slambda$slambda_0($channel, resultContinuation) {
|
|
1819
1819
|
var i = new pinger$slambda$slambda($channel, resultContinuation);
|
|
1820
1820
|
var l = function ($this$withTimeoutOrNull, $completion) {
|
|
1821
|
-
return i.
|
|
1821
|
+
return i.t1w($this$withTimeoutOrNull, $completion);
|
|
1822
1822
|
};
|
|
1823
1823
|
l.$arity = 1;
|
|
1824
1824
|
return l;
|
|
1825
1825
|
}
|
|
1826
1826
|
function pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1827
|
-
this.
|
|
1828
|
-
this.
|
|
1829
|
-
this.
|
|
1827
|
+
this.k3j_1 = $outgoing;
|
|
1828
|
+
this.l3j_1 = $pingMessage;
|
|
1829
|
+
this.m3j_1 = $channel;
|
|
1830
1830
|
CoroutineImpl.call(this, resultContinuation);
|
|
1831
1831
|
}
|
|
1832
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1833
|
-
var tmp = this.
|
|
1832
|
+
protoOf(pinger$slambda$slambda_1).t1w = function ($this$withTimeoutOrNull, $completion) {
|
|
1833
|
+
var tmp = this.u1w($this$withTimeoutOrNull, $completion);
|
|
1834
1834
|
tmp.c9_1 = Unit_instance;
|
|
1835
1835
|
tmp.d9_1 = null;
|
|
1836
1836
|
return tmp.i9();
|
|
1837
1837
|
};
|
|
1838
1838
|
protoOf(pinger$slambda$slambda_1).u9 = function (p1, $completion) {
|
|
1839
|
-
return this.
|
|
1839
|
+
return this.t1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1840
1840
|
};
|
|
1841
1841
|
protoOf(pinger$slambda$slambda_1).i9 = function () {
|
|
1842
1842
|
var suspendResult = this.c9_1;
|
|
@@ -1846,9 +1846,9 @@
|
|
|
1846
1846
|
switch (tmp) {
|
|
1847
1847
|
case 0:
|
|
1848
1848
|
this.b9_1 = 6;
|
|
1849
|
-
get_LOGGER().
|
|
1849
|
+
get_LOGGER().b2t('WebSocket Pinger: sending ping frame');
|
|
1850
1850
|
this.a9_1 = 1;
|
|
1851
|
-
suspendResult = this.
|
|
1851
|
+
suspendResult = this.k3j_1.q1b(new Ping(toByteArray(this.l3j_1, Charsets_getInstance().u1x_1)), this);
|
|
1852
1852
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1853
1853
|
return suspendResult;
|
|
1854
1854
|
}
|
|
@@ -1864,16 +1864,16 @@
|
|
|
1864
1864
|
}
|
|
1865
1865
|
|
|
1866
1866
|
this.a9_1 = 3;
|
|
1867
|
-
suspendResult = this.
|
|
1867
|
+
suspendResult = this.m3j_1.u1b(this);
|
|
1868
1868
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1869
1869
|
return suspendResult;
|
|
1870
1870
|
}
|
|
1871
1871
|
|
|
1872
1872
|
continue $sm;
|
|
1873
1873
|
case 3:
|
|
1874
|
-
this.
|
|
1875
|
-
if (decodeToString(this.
|
|
1876
|
-
get_LOGGER().
|
|
1874
|
+
this.o3j_1 = suspendResult;
|
|
1875
|
+
if (decodeToString(this.o3j_1.s3g_1, 0, 0 + this.o3j_1.s3g_1.length | 0) === this.l3j_1) {
|
|
1876
|
+
get_LOGGER().b2t('WebSocket Pinger: received valid pong frame ' + this.o3j_1.toString());
|
|
1877
1877
|
this.a9_1 = 5;
|
|
1878
1878
|
continue $sm;
|
|
1879
1879
|
} else {
|
|
@@ -1882,7 +1882,7 @@
|
|
|
1882
1882
|
}
|
|
1883
1883
|
|
|
1884
1884
|
case 4:
|
|
1885
|
-
get_LOGGER().
|
|
1885
|
+
get_LOGGER().b2t('WebSocket Pinger: received invalid pong frame ' + this.o3j_1.toString() + ', continue waiting');
|
|
1886
1886
|
this.a9_1 = 2;
|
|
1887
1887
|
continue $sm;
|
|
1888
1888
|
case 5:
|
|
@@ -1901,35 +1901,35 @@
|
|
|
1901
1901
|
}
|
|
1902
1902
|
while (true);
|
|
1903
1903
|
};
|
|
1904
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1905
|
-
var i = new pinger$slambda$slambda_1(this.
|
|
1906
|
-
i.
|
|
1904
|
+
protoOf(pinger$slambda$slambda_1).u1w = function ($this$withTimeoutOrNull, completion) {
|
|
1905
|
+
var i = new pinger$slambda$slambda_1(this.k3j_1, this.l3j_1, this.m3j_1, completion);
|
|
1906
|
+
i.n3j_1 = $this$withTimeoutOrNull;
|
|
1907
1907
|
return i;
|
|
1908
1908
|
};
|
|
1909
1909
|
function pinger$slambda$slambda_2($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1910
1910
|
var i = new pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation);
|
|
1911
1911
|
var l = function ($this$withTimeoutOrNull, $completion) {
|
|
1912
|
-
return i.
|
|
1912
|
+
return i.t1w($this$withTimeoutOrNull, $completion);
|
|
1913
1913
|
};
|
|
1914
1914
|
l.$arity = 1;
|
|
1915
1915
|
return l;
|
|
1916
1916
|
}
|
|
1917
1917
|
function pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
1918
|
-
this.
|
|
1919
|
-
this.
|
|
1920
|
-
this.
|
|
1921
|
-
this.
|
|
1922
|
-
this.
|
|
1918
|
+
this.x3j_1 = $periodMillis;
|
|
1919
|
+
this.y3j_1 = $timeoutMillis;
|
|
1920
|
+
this.z3j_1 = $onTimeout;
|
|
1921
|
+
this.a3k_1 = $channel;
|
|
1922
|
+
this.b3k_1 = $outgoing;
|
|
1923
1923
|
CoroutineImpl.call(this, resultContinuation);
|
|
1924
1924
|
}
|
|
1925
|
-
protoOf(pinger$slambda).
|
|
1926
|
-
var tmp = this.
|
|
1925
|
+
protoOf(pinger$slambda).t1w = function ($this$launch, $completion) {
|
|
1926
|
+
var tmp = this.u1w($this$launch, $completion);
|
|
1927
1927
|
tmp.c9_1 = Unit_instance;
|
|
1928
1928
|
tmp.d9_1 = null;
|
|
1929
1929
|
return tmp.i9();
|
|
1930
1930
|
};
|
|
1931
1931
|
protoOf(pinger$slambda).u9 = function (p1, $completion) {
|
|
1932
|
-
return this.
|
|
1932
|
+
return this.t1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1933
1933
|
};
|
|
1934
1934
|
protoOf(pinger$slambda).i9 = function () {
|
|
1935
1935
|
var suspendResult = this.c9_1;
|
|
@@ -1939,9 +1939,9 @@
|
|
|
1939
1939
|
switch (tmp) {
|
|
1940
1940
|
case 0:
|
|
1941
1941
|
this.b9_1 = 9;
|
|
1942
|
-
get_LOGGER().
|
|
1943
|
-
this.
|
|
1944
|
-
this.
|
|
1942
|
+
get_LOGGER().b2t('Starting WebSocket pinger coroutine with period ' + this.x3j_1.toString() + ' ms and timeout ' + this.y3j_1.toString() + ' ms');
|
|
1943
|
+
this.e3k_1 = Random(getTimeMillis());
|
|
1944
|
+
this.d3k_1 = new Int8Array(32);
|
|
1945
1945
|
this.b9_1 = 7;
|
|
1946
1946
|
this.a9_1 = 1;
|
|
1947
1947
|
continue $sm;
|
|
@@ -1952,17 +1952,17 @@
|
|
|
1952
1952
|
}
|
|
1953
1953
|
|
|
1954
1954
|
this.a9_1 = 2;
|
|
1955
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1955
|
+
suspendResult = withTimeoutOrNull(this.x3j_1, pinger$slambda$slambda_0(this.a3k_1, null), this);
|
|
1956
1956
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1957
1957
|
return suspendResult;
|
|
1958
1958
|
}
|
|
1959
1959
|
|
|
1960
1960
|
continue $sm;
|
|
1961
1961
|
case 2:
|
|
1962
|
-
this.
|
|
1963
|
-
var pingMessage = '[ping ' + hex(this.
|
|
1962
|
+
this.e3k_1.vi(this.d3k_1);
|
|
1963
|
+
var pingMessage = '[ping ' + hex(this.d3k_1) + ' ping]';
|
|
1964
1964
|
this.a9_1 = 3;
|
|
1965
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1965
|
+
suspendResult = withTimeoutOrNull(this.y3j_1, pinger$slambda$slambda_2(this.b3k_1, pingMessage, this.a3k_1, null), this);
|
|
1966
1966
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1967
1967
|
return suspendResult;
|
|
1968
1968
|
}
|
|
@@ -1971,9 +1971,9 @@
|
|
|
1971
1971
|
case 3:
|
|
1972
1972
|
var rc = suspendResult;
|
|
1973
1973
|
if (rc == null) {
|
|
1974
|
-
get_LOGGER().
|
|
1974
|
+
get_LOGGER().b2t('WebSocket pinger has timed out');
|
|
1975
1975
|
this.a9_1 = 5;
|
|
1976
|
-
suspendResult = this.
|
|
1976
|
+
suspendResult = this.z3j_1(CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), 'Ping timeout'), this);
|
|
1977
1977
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1978
1978
|
return suspendResult;
|
|
1979
1979
|
}
|
|
@@ -2042,22 +2042,22 @@
|
|
|
2042
2042
|
}
|
|
2043
2043
|
while (true);
|
|
2044
2044
|
};
|
|
2045
|
-
protoOf(pinger$slambda).
|
|
2046
|
-
var i = new pinger$slambda(this.
|
|
2047
|
-
i.
|
|
2045
|
+
protoOf(pinger$slambda).u1w = function ($this$launch, completion) {
|
|
2046
|
+
var i = new pinger$slambda(this.x3j_1, this.y3j_1, this.z3j_1, this.a3k_1, this.b3k_1, completion);
|
|
2047
|
+
i.c3k_1 = $this$launch;
|
|
2048
2048
|
return i;
|
|
2049
2049
|
};
|
|
2050
2050
|
function pinger$slambda_0($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
2051
2051
|
var i = new pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation);
|
|
2052
2052
|
var l = function ($this$launch, $completion) {
|
|
2053
|
-
return i.
|
|
2053
|
+
return i.t1w($this$launch, $completion);
|
|
2054
2054
|
};
|
|
2055
2055
|
l.$arity = 1;
|
|
2056
2056
|
return l;
|
|
2057
2057
|
}
|
|
2058
2058
|
function pinger$lambda($actorJob) {
|
|
2059
2059
|
return function (it) {
|
|
2060
|
-
$actorJob.
|
|
2060
|
+
$actorJob.yt();
|
|
2061
2061
|
return Unit_instance;
|
|
2062
2062
|
};
|
|
2063
2063
|
}
|
|
@@ -2074,9 +2074,9 @@
|
|
|
2074
2074
|
var tmp = this;
|
|
2075
2075
|
// Inline function 'kotlin.apply' call
|
|
2076
2076
|
var this_0 = new WebSocketChannelsConfig();
|
|
2077
|
-
this_0.
|
|
2078
|
-
this_0.
|
|
2079
|
-
tmp.
|
|
2077
|
+
this_0.d3d_1 = this_0.f3k();
|
|
2078
|
+
this_0.e3d_1 = this_0.f3k();
|
|
2079
|
+
tmp.c3d_1 = this_0;
|
|
2080
2080
|
}
|
|
2081
2081
|
var Companion_instance_2;
|
|
2082
2082
|
function Companion_getInstance_2() {
|
|
@@ -2086,21 +2086,21 @@
|
|
|
2086
2086
|
}
|
|
2087
2087
|
function WebSocketChannelsConfig() {
|
|
2088
2088
|
Companion_getInstance_2();
|
|
2089
|
-
this.
|
|
2090
|
-
this.
|
|
2089
|
+
this.d3d_1 = Companion_getInstance_3().g3k_1;
|
|
2090
|
+
this.e3d_1 = Companion_getInstance_3().g3k_1;
|
|
2091
2091
|
}
|
|
2092
|
-
protoOf(WebSocketChannelsConfig).
|
|
2093
|
-
return Companion_getInstance_3().
|
|
2092
|
+
protoOf(WebSocketChannelsConfig).f3k = function () {
|
|
2093
|
+
return Companion_getInstance_3().g3k_1;
|
|
2094
2094
|
};
|
|
2095
2095
|
function from(_this__u8e3s4, config) {
|
|
2096
2096
|
// Inline function 'kotlin.with' call
|
|
2097
2097
|
var tmp;
|
|
2098
|
-
if (config.
|
|
2098
|
+
if (config.h3k_1 === 2147483647) {
|
|
2099
2099
|
tmp = Channel(2147483647);
|
|
2100
|
-
} else if (config.
|
|
2101
|
-
tmp = Channel(config.
|
|
2102
|
-
} else if (config.
|
|
2103
|
-
tmp = new BoundedChannel(config.
|
|
2100
|
+
} else if (config.i3k_1.equals(ChannelOverflow_SUSPEND_getInstance())) {
|
|
2101
|
+
tmp = Channel(config.h3k_1, BufferOverflow_SUSPEND_getInstance());
|
|
2102
|
+
} else if (config.i3k_1.equals(ChannelOverflow_CLOSE_getInstance())) {
|
|
2103
|
+
tmp = new BoundedChannel(config.h3k_1);
|
|
2104
2104
|
} else {
|
|
2105
2105
|
// Inline function 'kotlin.error' call
|
|
2106
2106
|
var message = 'Unsupported channel config.';
|
|
@@ -2110,7 +2110,7 @@
|
|
|
2110
2110
|
}
|
|
2111
2111
|
function Companion_3() {
|
|
2112
2112
|
Companion_instance_3 = this;
|
|
2113
|
-
this.
|
|
2113
|
+
this.g3k_1 = new ChannelConfig(2147483647, ChannelOverflow_SUSPEND_getInstance());
|
|
2114
2114
|
}
|
|
2115
2115
|
var Companion_instance_3;
|
|
2116
2116
|
function Companion_getInstance_3() {
|
|
@@ -2120,11 +2120,11 @@
|
|
|
2120
2120
|
}
|
|
2121
2121
|
function ChannelConfig(capacity, onOverflow) {
|
|
2122
2122
|
Companion_getInstance_3();
|
|
2123
|
-
this.
|
|
2124
|
-
this.
|
|
2123
|
+
this.h3k_1 = capacity;
|
|
2124
|
+
this.i3k_1 = onOverflow;
|
|
2125
2125
|
}
|
|
2126
|
-
protoOf(ChannelConfig).
|
|
2127
|
-
return this.
|
|
2126
|
+
protoOf(ChannelConfig).j3k = function () {
|
|
2127
|
+
return this.i3k_1.equals(ChannelOverflow_SUSPEND_getInstance()) && !(this.h3k_1 === 2147483647);
|
|
2128
2128
|
};
|
|
2129
2129
|
var ChannelOverflow_SUSPEND_instance;
|
|
2130
2130
|
var ChannelOverflow_CLOSE_instance;
|
|
@@ -2148,14 +2148,14 @@
|
|
|
2148
2148
|
} else {
|
|
2149
2149
|
tmp_0 = $channel._v;
|
|
2150
2150
|
}
|
|
2151
|
-
if (!tmp_0.
|
|
2151
|
+
if (!tmp_0.v19()) {
|
|
2152
2152
|
var tmp_1;
|
|
2153
2153
|
if ($channel._v == null) {
|
|
2154
2154
|
throwUninitializedPropertyAccessException('channel');
|
|
2155
2155
|
} else {
|
|
2156
2156
|
tmp_1 = $channel._v;
|
|
2157
2157
|
}
|
|
2158
|
-
tmp_1.
|
|
2158
|
+
tmp_1.w1b(new ChannelOverflowException('Channel overflowed'));
|
|
2159
2159
|
tmp = Unit_instance;
|
|
2160
2160
|
}
|
|
2161
2161
|
return Unit_instance;
|
|
@@ -2163,7 +2163,7 @@
|
|
|
2163
2163
|
}
|
|
2164
2164
|
function Companion_4() {
|
|
2165
2165
|
}
|
|
2166
|
-
protoOf(Companion_4).
|
|
2166
|
+
protoOf(Companion_4).k3k = function (capacity) {
|
|
2167
2167
|
var channel = {_v: null};
|
|
2168
2168
|
var tmp = BufferOverflow_DROP_OLDEST_getInstance();
|
|
2169
2169
|
// Inline function 'kotlin.also' call
|
|
@@ -2176,42 +2176,42 @@
|
|
|
2176
2176
|
return Companion_instance_4;
|
|
2177
2177
|
}
|
|
2178
2178
|
function BoundedChannel(capacity, delegate) {
|
|
2179
|
-
delegate = delegate === VOID ? Companion_instance_4.
|
|
2180
|
-
this.
|
|
2179
|
+
delegate = delegate === VOID ? Companion_instance_4.k3k(capacity) : delegate;
|
|
2180
|
+
this.l3k_1 = delegate;
|
|
2181
2181
|
}
|
|
2182
|
-
protoOf(BoundedChannel).
|
|
2183
|
-
var result = this.
|
|
2182
|
+
protoOf(BoundedChannel).m3k = function (element) {
|
|
2183
|
+
var result = this.l3k_1.r1b(element);
|
|
2184
2184
|
if (!_ChannelResult___get_isSuccess__impl__odq1z9(result) && !_ChannelResult___get_isClosed__impl__mg7kuu(result)) {
|
|
2185
|
-
this.
|
|
2185
|
+
this.w1b(new ChannelOverflowException('Channel overflowed'));
|
|
2186
2186
|
}
|
|
2187
2187
|
return result;
|
|
2188
2188
|
};
|
|
2189
|
-
protoOf(BoundedChannel).
|
|
2190
|
-
return this.
|
|
2189
|
+
protoOf(BoundedChannel).r1b = function (element) {
|
|
2190
|
+
return this.m3k(element);
|
|
2191
2191
|
};
|
|
2192
|
-
protoOf(BoundedChannel).
|
|
2193
|
-
return this.
|
|
2192
|
+
protoOf(BoundedChannel).n3k = function (element, $completion) {
|
|
2193
|
+
return this.l3k_1.q1b(element, $completion);
|
|
2194
2194
|
};
|
|
2195
|
-
protoOf(BoundedChannel).
|
|
2196
|
-
return this.
|
|
2195
|
+
protoOf(BoundedChannel).q1b = function (element, $completion) {
|
|
2196
|
+
return this.n3k(element, $completion);
|
|
2197
2197
|
};
|
|
2198
|
-
protoOf(BoundedChannel).
|
|
2199
|
-
return this.
|
|
2198
|
+
protoOf(BoundedChannel).w1b = function (cause) {
|
|
2199
|
+
return this.l3k_1.w1b(cause);
|
|
2200
2200
|
};
|
|
2201
|
-
protoOf(BoundedChannel).
|
|
2202
|
-
return this.
|
|
2201
|
+
protoOf(BoundedChannel).v19 = function () {
|
|
2202
|
+
return this.l3k_1.v19();
|
|
2203
2203
|
};
|
|
2204
|
-
protoOf(BoundedChannel).
|
|
2205
|
-
return this.
|
|
2204
|
+
protoOf(BoundedChannel).o3k = function ($completion) {
|
|
2205
|
+
return this.l3k_1.u1b($completion);
|
|
2206
2206
|
};
|
|
2207
|
-
protoOf(BoundedChannel).
|
|
2208
|
-
return this.
|
|
2207
|
+
protoOf(BoundedChannel).u1b = function ($completion) {
|
|
2208
|
+
return this.o3k($completion);
|
|
2209
2209
|
};
|
|
2210
2210
|
protoOf(BoundedChannel).t = function () {
|
|
2211
|
-
return this.
|
|
2211
|
+
return this.l3k_1.t();
|
|
2212
2212
|
};
|
|
2213
|
-
protoOf(BoundedChannel).
|
|
2214
|
-
this.
|
|
2213
|
+
protoOf(BoundedChannel).xt = function (cause) {
|
|
2214
|
+
this.l3k_1.xt(cause);
|
|
2215
2215
|
};
|
|
2216
2216
|
function ChannelOverflowException(message) {
|
|
2217
2217
|
RuntimeException_init_$Init$(message, this);
|
|
@@ -2230,16 +2230,16 @@
|
|
|
2230
2230
|
function WebSocketExtensionsConfig() {
|
|
2231
2231
|
var tmp = this;
|
|
2232
2232
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2233
|
-
tmp.
|
|
2233
|
+
tmp.r3k_1 = ArrayList_init_$Create$();
|
|
2234
2234
|
var tmp_0 = this;
|
|
2235
2235
|
// Inline function 'kotlin.arrayOf' call
|
|
2236
2236
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2237
2237
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2238
|
-
tmp_0.
|
|
2238
|
+
tmp_0.s3k_1 = [false, false, false];
|
|
2239
2239
|
}
|
|
2240
|
-
protoOf(WebSocketExtensionsConfig).
|
|
2240
|
+
protoOf(WebSocketExtensionsConfig).s2v = function () {
|
|
2241
2241
|
// Inline function 'kotlin.collections.map' call
|
|
2242
|
-
var this_0 = this.
|
|
2242
|
+
var this_0 = this.r3k_1;
|
|
2243
2243
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2244
2244
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2245
2245
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2251,14 +2251,14 @@
|
|
|
2251
2251
|
return destination;
|
|
2252
2252
|
};
|
|
2253
2253
|
function parametersToString($this) {
|
|
2254
|
-
return $this.
|
|
2254
|
+
return $this.u3k_1.r() ? '' : '; ' + joinToString($this.u3k_1, ';');
|
|
2255
2255
|
}
|
|
2256
2256
|
function WebSocketExtensionHeader(name, parameters) {
|
|
2257
|
-
this.
|
|
2258
|
-
this.
|
|
2257
|
+
this.t3k_1 = name;
|
|
2258
|
+
this.u3k_1 = parameters;
|
|
2259
2259
|
}
|
|
2260
2260
|
protoOf(WebSocketExtensionHeader).toString = function () {
|
|
2261
|
-
return this.
|
|
2261
|
+
return this.t3k_1 + ' ' + parametersToString(this);
|
|
2262
2262
|
};
|
|
2263
2263
|
function parseWebSocketExtensions(value) {
|
|
2264
2264
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2310,8 +2310,8 @@
|
|
|
2310
2310
|
}
|
|
2311
2311
|
function $closeCOROUTINE$(_this__u8e3s4, reason, resultContinuation) {
|
|
2312
2312
|
CoroutineImpl.call(this, resultContinuation);
|
|
2313
|
-
this.
|
|
2314
|
-
this.
|
|
2313
|
+
this.d3l_1 = _this__u8e3s4;
|
|
2314
|
+
this.e3l_1 = reason;
|
|
2315
2315
|
}
|
|
2316
2316
|
protoOf($closeCOROUTINE$).i9 = function () {
|
|
2317
2317
|
var suspendResult = this.c9_1;
|
|
@@ -2323,7 +2323,7 @@
|
|
|
2323
2323
|
this.b9_1 = 4;
|
|
2324
2324
|
this.b9_1 = 3;
|
|
2325
2325
|
this.a9_1 = 1;
|
|
2326
|
-
suspendResult = this.
|
|
2326
|
+
suspendResult = this.d3l_1.b3d(Close_init_$Create$(this.e3l_1), this);
|
|
2327
2327
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2328
2328
|
return suspendResult;
|
|
2329
2329
|
}
|
|
@@ -2331,7 +2331,7 @@
|
|
|
2331
2331
|
continue $sm;
|
|
2332
2332
|
case 1:
|
|
2333
2333
|
this.a9_1 = 2;
|
|
2334
|
-
suspendResult = this.
|
|
2334
|
+
suspendResult = this.d3l_1.n1n(this);
|
|
2335
2335
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2336
2336
|
return suspendResult;
|
|
2337
2337
|
}
|
|
@@ -2390,8 +2390,8 @@
|
|
|
2390
2390
|
function Close_init_$Init$(reason, $this) {
|
|
2391
2391
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
2392
2392
|
var builder = new Buffer();
|
|
2393
|
-
builder.
|
|
2394
|
-
writeText(builder, reason.
|
|
2393
|
+
builder.yq(reason.t3c_1);
|
|
2394
|
+
writeText(builder, reason.u3c_1);
|
|
2395
2395
|
Close_init_$Init$_0(builder, $this);
|
|
2396
2396
|
return $this;
|
|
2397
2397
|
}
|
|
@@ -2403,7 +2403,7 @@
|
|
|
2403
2403
|
return $this;
|
|
2404
2404
|
}
|
|
2405
2405
|
function Close_init_$Init$_1($this) {
|
|
2406
|
-
Close.call($this, Companion_getInstance_5().
|
|
2406
|
+
Close.call($this, Companion_getInstance_5().x3g_1);
|
|
2407
2407
|
return $this;
|
|
2408
2408
|
}
|
|
2409
2409
|
function Close_init_$Create$_0() {
|
|
@@ -2433,9 +2433,9 @@
|
|
|
2433
2433
|
}
|
|
2434
2434
|
function Companion_5() {
|
|
2435
2435
|
Companion_instance_5 = this;
|
|
2436
|
-
this.
|
|
2436
|
+
this.x3g_1 = new Int8Array(0);
|
|
2437
2437
|
}
|
|
2438
|
-
protoOf(Companion_5).
|
|
2438
|
+
protoOf(Companion_5).y3g = function (fin, frameType, data, rsv1, rsv2, rsv3) {
|
|
2439
2439
|
var tmp;
|
|
2440
2440
|
switch (frameType.a1_1) {
|
|
2441
2441
|
case 1:
|
|
@@ -2471,28 +2471,28 @@
|
|
|
2471
2471
|
rsv1 = rsv1 === VOID ? false : rsv1;
|
|
2472
2472
|
rsv2 = rsv2 === VOID ? false : rsv2;
|
|
2473
2473
|
rsv3 = rsv3 === VOID ? false : rsv3;
|
|
2474
|
-
this.
|
|
2475
|
-
this.
|
|
2476
|
-
this.
|
|
2477
|
-
this.
|
|
2478
|
-
this.
|
|
2479
|
-
this.
|
|
2480
|
-
this.
|
|
2474
|
+
this.q3g_1 = fin;
|
|
2475
|
+
this.r3g_1 = frameType;
|
|
2476
|
+
this.s3g_1 = data;
|
|
2477
|
+
this.t3g_1 = disposableHandle;
|
|
2478
|
+
this.u3g_1 = rsv1;
|
|
2479
|
+
this.v3g_1 = rsv2;
|
|
2480
|
+
this.w3g_1 = rsv3;
|
|
2481
2481
|
}
|
|
2482
2482
|
protoOf(Frame).toString = function () {
|
|
2483
|
-
return 'Frame ' + this.
|
|
2483
|
+
return 'Frame ' + this.r3g_1.toString() + ' (fin=' + this.q3g_1 + ', buffer len = ' + this.s3g_1.length + ')';
|
|
2484
2484
|
};
|
|
2485
2485
|
function get_OUTGOING_CHANNEL_CAPACITY() {
|
|
2486
2486
|
return OUTGOING_CHANNEL_CAPACITY;
|
|
2487
2487
|
}
|
|
2488
2488
|
var OUTGOING_CHANNEL_CAPACITY;
|
|
2489
2489
|
//region block: post-declaration
|
|
2490
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
2490
|
+
protoOf(DefaultWebSocketSessionImpl).b3d = send;
|
|
2491
2491
|
defineProp(protoOf(FrameTooBigException), 'message', function () {
|
|
2492
2492
|
return this.e();
|
|
2493
2493
|
});
|
|
2494
|
-
protoOf(BoundedChannel).
|
|
2495
|
-
protoOf(BoundedChannel).
|
|
2494
|
+
protoOf(BoundedChannel).y1b = close$default;
|
|
2495
|
+
protoOf(BoundedChannel).a1c = cancel$default;
|
|
2496
2496
|
//endregion
|
|
2497
2497
|
//region block: init
|
|
2498
2498
|
NonDisposableHandle_instance = new NonDisposableHandle();
|