@doordeck/doordeck-headless-sdk 0.194.0 → 0.195.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 +51 -51
- package/kotlin/Kermit-kermit.js +4 -4
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +19 -19
- package/kotlin/doordeck-sdk.d.ts +22 -22
- package/kotlin/doordeck-sdk.js +10675 -10685
- package/kotlin/kotlin-kotlin-stdlib.js +1215 -1389
- package/kotlin/kotlinx-atomicfu.js +13 -13
- package/kotlin/kotlinx-coroutines-core.js +2407 -2389
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +42 -42
- package/kotlin/kotlinx-io-kotlinx-io-core.js +624 -620
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1892 -1902
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1500 -1499
- package/kotlin/ktor-ktor-client-auth.js +268 -267
- package/kotlin/ktor-ktor-client-content-negotiation.js +137 -137
- package/kotlin/ktor-ktor-client-core.js +2224 -2223
- package/kotlin/ktor-ktor-client-logging.js +658 -657
- package/kotlin/ktor-ktor-events.js +8 -8
- package/kotlin/ktor-ktor-http-cio.js +375 -375
- package/kotlin/ktor-ktor-http.js +800 -799
- package/kotlin/ktor-ktor-io.js +650 -650
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +147 -146
- package/kotlin/ktor-ktor-serialization.js +62 -63
- package/kotlin/ktor-ktor-utils.js +730 -745
- package/kotlin/ktor-ktor-websockets.js +427 -429
- package/package.json +2 -2
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.x5;
|
|
6
6
|
var mapCapacity = kotlin_kotlin.$_$.p7;
|
|
7
7
|
var coerceAtLeast = kotlin_kotlin.$_$.hc;
|
|
8
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
9
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
8
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
9
|
+
var Unit_instance = kotlin_kotlin.$_$.z;
|
|
10
10
|
var protoOf = kotlin_kotlin.$_$.zb;
|
|
11
11
|
var initMetadataForCompanion = kotlin_kotlin.$_$.db;
|
|
12
12
|
var enumEntries = kotlin_kotlin.$_$.n9;
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
var getStringHashCode = kotlin_kotlin.$_$.ab;
|
|
19
19
|
var initMetadataForInterface = kotlin_kotlin.$_$.gb;
|
|
20
20
|
var isInterface = kotlin_kotlin.$_$.rb;
|
|
21
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
22
|
-
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
21
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n2;
|
|
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
|
-
var CoroutineStart_UNDISPATCHED_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
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
|
-
var _ChannelResult___get_isSuccess__impl__odq1z9 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
26
|
+
var _ChannelResult___get_isSuccess__impl__odq1z9 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
|
|
27
27
|
var CoroutineImpl = kotlin_kotlin.$_$.l9;
|
|
28
28
|
var THROW_CCE = kotlin_kotlin.$_$.zf;
|
|
29
29
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q1;
|
|
@@ -37,7 +37,7 @@
|
|
|
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
|
-
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.
|
|
40
|
+
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.z1;
|
|
41
41
|
var ChannelIOException = kotlin_io_ktor_ktor_utils.$_$.d;
|
|
42
42
|
var CancellationException = kotlin_kotlin.$_$.u8;
|
|
43
43
|
var ClosedReceiveChannelException = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.w;
|
|
@@ -49,12 +49,12 @@
|
|
|
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;
|
|
52
|
-
var Key_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
52
|
+
var Key_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e;
|
|
53
53
|
var CoroutineName = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o1;
|
|
54
|
-
var Factory_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
54
|
+
var Factory_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a;
|
|
55
55
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.b;
|
|
56
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
57
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
56
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j1;
|
|
57
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r2;
|
|
58
58
|
var joinToString = kotlin_kotlin.$_$.h7;
|
|
59
59
|
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.k;
|
|
60
60
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
@@ -62,32 +62,32 @@
|
|
|
62
62
|
var DisposableHandle = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r1;
|
|
63
63
|
var initMetadataForObject = kotlin_kotlin.$_$.ib;
|
|
64
64
|
var Exception = kotlin_kotlin.$_$.sf;
|
|
65
|
-
var Exception_init_$Init$ = kotlin_kotlin.$_$.
|
|
65
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.g2;
|
|
66
66
|
var captureStack = kotlin_kotlin.$_$.la;
|
|
67
67
|
var initCauseBridge = kotlin_io_ktor_ktor_utils.$_$.j;
|
|
68
68
|
var defineProp = kotlin_kotlin.$_$.ta;
|
|
69
69
|
var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n1;
|
|
70
70
|
var compareTo = kotlin_kotlin.$_$.sa;
|
|
71
71
|
var Channel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.v;
|
|
72
|
-
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.
|
|
72
|
+
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.a;
|
|
73
73
|
var toByteArray = kotlin_io_ktor_ktor_io.$_$.f1;
|
|
74
74
|
var decodeToString = kotlin_kotlin.$_$.fd;
|
|
75
75
|
var getTimeMillis = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
76
76
|
var Random = kotlin_kotlin.$_$.fc;
|
|
77
|
-
var withTimeoutOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
78
|
-
var hex = kotlin_io_ktor_ktor_utils.$_$.
|
|
77
|
+
var withTimeoutOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p;
|
|
78
|
+
var hex = kotlin_io_ktor_ktor_utils.$_$.i1;
|
|
79
79
|
var ClosedByteChannelException = kotlin_io_ktor_ktor_io.$_$.o1;
|
|
80
|
-
var BufferOverflow_SUSPEND_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
80
|
+
var BufferOverflow_SUSPEND_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.h;
|
|
81
81
|
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.o9;
|
|
82
|
-
var BufferOverflow_DROP_OLDEST_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
83
|
-
var _ChannelResult___get_isClosed__impl__mg7kuu = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
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.$_$.z;
|
|
82
|
+
var BufferOverflow_DROP_OLDEST_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g;
|
|
83
|
+
var _ChannelResult___get_isClosed__impl__mg7kuu = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s;
|
|
84
|
+
var close$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r;
|
|
85
|
+
var cancel$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q;
|
|
87
86
|
var SendChannel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a1;
|
|
87
|
+
var ReceiveChannel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z;
|
|
88
88
|
var RuntimeException = kotlin_kotlin.$_$.yf;
|
|
89
|
-
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.
|
|
90
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
89
|
+
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.z2;
|
|
90
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i1;
|
|
91
91
|
var split = kotlin_kotlin.$_$.ae;
|
|
92
92
|
var first = kotlin_kotlin.$_$.z6;
|
|
93
93
|
var isCharSequence = kotlin_kotlin.$_$.nb;
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
initMetadataForClass(Codes, 'Codes', VOID, Enum);
|
|
102
102
|
initMetadataForClass(CloseReason, 'CloseReason');
|
|
103
103
|
function send(frame, $completion) {
|
|
104
|
-
return this.
|
|
104
|
+
return this.m3c().u1b(frame, $completion);
|
|
105
105
|
}
|
|
106
106
|
initMetadataForInterface(WebSocketSession, 'WebSocketSession', VOID, VOID, [CoroutineScope], [1, 0]);
|
|
107
107
|
initMetadataForInterface(DefaultWebSocketSession, 'DefaultWebSocketSession', VOID, VOID, [WebSocketSession], [1, 0]);
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
initMetadataForCoroutine($checkMaxFrameSizeCOROUTINE$, CoroutineImpl);
|
|
116
116
|
initMetadataForClass(DefaultWebSocketSessionImpl, 'DefaultWebSocketSessionImpl', VOID, VOID, [DefaultWebSocketSession, WebSocketSession], [1, 0, 2]);
|
|
117
117
|
initMetadataForObject(NonDisposableHandle, 'NonDisposableHandle', VOID, VOID, [DisposableHandle]);
|
|
118
|
-
initMetadataForClass(FrameTooBigException, 'FrameTooBigException', VOID, Exception, [
|
|
118
|
+
initMetadataForClass(FrameTooBigException, 'FrameTooBigException', VOID, Exception, [CopyableThrowable]);
|
|
119
119
|
initMetadataForCompanion(Companion_1);
|
|
120
120
|
initMetadataForClass(FrameType, 'FrameType', VOID, Enum);
|
|
121
121
|
initMetadataForLambda(ponger$slambda, CoroutineImpl, VOID, [1]);
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
initMetadataForClass(ChannelConfig, 'ChannelConfig');
|
|
129
129
|
initMetadataForClass(ChannelOverflow, 'ChannelOverflow', VOID, Enum);
|
|
130
130
|
initMetadataForCompanion(Companion_4);
|
|
131
|
-
initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [
|
|
131
|
+
initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [SendChannel, ReceiveChannel], [1, 0]);
|
|
132
132
|
initMetadataForClass(ChannelOverflowException, 'ChannelOverflowException', VOID, RuntimeException);
|
|
133
133
|
initMetadataForInterface(WebSocketExtension, 'WebSocketExtension');
|
|
134
134
|
initMetadataForClass(WebSocketExtensionsConfig, 'WebSocketExtensionsConfig', WebSocketExtensionsConfig);
|
|
@@ -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$
|
|
169
|
-
destination.y2(tmp$ret$
|
|
168
|
+
var tmp$ret$2 = element.b3c_1;
|
|
169
|
+
destination.y2(tmp$ret$2, element);
|
|
170
170
|
}
|
|
171
|
-
tmp.
|
|
172
|
-
this.
|
|
171
|
+
tmp.c3c_1 = destination;
|
|
172
|
+
this.d3c_1 = Codes_INTERNAL_ERROR_getInstance();
|
|
173
173
|
}
|
|
174
|
-
protoOf(Companion).
|
|
175
|
-
return this.
|
|
174
|
+
protoOf(Companion).e3c = function (code) {
|
|
175
|
+
return this.c3c_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.b3c_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.b3c_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.f3c_1 = code;
|
|
273
|
+
this.g3c_1 = message;
|
|
274
274
|
}
|
|
275
|
-
protoOf(CloseReason).
|
|
276
|
-
return Companion_getInstance().
|
|
275
|
+
protoOf(CloseReason).h3c = function () {
|
|
276
|
+
return Companion_getInstance().e3c(this.f3c_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.h3c();
|
|
280
|
+
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.f3c_1 : tmp0_elvis_lhs) + ', message=' + this.g3c_1 + ')';
|
|
281
281
|
};
|
|
282
282
|
protoOf(CloseReason).hashCode = function () {
|
|
283
|
-
var result = this.
|
|
284
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
283
|
+
var result = this.f3c_1;
|
|
284
|
+
result = imul(result, 31) + getStringHashCode(this.g3c_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.f3c_1 === other.f3c_1))
|
|
293
293
|
return false;
|
|
294
|
-
if (!(this.
|
|
294
|
+
if (!(this.g3c_1 === other.g3c_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().o3c_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.p3c_1, channelsConfig.q3c_1);
|
|
332
332
|
}
|
|
333
333
|
function runIncomingProcessor($this, ponger) {
|
|
334
|
-
var tmp = get_IncomingProcessorCoroutineName().
|
|
334
|
+
var tmp = get_IncomingProcessorCoroutineName().yg(Dispatchers_getInstance().j15_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().
|
|
338
|
+
var tmp = get_OutgoingProcessorCoroutineName().yg(Dispatchers_getInstance().j15_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
|
}
|
|
@@ -346,42 +346,39 @@
|
|
|
346
346
|
return tmp.i9();
|
|
347
347
|
}
|
|
348
348
|
function sendCloseSequence($this, reason, exception, $completion) {
|
|
349
|
+
exception = exception === VOID ? null : exception;
|
|
349
350
|
var tmp = new $sendCloseSequenceCOROUTINE$($this, reason, exception, $completion);
|
|
350
351
|
tmp.c9_1 = Unit_instance;
|
|
351
352
|
tmp.d9_1 = null;
|
|
352
353
|
return tmp.i9();
|
|
353
354
|
}
|
|
354
|
-
function sendCloseSequence$default($this, reason, exception, $completion, $super) {
|
|
355
|
-
exception = exception === VOID ? null : exception;
|
|
356
|
-
return sendCloseSequence($this, reason, exception, $completion);
|
|
357
|
-
}
|
|
358
355
|
function tryClose($this) {
|
|
359
|
-
return $this.
|
|
356
|
+
return $this.v3d_1.atomicfu$compareAndSet(false, true);
|
|
360
357
|
}
|
|
361
358
|
function runOrCancelPinger($this) {
|
|
362
|
-
var interval = $this.
|
|
359
|
+
var interval = $this.y3d_1;
|
|
363
360
|
var tmp;
|
|
364
|
-
if ($this.
|
|
361
|
+
if ($this.v3d_1.kotlinx$atomicfu$value) {
|
|
365
362
|
tmp = null;
|
|
366
363
|
} else if (interval > 0n) {
|
|
367
|
-
var tmp_0 = $this.
|
|
368
|
-
var tmp_1 = $this.
|
|
364
|
+
var tmp_0 = $this.o3d_1.m3c();
|
|
365
|
+
var tmp_1 = $this.z3d_1;
|
|
369
366
|
tmp = pinger($this, tmp_0, interval, tmp_1, DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0($this, null));
|
|
370
367
|
} else {
|
|
371
368
|
tmp = null;
|
|
372
369
|
}
|
|
373
370
|
var newPinger = tmp;
|
|
374
|
-
var tmp0_safe_receiver = $this.
|
|
371
|
+
var tmp0_safe_receiver = $this.p3d_1.atomicfu$getAndSet(newPinger);
|
|
375
372
|
if (tmp0_safe_receiver == null)
|
|
376
373
|
null;
|
|
377
374
|
else
|
|
378
|
-
tmp0_safe_receiver.
|
|
379
|
-
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.
|
|
375
|
+
tmp0_safe_receiver.c1c();
|
|
376
|
+
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.v1b(Companion_getInstance_0().b3e_1));
|
|
380
377
|
if (tmp2_safe_receiver == null)
|
|
381
378
|
null;
|
|
382
379
|
else
|
|
383
|
-
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.
|
|
384
|
-
if ($this.
|
|
380
|
+
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.f1a_1);
|
|
381
|
+
if ($this.v3d_1.kotlinx$atomicfu$value && !(newPinger == null)) {
|
|
385
382
|
runOrCancelPinger($this);
|
|
386
383
|
}
|
|
387
384
|
}
|
|
@@ -394,28 +391,28 @@
|
|
|
394
391
|
function processIncomingExtensions($this, frame) {
|
|
395
392
|
// Inline function 'kotlin.collections.fold' call
|
|
396
393
|
var accumulator = frame;
|
|
397
|
-
var _iterator__ex2g4s = $this.
|
|
394
|
+
var _iterator__ex2g4s = $this.o3e().t();
|
|
398
395
|
while (_iterator__ex2g4s.u()) {
|
|
399
396
|
var element = _iterator__ex2g4s.v();
|
|
400
397
|
var current = accumulator;
|
|
401
|
-
accumulator = element.
|
|
398
|
+
accumulator = element.p3e(current);
|
|
402
399
|
}
|
|
403
400
|
return accumulator;
|
|
404
401
|
}
|
|
405
402
|
function processOutgoingExtensions($this, frame) {
|
|
406
403
|
// Inline function 'kotlin.collections.fold' call
|
|
407
404
|
var accumulator = frame;
|
|
408
|
-
var _iterator__ex2g4s = $this.
|
|
405
|
+
var _iterator__ex2g4s = $this.o3e().t();
|
|
409
406
|
while (_iterator__ex2g4s.u()) {
|
|
410
407
|
var element = _iterator__ex2g4s.v();
|
|
411
408
|
var current = accumulator;
|
|
412
|
-
accumulator = element.
|
|
409
|
+
accumulator = element.q3e(current);
|
|
413
410
|
}
|
|
414
411
|
return accumulator;
|
|
415
412
|
}
|
|
416
413
|
function Companion_0() {
|
|
417
414
|
Companion_instance_0 = this;
|
|
418
|
-
this.
|
|
415
|
+
this.b3e_1 = new Pong(new Int8Array(0), NonDisposableHandle_instance);
|
|
419
416
|
}
|
|
420
417
|
var Companion_instance_0;
|
|
421
418
|
function Companion_getInstance_0() {
|
|
@@ -424,19 +421,19 @@
|
|
|
424
421
|
return Companion_instance_0;
|
|
425
422
|
}
|
|
426
423
|
function DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
427
|
-
this.
|
|
428
|
-
this.
|
|
429
|
-
this.
|
|
424
|
+
this.z3e_1 = $incomingJob;
|
|
425
|
+
this.a3f_1 = $outgoingJob;
|
|
426
|
+
this.b3f_1 = this$0;
|
|
430
427
|
CoroutineImpl.call(this, resultContinuation);
|
|
431
428
|
}
|
|
432
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
433
|
-
var tmp = this.
|
|
429
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).x1w = function ($this$launch, $completion) {
|
|
430
|
+
var tmp = this.y1w($this$launch, $completion);
|
|
434
431
|
tmp.c9_1 = Unit_instance;
|
|
435
432
|
tmp.d9_1 = null;
|
|
436
433
|
return tmp.i9();
|
|
437
434
|
};
|
|
438
435
|
protoOf(DefaultWebSocketSessionImpl$start$slambda).u9 = function (p1, $completion) {
|
|
439
|
-
return this.
|
|
436
|
+
return this.x1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
440
437
|
};
|
|
441
438
|
protoOf(DefaultWebSocketSessionImpl$start$slambda).i9 = function () {
|
|
442
439
|
var suspendResult = this.c9_1;
|
|
@@ -447,7 +444,7 @@
|
|
|
447
444
|
case 0:
|
|
448
445
|
this.b9_1 = 3;
|
|
449
446
|
this.a9_1 = 1;
|
|
450
|
-
suspendResult = this.
|
|
447
|
+
suspendResult = this.z3e_1.yt(this);
|
|
451
448
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
452
449
|
return suspendResult;
|
|
453
450
|
}
|
|
@@ -455,14 +452,14 @@
|
|
|
455
452
|
continue $sm;
|
|
456
453
|
case 1:
|
|
457
454
|
this.a9_1 = 2;
|
|
458
|
-
suspendResult = this.
|
|
455
|
+
suspendResult = this.a3f_1.yt(this);
|
|
459
456
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
460
457
|
return suspendResult;
|
|
461
458
|
}
|
|
462
459
|
|
|
463
460
|
continue $sm;
|
|
464
461
|
case 2:
|
|
465
|
-
this.
|
|
462
|
+
this.b3f_1.r3d_1.cu();
|
|
466
463
|
return Unit_instance;
|
|
467
464
|
case 3:
|
|
468
465
|
throw this.d9_1;
|
|
@@ -478,32 +475,32 @@
|
|
|
478
475
|
}
|
|
479
476
|
while (true);
|
|
480
477
|
};
|
|
481
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
482
|
-
var i = new DefaultWebSocketSessionImpl$start$slambda(this.
|
|
483
|
-
i.
|
|
478
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).y1w = function ($this$launch, completion) {
|
|
479
|
+
var i = new DefaultWebSocketSessionImpl$start$slambda(this.z3e_1, this.a3f_1, this.b3f_1, completion);
|
|
480
|
+
i.c3f_1 = $this$launch;
|
|
484
481
|
return i;
|
|
485
482
|
};
|
|
486
483
|
function DefaultWebSocketSessionImpl$start$slambda_0($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
487
484
|
var i = new DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation);
|
|
488
485
|
var l = function ($this$launch, $completion) {
|
|
489
|
-
return i.
|
|
486
|
+
return i.x1w($this$launch, $completion);
|
|
490
487
|
};
|
|
491
488
|
l.$arity = 1;
|
|
492
489
|
return l;
|
|
493
490
|
}
|
|
494
491
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation) {
|
|
495
|
-
this.
|
|
496
|
-
this.
|
|
492
|
+
this.l3f_1 = this$0;
|
|
493
|
+
this.m3f_1 = $ponger;
|
|
497
494
|
CoroutineImpl.call(this, resultContinuation);
|
|
498
495
|
}
|
|
499
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
500
|
-
var tmp = this.
|
|
496
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).x1w = function ($this$launch, $completion) {
|
|
497
|
+
var tmp = this.y1w($this$launch, $completion);
|
|
501
498
|
tmp.c9_1 = Unit_instance;
|
|
502
499
|
tmp.d9_1 = null;
|
|
503
500
|
return tmp.i9();
|
|
504
501
|
};
|
|
505
502
|
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).u9 = function (p1, $completion) {
|
|
506
|
-
return this.
|
|
503
|
+
return this.x1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
507
504
|
};
|
|
508
505
|
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).i9 = function () {
|
|
509
506
|
var suspendResult = this.c9_1;
|
|
@@ -513,10 +510,10 @@
|
|
|
513
510
|
switch (tmp) {
|
|
514
511
|
case 0:
|
|
515
512
|
this.b9_1 = 39;
|
|
516
|
-
this.
|
|
517
|
-
this.
|
|
518
|
-
this.
|
|
519
|
-
this.
|
|
513
|
+
this.x3f_1 = null;
|
|
514
|
+
this.q3f_1 = null;
|
|
515
|
+
this.p3f_1 = false;
|
|
516
|
+
this.r3f_1 = Unit_instance;
|
|
520
517
|
this.a9_1 = 1;
|
|
521
518
|
continue $sm;
|
|
522
519
|
case 1:
|
|
@@ -525,12 +522,12 @@
|
|
|
525
522
|
case 2:
|
|
526
523
|
this.b9_1 = 33;
|
|
527
524
|
this.b9_1 = 32;
|
|
528
|
-
this.
|
|
525
|
+
this.b3g_1 = this.l3f_1.o3d_1.l3c();
|
|
529
526
|
this.a9_1 = 3;
|
|
530
527
|
continue $sm;
|
|
531
528
|
case 3:
|
|
532
|
-
this.
|
|
533
|
-
this.
|
|
529
|
+
this.u3f_1 = this.b3g_1;
|
|
530
|
+
this.t3f_1 = null;
|
|
534
531
|
this.a9_1 = 4;
|
|
535
532
|
continue $sm;
|
|
536
533
|
case 4:
|
|
@@ -542,12 +539,12 @@
|
|
|
542
539
|
case 6:
|
|
543
540
|
this.b9_1 = 29;
|
|
544
541
|
this.b9_1 = 28;
|
|
545
|
-
this.
|
|
542
|
+
this.a3g_1 = this.u3f_1.t();
|
|
546
543
|
this.a9_1 = 7;
|
|
547
544
|
continue $sm;
|
|
548
545
|
case 7:
|
|
549
546
|
this.a9_1 = 8;
|
|
550
|
-
suspendResult = this.
|
|
547
|
+
suspendResult = this.a3g_1.x19(this);
|
|
551
548
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
552
549
|
return suspendResult;
|
|
553
550
|
}
|
|
@@ -559,24 +556,24 @@
|
|
|
559
556
|
continue $sm;
|
|
560
557
|
}
|
|
561
558
|
|
|
562
|
-
var e = this.
|
|
563
|
-
this.
|
|
559
|
+
var e = this.a3g_1.v();
|
|
560
|
+
this.z3f_1 = e;
|
|
564
561
|
this.a9_1 = 9;
|
|
565
562
|
continue $sm;
|
|
566
563
|
case 9:
|
|
567
|
-
this.
|
|
564
|
+
this.y3f_1 = this.z3f_1;
|
|
568
565
|
var this_0 = get_LOGGER();
|
|
569
566
|
if (get_isTraceEnabled(this_0)) {
|
|
570
|
-
this_0.
|
|
567
|
+
this_0.n2s('WebSocketSession(' + toString(this.n3f_1) + ') receiving frame ' + this.y3f_1.toString());
|
|
571
568
|
}
|
|
572
569
|
|
|
573
|
-
var tmp0_subject = this.
|
|
570
|
+
var tmp0_subject = this.y3f_1;
|
|
574
571
|
if (tmp0_subject instanceof Close) {
|
|
575
|
-
if (!this.
|
|
572
|
+
if (!this.l3f_1.m3c().z19()) {
|
|
576
573
|
this.a9_1 = 18;
|
|
577
|
-
var tmp_0 = this.
|
|
578
|
-
var tmp1_elvis_lhs = readReason(this.
|
|
579
|
-
suspendResult = tmp_0.
|
|
574
|
+
var tmp_0 = this.l3f_1.m3c();
|
|
575
|
+
var tmp1_elvis_lhs = readReason(this.y3f_1);
|
|
576
|
+
suspendResult = tmp_0.u1b(Close_init_$Create$(tmp1_elvis_lhs == null ? get_NORMAL_CLOSE() : tmp1_elvis_lhs), this);
|
|
580
577
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
581
578
|
return suspendResult;
|
|
582
579
|
}
|
|
@@ -587,14 +584,14 @@
|
|
|
587
584
|
}
|
|
588
585
|
} else {
|
|
589
586
|
if (tmp0_subject instanceof Pong) {
|
|
590
|
-
var tmp2_safe_receiver = this.
|
|
587
|
+
var tmp2_safe_receiver = this.l3f_1.p3d_1.kotlinx$atomicfu$value;
|
|
591
588
|
if (tmp2_safe_receiver == null) {
|
|
592
|
-
this.
|
|
589
|
+
this.w3f_1 = null;
|
|
593
590
|
this.a9_1 = 17;
|
|
594
591
|
continue $sm;
|
|
595
592
|
} else {
|
|
596
593
|
this.a9_1 = 16;
|
|
597
|
-
suspendResult = tmp2_safe_receiver.
|
|
594
|
+
suspendResult = tmp2_safe_receiver.u1b(this.y3f_1, this);
|
|
598
595
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
599
596
|
return suspendResult;
|
|
600
597
|
}
|
|
@@ -603,14 +600,14 @@
|
|
|
603
600
|
} else {
|
|
604
601
|
if (tmp0_subject instanceof Ping) {
|
|
605
602
|
this.a9_1 = 15;
|
|
606
|
-
suspendResult = this.
|
|
603
|
+
suspendResult = this.m3f_1.u1b(this.y3f_1, this);
|
|
607
604
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
608
605
|
return suspendResult;
|
|
609
606
|
}
|
|
610
607
|
continue $sm;
|
|
611
608
|
} else {
|
|
612
609
|
this.a9_1 = 10;
|
|
613
|
-
suspendResult = checkMaxFrameSize(this.
|
|
610
|
+
suspendResult = checkMaxFrameSize(this.l3f_1, this.q3f_1, this.y3f_1, this);
|
|
614
611
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
615
612
|
return suspendResult;
|
|
616
613
|
}
|
|
@@ -620,14 +617,14 @@
|
|
|
620
617
|
}
|
|
621
618
|
|
|
622
619
|
case 10:
|
|
623
|
-
if (!this.c3g_1
|
|
624
|
-
if (this.
|
|
625
|
-
this.
|
|
620
|
+
if (!this.y3f_1.c3g_1) {
|
|
621
|
+
if (this.x3f_1 == null) {
|
|
622
|
+
this.x3f_1 = this.y3f_1;
|
|
626
623
|
}
|
|
627
|
-
if (this.
|
|
628
|
-
this.
|
|
624
|
+
if (this.q3f_1 == null) {
|
|
625
|
+
this.q3f_1 = BytePacketBuilder();
|
|
629
626
|
}
|
|
630
|
-
writeFully(this.
|
|
627
|
+
writeFully(this.q3f_1, this.y3f_1.e3g_1);
|
|
631
628
|
this.a9_1 = 21;
|
|
632
629
|
continue $sm;
|
|
633
630
|
} else {
|
|
@@ -636,9 +633,9 @@
|
|
|
636
633
|
}
|
|
637
634
|
|
|
638
635
|
case 11:
|
|
639
|
-
if (this.
|
|
636
|
+
if (this.x3f_1 == null) {
|
|
640
637
|
this.a9_1 = 14;
|
|
641
|
-
suspendResult = this.
|
|
638
|
+
suspendResult = this.l3f_1.t3d_1.u1b(processIncomingExtensions(this.l3f_1, this.y3f_1), this);
|
|
642
639
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
643
640
|
return suspendResult;
|
|
644
641
|
}
|
|
@@ -649,11 +646,11 @@
|
|
|
649
646
|
}
|
|
650
647
|
|
|
651
648
|
case 12:
|
|
652
|
-
writeFully(ensureNotNull(this.
|
|
653
|
-
var defragmented = Companion_getInstance_5().
|
|
654
|
-
this.
|
|
649
|
+
writeFully(ensureNotNull(this.q3f_1), this.y3f_1.e3g_1);
|
|
650
|
+
var defragmented = Companion_getInstance_5().k3g(true, this.x3f_1.d3g_1, readByteArray(build(this.q3f_1)), this.x3f_1.g3g_1, this.x3f_1.h3g_1, this.x3f_1.i3g_1);
|
|
651
|
+
this.x3f_1 = null;
|
|
655
652
|
this.a9_1 = 13;
|
|
656
|
-
suspendResult = this.
|
|
653
|
+
suspendResult = this.l3f_1.t3d_1.u1b(processIncomingExtensions(this.l3f_1, defragmented), this);
|
|
657
654
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
658
655
|
return suspendResult;
|
|
659
656
|
}
|
|
@@ -661,7 +658,7 @@
|
|
|
661
658
|
continue $sm;
|
|
662
659
|
case 13:
|
|
663
660
|
var tmp_1 = this;
|
|
664
|
-
tmp_1.
|
|
661
|
+
tmp_1.v3f_1 = Unit_instance;
|
|
665
662
|
this.a9_1 = 20;
|
|
666
663
|
continue $sm;
|
|
667
664
|
case 14:
|
|
@@ -669,23 +666,23 @@
|
|
|
669
666
|
continue $sm;
|
|
670
667
|
case 15:
|
|
671
668
|
var tmp_2 = this;
|
|
672
|
-
tmp_2.
|
|
669
|
+
tmp_2.v3f_1 = Unit_instance;
|
|
673
670
|
this.a9_1 = 20;
|
|
674
671
|
continue $sm;
|
|
675
672
|
case 16:
|
|
676
673
|
var tmp_3 = this;
|
|
677
|
-
tmp_3.
|
|
674
|
+
tmp_3.w3f_1 = Unit_instance;
|
|
678
675
|
this.a9_1 = 17;
|
|
679
676
|
continue $sm;
|
|
680
677
|
case 17:
|
|
681
|
-
this.
|
|
678
|
+
this.v3f_1 = this.w3f_1;
|
|
682
679
|
this.a9_1 = 20;
|
|
683
680
|
continue $sm;
|
|
684
681
|
case 18:
|
|
685
682
|
this.a9_1 = 19;
|
|
686
683
|
continue $sm;
|
|
687
684
|
case 19:
|
|
688
|
-
this.
|
|
685
|
+
this.p3f_1 = true;
|
|
689
686
|
this.a9_1 = 22;
|
|
690
687
|
var tmp_4 = this;
|
|
691
688
|
continue $sm;
|
|
@@ -702,24 +699,24 @@
|
|
|
702
699
|
continue $sm;
|
|
703
700
|
case 22:
|
|
704
701
|
this.b9_1 = 32;
|
|
705
|
-
cancelConsumed(this.
|
|
702
|
+
cancelConsumed(this.u3f_1, this.t3f_1);
|
|
706
703
|
this.b9_1 = 39;
|
|
707
704
|
this.a9_1 = 23;
|
|
708
705
|
continue $sm;
|
|
709
706
|
case 23:
|
|
710
707
|
this.b9_1 = 39;
|
|
711
|
-
this.
|
|
712
|
-
var tmp0_safe_receiver = this.
|
|
708
|
+
this.m3f_1.c1c();
|
|
709
|
+
var tmp0_safe_receiver = this.q3f_1;
|
|
713
710
|
if (tmp0_safe_receiver == null)
|
|
714
711
|
null;
|
|
715
712
|
else {
|
|
716
713
|
tmp0_safe_receiver.l4();
|
|
717
714
|
}
|
|
718
715
|
|
|
719
|
-
this.
|
|
720
|
-
if (!this.
|
|
716
|
+
this.l3f_1.t3d_1.c1c();
|
|
717
|
+
if (!this.p3f_1) {
|
|
721
718
|
this.a9_1 = 24;
|
|
722
|
-
suspendResult = close(this.
|
|
719
|
+
suspendResult = close(this.l3f_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
723
720
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
724
721
|
return suspendResult;
|
|
725
722
|
}
|
|
@@ -741,7 +738,7 @@
|
|
|
741
738
|
continue $sm;
|
|
742
739
|
case 27:
|
|
743
740
|
this.b9_1 = 32;
|
|
744
|
-
cancelConsumed(this.
|
|
741
|
+
cancelConsumed(this.u3f_1, this.t3f_1);
|
|
745
742
|
this.a9_1 = 31;
|
|
746
743
|
continue $sm;
|
|
747
744
|
case 28:
|
|
@@ -750,7 +747,7 @@
|
|
|
750
747
|
if (tmp_7 instanceof Error) {
|
|
751
748
|
var e_0 = this.d9_1;
|
|
752
749
|
var tmp_8 = this;
|
|
753
|
-
this.
|
|
750
|
+
this.t3f_1 = e_0;
|
|
754
751
|
throw e_0;
|
|
755
752
|
} else {
|
|
756
753
|
throw this.d9_1;
|
|
@@ -759,11 +756,11 @@
|
|
|
759
756
|
case 29:
|
|
760
757
|
this.b9_1 = 32;
|
|
761
758
|
var t = this.d9_1;
|
|
762
|
-
cancelConsumed(this.
|
|
759
|
+
cancelConsumed(this.u3f_1, this.t3f_1);
|
|
763
760
|
throw t;
|
|
764
761
|
case 30:
|
|
765
762
|
this.b9_1 = 32;
|
|
766
|
-
cancelConsumed(this.
|
|
763
|
+
cancelConsumed(this.u3f_1, this.t3f_1);
|
|
767
764
|
if (false) {
|
|
768
765
|
this.a9_1 = 3;
|
|
769
766
|
continue $sm;
|
|
@@ -772,7 +769,7 @@
|
|
|
772
769
|
this.a9_1 = 31;
|
|
773
770
|
continue $sm;
|
|
774
771
|
case 31:
|
|
775
|
-
this.
|
|
772
|
+
this.r3f_1 = Unit_instance;
|
|
776
773
|
this.b9_1 = 39;
|
|
777
774
|
this.a9_1 = 36;
|
|
778
775
|
continue $sm;
|
|
@@ -782,7 +779,7 @@
|
|
|
782
779
|
if (tmp_9 instanceof ClosedSendChannelException) {
|
|
783
780
|
var _unused_var__etf5q3 = this.d9_1;
|
|
784
781
|
var tmp_10 = this;
|
|
785
|
-
tmp_10.
|
|
782
|
+
tmp_10.r3f_1 = Unit_instance;
|
|
786
783
|
this.b9_1 = 39;
|
|
787
784
|
this.a9_1 = 36;
|
|
788
785
|
continue $sm;
|
|
@@ -791,8 +788,8 @@
|
|
|
791
788
|
if (tmp_11 instanceof Error) {
|
|
792
789
|
var cause = this.d9_1;
|
|
793
790
|
var tmp_12 = this;
|
|
794
|
-
this.
|
|
795
|
-
tmp_12.
|
|
791
|
+
this.m3f_1.c1c();
|
|
792
|
+
tmp_12.r3f_1 = this.l3f_1.t3d_1.a1c(cause);
|
|
796
793
|
this.b9_1 = 39;
|
|
797
794
|
this.a9_1 = 36;
|
|
798
795
|
continue $sm;
|
|
@@ -803,19 +800,19 @@
|
|
|
803
800
|
|
|
804
801
|
case 33:
|
|
805
802
|
this.b9_1 = 39;
|
|
806
|
-
this.
|
|
807
|
-
this.
|
|
808
|
-
var tmp0_safe_receiver_0 = this.
|
|
803
|
+
this.s3f_1 = this.d9_1;
|
|
804
|
+
this.m3f_1.c1c();
|
|
805
|
+
var tmp0_safe_receiver_0 = this.q3f_1;
|
|
809
806
|
if (tmp0_safe_receiver_0 == null)
|
|
810
807
|
null;
|
|
811
808
|
else {
|
|
812
809
|
tmp0_safe_receiver_0.l4();
|
|
813
810
|
}
|
|
814
811
|
|
|
815
|
-
this.
|
|
816
|
-
if (!this.
|
|
812
|
+
this.l3f_1.t3d_1.c1c();
|
|
813
|
+
if (!this.p3f_1) {
|
|
817
814
|
this.a9_1 = 34;
|
|
818
|
-
suspendResult = close(this.
|
|
815
|
+
suspendResult = close(this.l3f_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
819
816
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
820
817
|
return suspendResult;
|
|
821
818
|
}
|
|
@@ -829,22 +826,22 @@
|
|
|
829
826
|
this.a9_1 = 35;
|
|
830
827
|
continue $sm;
|
|
831
828
|
case 35:
|
|
832
|
-
throw this.
|
|
829
|
+
throw this.s3f_1;
|
|
833
830
|
case 36:
|
|
834
|
-
this.
|
|
831
|
+
this.o3f_1 = this.r3f_1;
|
|
835
832
|
this.b9_1 = 39;
|
|
836
|
-
this.
|
|
837
|
-
var tmp0_safe_receiver_1 = this.
|
|
833
|
+
this.m3f_1.c1c();
|
|
834
|
+
var tmp0_safe_receiver_1 = this.q3f_1;
|
|
838
835
|
if (tmp0_safe_receiver_1 == null)
|
|
839
836
|
null;
|
|
840
837
|
else {
|
|
841
838
|
tmp0_safe_receiver_1.l4();
|
|
842
839
|
}
|
|
843
840
|
|
|
844
|
-
this.
|
|
845
|
-
if (!this.
|
|
841
|
+
this.l3f_1.t3d_1.c1c();
|
|
842
|
+
if (!this.p3f_1) {
|
|
846
843
|
this.a9_1 = 37;
|
|
847
|
-
suspendResult = close(this.
|
|
844
|
+
suspendResult = close(this.l3f_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
848
845
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
849
846
|
return suspendResult;
|
|
850
847
|
}
|
|
@@ -873,31 +870,31 @@
|
|
|
873
870
|
}
|
|
874
871
|
while (true);
|
|
875
872
|
};
|
|
876
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
877
|
-
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.
|
|
878
|
-
i.
|
|
873
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).y1w = function ($this$launch, completion) {
|
|
874
|
+
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.l3f_1, this.m3f_1, completion);
|
|
875
|
+
i.n3f_1 = $this$launch;
|
|
879
876
|
return i;
|
|
880
877
|
};
|
|
881
878
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0(this$0, $ponger, resultContinuation) {
|
|
882
879
|
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation);
|
|
883
880
|
var l = function ($this$launch, $completion) {
|
|
884
|
-
return i.
|
|
881
|
+
return i.x1w($this$launch, $completion);
|
|
885
882
|
};
|
|
886
883
|
l.$arity = 1;
|
|
887
884
|
return l;
|
|
888
885
|
}
|
|
889
886
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation) {
|
|
890
|
-
this.
|
|
887
|
+
this.t3g_1 = this$0;
|
|
891
888
|
CoroutineImpl.call(this, resultContinuation);
|
|
892
889
|
}
|
|
893
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
894
|
-
var tmp = this.
|
|
890
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).x1w = function ($this$launch, $completion) {
|
|
891
|
+
var tmp = this.y1w($this$launch, $completion);
|
|
895
892
|
tmp.c9_1 = Unit_instance;
|
|
896
893
|
tmp.d9_1 = null;
|
|
897
894
|
return tmp.i9();
|
|
898
895
|
};
|
|
899
896
|
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).u9 = function (p1, $completion) {
|
|
900
|
-
return this.
|
|
897
|
+
return this.x1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
901
898
|
};
|
|
902
899
|
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).i9 = function () {
|
|
903
900
|
var suspendResult = this.c9_1;
|
|
@@ -916,7 +913,7 @@
|
|
|
916
913
|
this.b9_1 = 9;
|
|
917
914
|
this.b9_1 = 4;
|
|
918
915
|
this.a9_1 = 3;
|
|
919
|
-
suspendResult = outgoingProcessorLoop(this.
|
|
916
|
+
suspendResult = outgoingProcessorLoop(this.t3g_1, this);
|
|
920
917
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
921
918
|
return suspendResult;
|
|
922
919
|
}
|
|
@@ -946,7 +943,7 @@
|
|
|
946
943
|
if (tmp_2 instanceof CancellationException) {
|
|
947
944
|
var _unused_var__etf5q3_1 = this.d9_1;
|
|
948
945
|
this.a9_1 = 5;
|
|
949
|
-
suspendResult = sendCloseSequence
|
|
946
|
+
suspendResult = sendCloseSequence(this.t3g_1, CloseReason_init_$Create$(Codes_NORMAL_getInstance(), ''), VOID, this);
|
|
950
947
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
951
948
|
return suspendResult;
|
|
952
949
|
}
|
|
@@ -962,9 +959,9 @@
|
|
|
962
959
|
var tmp_4 = this.d9_1;
|
|
963
960
|
if (tmp_4 instanceof Error) {
|
|
964
961
|
var cause = this.d9_1;
|
|
965
|
-
this.
|
|
962
|
+
this.t3g_1.u3d_1.bu(CancellationException_init_$Create$('Failed to send frame', cause));
|
|
966
963
|
this.a9_1 = 6;
|
|
967
|
-
suspendResult = closeExceptionally(this.
|
|
964
|
+
suspendResult = closeExceptionally(this.t3g_1.o3d_1, cause, this);
|
|
968
965
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
969
966
|
return suspendResult;
|
|
970
967
|
}
|
|
@@ -987,9 +984,9 @@
|
|
|
987
984
|
continue $sm;
|
|
988
985
|
case 7:
|
|
989
986
|
this.b9_1 = 13;
|
|
990
|
-
this.
|
|
987
|
+
this.t3g_1.u3d_1.e1c();
|
|
991
988
|
this.a9_1 = 8;
|
|
992
|
-
suspendResult = close(this.
|
|
989
|
+
suspendResult = close(this.t3g_1.o3d_1, VOID, this);
|
|
993
990
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
994
991
|
return suspendResult;
|
|
995
992
|
}
|
|
@@ -999,22 +996,22 @@
|
|
|
999
996
|
return Unit_instance;
|
|
1000
997
|
case 9:
|
|
1001
998
|
this.b9_1 = 13;
|
|
1002
|
-
this.
|
|
1003
|
-
this.
|
|
999
|
+
this.v3g_1 = this.d9_1;
|
|
1000
|
+
this.t3g_1.u3d_1.e1c();
|
|
1004
1001
|
this.a9_1 = 10;
|
|
1005
|
-
suspendResult = close(this.
|
|
1002
|
+
suspendResult = close(this.t3g_1.o3d_1, VOID, this);
|
|
1006
1003
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1007
1004
|
return suspendResult;
|
|
1008
1005
|
}
|
|
1009
1006
|
|
|
1010
1007
|
continue $sm;
|
|
1011
1008
|
case 10:
|
|
1012
|
-
throw this.
|
|
1009
|
+
throw this.v3g_1;
|
|
1013
1010
|
case 11:
|
|
1014
1011
|
this.b9_1 = 13;
|
|
1015
|
-
this.
|
|
1012
|
+
this.t3g_1.u3d_1.e1c();
|
|
1016
1013
|
this.a9_1 = 12;
|
|
1017
|
-
suspendResult = close(this.
|
|
1014
|
+
suspendResult = close(this.t3g_1.o3d_1, VOID, this);
|
|
1018
1015
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1019
1016
|
return suspendResult;
|
|
1020
1017
|
}
|
|
@@ -1036,31 +1033,31 @@
|
|
|
1036
1033
|
}
|
|
1037
1034
|
while (true);
|
|
1038
1035
|
};
|
|
1039
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
1040
|
-
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.
|
|
1041
|
-
i.
|
|
1036
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).y1w = function ($this$launch, completion) {
|
|
1037
|
+
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.t3g_1, completion);
|
|
1038
|
+
i.u3g_1 = $this$launch;
|
|
1042
1039
|
return i;
|
|
1043
1040
|
};
|
|
1044
1041
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0(this$0, resultContinuation) {
|
|
1045
1042
|
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation);
|
|
1046
1043
|
var l = function ($this$launch, $completion) {
|
|
1047
|
-
return i.
|
|
1044
|
+
return i.x1w($this$launch, $completion);
|
|
1048
1045
|
};
|
|
1049
1046
|
l.$arity = 1;
|
|
1050
1047
|
return l;
|
|
1051
1048
|
}
|
|
1052
1049
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation) {
|
|
1053
|
-
this.
|
|
1050
|
+
this.e3h_1 = this$0;
|
|
1054
1051
|
CoroutineImpl.call(this, resultContinuation);
|
|
1055
1052
|
}
|
|
1056
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1057
|
-
var tmp = this.
|
|
1053
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).g3h = function (it, $completion) {
|
|
1054
|
+
var tmp = this.h3h(it, $completion);
|
|
1058
1055
|
tmp.c9_1 = Unit_instance;
|
|
1059
1056
|
tmp.d9_1 = null;
|
|
1060
1057
|
return tmp.i9();
|
|
1061
1058
|
};
|
|
1062
1059
|
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).u9 = function (p1, $completion) {
|
|
1063
|
-
return this.
|
|
1060
|
+
return this.g3h(p1 instanceof CloseReason ? p1 : THROW_CCE(), $completion);
|
|
1064
1061
|
};
|
|
1065
1062
|
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).i9 = function () {
|
|
1066
1063
|
var suspendResult = this.c9_1;
|
|
@@ -1071,7 +1068,7 @@
|
|
|
1071
1068
|
case 0:
|
|
1072
1069
|
this.b9_1 = 2;
|
|
1073
1070
|
this.a9_1 = 1;
|
|
1074
|
-
suspendResult = sendCloseSequence(this.
|
|
1071
|
+
suspendResult = sendCloseSequence(this.e3h_1, this.f3h_1, IOException_init_$Create$('Ping timeout'), this);
|
|
1075
1072
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1076
1073
|
return suspendResult;
|
|
1077
1074
|
}
|
|
@@ -1093,22 +1090,22 @@
|
|
|
1093
1090
|
}
|
|
1094
1091
|
while (true);
|
|
1095
1092
|
};
|
|
1096
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1097
|
-
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.
|
|
1098
|
-
i.
|
|
1093
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).h3h = function (it, completion) {
|
|
1094
|
+
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.e3h_1, completion);
|
|
1095
|
+
i.f3h_1 = it;
|
|
1099
1096
|
return i;
|
|
1100
1097
|
};
|
|
1101
1098
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0(this$0, resultContinuation) {
|
|
1102
1099
|
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation);
|
|
1103
1100
|
var l = function (it, $completion) {
|
|
1104
|
-
return i.
|
|
1101
|
+
return i.g3h(it, $completion);
|
|
1105
1102
|
};
|
|
1106
1103
|
l.$arity = 1;
|
|
1107
1104
|
return l;
|
|
1108
1105
|
}
|
|
1109
1106
|
function $outgoingProcessorLoopCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1110
1107
|
CoroutineImpl.call(this, resultContinuation);
|
|
1111
|
-
this.
|
|
1108
|
+
this.z3c_1 = _this__u8e3s4;
|
|
1112
1109
|
}
|
|
1113
1110
|
protoOf($outgoingProcessorLoopCOROUTINE$).i9 = function () {
|
|
1114
1111
|
var suspendResult = this.c9_1;
|
|
@@ -1118,12 +1115,12 @@
|
|
|
1118
1115
|
switch (tmp) {
|
|
1119
1116
|
case 0:
|
|
1120
1117
|
this.b9_1 = 7;
|
|
1121
|
-
this.
|
|
1118
|
+
this.b3d_1 = this.z3c_1.u3d_1.t();
|
|
1122
1119
|
this.a9_1 = 1;
|
|
1123
1120
|
continue $sm;
|
|
1124
1121
|
case 1:
|
|
1125
1122
|
this.a9_1 = 2;
|
|
1126
|
-
suspendResult = this.
|
|
1123
|
+
suspendResult = this.b3d_1.x19(this);
|
|
1127
1124
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1128
1125
|
return suspendResult;
|
|
1129
1126
|
}
|
|
@@ -1135,15 +1132,15 @@
|
|
|
1135
1132
|
continue $sm;
|
|
1136
1133
|
}
|
|
1137
1134
|
|
|
1138
|
-
var frame = this.
|
|
1135
|
+
var frame = this.b3d_1.v();
|
|
1139
1136
|
var this_0 = get_LOGGER();
|
|
1140
1137
|
if (get_isTraceEnabled(this_0)) {
|
|
1141
|
-
this_0.
|
|
1138
|
+
this_0.n2s('Sending ' + frame.toString() + ' from session ' + toString(this.z3c_1));
|
|
1142
1139
|
}
|
|
1143
1140
|
|
|
1144
1141
|
if (frame instanceof Close) {
|
|
1145
1142
|
this.a9_1 = 3;
|
|
1146
|
-
suspendResult = sendCloseSequence
|
|
1143
|
+
suspendResult = sendCloseSequence(this.z3c_1, readReason(frame), VOID, this);
|
|
1147
1144
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1148
1145
|
return suspendResult;
|
|
1149
1146
|
}
|
|
@@ -1156,11 +1153,11 @@
|
|
|
1156
1153
|
tmp_0 = frame instanceof Binary;
|
|
1157
1154
|
}
|
|
1158
1155
|
if (tmp_0) {
|
|
1159
|
-
this.
|
|
1156
|
+
this.a3d_1 = processOutgoingExtensions(this.z3c_1, frame);
|
|
1160
1157
|
this.a9_1 = 4;
|
|
1161
1158
|
continue $sm;
|
|
1162
1159
|
} else {
|
|
1163
|
-
this.
|
|
1160
|
+
this.a3d_1 = frame;
|
|
1164
1161
|
this.a9_1 = 4;
|
|
1165
1162
|
continue $sm;
|
|
1166
1163
|
}
|
|
@@ -1171,9 +1168,9 @@
|
|
|
1171
1168
|
var tmp_1 = this;
|
|
1172
1169
|
continue $sm;
|
|
1173
1170
|
case 4:
|
|
1174
|
-
var processedFrame = this.
|
|
1171
|
+
var processedFrame = this.a3d_1;
|
|
1175
1172
|
this.a9_1 = 5;
|
|
1176
|
-
suspendResult = this.
|
|
1173
|
+
suspendResult = this.z3c_1.o3d_1.m3c().u1b(processedFrame, this);
|
|
1177
1174
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1178
1175
|
return suspendResult;
|
|
1179
1176
|
}
|
|
@@ -1200,9 +1197,9 @@
|
|
|
1200
1197
|
};
|
|
1201
1198
|
function $sendCloseSequenceCOROUTINE$(_this__u8e3s4, reason, exception, resultContinuation) {
|
|
1202
1199
|
CoroutineImpl.call(this, resultContinuation);
|
|
1203
|
-
this.
|
|
1204
|
-
this.
|
|
1205
|
-
this.
|
|
1200
|
+
this.k3d_1 = _this__u8e3s4;
|
|
1201
|
+
this.l3d_1 = reason;
|
|
1202
|
+
this.m3d_1 = exception;
|
|
1206
1203
|
}
|
|
1207
1204
|
protoOf($sendCloseSequenceCOROUTINE$).i9 = function () {
|
|
1208
1205
|
var suspendResult = this.c9_1;
|
|
@@ -1212,25 +1209,25 @@
|
|
|
1212
1209
|
switch (tmp) {
|
|
1213
1210
|
case 0:
|
|
1214
1211
|
this.b9_1 = 6;
|
|
1215
|
-
if (!tryClose(this.
|
|
1212
|
+
if (!tryClose(this.k3d_1))
|
|
1216
1213
|
return Unit_instance;
|
|
1217
1214
|
var this_0 = get_LOGGER();
|
|
1218
1215
|
if (get_isTraceEnabled(this_0)) {
|
|
1219
|
-
this_0.
|
|
1216
|
+
this_0.n2s('Sending Close Sequence for session ' + toString(this.k3d_1) + ' with reason ' + toString_0(this.l3d_1) + ' and exception ' + toString_0(this.m3d_1));
|
|
1220
1217
|
}
|
|
1221
1218
|
|
|
1222
|
-
this.
|
|
1219
|
+
this.k3d_1.r3d_1.c11();
|
|
1223
1220
|
var tmp_0 = this;
|
|
1224
|
-
var tmp0_elvis_lhs = this.
|
|
1225
|
-
tmp_0.
|
|
1221
|
+
var tmp0_elvis_lhs = this.l3d_1;
|
|
1222
|
+
tmp_0.n3d_1 = tmp0_elvis_lhs == null ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : tmp0_elvis_lhs;
|
|
1226
1223
|
this.a9_1 = 1;
|
|
1227
1224
|
continue $sm;
|
|
1228
1225
|
case 1:
|
|
1229
1226
|
this.b9_1 = 5;
|
|
1230
|
-
runOrCancelPinger(this.
|
|
1231
|
-
if (!(this.
|
|
1227
|
+
runOrCancelPinger(this.k3d_1);
|
|
1228
|
+
if (!(this.n3d_1.f3c_1 === Codes_CLOSED_ABNORMALLY_getInstance().b3c_1)) {
|
|
1232
1229
|
this.a9_1 = 2;
|
|
1233
|
-
suspendResult = this.o3d_1.
|
|
1230
|
+
suspendResult = this.k3d_1.o3d_1.m3c().u1b(Close_init_$Create$(this.n3d_1), this);
|
|
1234
1231
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1235
1232
|
return suspendResult;
|
|
1236
1233
|
}
|
|
@@ -1249,20 +1246,20 @@
|
|
|
1249
1246
|
continue $sm;
|
|
1250
1247
|
case 4:
|
|
1251
1248
|
this.b9_1 = 6;
|
|
1252
|
-
this.
|
|
1253
|
-
if (!(this.
|
|
1254
|
-
this.
|
|
1255
|
-
this.
|
|
1249
|
+
this.k3d_1.q3d_1.a11(this.n3d_1);
|
|
1250
|
+
if (!(this.m3d_1 == null)) {
|
|
1251
|
+
this.k3d_1.u3d_1.a1c(this.m3d_1);
|
|
1252
|
+
this.k3d_1.t3d_1.a1c(this.m3d_1);
|
|
1256
1253
|
}
|
|
1257
1254
|
|
|
1258
1255
|
return Unit_instance;
|
|
1259
1256
|
case 5:
|
|
1260
1257
|
this.b9_1 = 6;
|
|
1261
1258
|
var t = this.d9_1;
|
|
1262
|
-
this.
|
|
1263
|
-
if (!(this.
|
|
1264
|
-
this.
|
|
1265
|
-
this.
|
|
1259
|
+
this.k3d_1.q3d_1.a11(this.n3d_1);
|
|
1260
|
+
if (!(this.m3d_1 == null)) {
|
|
1261
|
+
this.k3d_1.u3d_1.a1c(this.m3d_1);
|
|
1262
|
+
this.k3d_1.t3d_1.a1c(this.m3d_1);
|
|
1266
1263
|
}
|
|
1267
1264
|
|
|
1268
1265
|
throw t;
|
|
@@ -1282,9 +1279,9 @@
|
|
|
1282
1279
|
};
|
|
1283
1280
|
function $checkMaxFrameSizeCOROUTINE$(_this__u8e3s4, packet, frame, resultContinuation) {
|
|
1284
1281
|
CoroutineImpl.call(this, resultContinuation);
|
|
1285
|
-
this.
|
|
1286
|
-
this.
|
|
1287
|
-
this.
|
|
1282
|
+
this.k3e_1 = _this__u8e3s4;
|
|
1283
|
+
this.l3e_1 = packet;
|
|
1284
|
+
this.m3e_1 = frame;
|
|
1288
1285
|
}
|
|
1289
1286
|
protoOf($checkMaxFrameSizeCOROUTINE$).i9 = function () {
|
|
1290
1287
|
var suspendResult = this.c9_1;
|
|
@@ -1295,19 +1292,19 @@
|
|
|
1295
1292
|
case 0:
|
|
1296
1293
|
this.b9_1 = 3;
|
|
1297
1294
|
var tmp_0 = this;
|
|
1298
|
-
var tmp_1 = this.
|
|
1299
|
-
var tmp0_safe_receiver = this.
|
|
1295
|
+
var tmp_1 = this.m3e_1.e3g_1.length;
|
|
1296
|
+
var tmp0_safe_receiver = this.l3e_1;
|
|
1300
1297
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_size(tmp0_safe_receiver);
|
|
1301
|
-
tmp_0.
|
|
1302
|
-
if (fromInt(this.
|
|
1303
|
-
var tmp2_safe_receiver = this.
|
|
1298
|
+
tmp_0.n3e_1 = tmp_1 + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
1299
|
+
if (fromInt(this.n3e_1) > this.k3e_1.k3c()) {
|
|
1300
|
+
var tmp2_safe_receiver = this.l3e_1;
|
|
1304
1301
|
if (tmp2_safe_receiver == null)
|
|
1305
1302
|
null;
|
|
1306
1303
|
else {
|
|
1307
1304
|
tmp2_safe_receiver.l4();
|
|
1308
1305
|
}
|
|
1309
1306
|
this.a9_1 = 2;
|
|
1310
|
-
suspendResult = close(this.
|
|
1307
|
+
suspendResult = close(this.k3e_1, CloseReason_init_$Create$(Codes_TOO_BIG_getInstance(), 'Frame is too big: ' + this.n3e_1 + '. Max size is ' + this.k3e_1.k3c().toString()), this);
|
|
1311
1308
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1312
1309
|
return suspendResult;
|
|
1313
1310
|
}
|
|
@@ -1320,7 +1317,7 @@
|
|
|
1320
1317
|
case 1:
|
|
1321
1318
|
return Unit_instance;
|
|
1322
1319
|
case 2:
|
|
1323
|
-
throw new FrameTooBigException(fromInt(this.
|
|
1320
|
+
throw new FrameTooBigException(fromInt(this.n3e_1));
|
|
1324
1321
|
case 3:
|
|
1325
1322
|
throw this.d9_1;
|
|
1326
1323
|
}
|
|
@@ -1337,42 +1334,42 @@
|
|
|
1337
1334
|
};
|
|
1338
1335
|
function DefaultWebSocketSessionImpl(raw, pingIntervalMillis, timeoutMillis, incomingFramesConfig, outgoingFramesConfig) {
|
|
1339
1336
|
Companion_getInstance_0();
|
|
1340
|
-
this.
|
|
1341
|
-
this.
|
|
1342
|
-
this.
|
|
1343
|
-
this.
|
|
1344
|
-
this.
|
|
1345
|
-
this.
|
|
1346
|
-
this.
|
|
1347
|
-
this.
|
|
1337
|
+
this.o3d_1 = raw;
|
|
1338
|
+
this.p3d_1 = atomic$ref$1(null);
|
|
1339
|
+
this.q3d_1 = CompletableDeferred();
|
|
1340
|
+
this.r3d_1 = Job();
|
|
1341
|
+
this.s3d_1 = this.o3d_1.ss().wg(Key_instance).yg(this.r3d_1).yg(new CoroutineName('ws-default'));
|
|
1342
|
+
this.t3d_1 = from(Factory_getInstance(), incomingFramesConfig);
|
|
1343
|
+
this.u3d_1 = from(Factory_getInstance(), outgoingFramesConfig);
|
|
1344
|
+
this.v3d_1 = atomic$boolean$1(false);
|
|
1348
1345
|
var tmp = this;
|
|
1349
1346
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1350
|
-
tmp.
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1353
|
-
this.
|
|
1354
|
-
this.
|
|
1347
|
+
tmp.w3d_1 = ArrayList_init_$Create$();
|
|
1348
|
+
this.x3d_1 = atomic$boolean$1(false);
|
|
1349
|
+
this.y3d_1 = pingIntervalMillis;
|
|
1350
|
+
this.z3d_1 = timeoutMillis;
|
|
1351
|
+
this.a3e_1 = this.q3d_1;
|
|
1355
1352
|
}
|
|
1356
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1357
|
-
return this.
|
|
1353
|
+
protoOf(DefaultWebSocketSessionImpl).ss = function () {
|
|
1354
|
+
return this.s3d_1;
|
|
1358
1355
|
};
|
|
1359
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1360
|
-
return this.
|
|
1356
|
+
protoOf(DefaultWebSocketSessionImpl).l3c = function () {
|
|
1357
|
+
return this.t3d_1;
|
|
1361
1358
|
};
|
|
1362
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1363
|
-
return this.
|
|
1359
|
+
protoOf(DefaultWebSocketSessionImpl).m3c = function () {
|
|
1360
|
+
return this.u3d_1;
|
|
1364
1361
|
};
|
|
1365
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1366
|
-
return this.
|
|
1362
|
+
protoOf(DefaultWebSocketSessionImpl).o3e = function () {
|
|
1363
|
+
return this.w3d_1;
|
|
1367
1364
|
};
|
|
1368
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1369
|
-
this.
|
|
1365
|
+
protoOf(DefaultWebSocketSessionImpl).j3c = function (value) {
|
|
1366
|
+
this.o3d_1.j3c(value);
|
|
1370
1367
|
};
|
|
1371
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1372
|
-
return this.
|
|
1368
|
+
protoOf(DefaultWebSocketSessionImpl).k3c = function () {
|
|
1369
|
+
return this.o3d_1.k3c();
|
|
1373
1370
|
};
|
|
1374
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1375
|
-
if (!this.
|
|
1371
|
+
protoOf(DefaultWebSocketSessionImpl).i3c = function (negotiatedExtensions) {
|
|
1372
|
+
if (!this.x3d_1.atomicfu$compareAndSet(false, true)) {
|
|
1376
1373
|
// Inline function 'kotlin.error' call
|
|
1377
1374
|
var message = 'WebSocket session ' + toString(this) + ' is already started.';
|
|
1378
1375
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -1380,17 +1377,17 @@
|
|
|
1380
1377
|
// Inline function 'io.ktor.util.logging.trace' call
|
|
1381
1378
|
var this_0 = get_LOGGER();
|
|
1382
1379
|
if (get_isTraceEnabled(this_0)) {
|
|
1383
|
-
var tmp$ret$
|
|
1384
|
-
this_0.
|
|
1380
|
+
var tmp$ret$2 = 'Starting default WebSocketSession(' + toString(this) + ') ' + ('with negotiated extensions: ' + joinToString(negotiatedExtensions));
|
|
1381
|
+
this_0.n2s(tmp$ret$2);
|
|
1385
1382
|
}
|
|
1386
|
-
this.
|
|
1383
|
+
this.w3d_1.n1(negotiatedExtensions);
|
|
1387
1384
|
runOrCancelPinger(this);
|
|
1388
|
-
var incomingJob = runIncomingProcessor(this, ponger(this, this.
|
|
1385
|
+
var incomingJob = runIncomingProcessor(this, ponger(this, this.m3c()));
|
|
1389
1386
|
var outgoingJob = runOutgoingProcessor(this);
|
|
1390
1387
|
launch(this, VOID, VOID, DefaultWebSocketSessionImpl$start$slambda_0(incomingJob, outgoingJob, this, null));
|
|
1391
1388
|
};
|
|
1392
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1393
|
-
return this.
|
|
1389
|
+
protoOf(DefaultWebSocketSessionImpl).r1n = function ($completion) {
|
|
1390
|
+
return this.o3d_1.r1n($completion);
|
|
1394
1391
|
};
|
|
1395
1392
|
var properties_initialized_DefaultWebSocketSession_kt_6cjlhc;
|
|
1396
1393
|
function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
@@ -1412,20 +1409,20 @@
|
|
|
1412
1409
|
}
|
|
1413
1410
|
}
|
|
1414
1411
|
function readReason(_this__u8e3s4) {
|
|
1415
|
-
if (_this__u8e3s4.
|
|
1412
|
+
if (_this__u8e3s4.e3g_1.length < 2) {
|
|
1416
1413
|
return null;
|
|
1417
1414
|
}
|
|
1418
1415
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1419
1416
|
var builder = new Buffer();
|
|
1420
|
-
writeFully(builder, _this__u8e3s4.
|
|
1417
|
+
writeFully(builder, _this__u8e3s4.e3g_1);
|
|
1421
1418
|
var packet = builder;
|
|
1422
|
-
var code = packet.
|
|
1419
|
+
var code = packet.up();
|
|
1423
1420
|
var message = readText(packet);
|
|
1424
1421
|
return new CloseReason(code, message);
|
|
1425
1422
|
}
|
|
1426
1423
|
function NonDisposableHandle() {
|
|
1427
1424
|
}
|
|
1428
|
-
protoOf(NonDisposableHandle).
|
|
1425
|
+
protoOf(NonDisposableHandle).qv = function () {
|
|
1429
1426
|
return Unit_instance;
|
|
1430
1427
|
};
|
|
1431
1428
|
protoOf(NonDisposableHandle).toString = function () {
|
|
@@ -1448,15 +1445,15 @@
|
|
|
1448
1445
|
function FrameTooBigException(frameSize) {
|
|
1449
1446
|
Exception_init_$Init$(this);
|
|
1450
1447
|
captureStack(this, FrameTooBigException);
|
|
1451
|
-
this.
|
|
1448
|
+
this.i3h_1 = frameSize;
|
|
1452
1449
|
delete this.message;
|
|
1453
1450
|
}
|
|
1454
1451
|
protoOf(FrameTooBigException).e = function () {
|
|
1455
|
-
return 'Frame is too big: ' + this.
|
|
1452
|
+
return 'Frame is too big: ' + this.i3h_1.toString();
|
|
1456
1453
|
};
|
|
1457
|
-
protoOf(FrameTooBigException).
|
|
1454
|
+
protoOf(FrameTooBigException).l11 = function () {
|
|
1458
1455
|
// Inline function 'kotlin.also' call
|
|
1459
|
-
var this_0 = new FrameTooBigException(this.
|
|
1456
|
+
var this_0 = new FrameTooBigException(this.i3h_1);
|
|
1460
1457
|
initCauseBridge(this_0, this);
|
|
1461
1458
|
return this_0;
|
|
1462
1459
|
};
|
|
@@ -1482,10 +1479,10 @@
|
|
|
1482
1479
|
tmp$ret$0 = maxElem;
|
|
1483
1480
|
break $l$block_0;
|
|
1484
1481
|
}
|
|
1485
|
-
var maxValue = maxElem.
|
|
1482
|
+
var maxValue = maxElem.m3h_1;
|
|
1486
1483
|
do {
|
|
1487
1484
|
var e = iterator.v();
|
|
1488
|
-
var v = e.
|
|
1485
|
+
var v = e.m3h_1;
|
|
1489
1486
|
if (compareTo(maxValue, v) < 0) {
|
|
1490
1487
|
maxElem = e;
|
|
1491
1488
|
maxValue = v;
|
|
@@ -1494,10 +1491,10 @@
|
|
|
1494
1491
|
while (iterator.u());
|
|
1495
1492
|
tmp$ret$0 = maxElem;
|
|
1496
1493
|
}
|
|
1497
|
-
tmp.
|
|
1494
|
+
tmp.n3h_1 = ensureNotNull(tmp$ret$0).m3h_1;
|
|
1498
1495
|
var tmp_0 = this;
|
|
1499
1496
|
var tmp_1 = 0;
|
|
1500
|
-
var tmp_2 = this.
|
|
1497
|
+
var tmp_2 = this.n3h_1 + 1 | 0;
|
|
1501
1498
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1502
1499
|
var tmp_3 = Array(tmp_2);
|
|
1503
1500
|
while (tmp_1 < tmp_2) {
|
|
@@ -1511,7 +1508,7 @@
|
|
|
1511
1508
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
1512
1509
|
while (_iterator__ex2g4s.u()) {
|
|
1513
1510
|
var element = _iterator__ex2g4s.v();
|
|
1514
|
-
if (element.
|
|
1511
|
+
if (element.m3h_1 === tmp_4) {
|
|
1515
1512
|
if (found) {
|
|
1516
1513
|
tmp$ret$5 = null;
|
|
1517
1514
|
break $l$block_2;
|
|
@@ -1529,7 +1526,7 @@
|
|
|
1529
1526
|
tmp_3[tmp_4] = tmp$ret$5;
|
|
1530
1527
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1531
1528
|
}
|
|
1532
|
-
tmp_0.
|
|
1529
|
+
tmp_0.o3h_1 = tmp_3;
|
|
1533
1530
|
}
|
|
1534
1531
|
var Companion_instance_1;
|
|
1535
1532
|
function Companion_getInstance_1() {
|
|
@@ -1561,8 +1558,8 @@
|
|
|
1561
1558
|
var $ENTRIES_0;
|
|
1562
1559
|
function FrameType(name, ordinal, controlFrame, opcode) {
|
|
1563
1560
|
Enum.call(this, name, ordinal);
|
|
1564
|
-
this.
|
|
1565
|
-
this.
|
|
1561
|
+
this.l3h_1 = controlFrame;
|
|
1562
|
+
this.m3h_1 = opcode;
|
|
1566
1563
|
}
|
|
1567
1564
|
function FrameType_TEXT_getInstance() {
|
|
1568
1565
|
FrameType_initEntries();
|
|
@@ -1605,25 +1602,25 @@
|
|
|
1605
1602
|
_init_properties_PingPong_kt__9aqxey();
|
|
1606
1603
|
var actorJob = Job();
|
|
1607
1604
|
var channel = Channel(2147483647);
|
|
1608
|
-
var tmp = actorJob.
|
|
1605
|
+
var tmp = actorJob.yg(get_PingerCoroutineName());
|
|
1609
1606
|
launch(_this__u8e3s4, tmp, VOID, pinger$slambda_0(periodMillis, timeoutMillis, onTimeout, channel, outgoing, null));
|
|
1610
|
-
var tmp_0 = ensureNotNull(_this__u8e3s4.
|
|
1611
|
-
tmp_0.
|
|
1607
|
+
var tmp_0 = ensureNotNull(_this__u8e3s4.ss().n9(Key_instance));
|
|
1608
|
+
tmp_0.ut(pinger$lambda(actorJob));
|
|
1612
1609
|
return channel;
|
|
1613
1610
|
}
|
|
1614
1611
|
function ponger$slambda($channel, $outgoing, resultContinuation) {
|
|
1615
|
-
this.
|
|
1616
|
-
this.
|
|
1612
|
+
this.x3h_1 = $channel;
|
|
1613
|
+
this.y3h_1 = $outgoing;
|
|
1617
1614
|
CoroutineImpl.call(this, resultContinuation);
|
|
1618
1615
|
}
|
|
1619
|
-
protoOf(ponger$slambda).
|
|
1620
|
-
var tmp = this.
|
|
1616
|
+
protoOf(ponger$slambda).x1w = function ($this$launch, $completion) {
|
|
1617
|
+
var tmp = this.y1w($this$launch, $completion);
|
|
1621
1618
|
tmp.c9_1 = Unit_instance;
|
|
1622
1619
|
tmp.d9_1 = null;
|
|
1623
1620
|
return tmp.i9();
|
|
1624
1621
|
};
|
|
1625
1622
|
protoOf(ponger$slambda).u9 = function (p1, $completion) {
|
|
1626
|
-
return this.
|
|
1623
|
+
return this.x1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1627
1624
|
};
|
|
1628
1625
|
protoOf(ponger$slambda).i9 = function () {
|
|
1629
1626
|
var suspendResult = this.c9_1;
|
|
@@ -1634,12 +1631,12 @@
|
|
|
1634
1631
|
case 0:
|
|
1635
1632
|
this.b9_1 = 14;
|
|
1636
1633
|
this.b9_1 = 13;
|
|
1637
|
-
this.
|
|
1634
|
+
this.d3i_1 = this.x3h_1;
|
|
1638
1635
|
this.a9_1 = 1;
|
|
1639
1636
|
continue $sm;
|
|
1640
1637
|
case 1:
|
|
1641
|
-
this.
|
|
1642
|
-
this.
|
|
1638
|
+
this.b3i_1 = this.d3i_1;
|
|
1639
|
+
this.a3i_1 = null;
|
|
1643
1640
|
this.a9_1 = 2;
|
|
1644
1641
|
continue $sm;
|
|
1645
1642
|
case 2:
|
|
@@ -1648,12 +1645,12 @@
|
|
|
1648
1645
|
case 3:
|
|
1649
1646
|
this.b9_1 = 10;
|
|
1650
1647
|
this.b9_1 = 9;
|
|
1651
|
-
this.
|
|
1648
|
+
this.c3i_1 = this.b3i_1.t();
|
|
1652
1649
|
this.a9_1 = 4;
|
|
1653
1650
|
continue $sm;
|
|
1654
1651
|
case 4:
|
|
1655
1652
|
this.a9_1 = 5;
|
|
1656
|
-
suspendResult = this.
|
|
1653
|
+
suspendResult = this.c3i_1.x19(this);
|
|
1657
1654
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1658
1655
|
return suspendResult;
|
|
1659
1656
|
}
|
|
@@ -1665,10 +1662,10 @@
|
|
|
1665
1662
|
continue $sm;
|
|
1666
1663
|
}
|
|
1667
1664
|
|
|
1668
|
-
var e = this.
|
|
1669
|
-
get_LOGGER().
|
|
1665
|
+
var e = this.c3i_1.v();
|
|
1666
|
+
get_LOGGER().n2s('Received ping message, sending pong message');
|
|
1670
1667
|
this.a9_1 = 6;
|
|
1671
|
-
suspendResult = this.
|
|
1668
|
+
suspendResult = this.y3h_1.u1b(new Pong(e.e3g_1), this);
|
|
1672
1669
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1673
1670
|
return suspendResult;
|
|
1674
1671
|
}
|
|
@@ -1683,7 +1680,7 @@
|
|
|
1683
1680
|
continue $sm;
|
|
1684
1681
|
case 8:
|
|
1685
1682
|
this.b9_1 = 13;
|
|
1686
|
-
cancelConsumed(this.
|
|
1683
|
+
cancelConsumed(this.b3i_1, this.a3i_1);
|
|
1687
1684
|
this.a9_1 = 12;
|
|
1688
1685
|
continue $sm;
|
|
1689
1686
|
case 9:
|
|
@@ -1692,7 +1689,7 @@
|
|
|
1692
1689
|
if (tmp_1 instanceof Error) {
|
|
1693
1690
|
var e_0 = this.d9_1;
|
|
1694
1691
|
var tmp_2 = this;
|
|
1695
|
-
this.
|
|
1692
|
+
this.a3i_1 = e_0;
|
|
1696
1693
|
throw e_0;
|
|
1697
1694
|
} else {
|
|
1698
1695
|
throw this.d9_1;
|
|
@@ -1701,11 +1698,11 @@
|
|
|
1701
1698
|
case 10:
|
|
1702
1699
|
this.b9_1 = 13;
|
|
1703
1700
|
var t = this.d9_1;
|
|
1704
|
-
cancelConsumed(this.
|
|
1701
|
+
cancelConsumed(this.b3i_1, this.a3i_1);
|
|
1705
1702
|
throw t;
|
|
1706
1703
|
case 11:
|
|
1707
1704
|
this.b9_1 = 13;
|
|
1708
|
-
cancelConsumed(this.
|
|
1705
|
+
cancelConsumed(this.b3i_1, this.a3i_1);
|
|
1709
1706
|
if (false) {
|
|
1710
1707
|
this.a9_1 = 1;
|
|
1711
1708
|
continue $sm;
|
|
@@ -1745,31 +1742,31 @@
|
|
|
1745
1742
|
}
|
|
1746
1743
|
while (true);
|
|
1747
1744
|
};
|
|
1748
|
-
protoOf(ponger$slambda).
|
|
1749
|
-
var i = new ponger$slambda(this.
|
|
1750
|
-
i.
|
|
1745
|
+
protoOf(ponger$slambda).y1w = function ($this$launch, completion) {
|
|
1746
|
+
var i = new ponger$slambda(this.x3h_1, this.y3h_1, completion);
|
|
1747
|
+
i.z3h_1 = $this$launch;
|
|
1751
1748
|
return i;
|
|
1752
1749
|
};
|
|
1753
1750
|
function ponger$slambda_0($channel, $outgoing, resultContinuation) {
|
|
1754
1751
|
var i = new ponger$slambda($channel, $outgoing, resultContinuation);
|
|
1755
1752
|
var l = function ($this$launch, $completion) {
|
|
1756
|
-
return i.
|
|
1753
|
+
return i.x1w($this$launch, $completion);
|
|
1757
1754
|
};
|
|
1758
1755
|
l.$arity = 1;
|
|
1759
1756
|
return l;
|
|
1760
1757
|
}
|
|
1761
1758
|
function pinger$slambda$slambda($channel, resultContinuation) {
|
|
1762
|
-
this.
|
|
1759
|
+
this.m3i_1 = $channel;
|
|
1763
1760
|
CoroutineImpl.call(this, resultContinuation);
|
|
1764
1761
|
}
|
|
1765
|
-
protoOf(pinger$slambda$slambda).
|
|
1766
|
-
var tmp = this.
|
|
1762
|
+
protoOf(pinger$slambda$slambda).x1w = function ($this$withTimeoutOrNull, $completion) {
|
|
1763
|
+
var tmp = this.y1w($this$withTimeoutOrNull, $completion);
|
|
1767
1764
|
tmp.c9_1 = Unit_instance;
|
|
1768
1765
|
tmp.d9_1 = null;
|
|
1769
1766
|
return tmp.i9();
|
|
1770
1767
|
};
|
|
1771
1768
|
protoOf(pinger$slambda$slambda).u9 = function (p1, $completion) {
|
|
1772
|
-
return this.
|
|
1769
|
+
return this.x1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1773
1770
|
};
|
|
1774
1771
|
protoOf(pinger$slambda$slambda).i9 = function () {
|
|
1775
1772
|
var suspendResult = this.c9_1;
|
|
@@ -1788,7 +1785,7 @@
|
|
|
1788
1785
|
}
|
|
1789
1786
|
|
|
1790
1787
|
this.a9_1 = 2;
|
|
1791
|
-
suspendResult = this.
|
|
1788
|
+
suspendResult = this.m3i_1.y1b(this);
|
|
1792
1789
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1793
1790
|
return suspendResult;
|
|
1794
1791
|
}
|
|
@@ -1813,33 +1810,33 @@
|
|
|
1813
1810
|
}
|
|
1814
1811
|
while (true);
|
|
1815
1812
|
};
|
|
1816
|
-
protoOf(pinger$slambda$slambda).
|
|
1817
|
-
var i = new pinger$slambda$slambda(this.
|
|
1818
|
-
i.
|
|
1813
|
+
protoOf(pinger$slambda$slambda).y1w = function ($this$withTimeoutOrNull, completion) {
|
|
1814
|
+
var i = new pinger$slambda$slambda(this.m3i_1, completion);
|
|
1815
|
+
i.n3i_1 = $this$withTimeoutOrNull;
|
|
1819
1816
|
return i;
|
|
1820
1817
|
};
|
|
1821
1818
|
function pinger$slambda$slambda_0($channel, resultContinuation) {
|
|
1822
1819
|
var i = new pinger$slambda$slambda($channel, resultContinuation);
|
|
1823
1820
|
var l = function ($this$withTimeoutOrNull, $completion) {
|
|
1824
|
-
return i.
|
|
1821
|
+
return i.x1w($this$withTimeoutOrNull, $completion);
|
|
1825
1822
|
};
|
|
1826
1823
|
l.$arity = 1;
|
|
1827
1824
|
return l;
|
|
1828
1825
|
}
|
|
1829
1826
|
function pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1830
|
-
this.
|
|
1831
|
-
this.
|
|
1832
|
-
this.
|
|
1827
|
+
this.w3i_1 = $outgoing;
|
|
1828
|
+
this.x3i_1 = $pingMessage;
|
|
1829
|
+
this.y3i_1 = $channel;
|
|
1833
1830
|
CoroutineImpl.call(this, resultContinuation);
|
|
1834
1831
|
}
|
|
1835
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1836
|
-
var tmp = this.
|
|
1832
|
+
protoOf(pinger$slambda$slambda_1).x1w = function ($this$withTimeoutOrNull, $completion) {
|
|
1833
|
+
var tmp = this.y1w($this$withTimeoutOrNull, $completion);
|
|
1837
1834
|
tmp.c9_1 = Unit_instance;
|
|
1838
1835
|
tmp.d9_1 = null;
|
|
1839
1836
|
return tmp.i9();
|
|
1840
1837
|
};
|
|
1841
1838
|
protoOf(pinger$slambda$slambda_1).u9 = function (p1, $completion) {
|
|
1842
|
-
return this.
|
|
1839
|
+
return this.x1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1843
1840
|
};
|
|
1844
1841
|
protoOf(pinger$slambda$slambda_1).i9 = function () {
|
|
1845
1842
|
var suspendResult = this.c9_1;
|
|
@@ -1849,9 +1846,9 @@
|
|
|
1849
1846
|
switch (tmp) {
|
|
1850
1847
|
case 0:
|
|
1851
1848
|
this.b9_1 = 6;
|
|
1852
|
-
get_LOGGER().
|
|
1849
|
+
get_LOGGER().n2s('WebSocket Pinger: sending ping frame');
|
|
1853
1850
|
this.a9_1 = 1;
|
|
1854
|
-
suspendResult = this.
|
|
1851
|
+
suspendResult = this.w3i_1.u1b(new Ping(toByteArray(this.x3i_1, Charsets_getInstance().y1x_1)), this);
|
|
1855
1852
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1856
1853
|
return suspendResult;
|
|
1857
1854
|
}
|
|
@@ -1867,16 +1864,16 @@
|
|
|
1867
1864
|
}
|
|
1868
1865
|
|
|
1869
1866
|
this.a9_1 = 3;
|
|
1870
|
-
suspendResult = this.
|
|
1867
|
+
suspendResult = this.y3i_1.y1b(this);
|
|
1871
1868
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1872
1869
|
return suspendResult;
|
|
1873
1870
|
}
|
|
1874
1871
|
|
|
1875
1872
|
continue $sm;
|
|
1876
1873
|
case 3:
|
|
1877
|
-
this.
|
|
1878
|
-
if (decodeToString(this.
|
|
1879
|
-
get_LOGGER().
|
|
1874
|
+
this.a3j_1 = suspendResult;
|
|
1875
|
+
if (decodeToString(this.a3j_1.e3g_1, 0, 0 + this.a3j_1.e3g_1.length | 0) === this.x3i_1) {
|
|
1876
|
+
get_LOGGER().n2s('WebSocket Pinger: received valid pong frame ' + this.a3j_1.toString());
|
|
1880
1877
|
this.a9_1 = 5;
|
|
1881
1878
|
continue $sm;
|
|
1882
1879
|
} else {
|
|
@@ -1885,7 +1882,7 @@
|
|
|
1885
1882
|
}
|
|
1886
1883
|
|
|
1887
1884
|
case 4:
|
|
1888
|
-
get_LOGGER().
|
|
1885
|
+
get_LOGGER().n2s('WebSocket Pinger: received invalid pong frame ' + this.a3j_1.toString() + ', continue waiting');
|
|
1889
1886
|
this.a9_1 = 2;
|
|
1890
1887
|
continue $sm;
|
|
1891
1888
|
case 5:
|
|
@@ -1904,35 +1901,35 @@
|
|
|
1904
1901
|
}
|
|
1905
1902
|
while (true);
|
|
1906
1903
|
};
|
|
1907
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1908
|
-
var i = new pinger$slambda$slambda_1(this.
|
|
1909
|
-
i.
|
|
1904
|
+
protoOf(pinger$slambda$slambda_1).y1w = function ($this$withTimeoutOrNull, completion) {
|
|
1905
|
+
var i = new pinger$slambda$slambda_1(this.w3i_1, this.x3i_1, this.y3i_1, completion);
|
|
1906
|
+
i.z3i_1 = $this$withTimeoutOrNull;
|
|
1910
1907
|
return i;
|
|
1911
1908
|
};
|
|
1912
1909
|
function pinger$slambda$slambda_2($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1913
1910
|
var i = new pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation);
|
|
1914
1911
|
var l = function ($this$withTimeoutOrNull, $completion) {
|
|
1915
|
-
return i.
|
|
1912
|
+
return i.x1w($this$withTimeoutOrNull, $completion);
|
|
1916
1913
|
};
|
|
1917
1914
|
l.$arity = 1;
|
|
1918
1915
|
return l;
|
|
1919
1916
|
}
|
|
1920
1917
|
function pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
1921
|
-
this.
|
|
1922
|
-
this.
|
|
1923
|
-
this.
|
|
1924
|
-
this.
|
|
1925
|
-
this.
|
|
1918
|
+
this.j3j_1 = $periodMillis;
|
|
1919
|
+
this.k3j_1 = $timeoutMillis;
|
|
1920
|
+
this.l3j_1 = $onTimeout;
|
|
1921
|
+
this.m3j_1 = $channel;
|
|
1922
|
+
this.n3j_1 = $outgoing;
|
|
1926
1923
|
CoroutineImpl.call(this, resultContinuation);
|
|
1927
1924
|
}
|
|
1928
|
-
protoOf(pinger$slambda).
|
|
1929
|
-
var tmp = this.
|
|
1925
|
+
protoOf(pinger$slambda).x1w = function ($this$launch, $completion) {
|
|
1926
|
+
var tmp = this.y1w($this$launch, $completion);
|
|
1930
1927
|
tmp.c9_1 = Unit_instance;
|
|
1931
1928
|
tmp.d9_1 = null;
|
|
1932
1929
|
return tmp.i9();
|
|
1933
1930
|
};
|
|
1934
1931
|
protoOf(pinger$slambda).u9 = function (p1, $completion) {
|
|
1935
|
-
return this.
|
|
1932
|
+
return this.x1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1936
1933
|
};
|
|
1937
1934
|
protoOf(pinger$slambda).i9 = function () {
|
|
1938
1935
|
var suspendResult = this.c9_1;
|
|
@@ -1942,9 +1939,9 @@
|
|
|
1942
1939
|
switch (tmp) {
|
|
1943
1940
|
case 0:
|
|
1944
1941
|
this.b9_1 = 9;
|
|
1945
|
-
get_LOGGER().
|
|
1946
|
-
this.
|
|
1947
|
-
this.
|
|
1942
|
+
get_LOGGER().n2s('Starting WebSocket pinger coroutine with period ' + this.j3j_1.toString() + ' ms and timeout ' + this.k3j_1.toString() + ' ms');
|
|
1943
|
+
this.q3j_1 = Random(getTimeMillis());
|
|
1944
|
+
this.p3j_1 = new Int8Array(32);
|
|
1948
1945
|
this.b9_1 = 7;
|
|
1949
1946
|
this.a9_1 = 1;
|
|
1950
1947
|
continue $sm;
|
|
@@ -1955,17 +1952,17 @@
|
|
|
1955
1952
|
}
|
|
1956
1953
|
|
|
1957
1954
|
this.a9_1 = 2;
|
|
1958
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1955
|
+
suspendResult = withTimeoutOrNull(this.j3j_1, pinger$slambda$slambda_0(this.m3j_1, null), this);
|
|
1959
1956
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1960
1957
|
return suspendResult;
|
|
1961
1958
|
}
|
|
1962
1959
|
|
|
1963
1960
|
continue $sm;
|
|
1964
1961
|
case 2:
|
|
1965
|
-
this.
|
|
1966
|
-
var pingMessage = '[ping ' + hex(this.
|
|
1962
|
+
this.q3j_1.vi(this.p3j_1);
|
|
1963
|
+
var pingMessage = '[ping ' + hex(this.p3j_1) + ' ping]';
|
|
1967
1964
|
this.a9_1 = 3;
|
|
1968
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1965
|
+
suspendResult = withTimeoutOrNull(this.k3j_1, pinger$slambda$slambda_2(this.n3j_1, pingMessage, this.m3j_1, null), this);
|
|
1969
1966
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1970
1967
|
return suspendResult;
|
|
1971
1968
|
}
|
|
@@ -1974,9 +1971,9 @@
|
|
|
1974
1971
|
case 3:
|
|
1975
1972
|
var rc = suspendResult;
|
|
1976
1973
|
if (rc == null) {
|
|
1977
|
-
get_LOGGER().
|
|
1974
|
+
get_LOGGER().n2s('WebSocket pinger has timed out');
|
|
1978
1975
|
this.a9_1 = 5;
|
|
1979
|
-
suspendResult = this.
|
|
1976
|
+
suspendResult = this.l3j_1(CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), 'Ping timeout'), this);
|
|
1980
1977
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1981
1978
|
return suspendResult;
|
|
1982
1979
|
}
|
|
@@ -2045,22 +2042,22 @@
|
|
|
2045
2042
|
}
|
|
2046
2043
|
while (true);
|
|
2047
2044
|
};
|
|
2048
|
-
protoOf(pinger$slambda).
|
|
2049
|
-
var i = new pinger$slambda(this.
|
|
2050
|
-
i.
|
|
2045
|
+
protoOf(pinger$slambda).y1w = function ($this$launch, completion) {
|
|
2046
|
+
var i = new pinger$slambda(this.j3j_1, this.k3j_1, this.l3j_1, this.m3j_1, this.n3j_1, completion);
|
|
2047
|
+
i.o3j_1 = $this$launch;
|
|
2051
2048
|
return i;
|
|
2052
2049
|
};
|
|
2053
2050
|
function pinger$slambda_0($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
2054
2051
|
var i = new pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation);
|
|
2055
2052
|
var l = function ($this$launch, $completion) {
|
|
2056
|
-
return i.
|
|
2053
|
+
return i.x1w($this$launch, $completion);
|
|
2057
2054
|
};
|
|
2058
2055
|
l.$arity = 1;
|
|
2059
2056
|
return l;
|
|
2060
2057
|
}
|
|
2061
2058
|
function pinger$lambda($actorJob) {
|
|
2062
2059
|
return function (it) {
|
|
2063
|
-
$actorJob.
|
|
2060
|
+
$actorJob.cu();
|
|
2064
2061
|
return Unit_instance;
|
|
2065
2062
|
};
|
|
2066
2063
|
}
|
|
@@ -2077,9 +2074,9 @@
|
|
|
2077
2074
|
var tmp = this;
|
|
2078
2075
|
// Inline function 'kotlin.apply' call
|
|
2079
2076
|
var this_0 = new WebSocketChannelsConfig();
|
|
2080
|
-
this_0.
|
|
2081
|
-
this_0.
|
|
2082
|
-
tmp.
|
|
2077
|
+
this_0.p3c_1 = this_0.r3j();
|
|
2078
|
+
this_0.q3c_1 = this_0.r3j();
|
|
2079
|
+
tmp.o3c_1 = this_0;
|
|
2083
2080
|
}
|
|
2084
2081
|
var Companion_instance_2;
|
|
2085
2082
|
function Companion_getInstance_2() {
|
|
@@ -2089,22 +2086,23 @@
|
|
|
2089
2086
|
}
|
|
2090
2087
|
function WebSocketChannelsConfig() {
|
|
2091
2088
|
Companion_getInstance_2();
|
|
2092
|
-
this.
|
|
2093
|
-
this.
|
|
2089
|
+
this.p3c_1 = Companion_getInstance_3().s3j_1;
|
|
2090
|
+
this.q3c_1 = Companion_getInstance_3().s3j_1;
|
|
2094
2091
|
}
|
|
2095
|
-
protoOf(WebSocketChannelsConfig).
|
|
2096
|
-
return Companion_getInstance_3().
|
|
2092
|
+
protoOf(WebSocketChannelsConfig).r3j = function () {
|
|
2093
|
+
return Companion_getInstance_3().s3j_1;
|
|
2097
2094
|
};
|
|
2098
2095
|
function from(_this__u8e3s4, config) {
|
|
2099
2096
|
// Inline function 'kotlin.with' call
|
|
2100
2097
|
var tmp;
|
|
2101
|
-
if (config.
|
|
2098
|
+
if (config.t3j_1 === 2147483647) {
|
|
2102
2099
|
tmp = Channel(2147483647);
|
|
2103
|
-
} else if (config.
|
|
2104
|
-
tmp = Channel(config.
|
|
2105
|
-
} else if (config.
|
|
2106
|
-
tmp = new BoundedChannel(config.
|
|
2100
|
+
} else if (config.u3j_1.equals(ChannelOverflow_SUSPEND_getInstance())) {
|
|
2101
|
+
tmp = Channel(config.t3j_1, BufferOverflow_SUSPEND_getInstance());
|
|
2102
|
+
} else if (config.u3j_1.equals(ChannelOverflow_CLOSE_getInstance())) {
|
|
2103
|
+
tmp = new BoundedChannel(config.t3j_1);
|
|
2107
2104
|
} else {
|
|
2105
|
+
// Inline function 'kotlin.error' call
|
|
2108
2106
|
var message = 'Unsupported channel config.';
|
|
2109
2107
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2110
2108
|
}
|
|
@@ -2112,7 +2110,7 @@
|
|
|
2112
2110
|
}
|
|
2113
2111
|
function Companion_3() {
|
|
2114
2112
|
Companion_instance_3 = this;
|
|
2115
|
-
this.
|
|
2113
|
+
this.s3j_1 = new ChannelConfig(2147483647, ChannelOverflow_SUSPEND_getInstance());
|
|
2116
2114
|
}
|
|
2117
2115
|
var Companion_instance_3;
|
|
2118
2116
|
function Companion_getInstance_3() {
|
|
@@ -2122,11 +2120,11 @@
|
|
|
2122
2120
|
}
|
|
2123
2121
|
function ChannelConfig(capacity, onOverflow) {
|
|
2124
2122
|
Companion_getInstance_3();
|
|
2125
|
-
this.
|
|
2126
|
-
this.
|
|
2123
|
+
this.t3j_1 = capacity;
|
|
2124
|
+
this.u3j_1 = onOverflow;
|
|
2127
2125
|
}
|
|
2128
|
-
protoOf(ChannelConfig).
|
|
2129
|
-
return this.
|
|
2126
|
+
protoOf(ChannelConfig).v3j = function () {
|
|
2127
|
+
return this.u3j_1.equals(ChannelOverflow_SUSPEND_getInstance()) && !(this.t3j_1 === 2147483647);
|
|
2130
2128
|
};
|
|
2131
2129
|
var ChannelOverflow_SUSPEND_instance;
|
|
2132
2130
|
var ChannelOverflow_CLOSE_instance;
|
|
@@ -2150,14 +2148,14 @@
|
|
|
2150
2148
|
} else {
|
|
2151
2149
|
tmp_0 = $channel._v;
|
|
2152
2150
|
}
|
|
2153
|
-
if (!tmp_0.
|
|
2151
|
+
if (!tmp_0.z19()) {
|
|
2154
2152
|
var tmp_1;
|
|
2155
2153
|
if ($channel._v == null) {
|
|
2156
2154
|
throwUninitializedPropertyAccessException('channel');
|
|
2157
2155
|
} else {
|
|
2158
2156
|
tmp_1 = $channel._v;
|
|
2159
2157
|
}
|
|
2160
|
-
tmp_1.
|
|
2158
|
+
tmp_1.a1c(new ChannelOverflowException('Channel overflowed'));
|
|
2161
2159
|
tmp = Unit_instance;
|
|
2162
2160
|
}
|
|
2163
2161
|
return Unit_instance;
|
|
@@ -2165,7 +2163,7 @@
|
|
|
2165
2163
|
}
|
|
2166
2164
|
function Companion_4() {
|
|
2167
2165
|
}
|
|
2168
|
-
protoOf(Companion_4).
|
|
2166
|
+
protoOf(Companion_4).w3j = function (capacity) {
|
|
2169
2167
|
var channel = {_v: null};
|
|
2170
2168
|
var tmp = BufferOverflow_DROP_OLDEST_getInstance();
|
|
2171
2169
|
// Inline function 'kotlin.also' call
|
|
@@ -2178,42 +2176,42 @@
|
|
|
2178
2176
|
return Companion_instance_4;
|
|
2179
2177
|
}
|
|
2180
2178
|
function BoundedChannel(capacity, delegate) {
|
|
2181
|
-
delegate = delegate === VOID ? Companion_instance_4.
|
|
2182
|
-
this.
|
|
2179
|
+
delegate = delegate === VOID ? Companion_instance_4.w3j(capacity) : delegate;
|
|
2180
|
+
this.x3j_1 = delegate;
|
|
2183
2181
|
}
|
|
2184
|
-
protoOf(BoundedChannel).
|
|
2185
|
-
var result = this.
|
|
2182
|
+
protoOf(BoundedChannel).y3j = function (element) {
|
|
2183
|
+
var result = this.x3j_1.v1b(element);
|
|
2186
2184
|
if (!_ChannelResult___get_isSuccess__impl__odq1z9(result) && !_ChannelResult___get_isClosed__impl__mg7kuu(result)) {
|
|
2187
|
-
this.
|
|
2185
|
+
this.a1c(new ChannelOverflowException('Channel overflowed'));
|
|
2188
2186
|
}
|
|
2189
2187
|
return result;
|
|
2190
2188
|
};
|
|
2191
|
-
protoOf(BoundedChannel).
|
|
2192
|
-
return this.
|
|
2189
|
+
protoOf(BoundedChannel).v1b = function (element) {
|
|
2190
|
+
return this.y3j(element);
|
|
2193
2191
|
};
|
|
2194
|
-
protoOf(BoundedChannel).
|
|
2195
|
-
return this.
|
|
2192
|
+
protoOf(BoundedChannel).z3j = function (element, $completion) {
|
|
2193
|
+
return this.x3j_1.u1b(element, $completion);
|
|
2196
2194
|
};
|
|
2197
|
-
protoOf(BoundedChannel).
|
|
2198
|
-
return this.
|
|
2195
|
+
protoOf(BoundedChannel).u1b = function (element, $completion) {
|
|
2196
|
+
return this.z3j(element, $completion);
|
|
2199
2197
|
};
|
|
2200
|
-
protoOf(BoundedChannel).
|
|
2201
|
-
return this.
|
|
2198
|
+
protoOf(BoundedChannel).a1c = function (cause) {
|
|
2199
|
+
return this.x3j_1.a1c(cause);
|
|
2202
2200
|
};
|
|
2203
|
-
protoOf(BoundedChannel).
|
|
2204
|
-
return this.
|
|
2201
|
+
protoOf(BoundedChannel).z19 = function () {
|
|
2202
|
+
return this.x3j_1.z19();
|
|
2205
2203
|
};
|
|
2206
|
-
protoOf(BoundedChannel).
|
|
2207
|
-
return this.
|
|
2204
|
+
protoOf(BoundedChannel).a3k = function ($completion) {
|
|
2205
|
+
return this.x3j_1.y1b($completion);
|
|
2208
2206
|
};
|
|
2209
|
-
protoOf(BoundedChannel).
|
|
2210
|
-
return this.
|
|
2207
|
+
protoOf(BoundedChannel).y1b = function ($completion) {
|
|
2208
|
+
return this.a3k($completion);
|
|
2211
2209
|
};
|
|
2212
2210
|
protoOf(BoundedChannel).t = function () {
|
|
2213
|
-
return this.
|
|
2211
|
+
return this.x3j_1.t();
|
|
2214
2212
|
};
|
|
2215
|
-
protoOf(BoundedChannel).
|
|
2216
|
-
this.
|
|
2213
|
+
protoOf(BoundedChannel).bu = function (cause) {
|
|
2214
|
+
this.x3j_1.bu(cause);
|
|
2217
2215
|
};
|
|
2218
2216
|
function ChannelOverflowException(message) {
|
|
2219
2217
|
RuntimeException_init_$Init$(message, this);
|
|
@@ -2232,35 +2230,35 @@
|
|
|
2232
2230
|
function WebSocketExtensionsConfig() {
|
|
2233
2231
|
var tmp = this;
|
|
2234
2232
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2235
|
-
tmp.
|
|
2233
|
+
tmp.d3k_1 = ArrayList_init_$Create$();
|
|
2236
2234
|
var tmp_0 = this;
|
|
2237
2235
|
// Inline function 'kotlin.arrayOf' call
|
|
2238
2236
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2239
2237
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2240
|
-
tmp_0.
|
|
2238
|
+
tmp_0.e3k_1 = [false, false, false];
|
|
2241
2239
|
}
|
|
2242
|
-
protoOf(WebSocketExtensionsConfig).
|
|
2240
|
+
protoOf(WebSocketExtensionsConfig).e2v = function () {
|
|
2243
2241
|
// Inline function 'kotlin.collections.map' call
|
|
2244
|
-
var this_0 = this.
|
|
2242
|
+
var this_0 = this.d3k_1;
|
|
2245
2243
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2246
2244
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2247
2245
|
var _iterator__ex2g4s = this_0.t();
|
|
2248
2246
|
while (_iterator__ex2g4s.u()) {
|
|
2249
2247
|
var item = _iterator__ex2g4s.v();
|
|
2250
|
-
var tmp$ret$
|
|
2251
|
-
destination.j1(tmp$ret$
|
|
2248
|
+
var tmp$ret$2 = item();
|
|
2249
|
+
destination.j1(tmp$ret$2);
|
|
2252
2250
|
}
|
|
2253
2251
|
return destination;
|
|
2254
2252
|
};
|
|
2255
2253
|
function parametersToString($this) {
|
|
2256
|
-
return $this.
|
|
2254
|
+
return $this.g3k_1.r() ? '' : '; ' + joinToString($this.g3k_1, ';');
|
|
2257
2255
|
}
|
|
2258
2256
|
function WebSocketExtensionHeader(name, parameters) {
|
|
2259
|
-
this.
|
|
2260
|
-
this.
|
|
2257
|
+
this.f3k_1 = name;
|
|
2258
|
+
this.g3k_1 = parameters;
|
|
2261
2259
|
}
|
|
2262
2260
|
protoOf(WebSocketExtensionHeader).toString = function () {
|
|
2263
|
-
return this.
|
|
2261
|
+
return this.f3k_1 + ' ' + parametersToString(this);
|
|
2264
2262
|
};
|
|
2265
2263
|
function parseWebSocketExtensions(value) {
|
|
2266
2264
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2282,12 +2280,12 @@
|
|
|
2282
2280
|
while (_iterator__ex2g4s_0.u()) {
|
|
2283
2281
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
2284
2282
|
// Inline function 'kotlin.text.trim' call
|
|
2285
|
-
var tmp$ret$
|
|
2286
|
-
destination_0.j1(tmp$ret$
|
|
2283
|
+
var tmp$ret$6 = toString(trim(isCharSequence(item_0) ? item_0 : THROW_CCE()));
|
|
2284
|
+
destination_0.j1(tmp$ret$6);
|
|
2287
2285
|
}
|
|
2288
2286
|
var parameters = destination_0;
|
|
2289
|
-
var tmp$ret$
|
|
2290
|
-
destination.j1(tmp$ret$
|
|
2287
|
+
var tmp$ret$2 = new WebSocketExtensionHeader(name, parameters);
|
|
2288
|
+
destination.j1(tmp$ret$2);
|
|
2291
2289
|
}
|
|
2292
2290
|
return destination;
|
|
2293
2291
|
}
|
|
@@ -2312,8 +2310,8 @@
|
|
|
2312
2310
|
}
|
|
2313
2311
|
function $closeCOROUTINE$(_this__u8e3s4, reason, resultContinuation) {
|
|
2314
2312
|
CoroutineImpl.call(this, resultContinuation);
|
|
2315
|
-
this.
|
|
2316
|
-
this.
|
|
2313
|
+
this.p3k_1 = _this__u8e3s4;
|
|
2314
|
+
this.q3k_1 = reason;
|
|
2317
2315
|
}
|
|
2318
2316
|
protoOf($closeCOROUTINE$).i9 = function () {
|
|
2319
2317
|
var suspendResult = this.c9_1;
|
|
@@ -2325,7 +2323,7 @@
|
|
|
2325
2323
|
this.b9_1 = 4;
|
|
2326
2324
|
this.b9_1 = 3;
|
|
2327
2325
|
this.a9_1 = 1;
|
|
2328
|
-
suspendResult = this.
|
|
2326
|
+
suspendResult = this.p3k_1.n3c(Close_init_$Create$(this.q3k_1), this);
|
|
2329
2327
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2330
2328
|
return suspendResult;
|
|
2331
2329
|
}
|
|
@@ -2333,7 +2331,7 @@
|
|
|
2333
2331
|
continue $sm;
|
|
2334
2332
|
case 1:
|
|
2335
2333
|
this.a9_1 = 2;
|
|
2336
|
-
suspendResult = this.
|
|
2334
|
+
suspendResult = this.p3k_1.r1n(this);
|
|
2337
2335
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2338
2336
|
return suspendResult;
|
|
2339
2337
|
}
|
|
@@ -2392,8 +2390,8 @@
|
|
|
2392
2390
|
function Close_init_$Init$(reason, $this) {
|
|
2393
2391
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
2394
2392
|
var builder = new Buffer();
|
|
2395
|
-
builder.
|
|
2396
|
-
writeText(builder, reason.
|
|
2393
|
+
builder.cr(reason.f3c_1);
|
|
2394
|
+
writeText(builder, reason.g3c_1);
|
|
2397
2395
|
Close_init_$Init$_0(builder, $this);
|
|
2398
2396
|
return $this;
|
|
2399
2397
|
}
|
|
@@ -2405,7 +2403,7 @@
|
|
|
2405
2403
|
return $this;
|
|
2406
2404
|
}
|
|
2407
2405
|
function Close_init_$Init$_1($this) {
|
|
2408
|
-
Close.call($this, Companion_getInstance_5().
|
|
2406
|
+
Close.call($this, Companion_getInstance_5().j3g_1);
|
|
2409
2407
|
return $this;
|
|
2410
2408
|
}
|
|
2411
2409
|
function Close_init_$Create$_0() {
|
|
@@ -2435,9 +2433,9 @@
|
|
|
2435
2433
|
}
|
|
2436
2434
|
function Companion_5() {
|
|
2437
2435
|
Companion_instance_5 = this;
|
|
2438
|
-
this.
|
|
2436
|
+
this.j3g_1 = new Int8Array(0);
|
|
2439
2437
|
}
|
|
2440
|
-
protoOf(Companion_5).
|
|
2438
|
+
protoOf(Companion_5).k3g = function (fin, frameType, data, rsv1, rsv2, rsv3) {
|
|
2441
2439
|
var tmp;
|
|
2442
2440
|
switch (frameType.a1_1) {
|
|
2443
2441
|
case 1:
|
|
@@ -2473,28 +2471,28 @@
|
|
|
2473
2471
|
rsv1 = rsv1 === VOID ? false : rsv1;
|
|
2474
2472
|
rsv2 = rsv2 === VOID ? false : rsv2;
|
|
2475
2473
|
rsv3 = rsv3 === VOID ? false : rsv3;
|
|
2476
|
-
this.
|
|
2477
|
-
this.
|
|
2478
|
-
this.
|
|
2479
|
-
this.
|
|
2480
|
-
this.
|
|
2481
|
-
this.
|
|
2482
|
-
this.
|
|
2474
|
+
this.c3g_1 = fin;
|
|
2475
|
+
this.d3g_1 = frameType;
|
|
2476
|
+
this.e3g_1 = data;
|
|
2477
|
+
this.f3g_1 = disposableHandle;
|
|
2478
|
+
this.g3g_1 = rsv1;
|
|
2479
|
+
this.h3g_1 = rsv2;
|
|
2480
|
+
this.i3g_1 = rsv3;
|
|
2483
2481
|
}
|
|
2484
2482
|
protoOf(Frame).toString = function () {
|
|
2485
|
-
return 'Frame ' + this.
|
|
2483
|
+
return 'Frame ' + this.d3g_1.toString() + ' (fin=' + this.c3g_1 + ', buffer len = ' + this.e3g_1.length + ')';
|
|
2486
2484
|
};
|
|
2487
2485
|
function get_OUTGOING_CHANNEL_CAPACITY() {
|
|
2488
2486
|
return OUTGOING_CHANNEL_CAPACITY;
|
|
2489
2487
|
}
|
|
2490
2488
|
var OUTGOING_CHANNEL_CAPACITY;
|
|
2491
2489
|
//region block: post-declaration
|
|
2492
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
2490
|
+
protoOf(DefaultWebSocketSessionImpl).n3c = send;
|
|
2493
2491
|
defineProp(protoOf(FrameTooBigException), 'message', function () {
|
|
2494
2492
|
return this.e();
|
|
2495
2493
|
});
|
|
2496
|
-
protoOf(BoundedChannel).
|
|
2497
|
-
protoOf(BoundedChannel).
|
|
2494
|
+
protoOf(BoundedChannel).c1c = close$default;
|
|
2495
|
+
protoOf(BoundedChannel).e1c = cancel$default;
|
|
2498
2496
|
//endregion
|
|
2499
2497
|
//region block: init
|
|
2500
2498
|
NonDisposableHandle_instance = new NonDisposableHandle();
|
|
@@ -2503,14 +2501,14 @@
|
|
|
2503
2501
|
//endregion
|
|
2504
2502
|
//region block: exports
|
|
2505
2503
|
_.$_$ = _.$_$ || {};
|
|
2506
|
-
_.$_$.a =
|
|
2507
|
-
_.$_$.b =
|
|
2508
|
-
_.$_$.c =
|
|
2509
|
-
_.$_$.d =
|
|
2510
|
-
_.$_$.e =
|
|
2511
|
-
_.$_$.f =
|
|
2512
|
-
_.$_$.g =
|
|
2513
|
-
_.$_$.h =
|
|
2504
|
+
_.$_$.a = Companion_getInstance;
|
|
2505
|
+
_.$_$.b = Companion_getInstance_2;
|
|
2506
|
+
_.$_$.c = Codes_CLOSED_ABNORMALLY_getInstance;
|
|
2507
|
+
_.$_$.d = Codes_NORMAL_getInstance;
|
|
2508
|
+
_.$_$.e = send;
|
|
2509
|
+
_.$_$.f = Binary_init_$Create$;
|
|
2510
|
+
_.$_$.g = Close_init_$Create$;
|
|
2511
|
+
_.$_$.h = Text_init_$Create$;
|
|
2514
2512
|
_.$_$.i = CloseReason;
|
|
2515
2513
|
_.$_$.j = DefaultWebSocketSession_0;
|
|
2516
2514
|
_.$_$.k = DefaultWebSocketSession;
|