@dmarket/p2p-tracker-core 1.0.0-beta.1 → 1.0.1-beta
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/dmarket-p2p-tracker-core-domain.mjs +2806 -2572
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +13 -22
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +8 -8
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +30 -30
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +470 -450
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/ktor-ktor-client-core.mjs +1906 -1915
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-events.mjs +5 -5
- package/ktor-ktor-http-cio.mjs +313 -313
- package/ktor-ktor-http.mjs +619 -599
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +741 -655
- package/ktor-ktor-io.mjs.map +1 -1
- package/ktor-ktor-utils.mjs +622 -622
- package/ktor-ktor-websockets.mjs +474 -418
- package/ktor-ktor-websockets.mjs.map +1 -1
- package/p2p-tracker-core.d.mts +5 -2
- package/p2p-tracker-core.mjs +6892 -5681
- package/p2p-tracker-core.mjs.map +1 -1
- package/package.json +1 -1
package/ktor-ktor-websockets.mjs
CHANGED
|
@@ -12,11 +12,16 @@ import {
|
|
|
12
12
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
13
13
|
VOID3gxj6tk5isa35 as VOID,
|
|
14
14
|
toString1pkumu07cwy4m as toString,
|
|
15
|
+
IllegalArgumentException_init_$Create$1mgk48flhjim3 as IllegalArgumentException_init_$Create$,
|
|
15
16
|
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
17
|
+
substringiqarkczpya5m as substring,
|
|
18
|
+
charCodeAt1yspne1d8erbm as charCodeAt,
|
|
19
|
+
Char__toInt_impl_vasixd1ka89vowck9tn as Char__toInt_impl_vasixd,
|
|
20
|
+
isHighSurrogate11jfjw70ar0zf as isHighSurrogate,
|
|
21
|
+
isLowSurrogateujxcv7hjn4ma as isLowSurrogate,
|
|
16
22
|
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
17
23
|
Long2qws0ah9gnpki as Long,
|
|
18
24
|
isInterface3d6p8outrmvmk as isInterface,
|
|
19
|
-
IllegalArgumentException_init_$Create$1mgk48flhjim3 as IllegalArgumentException_init_$Create$,
|
|
20
25
|
compare2uud5j30pw5xc as compare,
|
|
21
26
|
CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
|
|
22
27
|
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
@@ -76,8 +81,8 @@ import {
|
|
|
76
81
|
_ChannelResult___get_isClosed__impl__mg7kuu3a26on4apn4j4 as _ChannelResult___get_isClosed__impl__mg7kuu,
|
|
77
82
|
close$defaultlxi0kykibhye as close$default,
|
|
78
83
|
cancel$default2imfx8rp1ubvu as cancel$default,
|
|
79
|
-
ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
|
|
80
84
|
SendChannel38sllbxw662ws as SendChannel,
|
|
85
|
+
ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
|
|
81
86
|
} from './kotlinx-coroutines-core.mjs';
|
|
82
87
|
import {
|
|
83
88
|
get_isTraceEnabled82xibuu04nxp as get_isTraceEnabled,
|
|
@@ -111,13 +116,14 @@ var imul = Math.imul;
|
|
|
111
116
|
//region block: pre-declaration
|
|
112
117
|
initMetadataForCompanion(Companion);
|
|
113
118
|
initMetadataForClass(Codes, 'Codes', VOID, Enum);
|
|
119
|
+
initMetadataForCompanion(Companion_0);
|
|
114
120
|
initMetadataForClass(CloseReason, 'CloseReason');
|
|
115
121
|
function send(frame, $completion) {
|
|
116
|
-
return this.
|
|
122
|
+
return this.f4g().i25(frame, $completion);
|
|
117
123
|
}
|
|
118
124
|
initMetadataForInterface(WebSocketSession, 'WebSocketSession', VOID, VOID, [CoroutineScope], [1, 0]);
|
|
119
125
|
initMetadataForInterface(DefaultWebSocketSession, 'DefaultWebSocketSession', VOID, VOID, [WebSocketSession], [1, 0]);
|
|
120
|
-
initMetadataForCompanion(
|
|
126
|
+
initMetadataForCompanion(Companion_1);
|
|
121
127
|
initMetadataForLambda(DefaultWebSocketSessionImpl$start$slambda, CoroutineImpl, VOID, [1]);
|
|
122
128
|
initMetadataForLambda(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda, CoroutineImpl, VOID, [1]);
|
|
123
129
|
initMetadataForLambda(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda, CoroutineImpl, VOID, [1]);
|
|
@@ -128,19 +134,19 @@ initMetadataForCoroutine($checkMaxFrameSizeCOROUTINE$, CoroutineImpl);
|
|
|
128
134
|
initMetadataForClass(DefaultWebSocketSessionImpl, 'DefaultWebSocketSessionImpl', VOID, VOID, [DefaultWebSocketSession, WebSocketSession], [1, 0, 2]);
|
|
129
135
|
initMetadataForObject(NonDisposableHandle, 'NonDisposableHandle', VOID, VOID, [DisposableHandle]);
|
|
130
136
|
initMetadataForClass(FrameTooBigException, 'FrameTooBigException', VOID, Exception, [CopyableThrowable]);
|
|
131
|
-
initMetadataForCompanion(
|
|
137
|
+
initMetadataForCompanion(Companion_2);
|
|
132
138
|
initMetadataForClass(FrameType, 'FrameType', VOID, Enum);
|
|
133
139
|
initMetadataForLambda(ponger$slambda, CoroutineImpl, VOID, [1]);
|
|
134
140
|
initMetadataForLambda(pinger$slambda$slambda, CoroutineImpl, VOID, [1]);
|
|
135
141
|
initMetadataForLambda(pinger$slambda$slambda_1, CoroutineImpl, VOID, [1]);
|
|
136
142
|
initMetadataForLambda(pinger$slambda, CoroutineImpl, VOID, [1]);
|
|
137
|
-
initMetadataForCompanion(Companion_2);
|
|
138
|
-
initMetadataForClass(WebSocketChannelsConfig, 'WebSocketChannelsConfig', WebSocketChannelsConfig);
|
|
139
143
|
initMetadataForCompanion(Companion_3);
|
|
144
|
+
initMetadataForClass(WebSocketChannelsConfig, 'WebSocketChannelsConfig', WebSocketChannelsConfig);
|
|
145
|
+
initMetadataForCompanion(Companion_4);
|
|
140
146
|
initMetadataForClass(ChannelConfig, 'ChannelConfig');
|
|
141
147
|
initMetadataForClass(ChannelOverflow, 'ChannelOverflow', VOID, Enum);
|
|
142
|
-
initMetadataForCompanion(
|
|
143
|
-
initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [
|
|
148
|
+
initMetadataForCompanion(Companion_5);
|
|
149
|
+
initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [SendChannel, ReceiveChannel], [1, 0]);
|
|
144
150
|
initMetadataForClass(ChannelOverflowException, 'ChannelOverflowException', VOID, RuntimeException);
|
|
145
151
|
initMetadataForInterface(WebSocketExtension, 'WebSocketExtension');
|
|
146
152
|
initMetadataForClass(WebSocketExtensionsConfig, 'WebSocketExtensionsConfig', WebSocketExtensionsConfig);
|
|
@@ -152,7 +158,7 @@ initMetadataForClass(Text, 'Text', VOID, Frame);
|
|
|
152
158
|
initMetadataForClass(Close, 'Close', Close_init_$Create$_0, Frame);
|
|
153
159
|
initMetadataForClass(Ping, 'Ping', VOID, Frame);
|
|
154
160
|
initMetadataForClass(Pong, 'Pong', VOID, Frame);
|
|
155
|
-
initMetadataForCompanion(
|
|
161
|
+
initMetadataForCompanion(Companion_6);
|
|
156
162
|
//endregion
|
|
157
163
|
var Codes_NORMAL_instance;
|
|
158
164
|
var Codes_GOING_AWAY_instance;
|
|
@@ -177,14 +183,14 @@ function Companion() {
|
|
|
177
183
|
var _iterator__ex2g4s = this_0.t();
|
|
178
184
|
while (_iterator__ex2g4s.u()) {
|
|
179
185
|
var element = _iterator__ex2g4s.v();
|
|
180
|
-
var tmp$ret$2 = element.
|
|
186
|
+
var tmp$ret$2 = element.j4f_1;
|
|
181
187
|
destination.b3(tmp$ret$2, element);
|
|
182
188
|
}
|
|
183
|
-
tmp.
|
|
184
|
-
this.
|
|
189
|
+
tmp.k4f_1 = destination;
|
|
190
|
+
this.l4f_1 = Codes_INTERNAL_ERROR_getInstance();
|
|
185
191
|
}
|
|
186
|
-
protoOf(Companion).
|
|
187
|
-
return this.
|
|
192
|
+
protoOf(Companion).m4f = function (code) {
|
|
193
|
+
return this.k4f_1.s2(code);
|
|
188
194
|
};
|
|
189
195
|
var Companion_instance;
|
|
190
196
|
function Companion_getInstance() {
|
|
@@ -222,7 +228,7 @@ function Codes_initEntries() {
|
|
|
222
228
|
}
|
|
223
229
|
var $ENTRIES;
|
|
224
230
|
function CloseReason_init_$Init$(code, message, $this) {
|
|
225
|
-
CloseReason.call($this, code.
|
|
231
|
+
CloseReason.call($this, code.j4f_1, message);
|
|
226
232
|
return $this;
|
|
227
233
|
}
|
|
228
234
|
function CloseReason_init_$Create$(code, message) {
|
|
@@ -230,7 +236,13 @@ function CloseReason_init_$Create$(code, message) {
|
|
|
230
236
|
}
|
|
231
237
|
function Codes(name, ordinal, code) {
|
|
232
238
|
Enum.call(this, name, ordinal);
|
|
233
|
-
this.
|
|
239
|
+
this.j4f_1 = code;
|
|
240
|
+
}
|
|
241
|
+
function Companion_0() {
|
|
242
|
+
}
|
|
243
|
+
var Companion_instance_0;
|
|
244
|
+
function Companion_getInstance_0() {
|
|
245
|
+
return Companion_instance_0;
|
|
234
246
|
}
|
|
235
247
|
function Codes_NORMAL_getInstance() {
|
|
236
248
|
Codes_initEntries();
|
|
@@ -281,19 +293,25 @@ function Codes_TRY_AGAIN_LATER_getInstance() {
|
|
|
281
293
|
return Codes_TRY_AGAIN_LATER_instance;
|
|
282
294
|
}
|
|
283
295
|
function CloseReason(code, message) {
|
|
284
|
-
this.
|
|
285
|
-
this.
|
|
296
|
+
this.n4f_1 = code;
|
|
297
|
+
this.o4f_1 = message;
|
|
298
|
+
var size = utf8Size(this.o4f_1);
|
|
299
|
+
// Inline function 'kotlin.require' call
|
|
300
|
+
if (!(size <= 123)) {
|
|
301
|
+
var message_0 = 'Close reason message is too long: ' + size + ' bytes, but must not exceed ' + '123 bytes when UTF-8-encoded';
|
|
302
|
+
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
303
|
+
}
|
|
286
304
|
}
|
|
287
|
-
protoOf(CloseReason).
|
|
288
|
-
return Companion_getInstance().
|
|
305
|
+
protoOf(CloseReason).p4f = function () {
|
|
306
|
+
return Companion_getInstance().m4f(this.n4f_1);
|
|
289
307
|
};
|
|
290
308
|
protoOf(CloseReason).toString = function () {
|
|
291
|
-
var tmp0_elvis_lhs = this.
|
|
292
|
-
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.
|
|
309
|
+
var tmp0_elvis_lhs = this.p4f();
|
|
310
|
+
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.n4f_1 : tmp0_elvis_lhs) + ', message=' + this.o4f_1 + ')';
|
|
293
311
|
};
|
|
294
312
|
protoOf(CloseReason).hashCode = function () {
|
|
295
|
-
var result = this.
|
|
296
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
313
|
+
var result = this.n4f_1;
|
|
314
|
+
result = imul(result, 31) + getStringHashCode(this.o4f_1) | 0;
|
|
297
315
|
return result;
|
|
298
316
|
};
|
|
299
317
|
protoOf(CloseReason).equals = function (other) {
|
|
@@ -301,12 +319,47 @@ protoOf(CloseReason).equals = function (other) {
|
|
|
301
319
|
return true;
|
|
302
320
|
if (!(other instanceof CloseReason))
|
|
303
321
|
return false;
|
|
304
|
-
if (!(this.
|
|
322
|
+
if (!(this.n4f_1 === other.n4f_1))
|
|
305
323
|
return false;
|
|
306
|
-
if (!(this.
|
|
324
|
+
if (!(this.o4f_1 === other.o4f_1))
|
|
307
325
|
return false;
|
|
308
326
|
return true;
|
|
309
327
|
};
|
|
328
|
+
function utf8Size(_this__u8e3s4) {
|
|
329
|
+
var size = 0;
|
|
330
|
+
var index = 0;
|
|
331
|
+
while (index < _this__u8e3s4.length) {
|
|
332
|
+
var bytes = utf8ByteCountAt(_this__u8e3s4, index);
|
|
333
|
+
size = size + bytes | 0;
|
|
334
|
+
index = index + (bytes === 4 ? 2 : 1) | 0;
|
|
335
|
+
}
|
|
336
|
+
return size;
|
|
337
|
+
}
|
|
338
|
+
function utf8Truncate(_this__u8e3s4, maxSize) {
|
|
339
|
+
var size = 0;
|
|
340
|
+
var index = 0;
|
|
341
|
+
$l$loop: while (index < _this__u8e3s4.length) {
|
|
342
|
+
var bytes = utf8ByteCountAt(_this__u8e3s4, index);
|
|
343
|
+
if ((size + bytes | 0) > maxSize)
|
|
344
|
+
break $l$loop;
|
|
345
|
+
size = size + bytes | 0;
|
|
346
|
+
index = index + (bytes === 4 ? 2 : 1) | 0;
|
|
347
|
+
}
|
|
348
|
+
return index === _this__u8e3s4.length ? _this__u8e3s4 : substring(_this__u8e3s4, 0, index);
|
|
349
|
+
}
|
|
350
|
+
function utf8ByteCountAt(_this__u8e3s4, index) {
|
|
351
|
+
// Inline function 'kotlin.code' call
|
|
352
|
+
var this_0 = charCodeAt(_this__u8e3s4, index);
|
|
353
|
+
var code = Char__toInt_impl_vasixd(this_0);
|
|
354
|
+
return code < 128 ? 1 : code < 2048 ? 2 : isHighSurrogate(charCodeAt(_this__u8e3s4, index)) && (index + 1 | 0) < _this__u8e3s4.length && isLowSurrogate(charCodeAt(_this__u8e3s4, index + 1 | 0)) ? 4 : 3;
|
|
355
|
+
}
|
|
356
|
+
function validateSize(_this__u8e3s4) {
|
|
357
|
+
// Inline function 'kotlin.require' call
|
|
358
|
+
if (!(!_this__u8e3s4.v4f_1.s4f_1 || _this__u8e3s4.w4f_1.length <= 125)) {
|
|
359
|
+
var message = 'Control frames must not exceed 125 bytes per RFC 6455, ' + ('but ' + _this__u8e3s4.v4f_1.toString() + ' frame has ' + _this__u8e3s4.w4f_1.length + ' bytes');
|
|
360
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
361
|
+
}
|
|
362
|
+
}
|
|
310
363
|
function get_LOGGER() {
|
|
311
364
|
_init_properties_DefaultWebSocketSession_kt__469s0y();
|
|
312
365
|
return LOGGER;
|
|
@@ -333,14 +386,14 @@ function DefaultWebSocketSession() {
|
|
|
333
386
|
function DefaultWebSocketSession_0(session, pingIntervalMillis, timeoutMillis, channelsConfig) {
|
|
334
387
|
pingIntervalMillis = pingIntervalMillis === VOID ? new Long(0, 0) : pingIntervalMillis;
|
|
335
388
|
timeoutMillis = timeoutMillis === VOID ? new Long(15000, 0) : timeoutMillis;
|
|
336
|
-
channelsConfig = channelsConfig === VOID ?
|
|
389
|
+
channelsConfig = channelsConfig === VOID ? Companion_getInstance_3().h4g_1 : channelsConfig;
|
|
337
390
|
_init_properties_DefaultWebSocketSession_kt__469s0y();
|
|
338
391
|
// Inline function 'kotlin.require' call
|
|
339
392
|
if (!!isInterface(session, DefaultWebSocketSession)) {
|
|
340
393
|
var message = 'Cannot wrap other DefaultWebSocketSession';
|
|
341
394
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
342
395
|
}
|
|
343
|
-
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.
|
|
396
|
+
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.i4g_1, channelsConfig.j4g_1);
|
|
344
397
|
}
|
|
345
398
|
function runIncomingProcessor($this, ponger) {
|
|
346
399
|
var tmp = get_IncomingProcessorCoroutineName().wh(Dispatchers_getInstance().d1z_1);
|
|
@@ -365,32 +418,32 @@ function sendCloseSequence($this, reason, exception, $completion) {
|
|
|
365
418
|
return tmp.d9();
|
|
366
419
|
}
|
|
367
420
|
function tryClose($this) {
|
|
368
|
-
return $this.
|
|
421
|
+
return $this.o4h_1.atomicfu$compareAndSet(false, true);
|
|
369
422
|
}
|
|
370
423
|
function runOrCancelPinger($this) {
|
|
371
|
-
var interval = $this.
|
|
424
|
+
var interval = $this.r4h_1;
|
|
372
425
|
var tmp;
|
|
373
|
-
if ($this.
|
|
426
|
+
if ($this.o4h_1.kotlinx$atomicfu$value) {
|
|
374
427
|
tmp = null;
|
|
375
428
|
} else if (compare(interval, new Long(0, 0)) > 0) {
|
|
376
|
-
var tmp_0 = $this.
|
|
377
|
-
var tmp_1 = $this.
|
|
429
|
+
var tmp_0 = $this.h4h_1.f4g();
|
|
430
|
+
var tmp_1 = $this.s4h_1;
|
|
378
431
|
tmp = pinger($this, tmp_0, interval, tmp_1, DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0($this, null));
|
|
379
432
|
} else {
|
|
380
433
|
tmp = null;
|
|
381
434
|
}
|
|
382
435
|
var newPinger = tmp;
|
|
383
|
-
var tmp0_safe_receiver = $this.
|
|
436
|
+
var tmp0_safe_receiver = $this.i4h_1.atomicfu$getAndSet(newPinger);
|
|
384
437
|
if (tmp0_safe_receiver == null)
|
|
385
438
|
null;
|
|
386
439
|
else
|
|
387
440
|
tmp0_safe_receiver.p25();
|
|
388
|
-
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.j25(
|
|
441
|
+
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.j25(Companion_getInstance_1().u4h_1));
|
|
389
442
|
if (tmp2_safe_receiver == null)
|
|
390
443
|
null;
|
|
391
444
|
else
|
|
392
445
|
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.t23_1);
|
|
393
|
-
if ($this.
|
|
446
|
+
if ($this.o4h_1.kotlinx$atomicfu$value && !(newPinger == null)) {
|
|
394
447
|
runOrCancelPinger($this);
|
|
395
448
|
}
|
|
396
449
|
}
|
|
@@ -403,49 +456,49 @@ function checkMaxFrameSize($this, packet, frame, $completion) {
|
|
|
403
456
|
function processIncomingExtensions($this, frame) {
|
|
404
457
|
// Inline function 'kotlin.collections.fold' call
|
|
405
458
|
var accumulator = frame;
|
|
406
|
-
var _iterator__ex2g4s = $this.
|
|
459
|
+
var _iterator__ex2g4s = $this.h4i().t();
|
|
407
460
|
while (_iterator__ex2g4s.u()) {
|
|
408
461
|
var element = _iterator__ex2g4s.v();
|
|
409
462
|
var current = accumulator;
|
|
410
|
-
accumulator = element.
|
|
463
|
+
accumulator = element.i4i(current);
|
|
411
464
|
}
|
|
412
465
|
return accumulator;
|
|
413
466
|
}
|
|
414
467
|
function processOutgoingExtensions($this, frame) {
|
|
415
468
|
// Inline function 'kotlin.collections.fold' call
|
|
416
469
|
var accumulator = frame;
|
|
417
|
-
var _iterator__ex2g4s = $this.
|
|
470
|
+
var _iterator__ex2g4s = $this.h4i().t();
|
|
418
471
|
while (_iterator__ex2g4s.u()) {
|
|
419
472
|
var element = _iterator__ex2g4s.v();
|
|
420
473
|
var current = accumulator;
|
|
421
|
-
accumulator = element.
|
|
474
|
+
accumulator = element.j4i(current);
|
|
422
475
|
}
|
|
423
476
|
return accumulator;
|
|
424
477
|
}
|
|
425
|
-
function
|
|
426
|
-
|
|
427
|
-
this.
|
|
478
|
+
function Companion_1() {
|
|
479
|
+
Companion_instance_1 = this;
|
|
480
|
+
this.u4h_1 = new Pong(new Int8Array(0), NonDisposableHandle_instance);
|
|
428
481
|
}
|
|
429
|
-
var
|
|
430
|
-
function
|
|
431
|
-
if (
|
|
432
|
-
new
|
|
433
|
-
return
|
|
482
|
+
var Companion_instance_1;
|
|
483
|
+
function Companion_getInstance_1() {
|
|
484
|
+
if (Companion_instance_1 == null)
|
|
485
|
+
new Companion_1();
|
|
486
|
+
return Companion_instance_1;
|
|
434
487
|
}
|
|
435
488
|
function DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
489
|
+
this.s4i_1 = $incomingJob;
|
|
490
|
+
this.t4i_1 = $outgoingJob;
|
|
491
|
+
this.u4i_1 = this$0;
|
|
439
492
|
CoroutineImpl.call(this, resultContinuation);
|
|
440
493
|
}
|
|
441
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
442
|
-
var tmp = this.
|
|
494
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).g3t = function ($this$launch, $completion) {
|
|
495
|
+
var tmp = this.h3t($this$launch, $completion);
|
|
443
496
|
tmp.x8_1 = Unit_instance;
|
|
444
497
|
tmp.y8_1 = null;
|
|
445
498
|
return tmp.d9();
|
|
446
499
|
};
|
|
447
500
|
protoOf(DefaultWebSocketSessionImpl$start$slambda).q9 = function (p1, $completion) {
|
|
448
|
-
return this.
|
|
501
|
+
return this.g3t((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
449
502
|
};
|
|
450
503
|
protoOf(DefaultWebSocketSessionImpl$start$slambda).d9 = function () {
|
|
451
504
|
var suspendResult = this.x8_1;
|
|
@@ -456,7 +509,7 @@ protoOf(DefaultWebSocketSessionImpl$start$slambda).d9 = function () {
|
|
|
456
509
|
case 0:
|
|
457
510
|
this.w8_1 = 3;
|
|
458
511
|
this.v8_1 = 1;
|
|
459
|
-
suspendResult = this.
|
|
512
|
+
suspendResult = this.s4i_1.d1o(this);
|
|
460
513
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
461
514
|
return suspendResult;
|
|
462
515
|
}
|
|
@@ -464,14 +517,14 @@ protoOf(DefaultWebSocketSessionImpl$start$slambda).d9 = function () {
|
|
|
464
517
|
continue $sm;
|
|
465
518
|
case 1:
|
|
466
519
|
this.v8_1 = 2;
|
|
467
|
-
suspendResult = this.
|
|
520
|
+
suspendResult = this.t4i_1.d1o(this);
|
|
468
521
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
469
522
|
return suspendResult;
|
|
470
523
|
}
|
|
471
524
|
|
|
472
525
|
continue $sm;
|
|
473
526
|
case 2:
|
|
474
|
-
this.
|
|
527
|
+
this.u4i_1.k4h_1.h1o();
|
|
475
528
|
return Unit_instance;
|
|
476
529
|
case 3:
|
|
477
530
|
throw this.y8_1;
|
|
@@ -487,30 +540,30 @@ protoOf(DefaultWebSocketSessionImpl$start$slambda).d9 = function () {
|
|
|
487
540
|
}
|
|
488
541
|
while (true);
|
|
489
542
|
};
|
|
490
|
-
protoOf(DefaultWebSocketSessionImpl$start$slambda).
|
|
491
|
-
var i = new DefaultWebSocketSessionImpl$start$slambda(this.
|
|
492
|
-
i.
|
|
543
|
+
protoOf(DefaultWebSocketSessionImpl$start$slambda).h3t = function ($this$launch, completion) {
|
|
544
|
+
var i = new DefaultWebSocketSessionImpl$start$slambda(this.s4i_1, this.t4i_1, this.u4i_1, completion);
|
|
545
|
+
i.v4i_1 = $this$launch;
|
|
493
546
|
return i;
|
|
494
547
|
};
|
|
495
548
|
function DefaultWebSocketSessionImpl$start$slambda_0($incomingJob, $outgoingJob, this$0, resultContinuation) {
|
|
496
549
|
var i = new DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation);
|
|
497
550
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
498
|
-
return i.
|
|
551
|
+
return i.g3t($this$launch, $completion);
|
|
499
552
|
}, 1);
|
|
500
553
|
}
|
|
501
554
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation) {
|
|
502
|
-
this.
|
|
503
|
-
this.
|
|
555
|
+
this.e4j_1 = this$0;
|
|
556
|
+
this.f4j_1 = $ponger;
|
|
504
557
|
CoroutineImpl.call(this, resultContinuation);
|
|
505
558
|
}
|
|
506
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
507
|
-
var tmp = this.
|
|
559
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).g3t = function ($this$launch, $completion) {
|
|
560
|
+
var tmp = this.h3t($this$launch, $completion);
|
|
508
561
|
tmp.x8_1 = Unit_instance;
|
|
509
562
|
tmp.y8_1 = null;
|
|
510
563
|
return tmp.d9();
|
|
511
564
|
};
|
|
512
565
|
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).q9 = function (p1, $completion) {
|
|
513
|
-
return this.
|
|
566
|
+
return this.g3t((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
514
567
|
};
|
|
515
568
|
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function () {
|
|
516
569
|
var suspendResult = this.x8_1;
|
|
@@ -520,10 +573,10 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
520
573
|
switch (tmp) {
|
|
521
574
|
case 0:
|
|
522
575
|
this.w8_1 = 39;
|
|
523
|
-
this.
|
|
524
|
-
this.
|
|
525
|
-
this.
|
|
526
|
-
this.
|
|
576
|
+
this.q4j_1 = null;
|
|
577
|
+
this.j4j_1 = null;
|
|
578
|
+
this.i4j_1 = false;
|
|
579
|
+
this.k4j_1 = Unit_instance;
|
|
527
580
|
this.v8_1 = 1;
|
|
528
581
|
continue $sm;
|
|
529
582
|
case 1:
|
|
@@ -532,12 +585,12 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
532
585
|
case 2:
|
|
533
586
|
this.w8_1 = 33;
|
|
534
587
|
this.w8_1 = 32;
|
|
535
|
-
this.
|
|
588
|
+
this.u4j_1 = this.e4j_1.h4h_1.e4g();
|
|
536
589
|
this.v8_1 = 3;
|
|
537
590
|
continue $sm;
|
|
538
591
|
case 3:
|
|
539
|
-
this.
|
|
540
|
-
this.
|
|
592
|
+
this.n4j_1 = this.u4j_1;
|
|
593
|
+
this.m4j_1 = null;
|
|
541
594
|
this.v8_1 = 4;
|
|
542
595
|
continue $sm;
|
|
543
596
|
case 4:
|
|
@@ -549,12 +602,12 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
549
602
|
case 6:
|
|
550
603
|
this.w8_1 = 29;
|
|
551
604
|
this.w8_1 = 28;
|
|
552
|
-
this.
|
|
605
|
+
this.t4j_1 = this.n4j_1.t();
|
|
553
606
|
this.v8_1 = 7;
|
|
554
607
|
continue $sm;
|
|
555
608
|
case 7:
|
|
556
609
|
this.v8_1 = 8;
|
|
557
|
-
suspendResult = this.
|
|
610
|
+
suspendResult = this.t4j_1.l23(this);
|
|
558
611
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
559
612
|
return suspendResult;
|
|
560
613
|
}
|
|
@@ -566,23 +619,23 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
566
619
|
continue $sm;
|
|
567
620
|
}
|
|
568
621
|
|
|
569
|
-
var e = this.
|
|
570
|
-
this.
|
|
622
|
+
var e = this.t4j_1.v();
|
|
623
|
+
this.s4j_1 = e;
|
|
571
624
|
this.v8_1 = 9;
|
|
572
625
|
continue $sm;
|
|
573
626
|
case 9:
|
|
574
|
-
this.
|
|
627
|
+
this.r4j_1 = this.s4j_1;
|
|
575
628
|
var this_0 = get_LOGGER();
|
|
576
629
|
if (get_isTraceEnabled(this_0)) {
|
|
577
|
-
this_0.
|
|
630
|
+
this_0.z41('WebSocketSession(' + toString(this.g4j_1) + ') receiving frame ' + this.r4j_1.toString());
|
|
578
631
|
}
|
|
579
632
|
|
|
580
|
-
var tmp0_subject = this.
|
|
633
|
+
var tmp0_subject = this.r4j_1;
|
|
581
634
|
if (tmp0_subject instanceof Close) {
|
|
582
|
-
if (!this.
|
|
635
|
+
if (!this.e4j_1.f4g().n23()) {
|
|
583
636
|
this.v8_1 = 18;
|
|
584
|
-
var tmp_0 = this.
|
|
585
|
-
var tmp1_elvis_lhs = readReason(this.
|
|
637
|
+
var tmp_0 = this.e4j_1.f4g();
|
|
638
|
+
var tmp1_elvis_lhs = readReason(this.r4j_1);
|
|
586
639
|
suspendResult = tmp_0.i25(Close_init_$Create$(tmp1_elvis_lhs == null ? get_NORMAL_CLOSE() : tmp1_elvis_lhs), this);
|
|
587
640
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
588
641
|
return suspendResult;
|
|
@@ -594,14 +647,14 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
594
647
|
}
|
|
595
648
|
} else {
|
|
596
649
|
if (tmp0_subject instanceof Pong) {
|
|
597
|
-
var tmp2_safe_receiver = this.
|
|
650
|
+
var tmp2_safe_receiver = this.e4j_1.i4h_1.kotlinx$atomicfu$value;
|
|
598
651
|
if (tmp2_safe_receiver == null) {
|
|
599
|
-
this.
|
|
652
|
+
this.p4j_1 = null;
|
|
600
653
|
this.v8_1 = 17;
|
|
601
654
|
continue $sm;
|
|
602
655
|
} else {
|
|
603
656
|
this.v8_1 = 16;
|
|
604
|
-
suspendResult = tmp2_safe_receiver.i25(this.
|
|
657
|
+
suspendResult = tmp2_safe_receiver.i25(this.r4j_1, this);
|
|
605
658
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
606
659
|
return suspendResult;
|
|
607
660
|
}
|
|
@@ -610,14 +663,14 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
610
663
|
} else {
|
|
611
664
|
if (tmp0_subject instanceof Ping) {
|
|
612
665
|
this.v8_1 = 15;
|
|
613
|
-
suspendResult = this.
|
|
666
|
+
suspendResult = this.f4j_1.i25(this.r4j_1, this);
|
|
614
667
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
615
668
|
return suspendResult;
|
|
616
669
|
}
|
|
617
670
|
continue $sm;
|
|
618
671
|
} else {
|
|
619
672
|
this.v8_1 = 10;
|
|
620
|
-
suspendResult = checkMaxFrameSize(this.
|
|
673
|
+
suspendResult = checkMaxFrameSize(this.e4j_1, this.j4j_1, this.r4j_1, this);
|
|
621
674
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
622
675
|
return suspendResult;
|
|
623
676
|
}
|
|
@@ -627,14 +680,14 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
627
680
|
}
|
|
628
681
|
|
|
629
682
|
case 10:
|
|
630
|
-
if (!this.
|
|
631
|
-
if (this.
|
|
632
|
-
this.
|
|
683
|
+
if (!this.r4j_1.u4f_1) {
|
|
684
|
+
if (this.q4j_1 == null) {
|
|
685
|
+
this.q4j_1 = this.r4j_1;
|
|
633
686
|
}
|
|
634
|
-
if (this.
|
|
635
|
-
this.
|
|
687
|
+
if (this.j4j_1 == null) {
|
|
688
|
+
this.j4j_1 = BytePacketBuilder();
|
|
636
689
|
}
|
|
637
|
-
writeFully(this.
|
|
690
|
+
writeFully(this.j4j_1, this.r4j_1.w4f_1);
|
|
638
691
|
this.v8_1 = 21;
|
|
639
692
|
continue $sm;
|
|
640
693
|
} else {
|
|
@@ -643,9 +696,9 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
643
696
|
}
|
|
644
697
|
|
|
645
698
|
case 11:
|
|
646
|
-
if (this.
|
|
699
|
+
if (this.q4j_1 == null) {
|
|
647
700
|
this.v8_1 = 14;
|
|
648
|
-
suspendResult = this.
|
|
701
|
+
suspendResult = this.e4j_1.m4h_1.i25(processIncomingExtensions(this.e4j_1, this.r4j_1), this);
|
|
649
702
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
650
703
|
return suspendResult;
|
|
651
704
|
}
|
|
@@ -656,11 +709,11 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
656
709
|
}
|
|
657
710
|
|
|
658
711
|
case 12:
|
|
659
|
-
writeFully(ensureNotNull(this.
|
|
660
|
-
var defragmented =
|
|
661
|
-
this.
|
|
712
|
+
writeFully(ensureNotNull(this.j4j_1), this.r4j_1.w4f_1);
|
|
713
|
+
var defragmented = Companion_getInstance_6().w4j(true, this.q4j_1.v4f_1, readByteArray(build(this.j4j_1)), this.q4j_1.y4f_1, this.q4j_1.z4f_1, this.q4j_1.a4g_1);
|
|
714
|
+
this.q4j_1 = null;
|
|
662
715
|
this.v8_1 = 13;
|
|
663
|
-
suspendResult = this.
|
|
716
|
+
suspendResult = this.e4j_1.m4h_1.i25(processIncomingExtensions(this.e4j_1, defragmented), this);
|
|
664
717
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
665
718
|
return suspendResult;
|
|
666
719
|
}
|
|
@@ -668,7 +721,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
668
721
|
continue $sm;
|
|
669
722
|
case 13:
|
|
670
723
|
var tmp_1 = this;
|
|
671
|
-
tmp_1.
|
|
724
|
+
tmp_1.o4j_1 = Unit_instance;
|
|
672
725
|
this.v8_1 = 20;
|
|
673
726
|
continue $sm;
|
|
674
727
|
case 14:
|
|
@@ -676,23 +729,23 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
676
729
|
continue $sm;
|
|
677
730
|
case 15:
|
|
678
731
|
var tmp_2 = this;
|
|
679
|
-
tmp_2.
|
|
732
|
+
tmp_2.o4j_1 = Unit_instance;
|
|
680
733
|
this.v8_1 = 20;
|
|
681
734
|
continue $sm;
|
|
682
735
|
case 16:
|
|
683
736
|
var tmp_3 = this;
|
|
684
|
-
tmp_3.
|
|
737
|
+
tmp_3.p4j_1 = Unit_instance;
|
|
685
738
|
this.v8_1 = 17;
|
|
686
739
|
continue $sm;
|
|
687
740
|
case 17:
|
|
688
|
-
this.
|
|
741
|
+
this.o4j_1 = this.p4j_1;
|
|
689
742
|
this.v8_1 = 20;
|
|
690
743
|
continue $sm;
|
|
691
744
|
case 18:
|
|
692
745
|
this.v8_1 = 19;
|
|
693
746
|
continue $sm;
|
|
694
747
|
case 19:
|
|
695
|
-
this.
|
|
748
|
+
this.i4j_1 = true;
|
|
696
749
|
this.v8_1 = 22;
|
|
697
750
|
var tmp_4 = this;
|
|
698
751
|
continue $sm;
|
|
@@ -709,24 +762,24 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
709
762
|
continue $sm;
|
|
710
763
|
case 22:
|
|
711
764
|
this.w8_1 = 32;
|
|
712
|
-
cancelConsumed(this.
|
|
765
|
+
cancelConsumed(this.n4j_1, this.m4j_1);
|
|
713
766
|
this.w8_1 = 39;
|
|
714
767
|
this.v8_1 = 23;
|
|
715
768
|
continue $sm;
|
|
716
769
|
case 23:
|
|
717
770
|
this.w8_1 = 39;
|
|
718
|
-
this.
|
|
719
|
-
var tmp0_safe_receiver = this.
|
|
771
|
+
this.f4j_1.p25();
|
|
772
|
+
var tmp0_safe_receiver = this.j4j_1;
|
|
720
773
|
if (tmp0_safe_receiver == null)
|
|
721
774
|
null;
|
|
722
775
|
else {
|
|
723
776
|
tmp0_safe_receiver.d4();
|
|
724
777
|
}
|
|
725
778
|
|
|
726
|
-
this.
|
|
727
|
-
if (!this.
|
|
779
|
+
this.e4j_1.m4h_1.p25();
|
|
780
|
+
if (!this.i4j_1) {
|
|
728
781
|
this.v8_1 = 24;
|
|
729
|
-
suspendResult = close(this.
|
|
782
|
+
suspendResult = close(this.e4j_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
730
783
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
731
784
|
return suspendResult;
|
|
732
785
|
}
|
|
@@ -748,7 +801,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
748
801
|
continue $sm;
|
|
749
802
|
case 27:
|
|
750
803
|
this.w8_1 = 32;
|
|
751
|
-
cancelConsumed(this.
|
|
804
|
+
cancelConsumed(this.n4j_1, this.m4j_1);
|
|
752
805
|
this.v8_1 = 31;
|
|
753
806
|
continue $sm;
|
|
754
807
|
case 28:
|
|
@@ -757,7 +810,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
757
810
|
if (tmp_7 instanceof Error) {
|
|
758
811
|
var e_0 = this.y8_1;
|
|
759
812
|
var tmp_8 = this;
|
|
760
|
-
this.
|
|
813
|
+
this.m4j_1 = e_0;
|
|
761
814
|
throw e_0;
|
|
762
815
|
} else {
|
|
763
816
|
throw this.y8_1;
|
|
@@ -766,11 +819,11 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
766
819
|
case 29:
|
|
767
820
|
this.w8_1 = 32;
|
|
768
821
|
var t = this.y8_1;
|
|
769
|
-
cancelConsumed(this.
|
|
822
|
+
cancelConsumed(this.n4j_1, this.m4j_1);
|
|
770
823
|
throw t;
|
|
771
824
|
case 30:
|
|
772
825
|
this.w8_1 = 32;
|
|
773
|
-
cancelConsumed(this.
|
|
826
|
+
cancelConsumed(this.n4j_1, this.m4j_1);
|
|
774
827
|
if (false) {
|
|
775
828
|
this.v8_1 = 3;
|
|
776
829
|
continue $sm;
|
|
@@ -779,7 +832,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
779
832
|
this.v8_1 = 31;
|
|
780
833
|
continue $sm;
|
|
781
834
|
case 31:
|
|
782
|
-
this.
|
|
835
|
+
this.k4j_1 = Unit_instance;
|
|
783
836
|
this.w8_1 = 39;
|
|
784
837
|
this.v8_1 = 36;
|
|
785
838
|
continue $sm;
|
|
@@ -789,7 +842,7 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
789
842
|
if (tmp_9 instanceof ClosedSendChannelException) {
|
|
790
843
|
var _unused_var__etf5q3 = this.y8_1;
|
|
791
844
|
var tmp_10 = this;
|
|
792
|
-
tmp_10.
|
|
845
|
+
tmp_10.k4j_1 = Unit_instance;
|
|
793
846
|
this.w8_1 = 39;
|
|
794
847
|
this.v8_1 = 36;
|
|
795
848
|
continue $sm;
|
|
@@ -798,8 +851,8 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
798
851
|
if (tmp_11 instanceof Error) {
|
|
799
852
|
var cause = this.y8_1;
|
|
800
853
|
var tmp_12 = this;
|
|
801
|
-
this.
|
|
802
|
-
tmp_12.
|
|
854
|
+
this.f4j_1.p25();
|
|
855
|
+
tmp_12.k4j_1 = this.e4j_1.m4h_1.n25(cause);
|
|
803
856
|
this.w8_1 = 39;
|
|
804
857
|
this.v8_1 = 36;
|
|
805
858
|
continue $sm;
|
|
@@ -810,19 +863,19 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
810
863
|
|
|
811
864
|
case 33:
|
|
812
865
|
this.w8_1 = 39;
|
|
813
|
-
this.
|
|
814
|
-
this.
|
|
815
|
-
var tmp0_safe_receiver_0 = this.
|
|
866
|
+
this.l4j_1 = this.y8_1;
|
|
867
|
+
this.f4j_1.p25();
|
|
868
|
+
var tmp0_safe_receiver_0 = this.j4j_1;
|
|
816
869
|
if (tmp0_safe_receiver_0 == null)
|
|
817
870
|
null;
|
|
818
871
|
else {
|
|
819
872
|
tmp0_safe_receiver_0.d4();
|
|
820
873
|
}
|
|
821
874
|
|
|
822
|
-
this.
|
|
823
|
-
if (!this.
|
|
875
|
+
this.e4j_1.m4h_1.p25();
|
|
876
|
+
if (!this.i4j_1) {
|
|
824
877
|
this.v8_1 = 34;
|
|
825
|
-
suspendResult = close(this.
|
|
878
|
+
suspendResult = close(this.e4j_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
826
879
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
827
880
|
return suspendResult;
|
|
828
881
|
}
|
|
@@ -836,22 +889,22 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
836
889
|
this.v8_1 = 35;
|
|
837
890
|
continue $sm;
|
|
838
891
|
case 35:
|
|
839
|
-
throw this.
|
|
892
|
+
throw this.l4j_1;
|
|
840
893
|
case 36:
|
|
841
|
-
this.
|
|
894
|
+
this.h4j_1 = this.k4j_1;
|
|
842
895
|
this.w8_1 = 39;
|
|
843
|
-
this.
|
|
844
|
-
var tmp0_safe_receiver_1 = this.
|
|
896
|
+
this.f4j_1.p25();
|
|
897
|
+
var tmp0_safe_receiver_1 = this.j4j_1;
|
|
845
898
|
if (tmp0_safe_receiver_1 == null)
|
|
846
899
|
null;
|
|
847
900
|
else {
|
|
848
901
|
tmp0_safe_receiver_1.d4();
|
|
849
902
|
}
|
|
850
903
|
|
|
851
|
-
this.
|
|
852
|
-
if (!this.
|
|
904
|
+
this.e4j_1.m4h_1.p25();
|
|
905
|
+
if (!this.i4j_1) {
|
|
853
906
|
this.v8_1 = 37;
|
|
854
|
-
suspendResult = close(this.
|
|
907
|
+
suspendResult = close(this.e4j_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
855
908
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
856
909
|
return suspendResult;
|
|
857
910
|
}
|
|
@@ -880,29 +933,29 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function
|
|
|
880
933
|
}
|
|
881
934
|
while (true);
|
|
882
935
|
};
|
|
883
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
884
|
-
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.
|
|
885
|
-
i.
|
|
936
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).h3t = function ($this$launch, completion) {
|
|
937
|
+
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.e4j_1, this.f4j_1, completion);
|
|
938
|
+
i.g4j_1 = $this$launch;
|
|
886
939
|
return i;
|
|
887
940
|
};
|
|
888
941
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0(this$0, $ponger, resultContinuation) {
|
|
889
942
|
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation);
|
|
890
943
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
891
|
-
return i.
|
|
944
|
+
return i.g3t($this$launch, $completion);
|
|
892
945
|
}, 1);
|
|
893
946
|
}
|
|
894
947
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation) {
|
|
895
|
-
this.
|
|
948
|
+
this.f4k_1 = this$0;
|
|
896
949
|
CoroutineImpl.call(this, resultContinuation);
|
|
897
950
|
}
|
|
898
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
899
|
-
var tmp = this.
|
|
951
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).g3t = function ($this$launch, $completion) {
|
|
952
|
+
var tmp = this.h3t($this$launch, $completion);
|
|
900
953
|
tmp.x8_1 = Unit_instance;
|
|
901
954
|
tmp.y8_1 = null;
|
|
902
955
|
return tmp.d9();
|
|
903
956
|
};
|
|
904
957
|
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).q9 = function (p1, $completion) {
|
|
905
|
-
return this.
|
|
958
|
+
return this.g3t((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
906
959
|
};
|
|
907
960
|
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).d9 = function () {
|
|
908
961
|
var suspendResult = this.x8_1;
|
|
@@ -921,7 +974,7 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).d9 = function
|
|
|
921
974
|
this.w8_1 = 9;
|
|
922
975
|
this.w8_1 = 4;
|
|
923
976
|
this.v8_1 = 3;
|
|
924
|
-
suspendResult = outgoingProcessorLoop(this.
|
|
977
|
+
suspendResult = outgoingProcessorLoop(this.f4k_1, this);
|
|
925
978
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
926
979
|
return suspendResult;
|
|
927
980
|
}
|
|
@@ -951,7 +1004,7 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).d9 = function
|
|
|
951
1004
|
if (tmp_2 instanceof CancellationException) {
|
|
952
1005
|
var _unused_var__etf5q3_1 = this.y8_1;
|
|
953
1006
|
this.v8_1 = 5;
|
|
954
|
-
suspendResult = sendCloseSequence(this.
|
|
1007
|
+
suspendResult = sendCloseSequence(this.f4k_1, CloseReason_init_$Create$(Codes_NORMAL_getInstance(), ''), VOID, this);
|
|
955
1008
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
956
1009
|
return suspendResult;
|
|
957
1010
|
}
|
|
@@ -967,9 +1020,9 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).d9 = function
|
|
|
967
1020
|
var tmp_4 = this.y8_1;
|
|
968
1021
|
if (tmp_4 instanceof Error) {
|
|
969
1022
|
var cause = this.y8_1;
|
|
970
|
-
this.
|
|
1023
|
+
this.f4k_1.n4h_1.g1o(CancellationException_init_$Create$('Failed to send frame', cause));
|
|
971
1024
|
this.v8_1 = 6;
|
|
972
|
-
suspendResult = closeExceptionally(this.
|
|
1025
|
+
suspendResult = closeExceptionally(this.f4k_1.h4h_1, cause, this);
|
|
973
1026
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
974
1027
|
return suspendResult;
|
|
975
1028
|
}
|
|
@@ -992,9 +1045,9 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).d9 = function
|
|
|
992
1045
|
continue $sm;
|
|
993
1046
|
case 7:
|
|
994
1047
|
this.w8_1 = 13;
|
|
995
|
-
this.
|
|
1048
|
+
this.f4k_1.n4h_1.r25();
|
|
996
1049
|
this.v8_1 = 8;
|
|
997
|
-
suspendResult = close(this.
|
|
1050
|
+
suspendResult = close(this.f4k_1.h4h_1, VOID, this);
|
|
998
1051
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
999
1052
|
return suspendResult;
|
|
1000
1053
|
}
|
|
@@ -1004,22 +1057,22 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).d9 = function
|
|
|
1004
1057
|
return Unit_instance;
|
|
1005
1058
|
case 9:
|
|
1006
1059
|
this.w8_1 = 13;
|
|
1007
|
-
this.
|
|
1008
|
-
this.
|
|
1060
|
+
this.h4k_1 = this.y8_1;
|
|
1061
|
+
this.f4k_1.n4h_1.r25();
|
|
1009
1062
|
this.v8_1 = 10;
|
|
1010
|
-
suspendResult = close(this.
|
|
1063
|
+
suspendResult = close(this.f4k_1.h4h_1, VOID, this);
|
|
1011
1064
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1012
1065
|
return suspendResult;
|
|
1013
1066
|
}
|
|
1014
1067
|
|
|
1015
1068
|
continue $sm;
|
|
1016
1069
|
case 10:
|
|
1017
|
-
throw this.
|
|
1070
|
+
throw this.h4k_1;
|
|
1018
1071
|
case 11:
|
|
1019
1072
|
this.w8_1 = 13;
|
|
1020
|
-
this.
|
|
1073
|
+
this.f4k_1.n4h_1.r25();
|
|
1021
1074
|
this.v8_1 = 12;
|
|
1022
|
-
suspendResult = close(this.
|
|
1075
|
+
suspendResult = close(this.f4k_1.h4h_1, VOID, this);
|
|
1023
1076
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1024
1077
|
return suspendResult;
|
|
1025
1078
|
}
|
|
@@ -1041,29 +1094,29 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).d9 = function
|
|
|
1041
1094
|
}
|
|
1042
1095
|
while (true);
|
|
1043
1096
|
};
|
|
1044
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
1045
|
-
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.
|
|
1046
|
-
i.
|
|
1097
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).h3t = function ($this$launch, completion) {
|
|
1098
|
+
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.f4k_1, completion);
|
|
1099
|
+
i.g4k_1 = $this$launch;
|
|
1047
1100
|
return i;
|
|
1048
1101
|
};
|
|
1049
1102
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0(this$0, resultContinuation) {
|
|
1050
1103
|
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation);
|
|
1051
1104
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
1052
|
-
return i.
|
|
1105
|
+
return i.g3t($this$launch, $completion);
|
|
1053
1106
|
}, 1);
|
|
1054
1107
|
}
|
|
1055
1108
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation) {
|
|
1056
|
-
this.
|
|
1109
|
+
this.q4k_1 = this$0;
|
|
1057
1110
|
CoroutineImpl.call(this, resultContinuation);
|
|
1058
1111
|
}
|
|
1059
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1060
|
-
var tmp = this.
|
|
1112
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).s4k = function (it, $completion) {
|
|
1113
|
+
var tmp = this.t4k(it, $completion);
|
|
1061
1114
|
tmp.x8_1 = Unit_instance;
|
|
1062
1115
|
tmp.y8_1 = null;
|
|
1063
1116
|
return tmp.d9();
|
|
1064
1117
|
};
|
|
1065
1118
|
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).q9 = function (p1, $completion) {
|
|
1066
|
-
return this.
|
|
1119
|
+
return this.s4k(p1 instanceof CloseReason ? p1 : THROW_CCE(), $completion);
|
|
1067
1120
|
};
|
|
1068
1121
|
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).d9 = function () {
|
|
1069
1122
|
var suspendResult = this.x8_1;
|
|
@@ -1074,7 +1127,7 @@ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).d9 = function ()
|
|
|
1074
1127
|
case 0:
|
|
1075
1128
|
this.w8_1 = 2;
|
|
1076
1129
|
this.v8_1 = 1;
|
|
1077
|
-
suspendResult = sendCloseSequence(this.
|
|
1130
|
+
suspendResult = sendCloseSequence(this.q4k_1, this.r4k_1, IOException_init_$Create$('Ping timeout'), this);
|
|
1078
1131
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1079
1132
|
return suspendResult;
|
|
1080
1133
|
}
|
|
@@ -1096,20 +1149,20 @@ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).d9 = function ()
|
|
|
1096
1149
|
}
|
|
1097
1150
|
while (true);
|
|
1098
1151
|
};
|
|
1099
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1100
|
-
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.
|
|
1101
|
-
i.
|
|
1152
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).t4k = function (it, completion) {
|
|
1153
|
+
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.q4k_1, completion);
|
|
1154
|
+
i.r4k_1 = it;
|
|
1102
1155
|
return i;
|
|
1103
1156
|
};
|
|
1104
1157
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0(this$0, resultContinuation) {
|
|
1105
1158
|
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation);
|
|
1106
1159
|
return constructCallableReference(function (it, $completion) {
|
|
1107
|
-
return i.
|
|
1160
|
+
return i.s4k(it, $completion);
|
|
1108
1161
|
}, 1);
|
|
1109
1162
|
}
|
|
1110
1163
|
function $outgoingProcessorLoopCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1111
1164
|
CoroutineImpl.call(this, resultContinuation);
|
|
1112
|
-
this.
|
|
1165
|
+
this.s4g_1 = _this__u8e3s4;
|
|
1113
1166
|
}
|
|
1114
1167
|
protoOf($outgoingProcessorLoopCOROUTINE$).d9 = function () {
|
|
1115
1168
|
var suspendResult = this.x8_1;
|
|
@@ -1119,12 +1172,12 @@ protoOf($outgoingProcessorLoopCOROUTINE$).d9 = function () {
|
|
|
1119
1172
|
switch (tmp) {
|
|
1120
1173
|
case 0:
|
|
1121
1174
|
this.w8_1 = 7;
|
|
1122
|
-
this.
|
|
1175
|
+
this.u4g_1 = this.s4g_1.n4h_1.t();
|
|
1123
1176
|
this.v8_1 = 1;
|
|
1124
1177
|
continue $sm;
|
|
1125
1178
|
case 1:
|
|
1126
1179
|
this.v8_1 = 2;
|
|
1127
|
-
suspendResult = this.
|
|
1180
|
+
suspendResult = this.u4g_1.l23(this);
|
|
1128
1181
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1129
1182
|
return suspendResult;
|
|
1130
1183
|
}
|
|
@@ -1136,15 +1189,15 @@ protoOf($outgoingProcessorLoopCOROUTINE$).d9 = function () {
|
|
|
1136
1189
|
continue $sm;
|
|
1137
1190
|
}
|
|
1138
1191
|
|
|
1139
|
-
var frame = this.
|
|
1192
|
+
var frame = this.u4g_1.v();
|
|
1140
1193
|
var this_0 = get_LOGGER();
|
|
1141
1194
|
if (get_isTraceEnabled(this_0)) {
|
|
1142
|
-
this_0.
|
|
1195
|
+
this_0.z41('Sending ' + frame.toString() + ' from session ' + toString(this.s4g_1));
|
|
1143
1196
|
}
|
|
1144
1197
|
|
|
1145
1198
|
if (frame instanceof Close) {
|
|
1146
1199
|
this.v8_1 = 3;
|
|
1147
|
-
suspendResult = sendCloseSequence(this.
|
|
1200
|
+
suspendResult = sendCloseSequence(this.s4g_1, readReason(frame), VOID, this);
|
|
1148
1201
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1149
1202
|
return suspendResult;
|
|
1150
1203
|
}
|
|
@@ -1157,11 +1210,11 @@ protoOf($outgoingProcessorLoopCOROUTINE$).d9 = function () {
|
|
|
1157
1210
|
tmp_0 = frame instanceof Binary;
|
|
1158
1211
|
}
|
|
1159
1212
|
if (tmp_0) {
|
|
1160
|
-
this.
|
|
1213
|
+
this.t4g_1 = processOutgoingExtensions(this.s4g_1, frame);
|
|
1161
1214
|
this.v8_1 = 4;
|
|
1162
1215
|
continue $sm;
|
|
1163
1216
|
} else {
|
|
1164
|
-
this.
|
|
1217
|
+
this.t4g_1 = frame;
|
|
1165
1218
|
this.v8_1 = 4;
|
|
1166
1219
|
continue $sm;
|
|
1167
1220
|
}
|
|
@@ -1172,9 +1225,9 @@ protoOf($outgoingProcessorLoopCOROUTINE$).d9 = function () {
|
|
|
1172
1225
|
var tmp_1 = this;
|
|
1173
1226
|
continue $sm;
|
|
1174
1227
|
case 4:
|
|
1175
|
-
var processedFrame = this.
|
|
1228
|
+
var processedFrame = this.t4g_1;
|
|
1176
1229
|
this.v8_1 = 5;
|
|
1177
|
-
suspendResult = this.
|
|
1230
|
+
suspendResult = this.s4g_1.h4h_1.f4g().i25(processedFrame, this);
|
|
1178
1231
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1179
1232
|
return suspendResult;
|
|
1180
1233
|
}
|
|
@@ -1201,9 +1254,9 @@ protoOf($outgoingProcessorLoopCOROUTINE$).d9 = function () {
|
|
|
1201
1254
|
};
|
|
1202
1255
|
function $sendCloseSequenceCOROUTINE$(_this__u8e3s4, reason, exception, resultContinuation) {
|
|
1203
1256
|
CoroutineImpl.call(this, resultContinuation);
|
|
1204
|
-
this.
|
|
1205
|
-
this.
|
|
1206
|
-
this.
|
|
1257
|
+
this.d4h_1 = _this__u8e3s4;
|
|
1258
|
+
this.e4h_1 = reason;
|
|
1259
|
+
this.f4h_1 = exception;
|
|
1207
1260
|
}
|
|
1208
1261
|
protoOf($sendCloseSequenceCOROUTINE$).d9 = function () {
|
|
1209
1262
|
var suspendResult = this.x8_1;
|
|
@@ -1213,25 +1266,25 @@ protoOf($sendCloseSequenceCOROUTINE$).d9 = function () {
|
|
|
1213
1266
|
switch (tmp) {
|
|
1214
1267
|
case 0:
|
|
1215
1268
|
this.w8_1 = 6;
|
|
1216
|
-
if (!tryClose(this.
|
|
1269
|
+
if (!tryClose(this.d4h_1))
|
|
1217
1270
|
return Unit_instance;
|
|
1218
1271
|
var this_0 = get_LOGGER();
|
|
1219
1272
|
if (get_isTraceEnabled(this_0)) {
|
|
1220
|
-
this_0.
|
|
1273
|
+
this_0.z41('Sending Close Sequence for session ' + toString(this.d4h_1) + ' with reason ' + toString_0(this.e4h_1) + ' and exception ' + toString_0(this.f4h_1));
|
|
1221
1274
|
}
|
|
1222
1275
|
|
|
1223
|
-
this.
|
|
1276
|
+
this.d4h_1.k4h_1.f1v();
|
|
1224
1277
|
var tmp_0 = this;
|
|
1225
|
-
var tmp0_elvis_lhs = this.
|
|
1226
|
-
tmp_0.
|
|
1278
|
+
var tmp0_elvis_lhs = this.e4h_1;
|
|
1279
|
+
tmp_0.g4h_1 = tmp0_elvis_lhs == null ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : tmp0_elvis_lhs;
|
|
1227
1280
|
this.v8_1 = 1;
|
|
1228
1281
|
continue $sm;
|
|
1229
1282
|
case 1:
|
|
1230
1283
|
this.w8_1 = 5;
|
|
1231
|
-
runOrCancelPinger(this.
|
|
1232
|
-
if (!(this.
|
|
1284
|
+
runOrCancelPinger(this.d4h_1);
|
|
1285
|
+
if (!(this.g4h_1.n4f_1 === Codes_CLOSED_ABNORMALLY_getInstance().j4f_1)) {
|
|
1233
1286
|
this.v8_1 = 2;
|
|
1234
|
-
suspendResult = this.
|
|
1287
|
+
suspendResult = this.d4h_1.h4h_1.f4g().i25(Close_init_$Create$(this.g4h_1), this);
|
|
1235
1288
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1236
1289
|
return suspendResult;
|
|
1237
1290
|
}
|
|
@@ -1250,20 +1303,20 @@ protoOf($sendCloseSequenceCOROUTINE$).d9 = function () {
|
|
|
1250
1303
|
continue $sm;
|
|
1251
1304
|
case 4:
|
|
1252
1305
|
this.w8_1 = 6;
|
|
1253
|
-
this.
|
|
1254
|
-
if (!(this.
|
|
1255
|
-
this.
|
|
1256
|
-
this.
|
|
1306
|
+
this.d4h_1.j4h_1.d1v(this.g4h_1);
|
|
1307
|
+
if (!(this.f4h_1 == null)) {
|
|
1308
|
+
this.d4h_1.n4h_1.n25(this.f4h_1);
|
|
1309
|
+
this.d4h_1.m4h_1.n25(this.f4h_1);
|
|
1257
1310
|
}
|
|
1258
1311
|
|
|
1259
1312
|
return Unit_instance;
|
|
1260
1313
|
case 5:
|
|
1261
1314
|
this.w8_1 = 6;
|
|
1262
1315
|
var t = this.y8_1;
|
|
1263
|
-
this.
|
|
1264
|
-
if (!(this.
|
|
1265
|
-
this.
|
|
1266
|
-
this.
|
|
1316
|
+
this.d4h_1.j4h_1.d1v(this.g4h_1);
|
|
1317
|
+
if (!(this.f4h_1 == null)) {
|
|
1318
|
+
this.d4h_1.n4h_1.n25(this.f4h_1);
|
|
1319
|
+
this.d4h_1.m4h_1.n25(this.f4h_1);
|
|
1267
1320
|
}
|
|
1268
1321
|
|
|
1269
1322
|
throw t;
|
|
@@ -1283,9 +1336,9 @@ protoOf($sendCloseSequenceCOROUTINE$).d9 = function () {
|
|
|
1283
1336
|
};
|
|
1284
1337
|
function $checkMaxFrameSizeCOROUTINE$(_this__u8e3s4, packet, frame, resultContinuation) {
|
|
1285
1338
|
CoroutineImpl.call(this, resultContinuation);
|
|
1286
|
-
this.
|
|
1287
|
-
this.
|
|
1288
|
-
this.
|
|
1339
|
+
this.d4i_1 = _this__u8e3s4;
|
|
1340
|
+
this.e4i_1 = packet;
|
|
1341
|
+
this.f4i_1 = frame;
|
|
1289
1342
|
}
|
|
1290
1343
|
protoOf($checkMaxFrameSizeCOROUTINE$).d9 = function () {
|
|
1291
1344
|
var suspendResult = this.x8_1;
|
|
@@ -1296,19 +1349,19 @@ protoOf($checkMaxFrameSizeCOROUTINE$).d9 = function () {
|
|
|
1296
1349
|
case 0:
|
|
1297
1350
|
this.w8_1 = 3;
|
|
1298
1351
|
var tmp_0 = this;
|
|
1299
|
-
var tmp_1 = this.
|
|
1300
|
-
var tmp0_safe_receiver = this.
|
|
1352
|
+
var tmp_1 = this.f4i_1.w4f_1.length;
|
|
1353
|
+
var tmp0_safe_receiver = this.e4i_1;
|
|
1301
1354
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_size(tmp0_safe_receiver);
|
|
1302
|
-
tmp_0.
|
|
1303
|
-
if (compare(fromInt(this.
|
|
1304
|
-
var tmp2_safe_receiver = this.
|
|
1355
|
+
tmp_0.g4i_1 = tmp_1 + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
1356
|
+
if (compare(fromInt(this.g4i_1), this.d4i_1.d4g()) > 0) {
|
|
1357
|
+
var tmp2_safe_receiver = this.e4i_1;
|
|
1305
1358
|
if (tmp2_safe_receiver == null)
|
|
1306
1359
|
null;
|
|
1307
1360
|
else {
|
|
1308
1361
|
tmp2_safe_receiver.d4();
|
|
1309
1362
|
}
|
|
1310
1363
|
this.v8_1 = 2;
|
|
1311
|
-
suspendResult = close(this.
|
|
1364
|
+
suspendResult = close(this.d4i_1, CloseReason_init_$Create$(Codes_TOO_BIG_getInstance(), 'Frame is too big: ' + this.g4i_1 + '. Max size is ' + this.d4i_1.d4g().toString()), this);
|
|
1312
1365
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1313
1366
|
return suspendResult;
|
|
1314
1367
|
}
|
|
@@ -1321,7 +1374,7 @@ protoOf($checkMaxFrameSizeCOROUTINE$).d9 = function () {
|
|
|
1321
1374
|
case 1:
|
|
1322
1375
|
return Unit_instance;
|
|
1323
1376
|
case 2:
|
|
1324
|
-
throw new FrameTooBigException(fromInt(this.
|
|
1377
|
+
throw new FrameTooBigException(fromInt(this.g4i_1));
|
|
1325
1378
|
case 3:
|
|
1326
1379
|
throw this.y8_1;
|
|
1327
1380
|
}
|
|
@@ -1337,43 +1390,43 @@ protoOf($checkMaxFrameSizeCOROUTINE$).d9 = function () {
|
|
|
1337
1390
|
while (true);
|
|
1338
1391
|
};
|
|
1339
1392
|
function DefaultWebSocketSessionImpl(raw, pingIntervalMillis, timeoutMillis, incomingFramesConfig, outgoingFramesConfig) {
|
|
1340
|
-
|
|
1341
|
-
this.
|
|
1342
|
-
this.
|
|
1343
|
-
this.
|
|
1344
|
-
this.
|
|
1345
|
-
this.
|
|
1346
|
-
this.
|
|
1347
|
-
this.
|
|
1348
|
-
this.
|
|
1393
|
+
Companion_getInstance_1();
|
|
1394
|
+
this.h4h_1 = raw;
|
|
1395
|
+
this.i4h_1 = atomic$ref$1(null);
|
|
1396
|
+
this.j4h_1 = CompletableDeferred();
|
|
1397
|
+
this.k4h_1 = Job();
|
|
1398
|
+
this.l4h_1 = this.h4h_1.w1m().uh(Key_instance).wh(this.k4h_1).wh(new CoroutineName('ws-default'));
|
|
1399
|
+
this.m4h_1 = from(Factory_getInstance(), incomingFramesConfig);
|
|
1400
|
+
this.n4h_1 = from(Factory_getInstance(), outgoingFramesConfig);
|
|
1401
|
+
this.o4h_1 = atomic$boolean$1(false);
|
|
1349
1402
|
var tmp = this;
|
|
1350
1403
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1351
|
-
tmp.
|
|
1352
|
-
this.
|
|
1353
|
-
this.
|
|
1354
|
-
this.
|
|
1355
|
-
this.
|
|
1404
|
+
tmp.p4h_1 = ArrayList_init_$Create$();
|
|
1405
|
+
this.q4h_1 = atomic$boolean$1(false);
|
|
1406
|
+
this.r4h_1 = pingIntervalMillis;
|
|
1407
|
+
this.s4h_1 = timeoutMillis;
|
|
1408
|
+
this.t4h_1 = this.j4h_1;
|
|
1356
1409
|
}
|
|
1357
1410
|
protoOf(DefaultWebSocketSessionImpl).w1m = function () {
|
|
1358
|
-
return this.
|
|
1411
|
+
return this.l4h_1;
|
|
1359
1412
|
};
|
|
1360
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1361
|
-
return this.
|
|
1413
|
+
protoOf(DefaultWebSocketSessionImpl).e4g = function () {
|
|
1414
|
+
return this.m4h_1;
|
|
1362
1415
|
};
|
|
1363
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1364
|
-
return this.
|
|
1416
|
+
protoOf(DefaultWebSocketSessionImpl).f4g = function () {
|
|
1417
|
+
return this.n4h_1;
|
|
1365
1418
|
};
|
|
1366
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1367
|
-
return this.
|
|
1419
|
+
protoOf(DefaultWebSocketSessionImpl).h4i = function () {
|
|
1420
|
+
return this.p4h_1;
|
|
1368
1421
|
};
|
|
1369
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1370
|
-
this.
|
|
1422
|
+
protoOf(DefaultWebSocketSessionImpl).c4g = function (value) {
|
|
1423
|
+
this.h4h_1.c4g(value);
|
|
1371
1424
|
};
|
|
1372
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1373
|
-
return this.
|
|
1425
|
+
protoOf(DefaultWebSocketSessionImpl).d4g = function () {
|
|
1426
|
+
return this.h4h_1.d4g();
|
|
1374
1427
|
};
|
|
1375
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1376
|
-
if (!this.
|
|
1428
|
+
protoOf(DefaultWebSocketSessionImpl).b4g = function (negotiatedExtensions) {
|
|
1429
|
+
if (!this.q4h_1.atomicfu$compareAndSet(false, true)) {
|
|
1377
1430
|
// Inline function 'kotlin.error' call
|
|
1378
1431
|
var message = 'WebSocket session ' + toString(this) + ' is already started.';
|
|
1379
1432
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -1382,16 +1435,16 @@ protoOf(DefaultWebSocketSessionImpl).s4e = function (negotiatedExtensions) {
|
|
|
1382
1435
|
var this_0 = get_LOGGER();
|
|
1383
1436
|
if (get_isTraceEnabled(this_0)) {
|
|
1384
1437
|
var tmp$ret$2 = 'Starting default WebSocketSession(' + toString(this) + ') ' + ('with negotiated extensions: ' + joinToString(negotiatedExtensions));
|
|
1385
|
-
this_0.
|
|
1438
|
+
this_0.z41(tmp$ret$2);
|
|
1386
1439
|
}
|
|
1387
|
-
this.
|
|
1440
|
+
this.p4h_1.j1(negotiatedExtensions);
|
|
1388
1441
|
runOrCancelPinger(this);
|
|
1389
|
-
var incomingJob = runIncomingProcessor(this, ponger(this, this.
|
|
1442
|
+
var incomingJob = runIncomingProcessor(this, ponger(this, this.f4g()));
|
|
1390
1443
|
var outgoingJob = runOutgoingProcessor(this);
|
|
1391
1444
|
launch(this, VOID, VOID, DefaultWebSocketSessionImpl$start$slambda_0(incomingJob, outgoingJob, this, null));
|
|
1392
1445
|
};
|
|
1393
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1394
|
-
return this.
|
|
1446
|
+
protoOf(DefaultWebSocketSessionImpl).r3k = function ($completion) {
|
|
1447
|
+
return this.h4h_1.r3k($completion);
|
|
1395
1448
|
};
|
|
1396
1449
|
var properties_initialized_DefaultWebSocketSession_kt_6cjlhc;
|
|
1397
1450
|
function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
@@ -1413,14 +1466,14 @@ function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
|
1413
1466
|
}
|
|
1414
1467
|
}
|
|
1415
1468
|
function readReason(_this__u8e3s4) {
|
|
1416
|
-
if (_this__u8e3s4.
|
|
1469
|
+
if (_this__u8e3s4.w4f_1.length < 2) {
|
|
1417
1470
|
return null;
|
|
1418
1471
|
}
|
|
1419
1472
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1420
1473
|
var builder = new Buffer();
|
|
1421
|
-
writeFully(builder, _this__u8e3s4.
|
|
1474
|
+
writeFully(builder, _this__u8e3s4.w4f_1);
|
|
1422
1475
|
var packet = builder;
|
|
1423
|
-
var code = packet.
|
|
1476
|
+
var code = packet.c3g();
|
|
1424
1477
|
var message = readText(packet);
|
|
1425
1478
|
return new CloseReason(code, message);
|
|
1426
1479
|
}
|
|
@@ -1450,23 +1503,23 @@ function FrameTooBigException(frameSize, cause) {
|
|
|
1450
1503
|
cause = cause === VOID ? null : cause;
|
|
1451
1504
|
Exception_init_$Init$(cause, this);
|
|
1452
1505
|
captureStack(this, FrameTooBigException);
|
|
1453
|
-
this.
|
|
1506
|
+
this.u4k_1 = frameSize;
|
|
1454
1507
|
delete this.message;
|
|
1455
1508
|
}
|
|
1456
1509
|
protoOf(FrameTooBigException).e = function () {
|
|
1457
|
-
var sizeSuffix = compare(this.
|
|
1510
|
+
var sizeSuffix = compare(this.u4k_1, new Long(0, 0)) >= 0 ? ': ' + this.u4k_1.toString() : '';
|
|
1458
1511
|
return 'Frame is too big' + sizeSuffix;
|
|
1459
1512
|
};
|
|
1460
1513
|
protoOf(FrameTooBigException).o1v = function () {
|
|
1461
|
-
return new FrameTooBigException(this.
|
|
1514
|
+
return new FrameTooBigException(this.u4k_1, this);
|
|
1462
1515
|
};
|
|
1463
1516
|
var FrameType_TEXT_instance;
|
|
1464
1517
|
var FrameType_BINARY_instance;
|
|
1465
1518
|
var FrameType_CLOSE_instance;
|
|
1466
1519
|
var FrameType_PING_instance;
|
|
1467
1520
|
var FrameType_PONG_instance;
|
|
1468
|
-
function
|
|
1469
|
-
|
|
1521
|
+
function Companion_2() {
|
|
1522
|
+
Companion_instance_2 = this;
|
|
1470
1523
|
var tmp = this;
|
|
1471
1524
|
var tmp0 = get_entries_0();
|
|
1472
1525
|
var tmp$ret$0;
|
|
@@ -1482,10 +1535,10 @@ function Companion_1() {
|
|
|
1482
1535
|
tmp$ret$0 = maxElem;
|
|
1483
1536
|
break $l$block_0;
|
|
1484
1537
|
}
|
|
1485
|
-
var maxValue = maxElem.
|
|
1538
|
+
var maxValue = maxElem.t4f_1;
|
|
1486
1539
|
do {
|
|
1487
1540
|
var e = iterator.v();
|
|
1488
|
-
var v = e.
|
|
1541
|
+
var v = e.t4f_1;
|
|
1489
1542
|
if (compareTo(maxValue, v) < 0) {
|
|
1490
1543
|
maxElem = e;
|
|
1491
1544
|
maxValue = v;
|
|
@@ -1494,10 +1547,10 @@ function Companion_1() {
|
|
|
1494
1547
|
while (iterator.u());
|
|
1495
1548
|
tmp$ret$0 = maxElem;
|
|
1496
1549
|
}
|
|
1497
|
-
tmp.
|
|
1550
|
+
tmp.v4k_1 = ensureNotNull(tmp$ret$0).t4f_1;
|
|
1498
1551
|
var tmp_0 = this;
|
|
1499
1552
|
var tmp_1 = 0;
|
|
1500
|
-
var tmp_2 = this.
|
|
1553
|
+
var tmp_2 = this.v4k_1 + 1 | 0;
|
|
1501
1554
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1502
1555
|
var tmp_3 = Array(tmp_2);
|
|
1503
1556
|
while (tmp_1 < tmp_2) {
|
|
@@ -1511,7 +1564,7 @@ function Companion_1() {
|
|
|
1511
1564
|
var _iterator__ex2g4s = tmp0_0.t();
|
|
1512
1565
|
while (_iterator__ex2g4s.u()) {
|
|
1513
1566
|
var element = _iterator__ex2g4s.v();
|
|
1514
|
-
if (element.
|
|
1567
|
+
if (element.t4f_1 === tmp_4) {
|
|
1515
1568
|
if (found) {
|
|
1516
1569
|
tmp$ret$5 = null;
|
|
1517
1570
|
break $l$block_2;
|
|
@@ -1529,14 +1582,14 @@ function Companion_1() {
|
|
|
1529
1582
|
tmp_3[tmp_4] = tmp$ret$5;
|
|
1530
1583
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1531
1584
|
}
|
|
1532
|
-
tmp_0.
|
|
1585
|
+
tmp_0.w4k_1 = tmp_3;
|
|
1533
1586
|
}
|
|
1534
|
-
var
|
|
1535
|
-
function
|
|
1587
|
+
var Companion_instance_2;
|
|
1588
|
+
function Companion_getInstance_2() {
|
|
1536
1589
|
FrameType_initEntries();
|
|
1537
|
-
if (
|
|
1538
|
-
new
|
|
1539
|
-
return
|
|
1590
|
+
if (Companion_instance_2 == null)
|
|
1591
|
+
new Companion_2();
|
|
1592
|
+
return Companion_instance_2;
|
|
1540
1593
|
}
|
|
1541
1594
|
function values_0() {
|
|
1542
1595
|
return [FrameType_TEXT_getInstance(), FrameType_BINARY_getInstance(), FrameType_CLOSE_getInstance(), FrameType_PING_getInstance(), FrameType_PONG_getInstance()];
|
|
@@ -1556,13 +1609,13 @@ function FrameType_initEntries() {
|
|
|
1556
1609
|
FrameType_CLOSE_instance = new FrameType('CLOSE', 2, true, 8);
|
|
1557
1610
|
FrameType_PING_instance = new FrameType('PING', 3, true, 9);
|
|
1558
1611
|
FrameType_PONG_instance = new FrameType('PONG', 4, true, 10);
|
|
1559
|
-
|
|
1612
|
+
Companion_getInstance_2();
|
|
1560
1613
|
}
|
|
1561
1614
|
var $ENTRIES_0;
|
|
1562
1615
|
function FrameType(name, ordinal, controlFrame, opcode) {
|
|
1563
1616
|
Enum.call(this, name, ordinal);
|
|
1564
|
-
this.
|
|
1565
|
-
this.
|
|
1617
|
+
this.s4f_1 = controlFrame;
|
|
1618
|
+
this.t4f_1 = opcode;
|
|
1566
1619
|
}
|
|
1567
1620
|
function FrameType_TEXT_getInstance() {
|
|
1568
1621
|
FrameType_initEntries();
|
|
@@ -1612,18 +1665,18 @@ function pinger(_this__u8e3s4, outgoing, periodMillis, timeoutMillis, onTimeout)
|
|
|
1612
1665
|
return channel;
|
|
1613
1666
|
}
|
|
1614
1667
|
function ponger$slambda($channel, $outgoing, resultContinuation) {
|
|
1615
|
-
this.
|
|
1616
|
-
this.
|
|
1668
|
+
this.f4l_1 = $channel;
|
|
1669
|
+
this.g4l_1 = $outgoing;
|
|
1617
1670
|
CoroutineImpl.call(this, resultContinuation);
|
|
1618
1671
|
}
|
|
1619
|
-
protoOf(ponger$slambda).
|
|
1620
|
-
var tmp = this.
|
|
1672
|
+
protoOf(ponger$slambda).g3t = function ($this$launch, $completion) {
|
|
1673
|
+
var tmp = this.h3t($this$launch, $completion);
|
|
1621
1674
|
tmp.x8_1 = Unit_instance;
|
|
1622
1675
|
tmp.y8_1 = null;
|
|
1623
1676
|
return tmp.d9();
|
|
1624
1677
|
};
|
|
1625
1678
|
protoOf(ponger$slambda).q9 = function (p1, $completion) {
|
|
1626
|
-
return this.
|
|
1679
|
+
return this.g3t((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1627
1680
|
};
|
|
1628
1681
|
protoOf(ponger$slambda).d9 = function () {
|
|
1629
1682
|
var suspendResult = this.x8_1;
|
|
@@ -1634,12 +1687,12 @@ protoOf(ponger$slambda).d9 = function () {
|
|
|
1634
1687
|
case 0:
|
|
1635
1688
|
this.w8_1 = 14;
|
|
1636
1689
|
this.w8_1 = 13;
|
|
1637
|
-
this.
|
|
1690
|
+
this.l4l_1 = this.f4l_1;
|
|
1638
1691
|
this.v8_1 = 1;
|
|
1639
1692
|
continue $sm;
|
|
1640
1693
|
case 1:
|
|
1641
|
-
this.
|
|
1642
|
-
this.
|
|
1694
|
+
this.j4l_1 = this.l4l_1;
|
|
1695
|
+
this.i4l_1 = null;
|
|
1643
1696
|
this.v8_1 = 2;
|
|
1644
1697
|
continue $sm;
|
|
1645
1698
|
case 2:
|
|
@@ -1648,12 +1701,12 @@ protoOf(ponger$slambda).d9 = function () {
|
|
|
1648
1701
|
case 3:
|
|
1649
1702
|
this.w8_1 = 10;
|
|
1650
1703
|
this.w8_1 = 9;
|
|
1651
|
-
this.
|
|
1704
|
+
this.k4l_1 = this.j4l_1.t();
|
|
1652
1705
|
this.v8_1 = 4;
|
|
1653
1706
|
continue $sm;
|
|
1654
1707
|
case 4:
|
|
1655
1708
|
this.v8_1 = 5;
|
|
1656
|
-
suspendResult = this.
|
|
1709
|
+
suspendResult = this.k4l_1.l23(this);
|
|
1657
1710
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1658
1711
|
return suspendResult;
|
|
1659
1712
|
}
|
|
@@ -1665,10 +1718,10 @@ protoOf(ponger$slambda).d9 = function () {
|
|
|
1665
1718
|
continue $sm;
|
|
1666
1719
|
}
|
|
1667
1720
|
|
|
1668
|
-
var e = this.
|
|
1669
|
-
get_LOGGER().
|
|
1721
|
+
var e = this.k4l_1.v();
|
|
1722
|
+
get_LOGGER().z41('Received ping message, sending pong message');
|
|
1670
1723
|
this.v8_1 = 6;
|
|
1671
|
-
suspendResult = this.
|
|
1724
|
+
suspendResult = this.g4l_1.i25(new Pong(e.w4f_1), this);
|
|
1672
1725
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1673
1726
|
return suspendResult;
|
|
1674
1727
|
}
|
|
@@ -1683,7 +1736,7 @@ protoOf(ponger$slambda).d9 = function () {
|
|
|
1683
1736
|
continue $sm;
|
|
1684
1737
|
case 8:
|
|
1685
1738
|
this.w8_1 = 13;
|
|
1686
|
-
cancelConsumed(this.
|
|
1739
|
+
cancelConsumed(this.j4l_1, this.i4l_1);
|
|
1687
1740
|
this.v8_1 = 12;
|
|
1688
1741
|
continue $sm;
|
|
1689
1742
|
case 9:
|
|
@@ -1692,7 +1745,7 @@ protoOf(ponger$slambda).d9 = function () {
|
|
|
1692
1745
|
if (tmp_1 instanceof Error) {
|
|
1693
1746
|
var e_0 = this.y8_1;
|
|
1694
1747
|
var tmp_2 = this;
|
|
1695
|
-
this.
|
|
1748
|
+
this.i4l_1 = e_0;
|
|
1696
1749
|
throw e_0;
|
|
1697
1750
|
} else {
|
|
1698
1751
|
throw this.y8_1;
|
|
@@ -1701,11 +1754,11 @@ protoOf(ponger$slambda).d9 = function () {
|
|
|
1701
1754
|
case 10:
|
|
1702
1755
|
this.w8_1 = 13;
|
|
1703
1756
|
var t = this.y8_1;
|
|
1704
|
-
cancelConsumed(this.
|
|
1757
|
+
cancelConsumed(this.j4l_1, this.i4l_1);
|
|
1705
1758
|
throw t;
|
|
1706
1759
|
case 11:
|
|
1707
1760
|
this.w8_1 = 13;
|
|
1708
|
-
cancelConsumed(this.
|
|
1761
|
+
cancelConsumed(this.j4l_1, this.i4l_1);
|
|
1709
1762
|
if (false) {
|
|
1710
1763
|
this.v8_1 = 1;
|
|
1711
1764
|
continue $sm;
|
|
@@ -1745,29 +1798,29 @@ protoOf(ponger$slambda).d9 = function () {
|
|
|
1745
1798
|
}
|
|
1746
1799
|
while (true);
|
|
1747
1800
|
};
|
|
1748
|
-
protoOf(ponger$slambda).
|
|
1749
|
-
var i = new ponger$slambda(this.
|
|
1750
|
-
i.
|
|
1801
|
+
protoOf(ponger$slambda).h3t = function ($this$launch, completion) {
|
|
1802
|
+
var i = new ponger$slambda(this.f4l_1, this.g4l_1, completion);
|
|
1803
|
+
i.h4l_1 = $this$launch;
|
|
1751
1804
|
return i;
|
|
1752
1805
|
};
|
|
1753
1806
|
function ponger$slambda_0($channel, $outgoing, resultContinuation) {
|
|
1754
1807
|
var i = new ponger$slambda($channel, $outgoing, resultContinuation);
|
|
1755
1808
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
1756
|
-
return i.
|
|
1809
|
+
return i.g3t($this$launch, $completion);
|
|
1757
1810
|
}, 1);
|
|
1758
1811
|
}
|
|
1759
1812
|
function pinger$slambda$slambda($channel, resultContinuation) {
|
|
1760
|
-
this.
|
|
1813
|
+
this.u4l_1 = $channel;
|
|
1761
1814
|
CoroutineImpl.call(this, resultContinuation);
|
|
1762
1815
|
}
|
|
1763
|
-
protoOf(pinger$slambda$slambda).
|
|
1764
|
-
var tmp = this.
|
|
1816
|
+
protoOf(pinger$slambda$slambda).g3t = function ($this$withTimeoutOrNull, $completion) {
|
|
1817
|
+
var tmp = this.h3t($this$withTimeoutOrNull, $completion);
|
|
1765
1818
|
tmp.x8_1 = Unit_instance;
|
|
1766
1819
|
tmp.y8_1 = null;
|
|
1767
1820
|
return tmp.d9();
|
|
1768
1821
|
};
|
|
1769
1822
|
protoOf(pinger$slambda$slambda).q9 = function (p1, $completion) {
|
|
1770
|
-
return this.
|
|
1823
|
+
return this.g3t((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1771
1824
|
};
|
|
1772
1825
|
protoOf(pinger$slambda$slambda).d9 = function () {
|
|
1773
1826
|
var suspendResult = this.x8_1;
|
|
@@ -1786,7 +1839,7 @@ protoOf(pinger$slambda$slambda).d9 = function () {
|
|
|
1786
1839
|
}
|
|
1787
1840
|
|
|
1788
1841
|
this.v8_1 = 2;
|
|
1789
|
-
suspendResult = this.
|
|
1842
|
+
suspendResult = this.u4l_1.l25(this);
|
|
1790
1843
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1791
1844
|
return suspendResult;
|
|
1792
1845
|
}
|
|
@@ -1811,31 +1864,31 @@ protoOf(pinger$slambda$slambda).d9 = function () {
|
|
|
1811
1864
|
}
|
|
1812
1865
|
while (true);
|
|
1813
1866
|
};
|
|
1814
|
-
protoOf(pinger$slambda$slambda).
|
|
1815
|
-
var i = new pinger$slambda$slambda(this.
|
|
1816
|
-
i.
|
|
1867
|
+
protoOf(pinger$slambda$slambda).h3t = function ($this$withTimeoutOrNull, completion) {
|
|
1868
|
+
var i = new pinger$slambda$slambda(this.u4l_1, completion);
|
|
1869
|
+
i.v4l_1 = $this$withTimeoutOrNull;
|
|
1817
1870
|
return i;
|
|
1818
1871
|
};
|
|
1819
1872
|
function pinger$slambda$slambda_0($channel, resultContinuation) {
|
|
1820
1873
|
var i = new pinger$slambda$slambda($channel, resultContinuation);
|
|
1821
1874
|
return constructCallableReference(function ($this$withTimeoutOrNull, $completion) {
|
|
1822
|
-
return i.
|
|
1875
|
+
return i.g3t($this$withTimeoutOrNull, $completion);
|
|
1823
1876
|
}, 1);
|
|
1824
1877
|
}
|
|
1825
1878
|
function pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1826
|
-
this.
|
|
1827
|
-
this.
|
|
1828
|
-
this.
|
|
1879
|
+
this.e4m_1 = $outgoing;
|
|
1880
|
+
this.f4m_1 = $pingMessage;
|
|
1881
|
+
this.g4m_1 = $channel;
|
|
1829
1882
|
CoroutineImpl.call(this, resultContinuation);
|
|
1830
1883
|
}
|
|
1831
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1832
|
-
var tmp = this.
|
|
1884
|
+
protoOf(pinger$slambda$slambda_1).g3t = function ($this$withTimeoutOrNull, $completion) {
|
|
1885
|
+
var tmp = this.h3t($this$withTimeoutOrNull, $completion);
|
|
1833
1886
|
tmp.x8_1 = Unit_instance;
|
|
1834
1887
|
tmp.y8_1 = null;
|
|
1835
1888
|
return tmp.d9();
|
|
1836
1889
|
};
|
|
1837
1890
|
protoOf(pinger$slambda$slambda_1).q9 = function (p1, $completion) {
|
|
1838
|
-
return this.
|
|
1891
|
+
return this.g3t((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1839
1892
|
};
|
|
1840
1893
|
protoOf(pinger$slambda$slambda_1).d9 = function () {
|
|
1841
1894
|
var suspendResult = this.x8_1;
|
|
@@ -1845,9 +1898,9 @@ protoOf(pinger$slambda$slambda_1).d9 = function () {
|
|
|
1845
1898
|
switch (tmp) {
|
|
1846
1899
|
case 0:
|
|
1847
1900
|
this.w8_1 = 6;
|
|
1848
|
-
get_LOGGER().
|
|
1901
|
+
get_LOGGER().z41('WebSocket Pinger: sending ping frame');
|
|
1849
1902
|
this.v8_1 = 1;
|
|
1850
|
-
suspendResult = this.
|
|
1903
|
+
suspendResult = this.e4m_1.i25(new Ping(toByteArray(this.f4m_1, Charsets_getInstance().h3u_1)), this);
|
|
1851
1904
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1852
1905
|
return suspendResult;
|
|
1853
1906
|
}
|
|
@@ -1863,16 +1916,16 @@ protoOf(pinger$slambda$slambda_1).d9 = function () {
|
|
|
1863
1916
|
}
|
|
1864
1917
|
|
|
1865
1918
|
this.v8_1 = 3;
|
|
1866
|
-
suspendResult = this.
|
|
1919
|
+
suspendResult = this.g4m_1.l25(this);
|
|
1867
1920
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1868
1921
|
return suspendResult;
|
|
1869
1922
|
}
|
|
1870
1923
|
|
|
1871
1924
|
continue $sm;
|
|
1872
1925
|
case 3:
|
|
1873
|
-
this.
|
|
1874
|
-
if (decodeToString(this.
|
|
1875
|
-
get_LOGGER().
|
|
1926
|
+
this.i4m_1 = suspendResult;
|
|
1927
|
+
if (decodeToString(this.i4m_1.w4f_1, 0, 0 + this.i4m_1.w4f_1.length | 0) === this.f4m_1) {
|
|
1928
|
+
get_LOGGER().z41('WebSocket Pinger: received valid pong frame ' + this.i4m_1.toString());
|
|
1876
1929
|
this.v8_1 = 5;
|
|
1877
1930
|
continue $sm;
|
|
1878
1931
|
} else {
|
|
@@ -1881,7 +1934,7 @@ protoOf(pinger$slambda$slambda_1).d9 = function () {
|
|
|
1881
1934
|
}
|
|
1882
1935
|
|
|
1883
1936
|
case 4:
|
|
1884
|
-
get_LOGGER().
|
|
1937
|
+
get_LOGGER().z41('WebSocket Pinger: received invalid pong frame ' + this.i4m_1.toString() + ', continue waiting');
|
|
1885
1938
|
this.v8_1 = 2;
|
|
1886
1939
|
continue $sm;
|
|
1887
1940
|
case 5:
|
|
@@ -1900,33 +1953,33 @@ protoOf(pinger$slambda$slambda_1).d9 = function () {
|
|
|
1900
1953
|
}
|
|
1901
1954
|
while (true);
|
|
1902
1955
|
};
|
|
1903
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1904
|
-
var i = new pinger$slambda$slambda_1(this.
|
|
1905
|
-
i.
|
|
1956
|
+
protoOf(pinger$slambda$slambda_1).h3t = function ($this$withTimeoutOrNull, completion) {
|
|
1957
|
+
var i = new pinger$slambda$slambda_1(this.e4m_1, this.f4m_1, this.g4m_1, completion);
|
|
1958
|
+
i.h4m_1 = $this$withTimeoutOrNull;
|
|
1906
1959
|
return i;
|
|
1907
1960
|
};
|
|
1908
1961
|
function pinger$slambda$slambda_2($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1909
1962
|
var i = new pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation);
|
|
1910
1963
|
return constructCallableReference(function ($this$withTimeoutOrNull, $completion) {
|
|
1911
|
-
return i.
|
|
1964
|
+
return i.g3t($this$withTimeoutOrNull, $completion);
|
|
1912
1965
|
}, 1);
|
|
1913
1966
|
}
|
|
1914
1967
|
function pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
1915
|
-
this.
|
|
1916
|
-
this.
|
|
1917
|
-
this.
|
|
1918
|
-
this.
|
|
1919
|
-
this.
|
|
1968
|
+
this.r4m_1 = $periodMillis;
|
|
1969
|
+
this.s4m_1 = $timeoutMillis;
|
|
1970
|
+
this.t4m_1 = $onTimeout;
|
|
1971
|
+
this.u4m_1 = $channel;
|
|
1972
|
+
this.v4m_1 = $outgoing;
|
|
1920
1973
|
CoroutineImpl.call(this, resultContinuation);
|
|
1921
1974
|
}
|
|
1922
|
-
protoOf(pinger$slambda).
|
|
1923
|
-
var tmp = this.
|
|
1975
|
+
protoOf(pinger$slambda).g3t = function ($this$launch, $completion) {
|
|
1976
|
+
var tmp = this.h3t($this$launch, $completion);
|
|
1924
1977
|
tmp.x8_1 = Unit_instance;
|
|
1925
1978
|
tmp.y8_1 = null;
|
|
1926
1979
|
return tmp.d9();
|
|
1927
1980
|
};
|
|
1928
1981
|
protoOf(pinger$slambda).q9 = function (p1, $completion) {
|
|
1929
|
-
return this.
|
|
1982
|
+
return this.g3t((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1930
1983
|
};
|
|
1931
1984
|
protoOf(pinger$slambda).d9 = function () {
|
|
1932
1985
|
var suspendResult = this.x8_1;
|
|
@@ -1936,9 +1989,9 @@ protoOf(pinger$slambda).d9 = function () {
|
|
|
1936
1989
|
switch (tmp) {
|
|
1937
1990
|
case 0:
|
|
1938
1991
|
this.w8_1 = 9;
|
|
1939
|
-
get_LOGGER().
|
|
1940
|
-
this.
|
|
1941
|
-
this.
|
|
1992
|
+
get_LOGGER().z41('Starting WebSocket pinger coroutine with period ' + this.r4m_1.toString() + ' ms and timeout ' + this.s4m_1.toString() + ' ms');
|
|
1993
|
+
this.y4m_1 = Random(getTimeMillis());
|
|
1994
|
+
this.x4m_1 = new Int8Array(32);
|
|
1942
1995
|
this.w8_1 = 7;
|
|
1943
1996
|
this.v8_1 = 1;
|
|
1944
1997
|
continue $sm;
|
|
@@ -1949,17 +2002,17 @@ protoOf(pinger$slambda).d9 = function () {
|
|
|
1949
2002
|
}
|
|
1950
2003
|
|
|
1951
2004
|
this.v8_1 = 2;
|
|
1952
|
-
suspendResult = withTimeoutOrNull(this.
|
|
2005
|
+
suspendResult = withTimeoutOrNull(this.r4m_1, pinger$slambda$slambda_0(this.u4m_1, null), this);
|
|
1953
2006
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1954
2007
|
return suspendResult;
|
|
1955
2008
|
}
|
|
1956
2009
|
|
|
1957
2010
|
continue $sm;
|
|
1958
2011
|
case 2:
|
|
1959
|
-
this.
|
|
1960
|
-
var pingMessage = '[ping ' + toHexString(this.
|
|
2012
|
+
this.y4m_1.mj(this.x4m_1);
|
|
2013
|
+
var pingMessage = '[ping ' + toHexString(this.x4m_1) + ' ping]';
|
|
1961
2014
|
this.v8_1 = 3;
|
|
1962
|
-
suspendResult = withTimeoutOrNull(this.
|
|
2015
|
+
suspendResult = withTimeoutOrNull(this.s4m_1, pinger$slambda$slambda_2(this.v4m_1, pingMessage, this.u4m_1, null), this);
|
|
1963
2016
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1964
2017
|
return suspendResult;
|
|
1965
2018
|
}
|
|
@@ -1968,9 +2021,9 @@ protoOf(pinger$slambda).d9 = function () {
|
|
|
1968
2021
|
case 3:
|
|
1969
2022
|
var rc = suspendResult;
|
|
1970
2023
|
if (rc == null) {
|
|
1971
|
-
get_LOGGER().
|
|
2024
|
+
get_LOGGER().z41('WebSocket pinger has timed out');
|
|
1972
2025
|
this.v8_1 = 5;
|
|
1973
|
-
suspendResult = this.
|
|
2026
|
+
suspendResult = this.t4m_1(CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), 'Ping timeout'), this);
|
|
1974
2027
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1975
2028
|
return suspendResult;
|
|
1976
2029
|
}
|
|
@@ -2039,15 +2092,15 @@ protoOf(pinger$slambda).d9 = function () {
|
|
|
2039
2092
|
}
|
|
2040
2093
|
while (true);
|
|
2041
2094
|
};
|
|
2042
|
-
protoOf(pinger$slambda).
|
|
2043
|
-
var i = new pinger$slambda(this.
|
|
2044
|
-
i.
|
|
2095
|
+
protoOf(pinger$slambda).h3t = function ($this$launch, completion) {
|
|
2096
|
+
var i = new pinger$slambda(this.r4m_1, this.s4m_1, this.t4m_1, this.u4m_1, this.v4m_1, completion);
|
|
2097
|
+
i.w4m_1 = $this$launch;
|
|
2045
2098
|
return i;
|
|
2046
2099
|
};
|
|
2047
2100
|
function pinger$slambda_0($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
2048
2101
|
var i = new pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation);
|
|
2049
2102
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
2050
|
-
return i.
|
|
2103
|
+
return i.g3t($this$launch, $completion);
|
|
2051
2104
|
}, 1);
|
|
2052
2105
|
}
|
|
2053
2106
|
function pinger$lambda($actorJob) {
|
|
@@ -2064,38 +2117,38 @@ function _init_properties_PingPong_kt__9aqxey() {
|
|
|
2064
2117
|
PingerCoroutineName = new CoroutineName('ws-pinger');
|
|
2065
2118
|
}
|
|
2066
2119
|
}
|
|
2067
|
-
function
|
|
2068
|
-
|
|
2120
|
+
function Companion_3() {
|
|
2121
|
+
Companion_instance_3 = this;
|
|
2069
2122
|
var tmp = this;
|
|
2070
2123
|
// Inline function 'kotlin.apply' call
|
|
2071
2124
|
var this_0 = new WebSocketChannelsConfig();
|
|
2072
|
-
this_0.
|
|
2073
|
-
this_0.
|
|
2074
|
-
tmp.
|
|
2125
|
+
this_0.i4g_1 = this_0.z4m();
|
|
2126
|
+
this_0.j4g_1 = this_0.z4m();
|
|
2127
|
+
tmp.h4g_1 = this_0;
|
|
2075
2128
|
}
|
|
2076
|
-
var
|
|
2077
|
-
function
|
|
2078
|
-
if (
|
|
2079
|
-
new
|
|
2080
|
-
return
|
|
2129
|
+
var Companion_instance_3;
|
|
2130
|
+
function Companion_getInstance_3() {
|
|
2131
|
+
if (Companion_instance_3 == null)
|
|
2132
|
+
new Companion_3();
|
|
2133
|
+
return Companion_instance_3;
|
|
2081
2134
|
}
|
|
2082
2135
|
function WebSocketChannelsConfig() {
|
|
2083
|
-
|
|
2084
|
-
this.
|
|
2085
|
-
this.
|
|
2136
|
+
Companion_getInstance_3();
|
|
2137
|
+
this.i4g_1 = Companion_getInstance_4().a4n_1;
|
|
2138
|
+
this.j4g_1 = Companion_getInstance_4().a4n_1;
|
|
2086
2139
|
}
|
|
2087
|
-
protoOf(WebSocketChannelsConfig).
|
|
2088
|
-
return
|
|
2140
|
+
protoOf(WebSocketChannelsConfig).z4m = function () {
|
|
2141
|
+
return Companion_getInstance_4().a4n_1;
|
|
2089
2142
|
};
|
|
2090
2143
|
function from(_this__u8e3s4, config) {
|
|
2091
2144
|
// Inline function 'kotlin.with' call
|
|
2092
2145
|
var tmp;
|
|
2093
|
-
if (config.
|
|
2146
|
+
if (config.b4n_1 === 2147483647) {
|
|
2094
2147
|
tmp = Channel(2147483647);
|
|
2095
|
-
} else if (config.
|
|
2096
|
-
tmp = Channel(config.
|
|
2097
|
-
} else if (config.
|
|
2098
|
-
tmp = new BoundedChannel(config.
|
|
2148
|
+
} else if (config.c4n_1.equals(ChannelOverflow_SUSPEND_getInstance())) {
|
|
2149
|
+
tmp = Channel(config.b4n_1, BufferOverflow_SUSPEND_getInstance());
|
|
2150
|
+
} else if (config.c4n_1.equals(ChannelOverflow_CLOSE_getInstance())) {
|
|
2151
|
+
tmp = new BoundedChannel(config.b4n_1);
|
|
2099
2152
|
} else {
|
|
2100
2153
|
// Inline function 'kotlin.error' call
|
|
2101
2154
|
var message = 'Unsupported channel config.';
|
|
@@ -2103,23 +2156,23 @@ function from(_this__u8e3s4, config) {
|
|
|
2103
2156
|
}
|
|
2104
2157
|
return tmp;
|
|
2105
2158
|
}
|
|
2106
|
-
function
|
|
2107
|
-
|
|
2108
|
-
this.
|
|
2159
|
+
function Companion_4() {
|
|
2160
|
+
Companion_instance_4 = this;
|
|
2161
|
+
this.a4n_1 = new ChannelConfig(2147483647, ChannelOverflow_SUSPEND_getInstance());
|
|
2109
2162
|
}
|
|
2110
|
-
var
|
|
2111
|
-
function
|
|
2112
|
-
if (
|
|
2113
|
-
new
|
|
2114
|
-
return
|
|
2163
|
+
var Companion_instance_4;
|
|
2164
|
+
function Companion_getInstance_4() {
|
|
2165
|
+
if (Companion_instance_4 == null)
|
|
2166
|
+
new Companion_4();
|
|
2167
|
+
return Companion_instance_4;
|
|
2115
2168
|
}
|
|
2116
2169
|
function ChannelConfig(capacity, onOverflow) {
|
|
2117
|
-
|
|
2118
|
-
this.
|
|
2119
|
-
this.
|
|
2170
|
+
Companion_getInstance_4();
|
|
2171
|
+
this.b4n_1 = capacity;
|
|
2172
|
+
this.c4n_1 = onOverflow;
|
|
2120
2173
|
}
|
|
2121
|
-
protoOf(ChannelConfig).
|
|
2122
|
-
return this.
|
|
2174
|
+
protoOf(ChannelConfig).d4n = function () {
|
|
2175
|
+
return this.c4n_1.equals(ChannelOverflow_SUSPEND_getInstance()) && !(this.b4n_1 === 2147483647);
|
|
2123
2176
|
};
|
|
2124
2177
|
var ChannelOverflow_SUSPEND_instance;
|
|
2125
2178
|
var ChannelOverflow_CLOSE_instance;
|
|
@@ -2156,9 +2209,9 @@ function BoundedChannel$Companion$createDelegate$lambda($channel) {
|
|
|
2156
2209
|
return Unit_instance;
|
|
2157
2210
|
};
|
|
2158
2211
|
}
|
|
2159
|
-
function
|
|
2212
|
+
function Companion_5() {
|
|
2160
2213
|
}
|
|
2161
|
-
protoOf(
|
|
2214
|
+
protoOf(Companion_5).e4n = function (capacity) {
|
|
2162
2215
|
var channel = {_v: null};
|
|
2163
2216
|
var tmp = BufferOverflow_DROP_OLDEST_getInstance();
|
|
2164
2217
|
// Inline function 'kotlin.also' call
|
|
@@ -2166,50 +2219,50 @@ protoOf(Companion_4).g4m = function (capacity) {
|
|
|
2166
2219
|
channel._v = this_0;
|
|
2167
2220
|
return this_0;
|
|
2168
2221
|
};
|
|
2169
|
-
var
|
|
2170
|
-
function
|
|
2171
|
-
return
|
|
2222
|
+
var Companion_instance_5;
|
|
2223
|
+
function Companion_getInstance_5() {
|
|
2224
|
+
return Companion_instance_5;
|
|
2172
2225
|
}
|
|
2173
2226
|
function BoundedChannel(capacity, delegate) {
|
|
2174
|
-
delegate = delegate === VOID ?
|
|
2175
|
-
this.
|
|
2227
|
+
delegate = delegate === VOID ? Companion_instance_5.e4n(capacity) : delegate;
|
|
2228
|
+
this.f4n_1 = delegate;
|
|
2176
2229
|
}
|
|
2177
|
-
protoOf(BoundedChannel).
|
|
2178
|
-
var result = this.
|
|
2230
|
+
protoOf(BoundedChannel).g4n = function (element) {
|
|
2231
|
+
var result = this.f4n_1.j25(element);
|
|
2179
2232
|
if (!_ChannelResult___get_isSuccess__impl__odq1z9(result) && !_ChannelResult___get_isClosed__impl__mg7kuu(result)) {
|
|
2180
2233
|
this.n25(new ChannelOverflowException('Channel overflowed'));
|
|
2181
2234
|
}
|
|
2182
2235
|
return result;
|
|
2183
2236
|
};
|
|
2184
2237
|
protoOf(BoundedChannel).j25 = function (element) {
|
|
2185
|
-
return this.
|
|
2238
|
+
return this.g4n(element);
|
|
2186
2239
|
};
|
|
2187
|
-
protoOf(BoundedChannel).
|
|
2188
|
-
return this.
|
|
2240
|
+
protoOf(BoundedChannel).h4n = function (element, $completion) {
|
|
2241
|
+
return this.f4n_1.i25(element, $completion);
|
|
2189
2242
|
};
|
|
2190
2243
|
protoOf(BoundedChannel).i25 = function (element, $completion) {
|
|
2191
|
-
return this.
|
|
2244
|
+
return this.h4n(element, $completion);
|
|
2192
2245
|
};
|
|
2193
2246
|
protoOf(BoundedChannel).n25 = function (cause) {
|
|
2194
|
-
return this.
|
|
2247
|
+
return this.f4n_1.n25(cause);
|
|
2195
2248
|
};
|
|
2196
2249
|
protoOf(BoundedChannel).s25 = function (handler) {
|
|
2197
|
-
this.
|
|
2250
|
+
this.f4n_1.s25(handler);
|
|
2198
2251
|
};
|
|
2199
2252
|
protoOf(BoundedChannel).n23 = function () {
|
|
2200
|
-
return this.
|
|
2253
|
+
return this.f4n_1.n23();
|
|
2201
2254
|
};
|
|
2202
|
-
protoOf(BoundedChannel).
|
|
2203
|
-
return this.
|
|
2255
|
+
protoOf(BoundedChannel).i4n = function ($completion) {
|
|
2256
|
+
return this.f4n_1.l25($completion);
|
|
2204
2257
|
};
|
|
2205
2258
|
protoOf(BoundedChannel).l25 = function ($completion) {
|
|
2206
|
-
return this.
|
|
2259
|
+
return this.i4n($completion);
|
|
2207
2260
|
};
|
|
2208
2261
|
protoOf(BoundedChannel).t = function () {
|
|
2209
|
-
return this.
|
|
2262
|
+
return this.f4n_1.t();
|
|
2210
2263
|
};
|
|
2211
2264
|
protoOf(BoundedChannel).g1o = function (cause) {
|
|
2212
|
-
this.
|
|
2265
|
+
this.f4n_1.g1o(cause);
|
|
2213
2266
|
};
|
|
2214
2267
|
function ChannelOverflowException(message) {
|
|
2215
2268
|
RuntimeException_init_$Init$(message, this);
|
|
@@ -2228,16 +2281,16 @@ function WebSocketExtension() {
|
|
|
2228
2281
|
function WebSocketExtensionsConfig() {
|
|
2229
2282
|
var tmp = this;
|
|
2230
2283
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2231
|
-
tmp.
|
|
2284
|
+
tmp.l4n_1 = ArrayList_init_$Create$();
|
|
2232
2285
|
var tmp_0 = this;
|
|
2233
2286
|
// Inline function 'kotlin.arrayOf' call
|
|
2234
2287
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2235
2288
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2236
|
-
tmp_0.
|
|
2289
|
+
tmp_0.m4n_1 = [false, false, false];
|
|
2237
2290
|
}
|
|
2238
|
-
protoOf(WebSocketExtensionsConfig).
|
|
2291
|
+
protoOf(WebSocketExtensionsConfig).w44 = function () {
|
|
2239
2292
|
// Inline function 'kotlin.collections.map' call
|
|
2240
|
-
var this_0 = this.
|
|
2293
|
+
var this_0 = this.l4n_1;
|
|
2241
2294
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2242
2295
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2243
2296
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2249,14 +2302,14 @@ protoOf(WebSocketExtensionsConfig).y43 = function () {
|
|
|
2249
2302
|
return destination;
|
|
2250
2303
|
};
|
|
2251
2304
|
function parametersToString($this) {
|
|
2252
|
-
return $this.
|
|
2305
|
+
return $this.o4n_1.r() ? '' : '; ' + joinToString($this.o4n_1, ';');
|
|
2253
2306
|
}
|
|
2254
2307
|
function WebSocketExtensionHeader(name, parameters) {
|
|
2255
|
-
this.
|
|
2256
|
-
this.
|
|
2308
|
+
this.n4n_1 = name;
|
|
2309
|
+
this.o4n_1 = parameters;
|
|
2257
2310
|
}
|
|
2258
2311
|
protoOf(WebSocketExtensionHeader).toString = function () {
|
|
2259
|
-
return this.
|
|
2312
|
+
return this.n4n_1 + ' ' + parametersToString(this);
|
|
2260
2313
|
};
|
|
2261
2314
|
function parseWebSocketExtensions(value) {
|
|
2262
2315
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2301,15 +2354,16 @@ function closeExceptionally(_this__u8e3s4, cause, $completion) {
|
|
|
2301
2354
|
if (cause instanceof CancellationException) {
|
|
2302
2355
|
tmp = CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '');
|
|
2303
2356
|
} else {
|
|
2304
|
-
|
|
2357
|
+
var message = utf8Truncate(cause.toString(), 123);
|
|
2358
|
+
tmp = CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), message);
|
|
2305
2359
|
}
|
|
2306
2360
|
var reason = tmp;
|
|
2307
2361
|
return close(_this__u8e3s4, reason, $completion);
|
|
2308
2362
|
}
|
|
2309
2363
|
function $closeCOROUTINE$(_this__u8e3s4, reason, resultContinuation) {
|
|
2310
2364
|
CoroutineImpl.call(this, resultContinuation);
|
|
2311
|
-
this.
|
|
2312
|
-
this.
|
|
2365
|
+
this.x4n_1 = _this__u8e3s4;
|
|
2366
|
+
this.y4n_1 = reason;
|
|
2313
2367
|
}
|
|
2314
2368
|
protoOf($closeCOROUTINE$).d9 = function () {
|
|
2315
2369
|
var suspendResult = this.x8_1;
|
|
@@ -2321,7 +2375,7 @@ protoOf($closeCOROUTINE$).d9 = function () {
|
|
|
2321
2375
|
this.w8_1 = 4;
|
|
2322
2376
|
this.w8_1 = 3;
|
|
2323
2377
|
this.v8_1 = 1;
|
|
2324
|
-
suspendResult = this.
|
|
2378
|
+
suspendResult = this.x4n_1.g4g(Close_init_$Create$(this.y4n_1), this);
|
|
2325
2379
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2326
2380
|
return suspendResult;
|
|
2327
2381
|
}
|
|
@@ -2329,7 +2383,7 @@ protoOf($closeCOROUTINE$).d9 = function () {
|
|
|
2329
2383
|
continue $sm;
|
|
2330
2384
|
case 1:
|
|
2331
2385
|
this.v8_1 = 2;
|
|
2332
|
-
suspendResult = this.
|
|
2386
|
+
suspendResult = this.x4n_1.r3k(this);
|
|
2333
2387
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2334
2388
|
return suspendResult;
|
|
2335
2389
|
}
|
|
@@ -2388,8 +2442,8 @@ function Text_init_$Create$(text) {
|
|
|
2388
2442
|
function Close_init_$Init$(reason, $this) {
|
|
2389
2443
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
2390
2444
|
var builder = new Buffer();
|
|
2391
|
-
builder.
|
|
2392
|
-
writeText(builder, reason.
|
|
2445
|
+
builder.k3h(reason.n4f_1);
|
|
2446
|
+
writeText(builder, reason.o4f_1);
|
|
2393
2447
|
Close_init_$Init$_0(builder, $this);
|
|
2394
2448
|
return $this;
|
|
2395
2449
|
}
|
|
@@ -2401,7 +2455,7 @@ function Close_init_$Init$_0(packet, $this) {
|
|
|
2401
2455
|
return $this;
|
|
2402
2456
|
}
|
|
2403
2457
|
function Close_init_$Init$_1($this) {
|
|
2404
|
-
Close.call($this,
|
|
2458
|
+
Close.call($this, Companion_getInstance_6().v4j_1);
|
|
2405
2459
|
return $this;
|
|
2406
2460
|
}
|
|
2407
2461
|
function Close_init_$Create$_0() {
|
|
@@ -2429,11 +2483,11 @@ function Pong(data, disposableHandle) {
|
|
|
2429
2483
|
disposableHandle = disposableHandle === VOID ? NonDisposableHandle_instance : disposableHandle;
|
|
2430
2484
|
Frame.call(this, true, FrameType_PONG_getInstance(), data, disposableHandle, false, false, false);
|
|
2431
2485
|
}
|
|
2432
|
-
function
|
|
2433
|
-
|
|
2434
|
-
this.
|
|
2486
|
+
function Companion_6() {
|
|
2487
|
+
Companion_instance_6 = this;
|
|
2488
|
+
this.v4j_1 = new Int8Array(0);
|
|
2435
2489
|
}
|
|
2436
|
-
protoOf(
|
|
2490
|
+
protoOf(Companion_6).w4j = function (fin, frameType, data, rsv1, rsv2, rsv3) {
|
|
2437
2491
|
var tmp;
|
|
2438
2492
|
switch (frameType.a1_1) {
|
|
2439
2493
|
case 1:
|
|
@@ -2457,35 +2511,36 @@ protoOf(Companion_5).u4i = function (fin, frameType, data, rsv1, rsv2, rsv3) {
|
|
|
2457
2511
|
}
|
|
2458
2512
|
return tmp;
|
|
2459
2513
|
};
|
|
2460
|
-
var
|
|
2461
|
-
function
|
|
2462
|
-
if (
|
|
2463
|
-
new
|
|
2464
|
-
return
|
|
2514
|
+
var Companion_instance_6;
|
|
2515
|
+
function Companion_getInstance_6() {
|
|
2516
|
+
if (Companion_instance_6 == null)
|
|
2517
|
+
new Companion_6();
|
|
2518
|
+
return Companion_instance_6;
|
|
2465
2519
|
}
|
|
2466
2520
|
function Frame(fin, frameType, data, disposableHandle, rsv1, rsv2, rsv3) {
|
|
2467
|
-
|
|
2521
|
+
Companion_getInstance_6();
|
|
2468
2522
|
disposableHandle = disposableHandle === VOID ? NonDisposableHandle_instance : disposableHandle;
|
|
2469
2523
|
rsv1 = rsv1 === VOID ? false : rsv1;
|
|
2470
2524
|
rsv2 = rsv2 === VOID ? false : rsv2;
|
|
2471
2525
|
rsv3 = rsv3 === VOID ? false : rsv3;
|
|
2472
|
-
this.
|
|
2473
|
-
this.
|
|
2474
|
-
this.
|
|
2475
|
-
this.
|
|
2476
|
-
this.
|
|
2477
|
-
this.
|
|
2478
|
-
this.
|
|
2526
|
+
this.u4f_1 = fin;
|
|
2527
|
+
this.v4f_1 = frameType;
|
|
2528
|
+
this.w4f_1 = data;
|
|
2529
|
+
this.x4f_1 = disposableHandle;
|
|
2530
|
+
this.y4f_1 = rsv1;
|
|
2531
|
+
this.z4f_1 = rsv2;
|
|
2532
|
+
this.a4g_1 = rsv3;
|
|
2533
|
+
validateSize(this);
|
|
2479
2534
|
}
|
|
2480
2535
|
protoOf(Frame).toString = function () {
|
|
2481
|
-
return 'Frame ' + this.
|
|
2536
|
+
return 'Frame ' + this.v4f_1.toString() + ' (fin=' + this.u4f_1 + ', buffer len = ' + this.w4f_1.length + ')';
|
|
2482
2537
|
};
|
|
2483
2538
|
function get_OUTGOING_CHANNEL_CAPACITY() {
|
|
2484
2539
|
return OUTGOING_CHANNEL_CAPACITY;
|
|
2485
2540
|
}
|
|
2486
2541
|
var OUTGOING_CHANNEL_CAPACITY;
|
|
2487
2542
|
//region block: post-declaration
|
|
2488
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
2543
|
+
protoOf(DefaultWebSocketSessionImpl).g4g = send;
|
|
2489
2544
|
defineProp(protoOf(FrameTooBigException), 'message', function () {
|
|
2490
2545
|
return this.e();
|
|
2491
2546
|
});
|
|
@@ -2493,14 +2548,15 @@ protoOf(BoundedChannel).p25 = close$default;
|
|
|
2493
2548
|
protoOf(BoundedChannel).r25 = cancel$default;
|
|
2494
2549
|
//endregion
|
|
2495
2550
|
//region block: init
|
|
2551
|
+
Companion_instance_0 = new Companion_0();
|
|
2496
2552
|
NonDisposableHandle_instance = new NonDisposableHandle();
|
|
2497
|
-
|
|
2553
|
+
Companion_instance_5 = new Companion_5();
|
|
2498
2554
|
OUTGOING_CHANNEL_CAPACITY = null;
|
|
2499
2555
|
//endregion
|
|
2500
2556
|
//region block: exports
|
|
2501
2557
|
export {
|
|
2502
2558
|
Companion_getInstance as Companion_getInstanceo8cazic5dguk,
|
|
2503
|
-
|
|
2559
|
+
Companion_getInstance_3 as Companion_getInstance27kujspvp4jub,
|
|
2504
2560
|
Codes_CLOSED_ABNORMALLY_getInstance as Codes_CLOSED_ABNORMALLY_getInstance35h8511ldg1ec,
|
|
2505
2561
|
Codes_NORMAL_getInstance as Codes_NORMAL_getInstance1njykag03saqj,
|
|
2506
2562
|
send as send3vgnni2smbra3,
|