@icure/cardinal-sdk 2.0.0-PREVIEW-18.1 → 2.0.0-PREVIEW-21
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/Kermit-kermit-core.mjs +45 -40
- package/Kermit-kermit.mjs +6 -6
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1577 -1577
- package/api/HealthcarePartyApi.d.mts +2 -0
- package/api/HealthcarePartyApiInGroup.d.mts +5 -0
- package/api/HealthcarePartyApiInGroup.mjs +1 -0
- package/api/RecoveryApi.d.mts +5 -1
- package/api.d.mts +1 -0
- package/api.mjs +1 -0
- package/bitops-library-bits.mjs +197 -0
- package/bitops-library-endian.mjs +117 -0
- package/cardinal-sdk-ts.d.mts +2 -2
- package/cardinal-sdk-ts.mjs +57007 -56794
- package/cardinal-sdk.mjs +120895 -120501
- package/core-library-digest.mjs +186 -0
- package/crypto/CryptoService.d.mts +17 -7
- package/error-library-error.mjs +42 -0
- package/hash-library-sha2.mjs +183 -0
- package/internal/BytesEncoding.d.mts +3 -0
- package/internal/BytesEncoding.mjs +99 -0
- package/internal/JsonDecodeUtils.d.mts +20 -0
- package/internal/JsonDecodeUtils.mjs +99 -0
- package/kerberus.mjs +557 -389
- package/kotlin-kotlin-stdlib.mjs +2445 -2713
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-coroutines-core.mjs +2455 -2450
- package/kotlinx-io-kotlinx-io-bytestring.mjs +36 -36
- package/kotlinx-io-kotlinx-io-core.mjs +459 -459
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2029 -2029
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1952 -1952
- package/kryptom-lib.mjs +3263 -1967
- package/ktor-ktor-client-content-negotiation.mjs +184 -184
- package/ktor-ktor-client-core.mjs +2713 -2713
- package/ktor-ktor-events.mjs +6 -6
- package/ktor-ktor-http-cio.mjs +481 -481
- package/ktor-ktor-http.mjs +693 -693
- package/ktor-ktor-io.mjs +963 -963
- package/ktor-ktor-serialization-kotlinx-json.mjs +7 -7
- package/ktor-ktor-serialization-kotlinx.mjs +238 -238
- package/ktor-ktor-serialization.mjs +109 -109
- package/ktor-ktor-utils.mjs +557 -557
- package/ktor-ktor-websockets.mjs +673 -673
- package/model/AccessLog.d.mts +5 -0
- package/model/AccessLog.mjs +168 -0
- package/model/Agenda.d.mts +2 -0
- package/model/Agenda.mjs +82 -0
- package/model/ApplicationSettings.d.mts +5 -0
- package/model/ApplicationSettings.mjs +140 -0
- package/model/BooleanResponse.d.mts +2 -0
- package/model/BooleanResponse.mjs +20 -0
- package/model/CalendarItem.d.mts +5 -0
- package/model/CalendarItem.mjs +290 -0
- package/model/CalendarItemType.d.mts +7 -0
- package/model/CalendarItemType.mjs +117 -0
- package/model/Classification.d.mts +5 -0
- package/model/Classification.mjs +148 -0
- package/model/Code.d.mts +2 -0
- package/model/Code.mjs +69 -0
- package/model/Contact.d.mts +5 -0
- package/model/Contact.mjs +218 -0
- package/model/CryptoActorStub.d.mts +2 -0
- package/model/CryptoActorStub.mjs +45 -0
- package/model/CryptoActorStubWithType.d.mts +2 -0
- package/model/CryptoActorStubWithType.mjs +25 -0
- package/model/DataOwnerRegistrationSuccess.d.mts +2 -0
- package/model/DataOwnerRegistrationSuccess.mjs +24 -0
- package/model/DataOwnerWithType.d.mts +7 -0
- package/model/DataOwnerWithType.mjs +80 -0
- package/model/DatabaseInitialisation.d.mts +2 -0
- package/model/DatabaseInitialisation.mjs +34 -0
- package/model/Device.d.mts +2 -0
- package/model/Device.mjs +99 -0
- package/model/Document.d.mts +5 -0
- package/model/Document.mjs +246 -0
- package/model/DocumentTemplate.d.mts +2 -0
- package/model/DocumentTemplate.mjs +91 -0
- package/model/EntityReference.d.mts +2 -0
- package/model/EntityReference.mjs +29 -0
- package/model/EntityReferenceInGroup.d.mts +2 -0
- package/model/EntityReferenceInGroup.mjs +23 -0
- package/model/EntityTemplate.d.mts +2 -0
- package/model/EntityTemplate.mjs +46 -0
- package/model/Form.d.mts +5 -0
- package/model/Form.mjs +204 -0
- package/model/FormTemplate.d.mts +2 -0
- package/model/FormTemplate.mjs +82 -0
- package/model/FrontEndMigration.d.mts +2 -0
- package/model/FrontEndMigration.mjs +57 -0
- package/model/Group.d.mts +2 -0
- package/model/Group.mjs +68 -0
- package/model/GroupDeletionReport.d.mts +2 -0
- package/model/GroupDeletionReport.mjs +24 -0
- package/model/HealthElement.d.mts +5 -0
- package/model/HealthElement.mjs +226 -0
- package/model/HealthcareParty.d.mts +2 -0
- package/model/HealthcareParty.mjs +182 -0
- package/model/IdWithRev.d.mts +2 -0
- package/model/IdWithRev.mjs +23 -0
- package/model/IndexingInfo.d.mts +2 -0
- package/model/IndexingInfo.mjs +21 -0
- package/model/Insurance.d.mts +2 -0
- package/model/Insurance.mjs +46 -0
- package/model/Invoice.d.mts +5 -0
- package/model/Invoice.mjs +468 -0
- package/model/Keyword.d.mts +2 -0
- package/model/Keyword.mjs +58 -0
- package/model/ListOfIds.d.mts +2 -0
- package/model/ListOfIds.mjs +20 -0
- package/model/ListOfProperties.d.mts +2 -0
- package/model/ListOfProperties.mjs +22 -0
- package/model/MaintenanceTask.d.mts +5 -0
- package/model/MaintenanceTask.mjs +152 -0
- package/model/MedicalLocation.d.mts +2 -0
- package/model/MedicalLocation.mjs +63 -0
- package/model/Message.d.mts +5 -0
- package/model/Message.mjs +248 -0
- package/model/PaginatedDocumentKeyIdPair.d.mts +2 -0
- package/model/PaginatedDocumentKeyIdPair.mjs +24 -0
- package/model/Patient.d.mts +5 -0
- package/model/Patient.mjs +491 -0
- package/model/Place.d.mts +2 -0
- package/model/Place.mjs +33 -0
- package/model/PropertyStub.d.mts +5 -0
- package/model/PropertyStub.mjs +74 -0
- package/model/PropertyTypeStub.d.mts +2 -0
- package/model/PropertyTypeStub.mjs +26 -0
- package/model/PublicAgendasAndCalendarItemTypes.d.mts +2 -0
- package/model/PublicAgendasAndCalendarItemTypes.mjs +25 -0
- package/model/PublicKey.d.mts +2 -0
- package/model/PublicKey.mjs +24 -0
- package/model/Receipt.d.mts +5 -0
- package/model/Receipt.mjs +159 -0
- package/model/RegistrationInformation.d.mts +2 -0
- package/model/RegistrationInformation.mjs +43 -0
- package/model/RegistrationSuccess.d.mts +2 -0
- package/model/RegistrationSuccess.mjs +24 -0
- package/model/Replication.d.mts +2 -0
- package/model/Replication.mjs +35 -0
- package/model/ReplicationInfo.d.mts +2 -0
- package/model/ReplicationInfo.mjs +28 -0
- package/model/Role.d.mts +2 -0
- package/model/Role.mjs +34 -0
- package/model/StoredDocumentIdentifier.d.mts +2 -0
- package/model/StoredDocumentIdentifier.mjs +22 -0
- package/model/Tarification.d.mts +2 -0
- package/model/Tarification.mjs +92 -0
- package/model/TimeTable.d.mts +2 -0
- package/model/TimeTable.mjs +64 -0
- package/model/Topic.d.mts +5 -0
- package/model/Topic.mjs +163 -0
- package/model/User.d.mts +4 -0
- package/model/User.mjs +118 -0
- package/model/UserGroup.d.mts +2 -0
- package/model/UserGroup.mjs +55 -0
- package/model/base/CodeStub.d.mts +2 -0
- package/model/base/CodeStub.mjs +40 -0
- package/model/base/CryptoActor.d.mts +3 -0
- package/model/base/CryptoActor.mjs +19 -1
- package/model/base/Identifier.d.mts +2 -0
- package/model/base/Identifier.mjs +44 -0
- package/model/couchdb/Basic.d.mts +2 -0
- package/model/couchdb/Basic.mjs +22 -0
- package/model/couchdb/DatabaseInfo.d.mts +2 -0
- package/model/couchdb/DatabaseInfo.mjs +47 -0
- package/model/couchdb/DesignDocument.d.mts +2 -0
- package/model/couchdb/DesignDocument.mjs +40 -0
- package/model/couchdb/DocIdentifier.d.mts +2 -0
- package/model/couchdb/DocIdentifier.mjs +24 -0
- package/model/couchdb/GroupDatabasesInfo.d.mts +2 -0
- package/model/couchdb/GroupDatabasesInfo.mjs +26 -0
- package/model/couchdb/Remote.d.mts +2 -0
- package/model/couchdb/Remote.mjs +25 -0
- package/model/couchdb/RemoteAuthentication.d.mts +2 -0
- package/model/couchdb/RemoteAuthentication.mjs +23 -0
- package/model/couchdb/ReplicationStats.d.mts +2 -0
- package/model/couchdb/ReplicationStats.mjs +45 -0
- package/model/couchdb/ReplicatorDocument.d.mts +2 -0
- package/model/couchdb/ReplicatorDocument.mjs +61 -0
- package/model/couchdb/View.d.mts +2 -0
- package/model/couchdb/View.mjs +23 -0
- package/model/data/LabelledOccurence.d.mts +2 -0
- package/model/data/LabelledOccurence.mjs +22 -0
- package/model/embed/Address.d.mts +5 -0
- package/model/embed/Address.mjs +133 -0
- package/model/embed/AdministrationQuantity.d.mts +2 -0
- package/model/embed/AdministrationQuantity.mjs +29 -0
- package/model/embed/AgendaSlottingAlgorithm.d.mts +3 -0
- package/model/embed/AgendaSlottingAlgorithm.mjs +30 -0
- package/model/embed/AgreementAppendix.d.mts +2 -0
- package/model/embed/AgreementAppendix.mjs +30 -0
- package/model/embed/Annotation.d.mts +2 -0
- package/model/embed/Annotation.mjs +46 -0
- package/model/embed/CalendarItemTag.d.mts +5 -0
- package/model/embed/CalendarItemTag.mjs +72 -0
- package/model/embed/CareTeamMember.d.mts +5 -0
- package/model/embed/CareTeamMember.mjs +71 -0
- package/model/embed/CareTeamMembership.d.mts +5 -0
- package/model/embed/CareTeamMembership.mjs +73 -0
- package/model/embed/Content.d.mts +5 -0
- package/model/embed/Content.mjs +125 -0
- package/model/embed/DataAttachment.d.mts +2 -0
- package/model/embed/DataAttachment.mjs +26 -0
- package/model/embed/DatabaseSynchronization.d.mts +2 -0
- package/model/embed/DatabaseSynchronization.mjs +30 -0
- package/model/embed/Delegation.d.mts +2 -0
- package/model/embed/Delegation.mjs +30 -0
- package/model/embed/DeletedAttachment.d.mts +2 -0
- package/model/embed/DeletedAttachment.mjs +30 -0
- package/model/embed/DocumentGroup.d.mts +2 -0
- package/model/embed/DocumentGroup.mjs +24 -0
- package/model/embed/Duration.d.mts +2 -0
- package/model/embed/Duration.mjs +26 -0
- package/model/embed/EmbeddedTimeTableHour.d.mts +2 -0
- package/model/embed/EmbeddedTimeTableHour.mjs +22 -0
- package/model/embed/EmbeddedTimeTableItem.d.mts +2 -0
- package/model/embed/EmbeddedTimeTableItem.mjs +41 -0
- package/model/embed/Employer.d.mts +2 -0
- package/model/embed/Employer.mjs +26 -0
- package/model/embed/EmploymentInfo.d.mts +5 -0
- package/model/embed/EmploymentInfo.mjs +74 -0
- package/model/embed/Episode.d.mts +5 -0
- package/model/embed/Episode.mjs +75 -0
- package/model/embed/FinancialInstitutionInformation.d.mts +5 -0
- package/model/embed/FinancialInstitutionInformation.mjs +88 -0
- package/model/embed/FlatRateTarification.d.mts +5 -0
- package/model/embed/FlatRateTarification.mjs +72 -0
- package/model/embed/FlowItem.d.mts +2 -0
- package/model/embed/FlowItem.mjs +117 -0
- package/model/embed/HealthcarePartyHistoryStatus.d.mts +2 -0
- package/model/embed/HealthcarePartyHistoryStatus.mjs +28 -0
- package/model/embed/IdentityDocumentReader.d.mts +2 -0
- package/model/embed/IdentityDocumentReader.mjs +33 -0
- package/model/embed/Insurability.d.mts +5 -0
- package/model/embed/Insurability.mjs +100 -0
- package/model/embed/InvoicingCode.d.mts +5 -0
- package/model/embed/InvoicingCode.mjs +377 -0
- package/model/embed/KeywordSubword.d.mts +2 -0
- package/model/embed/KeywordSubword.mjs +25 -0
- package/model/embed/LetterValue.d.mts +2 -0
- package/model/embed/LetterValue.mjs +30 -0
- package/model/embed/Measure.d.mts +2 -0
- package/model/embed/Measure.mjs +57 -0
- package/model/embed/MedicalHouseContract.d.mts +5 -0
- package/model/embed/MedicalHouseContract.mjs +223 -0
- package/model/embed/Medication.d.mts +2 -0
- package/model/embed/Medication.mjs +157 -0
- package/model/embed/Medicinalproduct.d.mts +2 -0
- package/model/embed/Medicinalproduct.mjs +33 -0
- package/model/embed/MessageAttachment.d.mts +2 -0
- package/model/embed/MessageAttachment.mjs +25 -0
- package/model/embed/MessageReadStatus.d.mts +2 -0
- package/model/embed/MessageReadStatus.mjs +23 -0
- package/model/embed/ParagraphAgreement.d.mts +2 -0
- package/model/embed/ParagraphAgreement.mjs +86 -0
- package/model/embed/Partnership.d.mts +2 -0
- package/model/embed/Partnership.mjs +36 -0
- package/model/embed/PatientHealthCareParty.d.mts +9 -0
- package/model/embed/PatientHealthCareParty.mjs +88 -0
- package/model/embed/Payment.d.mts +2 -0
- package/model/embed/Payment.mjs +28 -0
- package/model/embed/Periodicity.d.mts +2 -0
- package/model/embed/Periodicity.mjs +26 -0
- package/model/embed/PersonName.d.mts +2 -0
- package/model/embed/PersonName.mjs +41 -0
- package/model/embed/PlanOfAction.d.mts +8 -3
- package/model/embed/PlanOfAction.mjs +179 -0
- package/model/embed/Range.d.mts +2 -0
- package/model/embed/Range.mjs +24 -0
- package/model/embed/ReferenceRange.d.mts +2 -0
- package/model/embed/ReferenceRange.mjs +40 -0
- package/model/embed/ReferralPeriod.d.mts +2 -0
- package/model/embed/ReferralPeriod.mjs +27 -0
- package/model/embed/RegimenItem.d.mts +2 -0
- package/model/embed/RegimenItem.mjs +40 -0
- package/model/embed/Renewal.d.mts +2 -0
- package/model/embed/Renewal.mjs +26 -0
- package/model/embed/ResourceGroupAllocationSchedule.d.mts +2 -0
- package/model/embed/ResourceGroupAllocationSchedule.mjs +39 -0
- package/model/embed/Right.d.mts +2 -0
- package/model/embed/Right.mjs +27 -0
- package/model/embed/RoleConfiguration.d.mts +2 -0
- package/model/embed/RoleConfiguration.mjs +22 -0
- package/model/embed/SchoolingInfo.d.mts +5 -0
- package/model/embed/SchoolingInfo.mjs +73 -0
- package/model/embed/SecureDelegation.d.mts +2 -0
- package/model/embed/SecureDelegation.mjs +39 -0
- package/model/embed/SecurityMetadata.d.mts +2 -0
- package/model/embed/SecurityMetadata.mjs +22 -0
- package/model/embed/Service.d.mts +5 -0
- package/model/embed/Service.mjs +240 -0
- package/model/embed/ServiceLink.d.mts +2 -0
- package/model/embed/ServiceLink.mjs +21 -0
- package/model/embed/SubContact.d.mts +5 -0
- package/model/embed/SubContact.mjs +146 -0
- package/model/embed/Substanceproduct.d.mts +2 -0
- package/model/embed/Substanceproduct.mjs +33 -0
- package/model/embed/Suspension.d.mts +2 -0
- package/model/embed/Suspension.mjs +30 -0
- package/model/embed/Telecom.d.mts +5 -0
- package/model/embed/Telecom.mjs +67 -0
- package/model/embed/TimeSeries.d.mts +2 -0
- package/model/embed/TimeSeries.mjs +32 -0
- package/model/embed/TimeTableHour.d.mts +2 -0
- package/model/embed/TimeTableHour.mjs +24 -0
- package/model/embed/TimeTableItem.d.mts +2 -0
- package/model/embed/TimeTableItem.mjs +57 -0
- package/model/embed/TypedValue.d.mts +5 -0
- package/model/embed/TypedValue.mjs +85 -0
- package/model/embed/Valorisation.d.mts +5 -0
- package/model/embed/Valorisation.mjs +108 -0
- package/model/embed/ValueWithPrecision.d.mts +2 -0
- package/model/embed/ValueWithPrecision.mjs +22 -0
- package/model/embed/Weekday.d.mts +2 -0
- package/model/embed/Weekday.mjs +26 -0
- package/model/embed/form/template/Action.d.mts +2 -0
- package/model/embed/form/template/Action.mjs +30 -0
- package/model/embed/form/template/CheckBox.d.mts +2 -0
- package/model/embed/form/template/CheckBox.mjs +71 -0
- package/model/embed/form/template/DatePicker.d.mts +2 -0
- package/model/embed/form/template/DatePicker.mjs +71 -0
- package/model/embed/form/template/DateTimePicker.d.mts +2 -0
- package/model/embed/form/template/DateTimePicker.mjs +71 -0
- package/model/embed/form/template/DropdownField.d.mts +2 -0
- package/model/embed/form/template/DropdownField.mjs +71 -0
- package/model/embed/form/template/FieldsGroup.d.mts +2 -0
- package/model/embed/form/template/FieldsGroup.mjs +28 -0
- package/model/embed/form/template/FormTemplateLayout.d.mts +2 -0
- package/model/embed/form/template/FormTemplateLayout.mjs +33 -0
- package/model/embed/form/template/Launcher.d.mts +2 -0
- package/model/embed/form/template/Launcher.mjs +26 -0
- package/model/embed/form/template/MeasureField.d.mts +2 -0
- package/model/embed/form/template/MeasureField.mjs +71 -0
- package/model/embed/form/template/MultipleChoice.d.mts +2 -0
- package/model/embed/form/template/MultipleChoice.mjs +71 -0
- package/model/embed/form/template/NumberField.d.mts +2 -0
- package/model/embed/form/template/NumberField.mjs +71 -0
- package/model/embed/form/template/RadioButton.d.mts +2 -0
- package/model/embed/form/template/RadioButton.mjs +71 -0
- package/model/embed/form/template/Section.d.mts +2 -0
- package/model/embed/form/template/Section.mjs +30 -0
- package/model/embed/form/template/State.d.mts +2 -0
- package/model/embed/form/template/State.mjs +26 -0
- package/model/embed/form/template/StructureElement.d.mts +3 -0
- package/model/embed/form/template/StructureElement.mjs +32 -1
- package/model/embed/form/template/TextField.d.mts +2 -0
- package/model/embed/form/template/TextField.mjs +71 -0
- package/model/embed/form/template/TimePicker.d.mts +2 -0
- package/model/embed/form/template/TimePicker.mjs +71 -0
- package/model/filter/predicate/AlwaysPredicate.d.mts +2 -0
- package/model/filter/predicate/AlwaysPredicate.mjs +20 -0
- package/model/filter/predicate/AndPredicate.d.mts +2 -0
- package/model/filter/predicate/AndPredicate.mjs +25 -0
- package/model/filter/predicate/KeyValuePredicate.d.mts +2 -0
- package/model/filter/predicate/KeyValuePredicate.mjs +32 -0
- package/model/filter/predicate/NotPredicate.d.mts +2 -0
- package/model/filter/predicate/NotPredicate.mjs +25 -0
- package/model/filter/predicate/OrPredicate.d.mts +2 -0
- package/model/filter/predicate/OrPredicate.mjs +25 -0
- package/model/filter/predicate/Predicate.d.mts +3 -0
- package/model/filter/predicate/Predicate.mjs +20 -1
- package/model/security/AlwaysPermissionItem.d.mts +2 -0
- package/model/security/AlwaysPermissionItem.mjs +25 -0
- package/model/security/AuthenticationToken.d.mts +2 -0
- package/model/security/AuthenticationToken.mjs +28 -0
- package/model/security/Enable2faRequest.d.mts +2 -0
- package/model/security/Enable2faRequest.mjs +22 -0
- package/model/security/ExternalJwtConfig.d.mts +18 -0
- package/model/security/ExternalJwtConfig.mjs +199 -0
- package/model/security/LoginIdentifier.d.mts +2 -0
- package/model/security/LoginIdentifier.mjs +22 -0
- package/model/security/OperationToken.d.mts +2 -0
- package/model/security/OperationToken.mjs +31 -0
- package/model/security/Permission.d.mts +2 -0
- package/model/security/Permission.mjs +24 -0
- package/model/security/PermissionItem.d.mts +3 -0
- package/model/security/PermissionItem.mjs +12 -1
- package/model/security/TokenWithGroup.d.mts +2 -0
- package/model/security/TokenWithGroup.mjs +25 -0
- package/options/SdkOptions.d.mts +3 -23
- package/package.json +1 -1
- package/utils/Id.d.mts +5 -0
- package/utils/Id.mjs +19 -10
- package/KotlinBigInteger-bignum.mjs +0 -5902
- /package/{KotlinBigInteger-bignum-serialization-kotlinx.mjs → core-library-core.mjs} +0 -0
package/ktor-ktor-websockets.mjs
CHANGED
|
@@ -102,7 +102,7 @@ initMetadataForCompanion(Companion);
|
|
|
102
102
|
initMetadataForClass(Codes, 'Codes', VOID, Enum);
|
|
103
103
|
initMetadataForClass(CloseReason, 'CloseReason');
|
|
104
104
|
function send(frame, $completion) {
|
|
105
|
-
return this.
|
|
105
|
+
return this.p57().d1d(frame, $completion);
|
|
106
106
|
}
|
|
107
107
|
initMetadataForInterface(WebSocketSession, 'WebSocketSession', VOID, VOID, [CoroutineScope], [1, 0]);
|
|
108
108
|
initMetadataForInterface(DefaultWebSocketSession, 'DefaultWebSocketSession', VOID, VOID, [WebSocketSession], [1, 0]);
|
|
@@ -157,14 +157,14 @@ function Companion() {
|
|
|
157
157
|
var _iterator__ex2g4s = this_0.s();
|
|
158
158
|
while (_iterator__ex2g4s.t()) {
|
|
159
159
|
var element = _iterator__ex2g4s.u();
|
|
160
|
-
var tmp$ret$0 = element.
|
|
161
|
-
destination.
|
|
160
|
+
var tmp$ret$0 = element.d57_1;
|
|
161
|
+
destination.m2(tmp$ret$0, element);
|
|
162
162
|
}
|
|
163
|
-
tmp.
|
|
164
|
-
this.
|
|
163
|
+
tmp.e57_1 = destination;
|
|
164
|
+
this.f57_1 = Codes_INTERNAL_ERROR_getInstance();
|
|
165
165
|
}
|
|
166
|
-
protoOf(Companion).
|
|
167
|
-
return this.
|
|
166
|
+
protoOf(Companion).g57 = function (code) {
|
|
167
|
+
return this.e57_1.e2(code);
|
|
168
168
|
};
|
|
169
169
|
var Companion_instance;
|
|
170
170
|
function Companion_getInstance() {
|
|
@@ -202,7 +202,7 @@ function Codes_initEntries() {
|
|
|
202
202
|
}
|
|
203
203
|
var $ENTRIES;
|
|
204
204
|
function CloseReason_init_$Init$(code, message, $this) {
|
|
205
|
-
CloseReason.call($this, code.
|
|
205
|
+
CloseReason.call($this, code.d57_1, message);
|
|
206
206
|
return $this;
|
|
207
207
|
}
|
|
208
208
|
function CloseReason_init_$Create$(code, message) {
|
|
@@ -210,7 +210,7 @@ function CloseReason_init_$Create$(code, message) {
|
|
|
210
210
|
}
|
|
211
211
|
function Codes(name, ordinal, code) {
|
|
212
212
|
Enum.call(this, name, ordinal);
|
|
213
|
-
this.
|
|
213
|
+
this.d57_1 = code;
|
|
214
214
|
}
|
|
215
215
|
function Codes_NORMAL_getInstance() {
|
|
216
216
|
Codes_initEntries();
|
|
@@ -261,19 +261,19 @@ function Codes_TRY_AGAIN_LATER_getInstance() {
|
|
|
261
261
|
return Codes_TRY_AGAIN_LATER_instance;
|
|
262
262
|
}
|
|
263
263
|
function CloseReason(code, message) {
|
|
264
|
-
this.
|
|
265
|
-
this.
|
|
264
|
+
this.h57_1 = code;
|
|
265
|
+
this.i57_1 = message;
|
|
266
266
|
}
|
|
267
|
-
protoOf(CloseReason).
|
|
268
|
-
return Companion_getInstance().
|
|
267
|
+
protoOf(CloseReason).j57 = function () {
|
|
268
|
+
return Companion_getInstance().g57(this.h57_1);
|
|
269
269
|
};
|
|
270
270
|
protoOf(CloseReason).toString = function () {
|
|
271
|
-
var tmp0_elvis_lhs = this.
|
|
272
|
-
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.
|
|
271
|
+
var tmp0_elvis_lhs = this.j57();
|
|
272
|
+
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.h57_1 : tmp0_elvis_lhs) + ', message=' + this.i57_1 + ')';
|
|
273
273
|
};
|
|
274
274
|
protoOf(CloseReason).hashCode = function () {
|
|
275
|
-
var result = this.
|
|
276
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
275
|
+
var result = this.h57_1;
|
|
276
|
+
result = imul(result, 31) + getStringHashCode(this.i57_1) | 0;
|
|
277
277
|
return result;
|
|
278
278
|
};
|
|
279
279
|
protoOf(CloseReason).equals = function (other) {
|
|
@@ -282,9 +282,9 @@ protoOf(CloseReason).equals = function (other) {
|
|
|
282
282
|
if (!(other instanceof CloseReason))
|
|
283
283
|
return false;
|
|
284
284
|
var tmp0_other_with_cast = other instanceof CloseReason ? other : THROW_CCE();
|
|
285
|
-
if (!(this.
|
|
285
|
+
if (!(this.h57_1 === tmp0_other_with_cast.h57_1))
|
|
286
286
|
return false;
|
|
287
|
-
if (!(this.
|
|
287
|
+
if (!(this.i57_1 === tmp0_other_with_cast.i57_1))
|
|
288
288
|
return false;
|
|
289
289
|
return true;
|
|
290
290
|
};
|
|
@@ -322,91 +322,91 @@ function DefaultWebSocketSession_0(session, pingIntervalMillis, timeoutMillis) {
|
|
|
322
322
|
return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis);
|
|
323
323
|
}
|
|
324
324
|
function runIncomingProcessor($this, ponger) {
|
|
325
|
-
var tmp = get_IncomingProcessorCoroutineName().
|
|
325
|
+
var tmp = get_IncomingProcessorCoroutineName().th(Dispatchers_getInstance().c16_1);
|
|
326
326
|
return launch($this, tmp, VOID, DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0($this, ponger, null));
|
|
327
327
|
}
|
|
328
328
|
function runOutgoingProcessor($this) {
|
|
329
|
-
var tmp = get_OutgoingProcessorCoroutineName().
|
|
329
|
+
var tmp = get_OutgoingProcessorCoroutineName().th(Dispatchers_getInstance().c16_1);
|
|
330
330
|
var tmp_0 = CoroutineStart_UNDISPATCHED_getInstance();
|
|
331
331
|
return launch($this, tmp, tmp_0, DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0($this, null));
|
|
332
332
|
}
|
|
333
333
|
function outgoingProcessorLoop($this, $completion) {
|
|
334
334
|
var tmp = new $outgoingProcessorLoopCOROUTINE$($this, $completion);
|
|
335
|
-
tmp.
|
|
336
|
-
tmp.
|
|
337
|
-
return tmp.
|
|
335
|
+
tmp.n8_1 = Unit_instance;
|
|
336
|
+
tmp.o8_1 = null;
|
|
337
|
+
return tmp.t8();
|
|
338
338
|
}
|
|
339
339
|
function sendCloseSequence($this, reason, exception, $completion) {
|
|
340
340
|
var tmp = new $sendCloseSequenceCOROUTINE$($this, reason, exception, $completion);
|
|
341
|
-
tmp.
|
|
342
|
-
tmp.
|
|
343
|
-
return tmp.
|
|
341
|
+
tmp.n8_1 = Unit_instance;
|
|
342
|
+
tmp.o8_1 = null;
|
|
343
|
+
return tmp.t8();
|
|
344
344
|
}
|
|
345
345
|
function sendCloseSequence$default($this, reason, exception, $completion, $super) {
|
|
346
346
|
exception = exception === VOID ? null : exception;
|
|
347
347
|
return sendCloseSequence($this, reason, exception, $completion);
|
|
348
348
|
}
|
|
349
349
|
function tryClose($this) {
|
|
350
|
-
return $this.
|
|
350
|
+
return $this.t58_1.atomicfu$compareAndSet(false, true);
|
|
351
351
|
}
|
|
352
352
|
function runOrCancelPinger($this) {
|
|
353
|
-
var interval = $this.
|
|
353
|
+
var interval = $this.y58_1;
|
|
354
354
|
var tmp;
|
|
355
|
-
if ($this.
|
|
355
|
+
if ($this.t58_1.kotlinx$atomicfu$value) {
|
|
356
356
|
tmp = null;
|
|
357
357
|
} else if (compare(interval, new Long(0, 0)) > 0) {
|
|
358
|
-
var tmp_0 = $this.
|
|
359
|
-
var tmp_1 = $this.
|
|
358
|
+
var tmp_0 = $this.o58_1.p57();
|
|
359
|
+
var tmp_1 = $this.z58_1;
|
|
360
360
|
tmp = pinger($this, tmp_0, interval, tmp_1, DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0($this, null));
|
|
361
361
|
} else {
|
|
362
362
|
tmp = null;
|
|
363
363
|
}
|
|
364
364
|
var newPinger = tmp;
|
|
365
|
-
var tmp0_safe_receiver = $this.
|
|
365
|
+
var tmp0_safe_receiver = $this.p58_1.atomicfu$getAndSet(newPinger);
|
|
366
366
|
if (tmp0_safe_receiver == null)
|
|
367
367
|
null;
|
|
368
368
|
else
|
|
369
|
-
tmp0_safe_receiver.
|
|
370
|
-
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.
|
|
369
|
+
tmp0_safe_receiver.n1d();
|
|
370
|
+
var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.e1d(Companion_getInstance_0().b59_1));
|
|
371
371
|
if (tmp2_safe_receiver == null)
|
|
372
372
|
null;
|
|
373
373
|
else
|
|
374
|
-
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.
|
|
375
|
-
if ($this.
|
|
374
|
+
_ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.i1a_1);
|
|
375
|
+
if ($this.t58_1.kotlinx$atomicfu$value && !(newPinger == null)) {
|
|
376
376
|
runOrCancelPinger($this);
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
379
|
function checkMaxFrameSize($this, packet, frame, $completion) {
|
|
380
380
|
var tmp = new $checkMaxFrameSizeCOROUTINE$($this, packet, frame, $completion);
|
|
381
|
-
tmp.
|
|
382
|
-
tmp.
|
|
383
|
-
return tmp.
|
|
381
|
+
tmp.n8_1 = Unit_instance;
|
|
382
|
+
tmp.o8_1 = null;
|
|
383
|
+
return tmp.t8();
|
|
384
384
|
}
|
|
385
385
|
function processIncomingExtensions($this, frame) {
|
|
386
386
|
// Inline function 'kotlin.collections.fold' call
|
|
387
387
|
var accumulator = frame;
|
|
388
|
-
var _iterator__ex2g4s = $this.
|
|
388
|
+
var _iterator__ex2g4s = $this.o59().s();
|
|
389
389
|
while (_iterator__ex2g4s.t()) {
|
|
390
390
|
var element = _iterator__ex2g4s.u();
|
|
391
391
|
var current = accumulator;
|
|
392
|
-
accumulator = element.
|
|
392
|
+
accumulator = element.p59(current);
|
|
393
393
|
}
|
|
394
394
|
return accumulator;
|
|
395
395
|
}
|
|
396
396
|
function processOutgoingExtensions($this, frame) {
|
|
397
397
|
// Inline function 'kotlin.collections.fold' call
|
|
398
398
|
var accumulator = frame;
|
|
399
|
-
var _iterator__ex2g4s = $this.
|
|
399
|
+
var _iterator__ex2g4s = $this.o59().s();
|
|
400
400
|
while (_iterator__ex2g4s.t()) {
|
|
401
401
|
var element = _iterator__ex2g4s.u();
|
|
402
402
|
var current = accumulator;
|
|
403
|
-
accumulator = element.
|
|
403
|
+
accumulator = element.q59(current);
|
|
404
404
|
}
|
|
405
405
|
return accumulator;
|
|
406
406
|
}
|
|
407
407
|
function Companion_0() {
|
|
408
408
|
Companion_instance_0 = this;
|
|
409
|
-
this.
|
|
409
|
+
this.b59_1 = new Pong(new Int8Array(0), NonDisposableHandle_instance);
|
|
410
410
|
}
|
|
411
411
|
var Companion_instance_0;
|
|
412
412
|
function Companion_getInstance_0() {
|
|
@@ -415,63 +415,63 @@ function Companion_getInstance_0() {
|
|
|
415
415
|
return Companion_instance_0;
|
|
416
416
|
}
|
|
417
417
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation) {
|
|
418
|
-
this.
|
|
419
|
-
this.
|
|
418
|
+
this.z59_1 = this$0;
|
|
419
|
+
this.a5a_1 = $ponger;
|
|
420
420
|
CoroutineImpl.call(this, resultContinuation);
|
|
421
421
|
}
|
|
422
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
423
|
-
var tmp = this.
|
|
424
|
-
tmp.
|
|
425
|
-
tmp.
|
|
426
|
-
return tmp.
|
|
422
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).l4m = function ($this$launch, $completion) {
|
|
423
|
+
var tmp = this.p24($this$launch, $completion);
|
|
424
|
+
tmp.n8_1 = Unit_instance;
|
|
425
|
+
tmp.o8_1 = null;
|
|
426
|
+
return tmp.t8();
|
|
427
427
|
};
|
|
428
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
429
|
-
return this.
|
|
428
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).f9 = function (p1, $completion) {
|
|
429
|
+
return this.l4m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
430
430
|
};
|
|
431
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
432
|
-
var suspendResult = this.
|
|
431
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).t8 = function () {
|
|
432
|
+
var suspendResult = this.n8_1;
|
|
433
433
|
$sm: do
|
|
434
434
|
try {
|
|
435
|
-
var tmp = this.
|
|
435
|
+
var tmp = this.l8_1;
|
|
436
436
|
switch (tmp) {
|
|
437
437
|
case 0:
|
|
438
|
-
this.
|
|
439
|
-
this.
|
|
440
|
-
this.
|
|
441
|
-
this.
|
|
442
|
-
this.
|
|
443
|
-
this.
|
|
438
|
+
this.m8_1 = 39;
|
|
439
|
+
this.l5a_1 = null;
|
|
440
|
+
this.e5a_1 = null;
|
|
441
|
+
this.d5a_1 = false;
|
|
442
|
+
this.f5a_1 = Unit_instance;
|
|
443
|
+
this.l8_1 = 1;
|
|
444
444
|
continue $sm;
|
|
445
445
|
case 1:
|
|
446
|
-
this.
|
|
446
|
+
this.l8_1 = 2;
|
|
447
447
|
continue $sm;
|
|
448
448
|
case 2:
|
|
449
|
-
this.
|
|
450
|
-
this.
|
|
449
|
+
this.m8_1 = 33;
|
|
450
|
+
this.m8_1 = 32;
|
|
451
451
|
var tmp_0 = this;
|
|
452
|
-
tmp_0.
|
|
453
|
-
this.
|
|
452
|
+
tmp_0.p5a_1 = this.z59_1.o58_1.o57();
|
|
453
|
+
this.l8_1 = 3;
|
|
454
454
|
continue $sm;
|
|
455
455
|
case 3:
|
|
456
|
-
this.
|
|
457
|
-
this.
|
|
458
|
-
this.
|
|
456
|
+
this.i5a_1 = this.p5a_1;
|
|
457
|
+
this.h5a_1 = null;
|
|
458
|
+
this.l8_1 = 4;
|
|
459
459
|
continue $sm;
|
|
460
460
|
case 4:
|
|
461
|
-
this.
|
|
461
|
+
this.l8_1 = 5;
|
|
462
462
|
continue $sm;
|
|
463
463
|
case 5:
|
|
464
|
-
this.
|
|
464
|
+
this.l8_1 = 6;
|
|
465
465
|
continue $sm;
|
|
466
466
|
case 6:
|
|
467
|
-
this.
|
|
468
|
-
this.
|
|
469
|
-
this.
|
|
470
|
-
this.
|
|
467
|
+
this.m8_1 = 29;
|
|
468
|
+
this.m8_1 = 28;
|
|
469
|
+
this.o5a_1 = this.i5a_1.s();
|
|
470
|
+
this.l8_1 = 7;
|
|
471
471
|
continue $sm;
|
|
472
472
|
case 7:
|
|
473
|
-
this.
|
|
474
|
-
suspendResult = this.
|
|
473
|
+
this.l8_1 = 8;
|
|
474
|
+
suspendResult = this.o5a_1.p1a(this);
|
|
475
475
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
476
476
|
return suspendResult;
|
|
477
477
|
}
|
|
@@ -479,47 +479,47 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).a9 = function
|
|
|
479
479
|
continue $sm;
|
|
480
480
|
case 8:
|
|
481
481
|
if (!suspendResult) {
|
|
482
|
-
this.
|
|
482
|
+
this.l8_1 = 26;
|
|
483
483
|
continue $sm;
|
|
484
484
|
}
|
|
485
485
|
|
|
486
|
-
var e = this.
|
|
486
|
+
var e = this.o5a_1.u();
|
|
487
487
|
var tmp_1 = this;
|
|
488
|
-
tmp_1.
|
|
489
|
-
this.
|
|
488
|
+
tmp_1.n5a_1 = e;
|
|
489
|
+
this.l8_1 = 9;
|
|
490
490
|
continue $sm;
|
|
491
491
|
case 9:
|
|
492
|
-
this.
|
|
492
|
+
this.m5a_1 = this.n5a_1;
|
|
493
493
|
var this_0 = get_LOGGER();
|
|
494
494
|
if (get_isTraceEnabled(this_0)) {
|
|
495
|
-
this_0.
|
|
495
|
+
this_0.g4u('WebSocketSession(' + toString(this.b5a_1) + ') receiving frame ' + this.m5a_1.toString());
|
|
496
496
|
}
|
|
497
497
|
|
|
498
|
-
var tmp0_subject = this.
|
|
498
|
+
var tmp0_subject = this.m5a_1;
|
|
499
499
|
if (tmp0_subject instanceof Close) {
|
|
500
|
-
if (!this.
|
|
501
|
-
this.
|
|
502
|
-
var tmp_2 = this.
|
|
503
|
-
var tmp1_elvis_lhs = readReason(this.
|
|
504
|
-
suspendResult = tmp_2.
|
|
500
|
+
if (!this.z59_1.p57().r1a()) {
|
|
501
|
+
this.l8_1 = 18;
|
|
502
|
+
var tmp_2 = this.z59_1.p57();
|
|
503
|
+
var tmp1_elvis_lhs = readReason(this.m5a_1);
|
|
504
|
+
suspendResult = tmp_2.d1d(Close_init_$Create$(tmp1_elvis_lhs == null ? get_NORMAL_CLOSE() : tmp1_elvis_lhs), this);
|
|
505
505
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
506
506
|
return suspendResult;
|
|
507
507
|
}
|
|
508
508
|
continue $sm;
|
|
509
509
|
} else {
|
|
510
|
-
this.
|
|
510
|
+
this.l8_1 = 19;
|
|
511
511
|
continue $sm;
|
|
512
512
|
}
|
|
513
513
|
} else {
|
|
514
514
|
if (tmp0_subject instanceof Pong) {
|
|
515
|
-
var tmp2_safe_receiver = this.
|
|
515
|
+
var tmp2_safe_receiver = this.z59_1.p58_1.kotlinx$atomicfu$value;
|
|
516
516
|
if (tmp2_safe_receiver == null) {
|
|
517
|
-
this.
|
|
518
|
-
this.
|
|
517
|
+
this.k5a_1 = null;
|
|
518
|
+
this.l8_1 = 17;
|
|
519
519
|
continue $sm;
|
|
520
520
|
} else {
|
|
521
|
-
this.
|
|
522
|
-
suspendResult = tmp2_safe_receiver.
|
|
521
|
+
this.l8_1 = 16;
|
|
522
|
+
suspendResult = tmp2_safe_receiver.d1d(this.m5a_1, this);
|
|
523
523
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
524
524
|
return suspendResult;
|
|
525
525
|
}
|
|
@@ -527,15 +527,15 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).a9 = function
|
|
|
527
527
|
}
|
|
528
528
|
} else {
|
|
529
529
|
if (tmp0_subject instanceof Ping) {
|
|
530
|
-
this.
|
|
531
|
-
suspendResult = this.
|
|
530
|
+
this.l8_1 = 15;
|
|
531
|
+
suspendResult = this.a5a_1.d1d(this.m5a_1, this);
|
|
532
532
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
533
533
|
return suspendResult;
|
|
534
534
|
}
|
|
535
535
|
continue $sm;
|
|
536
536
|
} else {
|
|
537
|
-
this.
|
|
538
|
-
suspendResult = checkMaxFrameSize(this.
|
|
537
|
+
this.l8_1 = 10;
|
|
538
|
+
suspendResult = checkMaxFrameSize(this.z59_1, this.e5a_1, this.m5a_1, this);
|
|
539
539
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
540
540
|
return suspendResult;
|
|
541
541
|
}
|
|
@@ -545,40 +545,40 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).a9 = function
|
|
|
545
545
|
}
|
|
546
546
|
|
|
547
547
|
case 10:
|
|
548
|
-
if (!this.
|
|
549
|
-
if (this.
|
|
550
|
-
this.
|
|
548
|
+
if (!this.m5a_1.q5a_1) {
|
|
549
|
+
if (this.l5a_1 == null) {
|
|
550
|
+
this.l5a_1 = this.m5a_1;
|
|
551
551
|
}
|
|
552
|
-
if (this.
|
|
553
|
-
this.
|
|
552
|
+
if (this.e5a_1 == null) {
|
|
553
|
+
this.e5a_1 = BytePacketBuilder();
|
|
554
554
|
}
|
|
555
|
-
writeFully(ensureNotNull(this.
|
|
556
|
-
this.
|
|
555
|
+
writeFully(ensureNotNull(this.e5a_1), this.m5a_1.s5a_1);
|
|
556
|
+
this.l8_1 = 21;
|
|
557
557
|
continue $sm;
|
|
558
558
|
} else {
|
|
559
|
-
this.
|
|
559
|
+
this.l8_1 = 11;
|
|
560
560
|
continue $sm;
|
|
561
561
|
}
|
|
562
562
|
|
|
563
563
|
case 11:
|
|
564
|
-
if (this.
|
|
565
|
-
this.
|
|
566
|
-
suspendResult = this.
|
|
564
|
+
if (this.l5a_1 == null) {
|
|
565
|
+
this.l8_1 = 14;
|
|
566
|
+
suspendResult = this.z59_1.r58_1.d1d(processIncomingExtensions(this.z59_1, this.m5a_1), this);
|
|
567
567
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
568
568
|
return suspendResult;
|
|
569
569
|
}
|
|
570
570
|
continue $sm;
|
|
571
571
|
} else {
|
|
572
|
-
this.
|
|
572
|
+
this.l8_1 = 12;
|
|
573
573
|
continue $sm;
|
|
574
574
|
}
|
|
575
575
|
|
|
576
576
|
case 12:
|
|
577
|
-
writeFully(ensureNotNull(this.
|
|
578
|
-
var defragmented = Companion_getInstance_2().
|
|
579
|
-
this.
|
|
580
|
-
this.
|
|
581
|
-
suspendResult = this.
|
|
577
|
+
writeFully(ensureNotNull(this.e5a_1), this.m5a_1.s5a_1);
|
|
578
|
+
var defragmented = Companion_getInstance_2().y5a(true, ensureNotNull(this.l5a_1).r5a_1, readByteArray(build(ensureNotNull(this.e5a_1))), ensureNotNull(this.l5a_1).u5a_1, ensureNotNull(this.l5a_1).v5a_1, ensureNotNull(this.l5a_1).w5a_1);
|
|
579
|
+
this.l5a_1 = null;
|
|
580
|
+
this.l8_1 = 13;
|
|
581
|
+
suspendResult = this.z59_1.r58_1.d1d(processIncomingExtensions(this.z59_1, defragmented), this);
|
|
582
582
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
583
583
|
return suspendResult;
|
|
584
584
|
}
|
|
@@ -586,313 +586,313 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).a9 = function
|
|
|
586
586
|
continue $sm;
|
|
587
587
|
case 13:
|
|
588
588
|
var tmp_3 = this;
|
|
589
|
-
tmp_3.
|
|
590
|
-
this.
|
|
589
|
+
tmp_3.j5a_1 = Unit_instance;
|
|
590
|
+
this.l8_1 = 20;
|
|
591
591
|
continue $sm;
|
|
592
592
|
case 14:
|
|
593
|
-
this.
|
|
593
|
+
this.l8_1 = 21;
|
|
594
594
|
continue $sm;
|
|
595
595
|
case 15:
|
|
596
596
|
var tmp_4 = this;
|
|
597
|
-
tmp_4.
|
|
598
|
-
this.
|
|
597
|
+
tmp_4.j5a_1 = Unit_instance;
|
|
598
|
+
this.l8_1 = 20;
|
|
599
599
|
continue $sm;
|
|
600
600
|
case 16:
|
|
601
601
|
var tmp_5 = this;
|
|
602
|
-
tmp_5.
|
|
603
|
-
this.
|
|
602
|
+
tmp_5.k5a_1 = Unit_instance;
|
|
603
|
+
this.l8_1 = 17;
|
|
604
604
|
continue $sm;
|
|
605
605
|
case 17:
|
|
606
|
-
this.
|
|
607
|
-
this.
|
|
606
|
+
this.j5a_1 = this.k5a_1;
|
|
607
|
+
this.l8_1 = 20;
|
|
608
608
|
continue $sm;
|
|
609
609
|
case 18:
|
|
610
|
-
this.
|
|
610
|
+
this.l8_1 = 19;
|
|
611
611
|
continue $sm;
|
|
612
612
|
case 19:
|
|
613
|
-
this.
|
|
614
|
-
this.
|
|
613
|
+
this.d5a_1 = true;
|
|
614
|
+
this.l8_1 = 22;
|
|
615
615
|
var tmp_6 = this;
|
|
616
616
|
continue $sm;
|
|
617
617
|
case 20:
|
|
618
618
|
if (false) {
|
|
619
|
-
this.
|
|
619
|
+
this.l8_1 = 9;
|
|
620
620
|
continue $sm;
|
|
621
621
|
}
|
|
622
622
|
|
|
623
|
-
this.
|
|
623
|
+
this.l8_1 = 21;
|
|
624
624
|
continue $sm;
|
|
625
625
|
case 21:
|
|
626
|
-
this.
|
|
626
|
+
this.l8_1 = 7;
|
|
627
627
|
continue $sm;
|
|
628
628
|
case 22:
|
|
629
|
-
this.
|
|
630
|
-
cancelConsumed(this.
|
|
631
|
-
this.
|
|
632
|
-
this.
|
|
629
|
+
this.m8_1 = 32;
|
|
630
|
+
cancelConsumed(this.i5a_1, this.h5a_1);
|
|
631
|
+
this.m8_1 = 39;
|
|
632
|
+
this.l8_1 = 23;
|
|
633
633
|
continue $sm;
|
|
634
634
|
case 23:
|
|
635
|
-
this.
|
|
636
|
-
this.
|
|
637
|
-
var tmp0_safe_receiver = this.
|
|
635
|
+
this.m8_1 = 39;
|
|
636
|
+
this.a5a_1.n1d();
|
|
637
|
+
var tmp0_safe_receiver = this.e5a_1;
|
|
638
638
|
if (tmp0_safe_receiver == null)
|
|
639
639
|
null;
|
|
640
640
|
else {
|
|
641
|
-
tmp0_safe_receiver.
|
|
641
|
+
tmp0_safe_receiver.p3();
|
|
642
642
|
}
|
|
643
643
|
|
|
644
|
-
this.
|
|
645
|
-
if (!this.
|
|
646
|
-
this.
|
|
647
|
-
suspendResult = close(this.
|
|
644
|
+
this.z59_1.r58_1.n1d();
|
|
645
|
+
if (!this.d5a_1) {
|
|
646
|
+
this.l8_1 = 24;
|
|
647
|
+
suspendResult = close(this.z59_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
648
648
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
649
649
|
return suspendResult;
|
|
650
650
|
}
|
|
651
651
|
continue $sm;
|
|
652
652
|
} else {
|
|
653
|
-
this.
|
|
653
|
+
this.l8_1 = 25;
|
|
654
654
|
continue $sm;
|
|
655
655
|
}
|
|
656
656
|
|
|
657
657
|
case 24:
|
|
658
|
-
this.
|
|
658
|
+
this.l8_1 = 25;
|
|
659
659
|
continue $sm;
|
|
660
660
|
case 25:
|
|
661
661
|
var tmp_7 = this;
|
|
662
662
|
return Unit_instance;
|
|
663
663
|
case 26:
|
|
664
|
-
this.
|
|
664
|
+
this.l8_1 = 27;
|
|
665
665
|
var tmp_8 = this;
|
|
666
666
|
continue $sm;
|
|
667
667
|
case 27:
|
|
668
|
-
this.
|
|
669
|
-
cancelConsumed(this.
|
|
670
|
-
this.
|
|
668
|
+
this.m8_1 = 32;
|
|
669
|
+
cancelConsumed(this.i5a_1, this.h5a_1);
|
|
670
|
+
this.l8_1 = 31;
|
|
671
671
|
continue $sm;
|
|
672
672
|
case 28:
|
|
673
|
-
this.
|
|
674
|
-
var tmp_9 = this.
|
|
673
|
+
this.m8_1 = 29;
|
|
674
|
+
var tmp_9 = this.o8_1;
|
|
675
675
|
if (tmp_9 instanceof Error) {
|
|
676
|
-
var e_0 = this.
|
|
676
|
+
var e_0 = this.o8_1;
|
|
677
677
|
var tmp_10 = this;
|
|
678
|
-
this.
|
|
678
|
+
this.h5a_1 = e_0;
|
|
679
679
|
throw e_0;
|
|
680
680
|
} else {
|
|
681
|
-
throw this.
|
|
681
|
+
throw this.o8_1;
|
|
682
682
|
}
|
|
683
683
|
|
|
684
684
|
case 29:
|
|
685
|
-
this.
|
|
686
|
-
var t = this.
|
|
687
|
-
cancelConsumed(this.
|
|
685
|
+
this.m8_1 = 32;
|
|
686
|
+
var t = this.o8_1;
|
|
687
|
+
cancelConsumed(this.i5a_1, this.h5a_1);
|
|
688
688
|
throw t;
|
|
689
689
|
case 30:
|
|
690
|
-
this.
|
|
691
|
-
cancelConsumed(this.
|
|
690
|
+
this.m8_1 = 32;
|
|
691
|
+
cancelConsumed(this.i5a_1, this.h5a_1);
|
|
692
692
|
if (false) {
|
|
693
|
-
this.
|
|
693
|
+
this.l8_1 = 3;
|
|
694
694
|
continue $sm;
|
|
695
695
|
}
|
|
696
696
|
|
|
697
|
-
this.
|
|
697
|
+
this.l8_1 = 31;
|
|
698
698
|
continue $sm;
|
|
699
699
|
case 31:
|
|
700
|
-
this.
|
|
701
|
-
this.
|
|
702
|
-
this.
|
|
700
|
+
this.f5a_1 = Unit_instance;
|
|
701
|
+
this.m8_1 = 39;
|
|
702
|
+
this.l8_1 = 36;
|
|
703
703
|
continue $sm;
|
|
704
704
|
case 32:
|
|
705
|
-
this.
|
|
706
|
-
var tmp_11 = this.
|
|
705
|
+
this.m8_1 = 33;
|
|
706
|
+
var tmp_11 = this.o8_1;
|
|
707
707
|
if (tmp_11 instanceof ClosedSendChannelException) {
|
|
708
|
-
var ignore = this.
|
|
708
|
+
var ignore = this.o8_1;
|
|
709
709
|
var tmp_12 = this;
|
|
710
|
-
tmp_12.
|
|
711
|
-
this.
|
|
712
|
-
this.
|
|
710
|
+
tmp_12.f5a_1 = Unit_instance;
|
|
711
|
+
this.m8_1 = 39;
|
|
712
|
+
this.l8_1 = 36;
|
|
713
713
|
continue $sm;
|
|
714
714
|
} else {
|
|
715
|
-
var tmp_13 = this.
|
|
715
|
+
var tmp_13 = this.o8_1;
|
|
716
716
|
if (tmp_13 instanceof Error) {
|
|
717
|
-
var cause = this.
|
|
717
|
+
var cause = this.o8_1;
|
|
718
718
|
var tmp_14 = this;
|
|
719
|
-
this.
|
|
720
|
-
tmp_14.
|
|
721
|
-
this.
|
|
722
|
-
this.
|
|
719
|
+
this.a5a_1.n1d();
|
|
720
|
+
tmp_14.f5a_1 = this.z59_1.r58_1.l1d(cause);
|
|
721
|
+
this.m8_1 = 39;
|
|
722
|
+
this.l8_1 = 36;
|
|
723
723
|
continue $sm;
|
|
724
724
|
} else {
|
|
725
|
-
throw this.
|
|
725
|
+
throw this.o8_1;
|
|
726
726
|
}
|
|
727
727
|
}
|
|
728
728
|
|
|
729
729
|
case 33:
|
|
730
|
-
this.
|
|
731
|
-
this.
|
|
732
|
-
this.
|
|
733
|
-
var tmp0_safe_receiver_0 = this.
|
|
730
|
+
this.m8_1 = 39;
|
|
731
|
+
this.g5a_1 = this.o8_1;
|
|
732
|
+
this.a5a_1.n1d();
|
|
733
|
+
var tmp0_safe_receiver_0 = this.e5a_1;
|
|
734
734
|
if (tmp0_safe_receiver_0 == null)
|
|
735
735
|
null;
|
|
736
736
|
else {
|
|
737
|
-
tmp0_safe_receiver_0.
|
|
737
|
+
tmp0_safe_receiver_0.p3();
|
|
738
738
|
}
|
|
739
739
|
|
|
740
|
-
this.
|
|
741
|
-
if (!this.
|
|
742
|
-
this.
|
|
743
|
-
suspendResult = close(this.
|
|
740
|
+
this.z59_1.r58_1.n1d();
|
|
741
|
+
if (!this.d5a_1) {
|
|
742
|
+
this.l8_1 = 34;
|
|
743
|
+
suspendResult = close(this.z59_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
744
744
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
745
745
|
return suspendResult;
|
|
746
746
|
}
|
|
747
747
|
continue $sm;
|
|
748
748
|
} else {
|
|
749
|
-
this.
|
|
749
|
+
this.l8_1 = 35;
|
|
750
750
|
continue $sm;
|
|
751
751
|
}
|
|
752
752
|
|
|
753
753
|
case 34:
|
|
754
|
-
this.
|
|
754
|
+
this.l8_1 = 35;
|
|
755
755
|
continue $sm;
|
|
756
756
|
case 35:
|
|
757
|
-
throw this.
|
|
757
|
+
throw this.g5a_1;
|
|
758
758
|
case 36:
|
|
759
|
-
this.
|
|
760
|
-
this.
|
|
761
|
-
this.
|
|
762
|
-
var tmp0_safe_receiver_1 = this.
|
|
759
|
+
this.c5a_1 = this.f5a_1;
|
|
760
|
+
this.m8_1 = 39;
|
|
761
|
+
this.a5a_1.n1d();
|
|
762
|
+
var tmp0_safe_receiver_1 = this.e5a_1;
|
|
763
763
|
if (tmp0_safe_receiver_1 == null)
|
|
764
764
|
null;
|
|
765
765
|
else {
|
|
766
|
-
tmp0_safe_receiver_1.
|
|
766
|
+
tmp0_safe_receiver_1.p3();
|
|
767
767
|
}
|
|
768
768
|
|
|
769
|
-
this.
|
|
770
|
-
if (!this.
|
|
771
|
-
this.
|
|
772
|
-
suspendResult = close(this.
|
|
769
|
+
this.z59_1.r58_1.n1d();
|
|
770
|
+
if (!this.d5a_1) {
|
|
771
|
+
this.l8_1 = 37;
|
|
772
|
+
suspendResult = close(this.z59_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
|
|
773
773
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
774
774
|
return suspendResult;
|
|
775
775
|
}
|
|
776
776
|
continue $sm;
|
|
777
777
|
} else {
|
|
778
|
-
this.
|
|
778
|
+
this.l8_1 = 38;
|
|
779
779
|
continue $sm;
|
|
780
780
|
}
|
|
781
781
|
|
|
782
782
|
case 37:
|
|
783
|
-
this.
|
|
783
|
+
this.l8_1 = 38;
|
|
784
784
|
continue $sm;
|
|
785
785
|
case 38:
|
|
786
786
|
return Unit_instance;
|
|
787
787
|
case 39:
|
|
788
|
-
throw this.
|
|
788
|
+
throw this.o8_1;
|
|
789
789
|
}
|
|
790
790
|
} catch ($p) {
|
|
791
791
|
var e_1 = $p;
|
|
792
|
-
if (this.
|
|
792
|
+
if (this.m8_1 === 39) {
|
|
793
793
|
throw e_1;
|
|
794
794
|
} else {
|
|
795
|
-
this.
|
|
796
|
-
this.
|
|
795
|
+
this.l8_1 = this.m8_1;
|
|
796
|
+
this.o8_1 = e_1;
|
|
797
797
|
}
|
|
798
798
|
}
|
|
799
799
|
while (true);
|
|
800
800
|
};
|
|
801
|
-
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).
|
|
802
|
-
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.
|
|
803
|
-
i.
|
|
801
|
+
protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).p24 = function ($this$launch, completion) {
|
|
802
|
+
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.z59_1, this.a5a_1, completion);
|
|
803
|
+
i.b5a_1 = $this$launch;
|
|
804
804
|
return i;
|
|
805
805
|
};
|
|
806
806
|
function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0(this$0, $ponger, resultContinuation) {
|
|
807
807
|
var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation);
|
|
808
808
|
var l = function ($this$launch, $completion) {
|
|
809
|
-
return i.
|
|
809
|
+
return i.l4m($this$launch, $completion);
|
|
810
810
|
};
|
|
811
811
|
l.$arity = 1;
|
|
812
812
|
return l;
|
|
813
813
|
}
|
|
814
814
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation) {
|
|
815
|
-
this.
|
|
815
|
+
this.h5b_1 = this$0;
|
|
816
816
|
CoroutineImpl.call(this, resultContinuation);
|
|
817
817
|
}
|
|
818
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
819
|
-
var tmp = this.
|
|
820
|
-
tmp.
|
|
821
|
-
tmp.
|
|
822
|
-
return tmp.
|
|
818
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).l4m = function ($this$launch, $completion) {
|
|
819
|
+
var tmp = this.p24($this$launch, $completion);
|
|
820
|
+
tmp.n8_1 = Unit_instance;
|
|
821
|
+
tmp.o8_1 = null;
|
|
822
|
+
return tmp.t8();
|
|
823
823
|
};
|
|
824
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
825
|
-
return this.
|
|
824
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).f9 = function (p1, $completion) {
|
|
825
|
+
return this.l4m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
826
826
|
};
|
|
827
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
828
|
-
var suspendResult = this.
|
|
827
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).t8 = function () {
|
|
828
|
+
var suspendResult = this.n8_1;
|
|
829
829
|
$sm: do
|
|
830
830
|
try {
|
|
831
|
-
var tmp = this.
|
|
831
|
+
var tmp = this.l8_1;
|
|
832
832
|
switch (tmp) {
|
|
833
833
|
case 0:
|
|
834
|
-
this.
|
|
835
|
-
this.
|
|
834
|
+
this.m8_1 = 10;
|
|
835
|
+
this.l8_1 = 1;
|
|
836
836
|
continue $sm;
|
|
837
837
|
case 1:
|
|
838
|
-
this.
|
|
839
|
-
this.
|
|
840
|
-
this.
|
|
841
|
-
suspendResult = outgoingProcessorLoop(this.
|
|
838
|
+
this.m8_1 = 6;
|
|
839
|
+
this.m8_1 = 3;
|
|
840
|
+
this.l8_1 = 2;
|
|
841
|
+
suspendResult = outgoingProcessorLoop(this.h5b_1, this);
|
|
842
842
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
843
843
|
return suspendResult;
|
|
844
844
|
}
|
|
845
845
|
|
|
846
846
|
continue $sm;
|
|
847
847
|
case 2:
|
|
848
|
-
this.
|
|
849
|
-
this.
|
|
848
|
+
this.m8_1 = 10;
|
|
849
|
+
this.l8_1 = 8;
|
|
850
850
|
continue $sm;
|
|
851
851
|
case 3:
|
|
852
|
-
this.
|
|
853
|
-
var tmp_0 = this.
|
|
852
|
+
this.m8_1 = 6;
|
|
853
|
+
var tmp_0 = this.o8_1;
|
|
854
854
|
if (tmp_0 instanceof ClosedSendChannelException) {
|
|
855
|
-
var ignore = this.
|
|
856
|
-
this.
|
|
857
|
-
this.
|
|
855
|
+
var ignore = this.o8_1;
|
|
856
|
+
this.m8_1 = 10;
|
|
857
|
+
this.l8_1 = 8;
|
|
858
858
|
continue $sm;
|
|
859
859
|
} else {
|
|
860
|
-
var tmp_1 = this.
|
|
860
|
+
var tmp_1 = this.o8_1;
|
|
861
861
|
if (tmp_1 instanceof ClosedReceiveChannelException) {
|
|
862
|
-
var ignore_0 = this.
|
|
863
|
-
this.
|
|
864
|
-
this.
|
|
862
|
+
var ignore_0 = this.o8_1;
|
|
863
|
+
this.m8_1 = 10;
|
|
864
|
+
this.l8_1 = 8;
|
|
865
865
|
continue $sm;
|
|
866
866
|
} else {
|
|
867
|
-
var tmp_2 = this.
|
|
867
|
+
var tmp_2 = this.o8_1;
|
|
868
868
|
if (tmp_2 instanceof CancellationException) {
|
|
869
|
-
var ignore_1 = this.
|
|
870
|
-
this.
|
|
871
|
-
suspendResult = sendCloseSequence$default(this.
|
|
869
|
+
var ignore_1 = this.o8_1;
|
|
870
|
+
this.l8_1 = 4;
|
|
871
|
+
suspendResult = sendCloseSequence$default(this.h5b_1, CloseReason_init_$Create$(Codes_NORMAL_getInstance(), ''), VOID, this);
|
|
872
872
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
873
873
|
return suspendResult;
|
|
874
874
|
}
|
|
875
875
|
continue $sm;
|
|
876
876
|
} else {
|
|
877
|
-
var tmp_3 = this.
|
|
877
|
+
var tmp_3 = this.o8_1;
|
|
878
878
|
if (tmp_3 instanceof ChannelIOException) {
|
|
879
|
-
var ignore_2 = this.
|
|
880
|
-
this.
|
|
881
|
-
this.
|
|
879
|
+
var ignore_2 = this.o8_1;
|
|
880
|
+
this.m8_1 = 10;
|
|
881
|
+
this.l8_1 = 8;
|
|
882
882
|
continue $sm;
|
|
883
883
|
} else {
|
|
884
|
-
var tmp_4 = this.
|
|
884
|
+
var tmp_4 = this.o8_1;
|
|
885
885
|
if (tmp_4 instanceof Error) {
|
|
886
|
-
var cause = this.
|
|
887
|
-
this.
|
|
888
|
-
this.
|
|
889
|
-
suspendResult = closeExceptionally(this.
|
|
886
|
+
var cause = this.o8_1;
|
|
887
|
+
this.h5b_1.s58_1.nv(CancellationException_init_$Create$('Failed to send frame', cause));
|
|
888
|
+
this.l8_1 = 5;
|
|
889
|
+
suspendResult = closeExceptionally(this.h5b_1.o58_1, cause, this);
|
|
890
890
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
891
891
|
return suspendResult;
|
|
892
892
|
}
|
|
893
893
|
continue $sm;
|
|
894
894
|
} else {
|
|
895
|
-
throw this.
|
|
895
|
+
throw this.o8_1;
|
|
896
896
|
}
|
|
897
897
|
}
|
|
898
898
|
}
|
|
@@ -900,31 +900,31 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).a9 = function
|
|
|
900
900
|
}
|
|
901
901
|
|
|
902
902
|
case 4:
|
|
903
|
-
this.
|
|
904
|
-
this.
|
|
903
|
+
this.m8_1 = 10;
|
|
904
|
+
this.l8_1 = 8;
|
|
905
905
|
continue $sm;
|
|
906
906
|
case 5:
|
|
907
|
-
this.
|
|
908
|
-
this.
|
|
907
|
+
this.m8_1 = 10;
|
|
908
|
+
this.l8_1 = 8;
|
|
909
909
|
continue $sm;
|
|
910
910
|
case 6:
|
|
911
|
-
this.
|
|
912
|
-
this.
|
|
913
|
-
this.
|
|
914
|
-
this.
|
|
915
|
-
suspendResult = close(this.
|
|
911
|
+
this.m8_1 = 10;
|
|
912
|
+
this.j5b_1 = this.o8_1;
|
|
913
|
+
this.h5b_1.s58_1.p1d();
|
|
914
|
+
this.l8_1 = 7;
|
|
915
|
+
suspendResult = close(this.h5b_1.o58_1, VOID, this);
|
|
916
916
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
917
917
|
return suspendResult;
|
|
918
918
|
}
|
|
919
919
|
|
|
920
920
|
continue $sm;
|
|
921
921
|
case 7:
|
|
922
|
-
throw this.
|
|
922
|
+
throw this.j5b_1;
|
|
923
923
|
case 8:
|
|
924
|
-
this.
|
|
925
|
-
this.
|
|
926
|
-
this.
|
|
927
|
-
suspendResult = close(this.
|
|
924
|
+
this.m8_1 = 10;
|
|
925
|
+
this.h5b_1.s58_1.p1d();
|
|
926
|
+
this.l8_1 = 9;
|
|
927
|
+
suspendResult = close(this.h5b_1.o58_1, VOID, this);
|
|
928
928
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
929
929
|
return suspendResult;
|
|
930
930
|
}
|
|
@@ -933,55 +933,55 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).a9 = function
|
|
|
933
933
|
case 9:
|
|
934
934
|
return Unit_instance;
|
|
935
935
|
case 10:
|
|
936
|
-
throw this.
|
|
936
|
+
throw this.o8_1;
|
|
937
937
|
}
|
|
938
938
|
} catch ($p) {
|
|
939
939
|
var e = $p;
|
|
940
|
-
if (this.
|
|
940
|
+
if (this.m8_1 === 10) {
|
|
941
941
|
throw e;
|
|
942
942
|
} else {
|
|
943
|
-
this.
|
|
944
|
-
this.
|
|
943
|
+
this.l8_1 = this.m8_1;
|
|
944
|
+
this.o8_1 = e;
|
|
945
945
|
}
|
|
946
946
|
}
|
|
947
947
|
while (true);
|
|
948
948
|
};
|
|
949
|
-
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).
|
|
950
|
-
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.
|
|
951
|
-
i.
|
|
949
|
+
protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).p24 = function ($this$launch, completion) {
|
|
950
|
+
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.h5b_1, completion);
|
|
951
|
+
i.i5b_1 = $this$launch;
|
|
952
952
|
return i;
|
|
953
953
|
};
|
|
954
954
|
function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0(this$0, resultContinuation) {
|
|
955
955
|
var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation);
|
|
956
956
|
var l = function ($this$launch, $completion) {
|
|
957
|
-
return i.
|
|
957
|
+
return i.l4m($this$launch, $completion);
|
|
958
958
|
};
|
|
959
959
|
l.$arity = 1;
|
|
960
960
|
return l;
|
|
961
961
|
}
|
|
962
962
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation) {
|
|
963
|
-
this.
|
|
963
|
+
this.s5b_1 = this$0;
|
|
964
964
|
CoroutineImpl.call(this, resultContinuation);
|
|
965
965
|
}
|
|
966
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
967
|
-
var tmp = this.
|
|
968
|
-
tmp.
|
|
969
|
-
tmp.
|
|
970
|
-
return tmp.
|
|
966
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).u5b = function (it, $completion) {
|
|
967
|
+
var tmp = this.v5b(it, $completion);
|
|
968
|
+
tmp.n8_1 = Unit_instance;
|
|
969
|
+
tmp.o8_1 = null;
|
|
970
|
+
return tmp.t8();
|
|
971
971
|
};
|
|
972
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
973
|
-
return this.
|
|
972
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).f9 = function (p1, $completion) {
|
|
973
|
+
return this.u5b(p1 instanceof CloseReason ? p1 : THROW_CCE(), $completion);
|
|
974
974
|
};
|
|
975
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
976
|
-
var suspendResult = this.
|
|
975
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).t8 = function () {
|
|
976
|
+
var suspendResult = this.n8_1;
|
|
977
977
|
$sm: do
|
|
978
978
|
try {
|
|
979
|
-
var tmp = this.
|
|
979
|
+
var tmp = this.l8_1;
|
|
980
980
|
switch (tmp) {
|
|
981
981
|
case 0:
|
|
982
|
-
this.
|
|
983
|
-
this.
|
|
984
|
-
suspendResult = sendCloseSequence(this.
|
|
982
|
+
this.m8_1 = 2;
|
|
983
|
+
this.l8_1 = 1;
|
|
984
|
+
suspendResult = sendCloseSequence(this.s5b_1, this.t5b_1, IOException_init_$Create$('Ping timeout'), this);
|
|
985
985
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
986
986
|
return suspendResult;
|
|
987
987
|
}
|
|
@@ -990,50 +990,50 @@ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).a9 = function ()
|
|
|
990
990
|
case 1:
|
|
991
991
|
return Unit_instance;
|
|
992
992
|
case 2:
|
|
993
|
-
throw this.
|
|
993
|
+
throw this.o8_1;
|
|
994
994
|
}
|
|
995
995
|
} catch ($p) {
|
|
996
996
|
var e = $p;
|
|
997
|
-
if (this.
|
|
997
|
+
if (this.m8_1 === 2) {
|
|
998
998
|
throw e;
|
|
999
999
|
} else {
|
|
1000
|
-
this.
|
|
1001
|
-
this.
|
|
1000
|
+
this.l8_1 = this.m8_1;
|
|
1001
|
+
this.o8_1 = e;
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
while (true);
|
|
1005
1005
|
};
|
|
1006
|
-
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).
|
|
1007
|
-
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.
|
|
1008
|
-
i.
|
|
1006
|
+
protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).v5b = function (it, completion) {
|
|
1007
|
+
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.s5b_1, completion);
|
|
1008
|
+
i.t5b_1 = it;
|
|
1009
1009
|
return i;
|
|
1010
1010
|
};
|
|
1011
1011
|
function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0(this$0, resultContinuation) {
|
|
1012
1012
|
var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation);
|
|
1013
1013
|
var l = function (it, $completion) {
|
|
1014
|
-
return i.
|
|
1014
|
+
return i.u5b(it, $completion);
|
|
1015
1015
|
};
|
|
1016
1016
|
l.$arity = 1;
|
|
1017
1017
|
return l;
|
|
1018
1018
|
}
|
|
1019
1019
|
function $outgoingProcessorLoopCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1020
1020
|
CoroutineImpl.call(this, resultContinuation);
|
|
1021
|
-
this.
|
|
1021
|
+
this.z57_1 = _this__u8e3s4;
|
|
1022
1022
|
}
|
|
1023
|
-
protoOf($outgoingProcessorLoopCOROUTINE$).
|
|
1024
|
-
var suspendResult = this.
|
|
1023
|
+
protoOf($outgoingProcessorLoopCOROUTINE$).t8 = function () {
|
|
1024
|
+
var suspendResult = this.n8_1;
|
|
1025
1025
|
$sm: do
|
|
1026
1026
|
try {
|
|
1027
|
-
var tmp = this.
|
|
1027
|
+
var tmp = this.l8_1;
|
|
1028
1028
|
switch (tmp) {
|
|
1029
1029
|
case 0:
|
|
1030
|
-
this.
|
|
1031
|
-
this.
|
|
1032
|
-
this.
|
|
1030
|
+
this.m8_1 = 7;
|
|
1031
|
+
this.b58_1 = this.z57_1.s58_1.s();
|
|
1032
|
+
this.l8_1 = 1;
|
|
1033
1033
|
continue $sm;
|
|
1034
1034
|
case 1:
|
|
1035
|
-
this.
|
|
1036
|
-
suspendResult = this.
|
|
1035
|
+
this.l8_1 = 2;
|
|
1036
|
+
suspendResult = this.b58_1.p1a(this);
|
|
1037
1037
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1038
1038
|
return suspendResult;
|
|
1039
1039
|
}
|
|
@@ -1041,19 +1041,19 @@ protoOf($outgoingProcessorLoopCOROUTINE$).a9 = function () {
|
|
|
1041
1041
|
continue $sm;
|
|
1042
1042
|
case 2:
|
|
1043
1043
|
if (!suspendResult) {
|
|
1044
|
-
this.
|
|
1044
|
+
this.l8_1 = 6;
|
|
1045
1045
|
continue $sm;
|
|
1046
1046
|
}
|
|
1047
1047
|
|
|
1048
|
-
var frame = this.
|
|
1048
|
+
var frame = this.b58_1.u();
|
|
1049
1049
|
var this_0 = get_LOGGER();
|
|
1050
1050
|
if (get_isTraceEnabled(this_0)) {
|
|
1051
|
-
this_0.
|
|
1051
|
+
this_0.g4u('Sending ' + frame.toString() + ' from session ' + toString(this.z57_1));
|
|
1052
1052
|
}
|
|
1053
1053
|
|
|
1054
1054
|
if (frame instanceof Close) {
|
|
1055
|
-
this.
|
|
1056
|
-
suspendResult = sendCloseSequence$default(this.
|
|
1055
|
+
this.l8_1 = 3;
|
|
1056
|
+
suspendResult = sendCloseSequence$default(this.z57_1, readReason(frame), VOID, this);
|
|
1057
1057
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1058
1058
|
return suspendResult;
|
|
1059
1059
|
}
|
|
@@ -1066,226 +1066,226 @@ protoOf($outgoingProcessorLoopCOROUTINE$).a9 = function () {
|
|
|
1066
1066
|
tmp_0 = frame instanceof Binary;
|
|
1067
1067
|
}
|
|
1068
1068
|
if (tmp_0) {
|
|
1069
|
-
this.
|
|
1070
|
-
this.
|
|
1069
|
+
this.a58_1 = processOutgoingExtensions(this.z57_1, frame);
|
|
1070
|
+
this.l8_1 = 4;
|
|
1071
1071
|
continue $sm;
|
|
1072
1072
|
} else {
|
|
1073
|
-
this.
|
|
1074
|
-
this.
|
|
1073
|
+
this.a58_1 = frame;
|
|
1074
|
+
this.l8_1 = 4;
|
|
1075
1075
|
continue $sm;
|
|
1076
1076
|
}
|
|
1077
1077
|
}
|
|
1078
1078
|
|
|
1079
1079
|
case 3:
|
|
1080
|
-
this.
|
|
1080
|
+
this.l8_1 = 6;
|
|
1081
1081
|
var tmp_1 = this;
|
|
1082
1082
|
continue $sm;
|
|
1083
1083
|
case 4:
|
|
1084
|
-
var processedFrame = this.
|
|
1085
|
-
this.
|
|
1086
|
-
suspendResult = this.
|
|
1084
|
+
var processedFrame = this.a58_1;
|
|
1085
|
+
this.l8_1 = 5;
|
|
1086
|
+
suspendResult = this.z57_1.o58_1.p57().d1d(processedFrame, this);
|
|
1087
1087
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1088
1088
|
return suspendResult;
|
|
1089
1089
|
}
|
|
1090
1090
|
|
|
1091
1091
|
continue $sm;
|
|
1092
1092
|
case 5:
|
|
1093
|
-
this.
|
|
1093
|
+
this.l8_1 = 1;
|
|
1094
1094
|
continue $sm;
|
|
1095
1095
|
case 6:
|
|
1096
1096
|
return Unit_instance;
|
|
1097
1097
|
case 7:
|
|
1098
|
-
throw this.
|
|
1098
|
+
throw this.o8_1;
|
|
1099
1099
|
}
|
|
1100
1100
|
} catch ($p) {
|
|
1101
1101
|
var e = $p;
|
|
1102
|
-
if (this.
|
|
1102
|
+
if (this.m8_1 === 7) {
|
|
1103
1103
|
throw e;
|
|
1104
1104
|
} else {
|
|
1105
|
-
this.
|
|
1106
|
-
this.
|
|
1105
|
+
this.l8_1 = this.m8_1;
|
|
1106
|
+
this.o8_1 = e;
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
1109
|
while (true);
|
|
1110
1110
|
};
|
|
1111
1111
|
function $sendCloseSequenceCOROUTINE$(_this__u8e3s4, reason, exception, resultContinuation) {
|
|
1112
1112
|
CoroutineImpl.call(this, resultContinuation);
|
|
1113
|
-
this.
|
|
1114
|
-
this.
|
|
1115
|
-
this.
|
|
1113
|
+
this.k58_1 = _this__u8e3s4;
|
|
1114
|
+
this.l58_1 = reason;
|
|
1115
|
+
this.m58_1 = exception;
|
|
1116
1116
|
}
|
|
1117
|
-
protoOf($sendCloseSequenceCOROUTINE$).
|
|
1118
|
-
var suspendResult = this.
|
|
1117
|
+
protoOf($sendCloseSequenceCOROUTINE$).t8 = function () {
|
|
1118
|
+
var suspendResult = this.n8_1;
|
|
1119
1119
|
$sm: do
|
|
1120
1120
|
try {
|
|
1121
|
-
var tmp = this.
|
|
1121
|
+
var tmp = this.l8_1;
|
|
1122
1122
|
switch (tmp) {
|
|
1123
1123
|
case 0:
|
|
1124
|
-
this.
|
|
1125
|
-
if (!tryClose(this.
|
|
1124
|
+
this.m8_1 = 6;
|
|
1125
|
+
if (!tryClose(this.k58_1))
|
|
1126
1126
|
return Unit_instance;
|
|
1127
1127
|
var this_0 = get_LOGGER();
|
|
1128
1128
|
if (get_isTraceEnabled(this_0)) {
|
|
1129
|
-
this_0.
|
|
1129
|
+
this_0.g4u('Sending Close Sequence for session ' + toString(this.k58_1) + ' with reason ' + toString_0(this.l58_1) + ' and exception ' + toString_0(this.m58_1));
|
|
1130
1130
|
}
|
|
1131
1131
|
|
|
1132
|
-
this.
|
|
1132
|
+
this.k58_1.u58_1.c12();
|
|
1133
1133
|
var tmp_0 = this;
|
|
1134
|
-
var tmp0_elvis_lhs = this.
|
|
1135
|
-
tmp_0.
|
|
1136
|
-
this.
|
|
1134
|
+
var tmp0_elvis_lhs = this.l58_1;
|
|
1135
|
+
tmp_0.n58_1 = tmp0_elvis_lhs == null ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : tmp0_elvis_lhs;
|
|
1136
|
+
this.l8_1 = 1;
|
|
1137
1137
|
continue $sm;
|
|
1138
1138
|
case 1:
|
|
1139
|
-
this.
|
|
1140
|
-
runOrCancelPinger(this.
|
|
1141
|
-
if (!(this.
|
|
1142
|
-
this.
|
|
1143
|
-
suspendResult = this.
|
|
1139
|
+
this.m8_1 = 5;
|
|
1140
|
+
runOrCancelPinger(this.k58_1);
|
|
1141
|
+
if (!(this.n58_1.h57_1 === Codes_CLOSED_ABNORMALLY_getInstance().d57_1)) {
|
|
1142
|
+
this.l8_1 = 2;
|
|
1143
|
+
suspendResult = this.k58_1.o58_1.p57().d1d(Close_init_$Create$(this.n58_1), this);
|
|
1144
1144
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1145
1145
|
return suspendResult;
|
|
1146
1146
|
}
|
|
1147
1147
|
continue $sm;
|
|
1148
1148
|
} else {
|
|
1149
|
-
this.
|
|
1149
|
+
this.l8_1 = 3;
|
|
1150
1150
|
continue $sm;
|
|
1151
1151
|
}
|
|
1152
1152
|
|
|
1153
1153
|
case 2:
|
|
1154
|
-
this.
|
|
1154
|
+
this.l8_1 = 3;
|
|
1155
1155
|
continue $sm;
|
|
1156
1156
|
case 3:
|
|
1157
|
-
this.
|
|
1158
|
-
this.
|
|
1157
|
+
this.m8_1 = 6;
|
|
1158
|
+
this.l8_1 = 4;
|
|
1159
1159
|
continue $sm;
|
|
1160
1160
|
case 4:
|
|
1161
|
-
this.
|
|
1162
|
-
this.
|
|
1163
|
-
if (!(this.
|
|
1164
|
-
this.
|
|
1165
|
-
this.
|
|
1161
|
+
this.m8_1 = 6;
|
|
1162
|
+
this.k58_1.q58_1.a12(this.n58_1);
|
|
1163
|
+
if (!(this.m58_1 == null)) {
|
|
1164
|
+
this.k58_1.s58_1.l1d(this.m58_1);
|
|
1165
|
+
this.k58_1.r58_1.l1d(this.m58_1);
|
|
1166
1166
|
}
|
|
1167
1167
|
|
|
1168
1168
|
return Unit_instance;
|
|
1169
1169
|
case 5:
|
|
1170
|
-
this.
|
|
1171
|
-
var t = this.
|
|
1172
|
-
this.
|
|
1173
|
-
if (!(this.
|
|
1174
|
-
this.
|
|
1175
|
-
this.
|
|
1170
|
+
this.m8_1 = 6;
|
|
1171
|
+
var t = this.o8_1;
|
|
1172
|
+
this.k58_1.q58_1.a12(this.n58_1);
|
|
1173
|
+
if (!(this.m58_1 == null)) {
|
|
1174
|
+
this.k58_1.s58_1.l1d(this.m58_1);
|
|
1175
|
+
this.k58_1.r58_1.l1d(this.m58_1);
|
|
1176
1176
|
}
|
|
1177
1177
|
|
|
1178
1178
|
throw t;
|
|
1179
1179
|
case 6:
|
|
1180
|
-
throw this.
|
|
1180
|
+
throw this.o8_1;
|
|
1181
1181
|
}
|
|
1182
1182
|
} catch ($p) {
|
|
1183
1183
|
var e = $p;
|
|
1184
|
-
if (this.
|
|
1184
|
+
if (this.m8_1 === 6) {
|
|
1185
1185
|
throw e;
|
|
1186
1186
|
} else {
|
|
1187
|
-
this.
|
|
1188
|
-
this.
|
|
1187
|
+
this.l8_1 = this.m8_1;
|
|
1188
|
+
this.o8_1 = e;
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
1191
|
while (true);
|
|
1192
1192
|
};
|
|
1193
1193
|
function $checkMaxFrameSizeCOROUTINE$(_this__u8e3s4, packet, frame, resultContinuation) {
|
|
1194
1194
|
CoroutineImpl.call(this, resultContinuation);
|
|
1195
|
-
this.
|
|
1196
|
-
this.
|
|
1197
|
-
this.
|
|
1195
|
+
this.k59_1 = _this__u8e3s4;
|
|
1196
|
+
this.l59_1 = packet;
|
|
1197
|
+
this.m59_1 = frame;
|
|
1198
1198
|
}
|
|
1199
|
-
protoOf($checkMaxFrameSizeCOROUTINE$).
|
|
1200
|
-
var suspendResult = this.
|
|
1199
|
+
protoOf($checkMaxFrameSizeCOROUTINE$).t8 = function () {
|
|
1200
|
+
var suspendResult = this.n8_1;
|
|
1201
1201
|
$sm: do
|
|
1202
1202
|
try {
|
|
1203
|
-
var tmp = this.
|
|
1203
|
+
var tmp = this.l8_1;
|
|
1204
1204
|
switch (tmp) {
|
|
1205
1205
|
case 0:
|
|
1206
|
-
this.
|
|
1206
|
+
this.m8_1 = 3;
|
|
1207
1207
|
var tmp_0 = this;
|
|
1208
|
-
var tmp_1 = this.
|
|
1209
|
-
var tmp0_safe_receiver = this.
|
|
1208
|
+
var tmp_1 = this.m59_1.s5a_1.length;
|
|
1209
|
+
var tmp0_safe_receiver = this.l59_1;
|
|
1210
1210
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_size(tmp0_safe_receiver);
|
|
1211
|
-
tmp_0.
|
|
1212
|
-
if (compare(fromInt(this.
|
|
1213
|
-
var tmp2_safe_receiver = this.
|
|
1211
|
+
tmp_0.n59_1 = tmp_1 + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
1212
|
+
if (compare(fromInt(this.n59_1), this.k59_1.n57()) > 0) {
|
|
1213
|
+
var tmp2_safe_receiver = this.l59_1;
|
|
1214
1214
|
if (tmp2_safe_receiver == null)
|
|
1215
1215
|
null;
|
|
1216
1216
|
else {
|
|
1217
|
-
tmp2_safe_receiver.
|
|
1217
|
+
tmp2_safe_receiver.p3();
|
|
1218
1218
|
}
|
|
1219
|
-
this.
|
|
1220
|
-
suspendResult = close(this.
|
|
1219
|
+
this.l8_1 = 2;
|
|
1220
|
+
suspendResult = close(this.k59_1, CloseReason_init_$Create$(Codes_TOO_BIG_getInstance(), 'Frame is too big: ' + this.n59_1 + '. Max size is ' + this.k59_1.n57().toString()), this);
|
|
1221
1221
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1222
1222
|
return suspendResult;
|
|
1223
1223
|
}
|
|
1224
1224
|
continue $sm;
|
|
1225
1225
|
} else {
|
|
1226
|
-
this.
|
|
1226
|
+
this.l8_1 = 1;
|
|
1227
1227
|
continue $sm;
|
|
1228
1228
|
}
|
|
1229
1229
|
|
|
1230
1230
|
case 1:
|
|
1231
1231
|
return Unit_instance;
|
|
1232
1232
|
case 2:
|
|
1233
|
-
throw new FrameTooBigException(fromInt(this.
|
|
1233
|
+
throw new FrameTooBigException(fromInt(this.n59_1));
|
|
1234
1234
|
case 3:
|
|
1235
|
-
throw this.
|
|
1235
|
+
throw this.o8_1;
|
|
1236
1236
|
}
|
|
1237
1237
|
} catch ($p) {
|
|
1238
1238
|
var e = $p;
|
|
1239
|
-
if (this.
|
|
1239
|
+
if (this.m8_1 === 3) {
|
|
1240
1240
|
throw e;
|
|
1241
1241
|
} else {
|
|
1242
|
-
this.
|
|
1243
|
-
this.
|
|
1242
|
+
this.l8_1 = this.m8_1;
|
|
1243
|
+
this.o8_1 = e;
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
1246
|
while (true);
|
|
1247
1247
|
};
|
|
1248
1248
|
function DefaultWebSocketSessionImpl(raw, pingIntervalMillis, timeoutMillis) {
|
|
1249
1249
|
Companion_getInstance_0();
|
|
1250
|
-
this.
|
|
1251
|
-
this.
|
|
1252
|
-
this.
|
|
1253
|
-
this.
|
|
1254
|
-
this.
|
|
1255
|
-
this.
|
|
1256
|
-
this.
|
|
1250
|
+
this.o58_1 = raw;
|
|
1251
|
+
this.p58_1 = atomic$ref$1(null);
|
|
1252
|
+
this.q58_1 = CompletableDeferred();
|
|
1253
|
+
this.r58_1 = Channel(8);
|
|
1254
|
+
this.s58_1 = Channel(get_OUTGOING_CHANNEL_CAPACITY());
|
|
1255
|
+
this.t58_1 = atomic$boolean$1(false);
|
|
1256
|
+
this.u58_1 = Job(this.o58_1.du().y8(Key_instance));
|
|
1257
1257
|
var tmp = this;
|
|
1258
1258
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1259
|
-
tmp.
|
|
1260
|
-
this.
|
|
1261
|
-
this.
|
|
1262
|
-
this.
|
|
1263
|
-
this.
|
|
1264
|
-
this.
|
|
1265
|
-
}
|
|
1266
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1267
|
-
return this.
|
|
1259
|
+
tmp.v58_1 = ArrayList_init_$Create$();
|
|
1260
|
+
this.w58_1 = atomic$boolean$1(false);
|
|
1261
|
+
this.x58_1 = this.o58_1.du().th(this.u58_1).th(new CoroutineName('ws-default'));
|
|
1262
|
+
this.y58_1 = pingIntervalMillis;
|
|
1263
|
+
this.z58_1 = timeoutMillis;
|
|
1264
|
+
this.a59_1 = this.q58_1;
|
|
1265
|
+
}
|
|
1266
|
+
protoOf(DefaultWebSocketSessionImpl).o57 = function () {
|
|
1267
|
+
return this.r58_1;
|
|
1268
1268
|
};
|
|
1269
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1270
|
-
return this.
|
|
1269
|
+
protoOf(DefaultWebSocketSessionImpl).p57 = function () {
|
|
1270
|
+
return this.s58_1;
|
|
1271
1271
|
};
|
|
1272
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1273
|
-
return this.
|
|
1272
|
+
protoOf(DefaultWebSocketSessionImpl).o59 = function () {
|
|
1273
|
+
return this.v58_1;
|
|
1274
1274
|
};
|
|
1275
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1276
|
-
return this.
|
|
1275
|
+
protoOf(DefaultWebSocketSessionImpl).du = function () {
|
|
1276
|
+
return this.x58_1;
|
|
1277
1277
|
};
|
|
1278
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1279
|
-
this.
|
|
1278
|
+
protoOf(DefaultWebSocketSessionImpl).m57 = function (value) {
|
|
1279
|
+
this.o58_1.m57(value);
|
|
1280
1280
|
};
|
|
1281
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1282
|
-
return this.
|
|
1281
|
+
protoOf(DefaultWebSocketSessionImpl).n57 = function () {
|
|
1282
|
+
return this.o58_1.n57();
|
|
1283
1283
|
};
|
|
1284
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1285
|
-
return this.
|
|
1284
|
+
protoOf(DefaultWebSocketSessionImpl).k57 = function () {
|
|
1285
|
+
return this.a59_1;
|
|
1286
1286
|
};
|
|
1287
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1288
|
-
if (!this.
|
|
1287
|
+
protoOf(DefaultWebSocketSessionImpl).l57 = function (negotiatedExtensions) {
|
|
1288
|
+
if (!this.w58_1.atomicfu$compareAndSet(false, true)) {
|
|
1289
1289
|
// Inline function 'kotlin.error' call
|
|
1290
1290
|
var message = 'WebSocket session ' + toString(this) + ' is already started.';
|
|
1291
1291
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -1294,15 +1294,15 @@ protoOf(DefaultWebSocketSessionImpl).u50 = function (negotiatedExtensions) {
|
|
|
1294
1294
|
var this_0 = get_LOGGER();
|
|
1295
1295
|
if (get_isTraceEnabled(this_0)) {
|
|
1296
1296
|
var tmp$ret$0 = 'Starting default WebSocketSession(' + toString(this) + ') ' + ('with negotiated extensions: ' + joinToString(negotiatedExtensions));
|
|
1297
|
-
this_0.
|
|
1297
|
+
this_0.g4u(tmp$ret$0);
|
|
1298
1298
|
}
|
|
1299
|
-
this.
|
|
1299
|
+
this.v58_1.w(negotiatedExtensions);
|
|
1300
1300
|
runOrCancelPinger(this);
|
|
1301
|
-
runIncomingProcessor(this, ponger(this, this.
|
|
1301
|
+
runIncomingProcessor(this, ponger(this, this.p57()));
|
|
1302
1302
|
runOutgoingProcessor(this);
|
|
1303
1303
|
};
|
|
1304
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
1305
|
-
return this.
|
|
1304
|
+
protoOf(DefaultWebSocketSessionImpl).j4e = function ($completion) {
|
|
1305
|
+
return this.o58_1.j4e($completion);
|
|
1306
1306
|
};
|
|
1307
1307
|
var properties_initialized_DefaultWebSocketSession_kt_6cjlhc;
|
|
1308
1308
|
function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
@@ -1316,7 +1316,7 @@ function _init_properties_DefaultWebSocketSession_kt__469s0y() {
|
|
|
1316
1316
|
}
|
|
1317
1317
|
function NonDisposableHandle() {
|
|
1318
1318
|
}
|
|
1319
|
-
protoOf(NonDisposableHandle).
|
|
1319
|
+
protoOf(NonDisposableHandle).bx = function () {
|
|
1320
1320
|
return Unit_instance;
|
|
1321
1321
|
};
|
|
1322
1322
|
protoOf(NonDisposableHandle).toString = function () {
|
|
@@ -1339,40 +1339,40 @@ function NonDisposableHandle_getInstance() {
|
|
|
1339
1339
|
}
|
|
1340
1340
|
function readText_0(_this__u8e3s4) {
|
|
1341
1341
|
// Inline function 'kotlin.require' call
|
|
1342
|
-
if (!_this__u8e3s4.
|
|
1342
|
+
if (!_this__u8e3s4.q5a_1) {
|
|
1343
1343
|
var message = 'Text could be only extracted from non-fragmented frame';
|
|
1344
1344
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1345
1345
|
}
|
|
1346
|
-
var tmp = Charsets_getInstance().
|
|
1346
|
+
var tmp = Charsets_getInstance().f4n_1.i4n();
|
|
1347
1347
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1348
1348
|
var builder = new Buffer();
|
|
1349
|
-
writeFully(builder, _this__u8e3s4.
|
|
1349
|
+
writeFully(builder, _this__u8e3s4.s5a_1);
|
|
1350
1350
|
return decode(tmp, builder);
|
|
1351
1351
|
}
|
|
1352
1352
|
function readReason(_this__u8e3s4) {
|
|
1353
|
-
if (_this__u8e3s4.
|
|
1353
|
+
if (_this__u8e3s4.s5a_1.length < 2) {
|
|
1354
1354
|
return null;
|
|
1355
1355
|
}
|
|
1356
1356
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
1357
1357
|
var builder = new Buffer();
|
|
1358
|
-
writeFully(builder, _this__u8e3s4.
|
|
1358
|
+
writeFully(builder, _this__u8e3s4.s5a_1);
|
|
1359
1359
|
var packet = builder;
|
|
1360
|
-
var code = packet.
|
|
1360
|
+
var code = packet.fr();
|
|
1361
1361
|
var message = readText(packet);
|
|
1362
1362
|
return new CloseReason(code, message);
|
|
1363
1363
|
}
|
|
1364
1364
|
function FrameTooBigException(frameSize) {
|
|
1365
1365
|
Exception_init_$Init$(this);
|
|
1366
1366
|
captureStack(this, FrameTooBigException);
|
|
1367
|
-
this.
|
|
1367
|
+
this.w5b_1 = frameSize;
|
|
1368
1368
|
delete this.message;
|
|
1369
1369
|
}
|
|
1370
1370
|
protoOf(FrameTooBigException).e = function () {
|
|
1371
|
-
return 'Frame is too big: ' + this.
|
|
1371
|
+
return 'Frame is too big: ' + this.w5b_1.toString();
|
|
1372
1372
|
};
|
|
1373
|
-
protoOf(FrameTooBigException).
|
|
1373
|
+
protoOf(FrameTooBigException).n12 = function () {
|
|
1374
1374
|
// Inline function 'kotlin.also' call
|
|
1375
|
-
var this_0 = new FrameTooBigException(this.
|
|
1375
|
+
var this_0 = new FrameTooBigException(this.w5b_1);
|
|
1376
1376
|
initCauseBridge(this_0, this);
|
|
1377
1377
|
return this_0;
|
|
1378
1378
|
};
|
|
@@ -1398,10 +1398,10 @@ function Companion_1() {
|
|
|
1398
1398
|
tmp$ret$0 = maxElem;
|
|
1399
1399
|
break $l$block_0;
|
|
1400
1400
|
}
|
|
1401
|
-
var maxValue = maxElem.
|
|
1401
|
+
var maxValue = maxElem.a5c_1;
|
|
1402
1402
|
do {
|
|
1403
1403
|
var e = iterator.u();
|
|
1404
|
-
var v = e.
|
|
1404
|
+
var v = e.a5c_1;
|
|
1405
1405
|
if (compareTo(maxValue, v) < 0) {
|
|
1406
1406
|
maxElem = e;
|
|
1407
1407
|
maxValue = v;
|
|
@@ -1410,10 +1410,10 @@ function Companion_1() {
|
|
|
1410
1410
|
while (iterator.t());
|
|
1411
1411
|
tmp$ret$0 = maxElem;
|
|
1412
1412
|
}
|
|
1413
|
-
tmp.
|
|
1413
|
+
tmp.b5c_1 = ensureNotNull(tmp$ret$0).a5c_1;
|
|
1414
1414
|
var tmp_0 = this;
|
|
1415
1415
|
var tmp_1 = 0;
|
|
1416
|
-
var tmp_2 = this.
|
|
1416
|
+
var tmp_2 = this.b5c_1 + 1 | 0;
|
|
1417
1417
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1418
1418
|
var tmp_3 = Array(tmp_2);
|
|
1419
1419
|
while (tmp_1 < tmp_2) {
|
|
@@ -1427,7 +1427,7 @@ function Companion_1() {
|
|
|
1427
1427
|
var _iterator__ex2g4s = tmp0_0.s();
|
|
1428
1428
|
while (_iterator__ex2g4s.t()) {
|
|
1429
1429
|
var element = _iterator__ex2g4s.u();
|
|
1430
|
-
if (element.
|
|
1430
|
+
if (element.a5c_1 === tmp_4) {
|
|
1431
1431
|
if (found) {
|
|
1432
1432
|
tmp$ret$5 = null;
|
|
1433
1433
|
break $l$block_2;
|
|
@@ -1445,7 +1445,7 @@ function Companion_1() {
|
|
|
1445
1445
|
tmp_3[tmp_4] = tmp$ret$5;
|
|
1446
1446
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1447
1447
|
}
|
|
1448
|
-
tmp_0.
|
|
1448
|
+
tmp_0.c5c_1 = tmp_3;
|
|
1449
1449
|
}
|
|
1450
1450
|
var Companion_instance_1;
|
|
1451
1451
|
function Companion_getInstance_1() {
|
|
@@ -1477,8 +1477,8 @@ function FrameType_initEntries() {
|
|
|
1477
1477
|
var $ENTRIES_0;
|
|
1478
1478
|
function FrameType(name, ordinal, controlFrame, opcode) {
|
|
1479
1479
|
Enum.call(this, name, ordinal);
|
|
1480
|
-
this.
|
|
1481
|
-
this.
|
|
1480
|
+
this.z5b_1 = controlFrame;
|
|
1481
|
+
this.a5c_1 = opcode;
|
|
1482
1482
|
}
|
|
1483
1483
|
function FrameType_TEXT_getInstance() {
|
|
1484
1484
|
FrameType_initEntries();
|
|
@@ -1521,56 +1521,56 @@ function pinger(_this__u8e3s4, outgoing, periodMillis, timeoutMillis, onTimeout)
|
|
|
1521
1521
|
_init_properties_PingPong_kt__9aqxey();
|
|
1522
1522
|
var actorJob = Job();
|
|
1523
1523
|
var channel = Channel(2147483647);
|
|
1524
|
-
var tmp = actorJob.
|
|
1524
|
+
var tmp = actorJob.th(get_PingerCoroutineName());
|
|
1525
1525
|
launch(_this__u8e3s4, tmp, VOID, pinger$slambda_0(periodMillis, timeoutMillis, onTimeout, channel, outgoing, null));
|
|
1526
|
-
var tmp_0 = ensureNotNull(_this__u8e3s4.
|
|
1527
|
-
tmp_0.
|
|
1526
|
+
var tmp_0 = ensureNotNull(_this__u8e3s4.du().y8(Key_instance));
|
|
1527
|
+
tmp_0.gv(pinger$lambda(actorJob));
|
|
1528
1528
|
return channel;
|
|
1529
1529
|
}
|
|
1530
1530
|
function ponger$slambda($channel, $outgoing, resultContinuation) {
|
|
1531
|
-
this.
|
|
1532
|
-
this.
|
|
1531
|
+
this.l5c_1 = $channel;
|
|
1532
|
+
this.m5c_1 = $outgoing;
|
|
1533
1533
|
CoroutineImpl.call(this, resultContinuation);
|
|
1534
1534
|
}
|
|
1535
|
-
protoOf(ponger$slambda).
|
|
1536
|
-
var tmp = this.
|
|
1537
|
-
tmp.
|
|
1538
|
-
tmp.
|
|
1539
|
-
return tmp.
|
|
1535
|
+
protoOf(ponger$slambda).l4m = function ($this$launch, $completion) {
|
|
1536
|
+
var tmp = this.p24($this$launch, $completion);
|
|
1537
|
+
tmp.n8_1 = Unit_instance;
|
|
1538
|
+
tmp.o8_1 = null;
|
|
1539
|
+
return tmp.t8();
|
|
1540
1540
|
};
|
|
1541
|
-
protoOf(ponger$slambda).
|
|
1542
|
-
return this.
|
|
1541
|
+
protoOf(ponger$slambda).f9 = function (p1, $completion) {
|
|
1542
|
+
return this.l4m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1543
1543
|
};
|
|
1544
|
-
protoOf(ponger$slambda).
|
|
1545
|
-
var suspendResult = this.
|
|
1544
|
+
protoOf(ponger$slambda).t8 = function () {
|
|
1545
|
+
var suspendResult = this.n8_1;
|
|
1546
1546
|
$sm: do
|
|
1547
1547
|
try {
|
|
1548
|
-
var tmp = this.
|
|
1548
|
+
var tmp = this.l8_1;
|
|
1549
1549
|
switch (tmp) {
|
|
1550
1550
|
case 0:
|
|
1551
|
-
this.
|
|
1552
|
-
this.
|
|
1551
|
+
this.m8_1 = 14;
|
|
1552
|
+
this.m8_1 = 13;
|
|
1553
1553
|
var tmp_0 = this;
|
|
1554
|
-
tmp_0.
|
|
1555
|
-
this.
|
|
1554
|
+
tmp_0.r5c_1 = this.l5c_1;
|
|
1555
|
+
this.l8_1 = 1;
|
|
1556
1556
|
continue $sm;
|
|
1557
1557
|
case 1:
|
|
1558
|
-
this.
|
|
1559
|
-
this.
|
|
1560
|
-
this.
|
|
1558
|
+
this.p5c_1 = this.r5c_1;
|
|
1559
|
+
this.o5c_1 = null;
|
|
1560
|
+
this.l8_1 = 2;
|
|
1561
1561
|
continue $sm;
|
|
1562
1562
|
case 2:
|
|
1563
|
-
this.
|
|
1563
|
+
this.l8_1 = 3;
|
|
1564
1564
|
continue $sm;
|
|
1565
1565
|
case 3:
|
|
1566
|
-
this.
|
|
1567
|
-
this.
|
|
1568
|
-
this.
|
|
1569
|
-
this.
|
|
1566
|
+
this.m8_1 = 10;
|
|
1567
|
+
this.m8_1 = 9;
|
|
1568
|
+
this.q5c_1 = this.p5c_1.s();
|
|
1569
|
+
this.l8_1 = 4;
|
|
1570
1570
|
continue $sm;
|
|
1571
1571
|
case 4:
|
|
1572
|
-
this.
|
|
1573
|
-
suspendResult = this.
|
|
1572
|
+
this.l8_1 = 5;
|
|
1573
|
+
suspendResult = this.q5c_1.p1a(this);
|
|
1574
1574
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1575
1575
|
return suspendResult;
|
|
1576
1576
|
}
|
|
@@ -1578,311 +1578,311 @@ protoOf(ponger$slambda).a9 = function () {
|
|
|
1578
1578
|
continue $sm;
|
|
1579
1579
|
case 5:
|
|
1580
1580
|
if (!suspendResult) {
|
|
1581
|
-
this.
|
|
1581
|
+
this.l8_1 = 7;
|
|
1582
1582
|
continue $sm;
|
|
1583
1583
|
}
|
|
1584
1584
|
|
|
1585
|
-
var e = this.
|
|
1586
|
-
get_LOGGER().
|
|
1587
|
-
this.
|
|
1588
|
-
suspendResult = this.
|
|
1585
|
+
var e = this.q5c_1.u();
|
|
1586
|
+
get_LOGGER().g4u('Received ping message, sending pong message');
|
|
1587
|
+
this.l8_1 = 6;
|
|
1588
|
+
suspendResult = this.m5c_1.d1d(new Pong(e.s5a_1), this);
|
|
1589
1589
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1590
1590
|
return suspendResult;
|
|
1591
1591
|
}
|
|
1592
1592
|
|
|
1593
1593
|
continue $sm;
|
|
1594
1594
|
case 6:
|
|
1595
|
-
this.
|
|
1595
|
+
this.l8_1 = 4;
|
|
1596
1596
|
continue $sm;
|
|
1597
1597
|
case 7:
|
|
1598
|
-
this.
|
|
1598
|
+
this.l8_1 = 8;
|
|
1599
1599
|
var tmp_1 = this;
|
|
1600
1600
|
continue $sm;
|
|
1601
1601
|
case 8:
|
|
1602
|
-
this.
|
|
1603
|
-
cancelConsumed(this.
|
|
1604
|
-
this.
|
|
1602
|
+
this.m8_1 = 13;
|
|
1603
|
+
cancelConsumed(this.p5c_1, this.o5c_1);
|
|
1604
|
+
this.l8_1 = 12;
|
|
1605
1605
|
continue $sm;
|
|
1606
1606
|
case 9:
|
|
1607
|
-
this.
|
|
1608
|
-
var tmp_2 = this.
|
|
1607
|
+
this.m8_1 = 10;
|
|
1608
|
+
var tmp_2 = this.o8_1;
|
|
1609
1609
|
if (tmp_2 instanceof Error) {
|
|
1610
|
-
var e_0 = this.
|
|
1610
|
+
var e_0 = this.o8_1;
|
|
1611
1611
|
var tmp_3 = this;
|
|
1612
|
-
this.
|
|
1612
|
+
this.o5c_1 = e_0;
|
|
1613
1613
|
throw e_0;
|
|
1614
1614
|
} else {
|
|
1615
|
-
throw this.
|
|
1615
|
+
throw this.o8_1;
|
|
1616
1616
|
}
|
|
1617
1617
|
|
|
1618
1618
|
case 10:
|
|
1619
|
-
this.
|
|
1620
|
-
var t = this.
|
|
1621
|
-
cancelConsumed(this.
|
|
1619
|
+
this.m8_1 = 13;
|
|
1620
|
+
var t = this.o8_1;
|
|
1621
|
+
cancelConsumed(this.p5c_1, this.o5c_1);
|
|
1622
1622
|
throw t;
|
|
1623
1623
|
case 11:
|
|
1624
|
-
this.
|
|
1625
|
-
cancelConsumed(this.
|
|
1624
|
+
this.m8_1 = 13;
|
|
1625
|
+
cancelConsumed(this.p5c_1, this.o5c_1);
|
|
1626
1626
|
if (false) {
|
|
1627
|
-
this.
|
|
1627
|
+
this.l8_1 = 1;
|
|
1628
1628
|
continue $sm;
|
|
1629
1629
|
}
|
|
1630
1630
|
|
|
1631
|
-
this.
|
|
1631
|
+
this.l8_1 = 12;
|
|
1632
1632
|
continue $sm;
|
|
1633
1633
|
case 12:
|
|
1634
|
-
this.
|
|
1635
|
-
this.
|
|
1634
|
+
this.m8_1 = 14;
|
|
1635
|
+
this.l8_1 = 15;
|
|
1636
1636
|
continue $sm;
|
|
1637
1637
|
case 13:
|
|
1638
|
-
this.
|
|
1639
|
-
var tmp_4 = this.
|
|
1638
|
+
this.m8_1 = 14;
|
|
1639
|
+
var tmp_4 = this.o8_1;
|
|
1640
1640
|
if (tmp_4 instanceof ClosedSendChannelException) {
|
|
1641
|
-
var _unused_var__etf5q3 = this.
|
|
1642
|
-
this.
|
|
1641
|
+
var _unused_var__etf5q3 = this.o8_1;
|
|
1642
|
+
this.l8_1 = 15;
|
|
1643
1643
|
continue $sm;
|
|
1644
1644
|
} else {
|
|
1645
|
-
throw this.
|
|
1645
|
+
throw this.o8_1;
|
|
1646
1646
|
}
|
|
1647
1647
|
|
|
1648
1648
|
case 14:
|
|
1649
|
-
throw this.
|
|
1649
|
+
throw this.o8_1;
|
|
1650
1650
|
case 15:
|
|
1651
|
-
this.
|
|
1651
|
+
this.m8_1 = 14;
|
|
1652
1652
|
return Unit_instance;
|
|
1653
1653
|
}
|
|
1654
1654
|
} catch ($p) {
|
|
1655
1655
|
var e_1 = $p;
|
|
1656
|
-
if (this.
|
|
1656
|
+
if (this.m8_1 === 14) {
|
|
1657
1657
|
throw e_1;
|
|
1658
1658
|
} else {
|
|
1659
|
-
this.
|
|
1660
|
-
this.
|
|
1659
|
+
this.l8_1 = this.m8_1;
|
|
1660
|
+
this.o8_1 = e_1;
|
|
1661
1661
|
}
|
|
1662
1662
|
}
|
|
1663
1663
|
while (true);
|
|
1664
1664
|
};
|
|
1665
|
-
protoOf(ponger$slambda).
|
|
1666
|
-
var i = new ponger$slambda(this.
|
|
1667
|
-
i.
|
|
1665
|
+
protoOf(ponger$slambda).p24 = function ($this$launch, completion) {
|
|
1666
|
+
var i = new ponger$slambda(this.l5c_1, this.m5c_1, completion);
|
|
1667
|
+
i.n5c_1 = $this$launch;
|
|
1668
1668
|
return i;
|
|
1669
1669
|
};
|
|
1670
1670
|
function ponger$slambda_0($channel, $outgoing, resultContinuation) {
|
|
1671
1671
|
var i = new ponger$slambda($channel, $outgoing, resultContinuation);
|
|
1672
1672
|
var l = function ($this$launch, $completion) {
|
|
1673
|
-
return i.
|
|
1673
|
+
return i.l4m($this$launch, $completion);
|
|
1674
1674
|
};
|
|
1675
1675
|
l.$arity = 1;
|
|
1676
1676
|
return l;
|
|
1677
1677
|
}
|
|
1678
1678
|
function pinger$slambda$slambda($channel, resultContinuation) {
|
|
1679
|
-
this.
|
|
1679
|
+
this.a5d_1 = $channel;
|
|
1680
1680
|
CoroutineImpl.call(this, resultContinuation);
|
|
1681
1681
|
}
|
|
1682
|
-
protoOf(pinger$slambda$slambda).
|
|
1683
|
-
var tmp = this.
|
|
1684
|
-
tmp.
|
|
1685
|
-
tmp.
|
|
1686
|
-
return tmp.
|
|
1682
|
+
protoOf(pinger$slambda$slambda).l4m = function ($this$withTimeoutOrNull, $completion) {
|
|
1683
|
+
var tmp = this.p24($this$withTimeoutOrNull, $completion);
|
|
1684
|
+
tmp.n8_1 = Unit_instance;
|
|
1685
|
+
tmp.o8_1 = null;
|
|
1686
|
+
return tmp.t8();
|
|
1687
1687
|
};
|
|
1688
|
-
protoOf(pinger$slambda$slambda).
|
|
1689
|
-
return this.
|
|
1688
|
+
protoOf(pinger$slambda$slambda).f9 = function (p1, $completion) {
|
|
1689
|
+
return this.l4m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1690
1690
|
};
|
|
1691
|
-
protoOf(pinger$slambda$slambda).
|
|
1692
|
-
var suspendResult = this.
|
|
1691
|
+
protoOf(pinger$slambda$slambda).t8 = function () {
|
|
1692
|
+
var suspendResult = this.n8_1;
|
|
1693
1693
|
$sm: do
|
|
1694
1694
|
try {
|
|
1695
|
-
var tmp = this.
|
|
1695
|
+
var tmp = this.l8_1;
|
|
1696
1696
|
switch (tmp) {
|
|
1697
1697
|
case 0:
|
|
1698
|
-
this.
|
|
1699
|
-
this.
|
|
1698
|
+
this.m8_1 = 3;
|
|
1699
|
+
this.l8_1 = 1;
|
|
1700
1700
|
continue $sm;
|
|
1701
1701
|
case 1:
|
|
1702
1702
|
if (!true) {
|
|
1703
|
-
this.
|
|
1703
|
+
this.l8_1 = 4;
|
|
1704
1704
|
continue $sm;
|
|
1705
1705
|
}
|
|
1706
1706
|
|
|
1707
|
-
this.
|
|
1708
|
-
suspendResult = this.
|
|
1707
|
+
this.l8_1 = 2;
|
|
1708
|
+
suspendResult = this.a5d_1.h1d(this);
|
|
1709
1709
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1710
1710
|
return suspendResult;
|
|
1711
1711
|
}
|
|
1712
1712
|
|
|
1713
1713
|
continue $sm;
|
|
1714
1714
|
case 2:
|
|
1715
|
-
this.
|
|
1715
|
+
this.l8_1 = 1;
|
|
1716
1716
|
continue $sm;
|
|
1717
1717
|
case 3:
|
|
1718
|
-
throw this.
|
|
1718
|
+
throw this.o8_1;
|
|
1719
1719
|
case 4:
|
|
1720
1720
|
return Unit_instance;
|
|
1721
1721
|
}
|
|
1722
1722
|
} catch ($p) {
|
|
1723
1723
|
var e = $p;
|
|
1724
|
-
if (this.
|
|
1724
|
+
if (this.m8_1 === 3) {
|
|
1725
1725
|
throw e;
|
|
1726
1726
|
} else {
|
|
1727
|
-
this.
|
|
1728
|
-
this.
|
|
1727
|
+
this.l8_1 = this.m8_1;
|
|
1728
|
+
this.o8_1 = e;
|
|
1729
1729
|
}
|
|
1730
1730
|
}
|
|
1731
1731
|
while (true);
|
|
1732
1732
|
};
|
|
1733
|
-
protoOf(pinger$slambda$slambda).
|
|
1734
|
-
var i = new pinger$slambda$slambda(this.
|
|
1735
|
-
i.
|
|
1733
|
+
protoOf(pinger$slambda$slambda).p24 = function ($this$withTimeoutOrNull, completion) {
|
|
1734
|
+
var i = new pinger$slambda$slambda(this.a5d_1, completion);
|
|
1735
|
+
i.b5d_1 = $this$withTimeoutOrNull;
|
|
1736
1736
|
return i;
|
|
1737
1737
|
};
|
|
1738
1738
|
function pinger$slambda$slambda_0($channel, resultContinuation) {
|
|
1739
1739
|
var i = new pinger$slambda$slambda($channel, resultContinuation);
|
|
1740
1740
|
var l = function ($this$withTimeoutOrNull, $completion) {
|
|
1741
|
-
return i.
|
|
1741
|
+
return i.l4m($this$withTimeoutOrNull, $completion);
|
|
1742
1742
|
};
|
|
1743
1743
|
l.$arity = 1;
|
|
1744
1744
|
return l;
|
|
1745
1745
|
}
|
|
1746
1746
|
function pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1747
|
-
this.
|
|
1748
|
-
this.
|
|
1749
|
-
this.
|
|
1747
|
+
this.k5d_1 = $outgoing;
|
|
1748
|
+
this.l5d_1 = $pingMessage;
|
|
1749
|
+
this.m5d_1 = $channel;
|
|
1750
1750
|
CoroutineImpl.call(this, resultContinuation);
|
|
1751
1751
|
}
|
|
1752
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1753
|
-
var tmp = this.
|
|
1754
|
-
tmp.
|
|
1755
|
-
tmp.
|
|
1756
|
-
return tmp.
|
|
1752
|
+
protoOf(pinger$slambda$slambda_1).l4m = function ($this$withTimeoutOrNull, $completion) {
|
|
1753
|
+
var tmp = this.p24($this$withTimeoutOrNull, $completion);
|
|
1754
|
+
tmp.n8_1 = Unit_instance;
|
|
1755
|
+
tmp.o8_1 = null;
|
|
1756
|
+
return tmp.t8();
|
|
1757
1757
|
};
|
|
1758
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1759
|
-
return this.
|
|
1758
|
+
protoOf(pinger$slambda$slambda_1).f9 = function (p1, $completion) {
|
|
1759
|
+
return this.l4m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1760
1760
|
};
|
|
1761
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1762
|
-
var suspendResult = this.
|
|
1761
|
+
protoOf(pinger$slambda$slambda_1).t8 = function () {
|
|
1762
|
+
var suspendResult = this.n8_1;
|
|
1763
1763
|
$sm: do
|
|
1764
1764
|
try {
|
|
1765
|
-
var tmp = this.
|
|
1765
|
+
var tmp = this.l8_1;
|
|
1766
1766
|
switch (tmp) {
|
|
1767
1767
|
case 0:
|
|
1768
|
-
this.
|
|
1769
|
-
get_LOGGER().
|
|
1770
|
-
this.
|
|
1771
|
-
suspendResult = this.
|
|
1768
|
+
this.m8_1 = 6;
|
|
1769
|
+
get_LOGGER().g4u('WebSocket Pinger: sending ping frame');
|
|
1770
|
+
this.l8_1 = 1;
|
|
1771
|
+
suspendResult = this.k5d_1.d1d(new Ping(toByteArray(this.l5d_1, Charsets_getInstance().g4n_1)), this);
|
|
1772
1772
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1773
1773
|
return suspendResult;
|
|
1774
1774
|
}
|
|
1775
1775
|
|
|
1776
1776
|
continue $sm;
|
|
1777
1777
|
case 1:
|
|
1778
|
-
this.
|
|
1778
|
+
this.l8_1 = 2;
|
|
1779
1779
|
continue $sm;
|
|
1780
1780
|
case 2:
|
|
1781
1781
|
if (!true) {
|
|
1782
|
-
this.
|
|
1782
|
+
this.l8_1 = 5;
|
|
1783
1783
|
continue $sm;
|
|
1784
1784
|
}
|
|
1785
1785
|
|
|
1786
|
-
this.
|
|
1787
|
-
suspendResult = this.
|
|
1786
|
+
this.l8_1 = 3;
|
|
1787
|
+
suspendResult = this.m5d_1.h1d(this);
|
|
1788
1788
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1789
1789
|
return suspendResult;
|
|
1790
1790
|
}
|
|
1791
1791
|
|
|
1792
1792
|
continue $sm;
|
|
1793
1793
|
case 3:
|
|
1794
|
-
this.
|
|
1795
|
-
if (decodeToString(this.
|
|
1796
|
-
get_LOGGER().
|
|
1797
|
-
this.
|
|
1794
|
+
this.o5d_1 = suspendResult;
|
|
1795
|
+
if (decodeToString(this.o5d_1.s5a_1, 0, 0 + this.o5d_1.s5a_1.length | 0) === this.l5d_1) {
|
|
1796
|
+
get_LOGGER().g4u('WebSocket Pinger: received valid pong frame ' + this.o5d_1.toString());
|
|
1797
|
+
this.l8_1 = 5;
|
|
1798
1798
|
continue $sm;
|
|
1799
1799
|
} else {
|
|
1800
|
-
this.
|
|
1800
|
+
this.l8_1 = 4;
|
|
1801
1801
|
continue $sm;
|
|
1802
1802
|
}
|
|
1803
1803
|
|
|
1804
1804
|
case 4:
|
|
1805
|
-
get_LOGGER().
|
|
1806
|
-
this.
|
|
1805
|
+
get_LOGGER().g4u('WebSocket Pinger: received invalid pong frame ' + this.o5d_1.toString() + ', continue waiting');
|
|
1806
|
+
this.l8_1 = 2;
|
|
1807
1807
|
continue $sm;
|
|
1808
1808
|
case 5:
|
|
1809
1809
|
return Unit_instance;
|
|
1810
1810
|
case 6:
|
|
1811
|
-
throw this.
|
|
1811
|
+
throw this.o8_1;
|
|
1812
1812
|
}
|
|
1813
1813
|
} catch ($p) {
|
|
1814
1814
|
var e = $p;
|
|
1815
|
-
if (this.
|
|
1815
|
+
if (this.m8_1 === 6) {
|
|
1816
1816
|
throw e;
|
|
1817
1817
|
} else {
|
|
1818
|
-
this.
|
|
1819
|
-
this.
|
|
1818
|
+
this.l8_1 = this.m8_1;
|
|
1819
|
+
this.o8_1 = e;
|
|
1820
1820
|
}
|
|
1821
1821
|
}
|
|
1822
1822
|
while (true);
|
|
1823
1823
|
};
|
|
1824
|
-
protoOf(pinger$slambda$slambda_1).
|
|
1825
|
-
var i = new pinger$slambda$slambda_1(this.
|
|
1826
|
-
i.
|
|
1824
|
+
protoOf(pinger$slambda$slambda_1).p24 = function ($this$withTimeoutOrNull, completion) {
|
|
1825
|
+
var i = new pinger$slambda$slambda_1(this.k5d_1, this.l5d_1, this.m5d_1, completion);
|
|
1826
|
+
i.n5d_1 = $this$withTimeoutOrNull;
|
|
1827
1827
|
return i;
|
|
1828
1828
|
};
|
|
1829
1829
|
function pinger$slambda$slambda_2($outgoing, $pingMessage, $channel, resultContinuation) {
|
|
1830
1830
|
var i = new pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation);
|
|
1831
1831
|
var l = function ($this$withTimeoutOrNull, $completion) {
|
|
1832
|
-
return i.
|
|
1832
|
+
return i.l4m($this$withTimeoutOrNull, $completion);
|
|
1833
1833
|
};
|
|
1834
1834
|
l.$arity = 1;
|
|
1835
1835
|
return l;
|
|
1836
1836
|
}
|
|
1837
1837
|
function pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
1838
|
-
this.
|
|
1839
|
-
this.
|
|
1840
|
-
this.
|
|
1841
|
-
this.
|
|
1842
|
-
this.
|
|
1838
|
+
this.x5d_1 = $periodMillis;
|
|
1839
|
+
this.y5d_1 = $timeoutMillis;
|
|
1840
|
+
this.z5d_1 = $onTimeout;
|
|
1841
|
+
this.a5e_1 = $channel;
|
|
1842
|
+
this.b5e_1 = $outgoing;
|
|
1843
1843
|
CoroutineImpl.call(this, resultContinuation);
|
|
1844
1844
|
}
|
|
1845
|
-
protoOf(pinger$slambda).
|
|
1846
|
-
var tmp = this.
|
|
1847
|
-
tmp.
|
|
1848
|
-
tmp.
|
|
1849
|
-
return tmp.
|
|
1845
|
+
protoOf(pinger$slambda).l4m = function ($this$launch, $completion) {
|
|
1846
|
+
var tmp = this.p24($this$launch, $completion);
|
|
1847
|
+
tmp.n8_1 = Unit_instance;
|
|
1848
|
+
tmp.o8_1 = null;
|
|
1849
|
+
return tmp.t8();
|
|
1850
1850
|
};
|
|
1851
|
-
protoOf(pinger$slambda).
|
|
1852
|
-
return this.
|
|
1851
|
+
protoOf(pinger$slambda).f9 = function (p1, $completion) {
|
|
1852
|
+
return this.l4m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1853
1853
|
};
|
|
1854
|
-
protoOf(pinger$slambda).
|
|
1855
|
-
var suspendResult = this.
|
|
1854
|
+
protoOf(pinger$slambda).t8 = function () {
|
|
1855
|
+
var suspendResult = this.n8_1;
|
|
1856
1856
|
$sm: do
|
|
1857
1857
|
try {
|
|
1858
|
-
var tmp = this.
|
|
1858
|
+
var tmp = this.l8_1;
|
|
1859
1859
|
switch (tmp) {
|
|
1860
1860
|
case 0:
|
|
1861
|
-
this.
|
|
1862
|
-
get_LOGGER().
|
|
1863
|
-
this.
|
|
1864
|
-
this.
|
|
1865
|
-
this.
|
|
1866
|
-
this.
|
|
1861
|
+
this.m8_1 = 9;
|
|
1862
|
+
get_LOGGER().g4u('Starting WebSocket pinger coroutine with period ' + this.x5d_1.toString() + ' ms and timeout ' + this.y5d_1.toString() + ' ms');
|
|
1863
|
+
this.e5e_1 = Random(getTimeMillis());
|
|
1864
|
+
this.d5e_1 = new Int8Array(32);
|
|
1865
|
+
this.m8_1 = 7;
|
|
1866
|
+
this.l8_1 = 1;
|
|
1867
1867
|
continue $sm;
|
|
1868
1868
|
case 1:
|
|
1869
1869
|
if (!true) {
|
|
1870
|
-
this.
|
|
1870
|
+
this.l8_1 = 6;
|
|
1871
1871
|
continue $sm;
|
|
1872
1872
|
}
|
|
1873
1873
|
|
|
1874
|
-
this.
|
|
1875
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1874
|
+
this.l8_1 = 2;
|
|
1875
|
+
suspendResult = withTimeoutOrNull(this.x5d_1, pinger$slambda$slambda_0(this.a5e_1, null), this);
|
|
1876
1876
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1877
1877
|
return suspendResult;
|
|
1878
1878
|
}
|
|
1879
1879
|
|
|
1880
1880
|
continue $sm;
|
|
1881
1881
|
case 2:
|
|
1882
|
-
this.
|
|
1883
|
-
var pingMessage = '[ping ' + hex(this.
|
|
1884
|
-
this.
|
|
1885
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1882
|
+
this.e5e_1.di(this.d5e_1);
|
|
1883
|
+
var pingMessage = '[ping ' + hex(this.d5e_1) + ' ping]';
|
|
1884
|
+
this.l8_1 = 3;
|
|
1885
|
+
suspendResult = withTimeoutOrNull(this.y5d_1, pinger$slambda$slambda_2(this.b5e_1, pingMessage, this.a5e_1, null), this);
|
|
1886
1886
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1887
1887
|
return suspendResult;
|
|
1888
1888
|
}
|
|
@@ -1891,93 +1891,93 @@ protoOf(pinger$slambda).a9 = function () {
|
|
|
1891
1891
|
case 3:
|
|
1892
1892
|
var rc = suspendResult;
|
|
1893
1893
|
if (rc == null) {
|
|
1894
|
-
get_LOGGER().
|
|
1895
|
-
this.
|
|
1896
|
-
suspendResult = this.
|
|
1894
|
+
get_LOGGER().g4u('WebSocket pinger has timed out');
|
|
1895
|
+
this.l8_1 = 5;
|
|
1896
|
+
suspendResult = this.z5d_1(CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), 'Ping timeout'), this);
|
|
1897
1897
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1898
1898
|
return suspendResult;
|
|
1899
1899
|
}
|
|
1900
1900
|
continue $sm;
|
|
1901
1901
|
} else {
|
|
1902
|
-
this.
|
|
1902
|
+
this.l8_1 = 4;
|
|
1903
1903
|
continue $sm;
|
|
1904
1904
|
}
|
|
1905
1905
|
|
|
1906
1906
|
case 4:
|
|
1907
|
-
this.
|
|
1907
|
+
this.l8_1 = 1;
|
|
1908
1908
|
continue $sm;
|
|
1909
1909
|
case 5:
|
|
1910
|
-
this.
|
|
1910
|
+
this.l8_1 = 6;
|
|
1911
1911
|
continue $sm;
|
|
1912
1912
|
case 6:
|
|
1913
|
-
this.
|
|
1914
|
-
this.
|
|
1913
|
+
this.m8_1 = 9;
|
|
1914
|
+
this.l8_1 = 8;
|
|
1915
1915
|
continue $sm;
|
|
1916
1916
|
case 7:
|
|
1917
|
-
this.
|
|
1918
|
-
var tmp_0 = this.
|
|
1917
|
+
this.m8_1 = 9;
|
|
1918
|
+
var tmp_0 = this.o8_1;
|
|
1919
1919
|
if (tmp_0 instanceof CancellationException) {
|
|
1920
|
-
var ignore = this.
|
|
1921
|
-
this.
|
|
1920
|
+
var ignore = this.o8_1;
|
|
1921
|
+
this.l8_1 = 8;
|
|
1922
1922
|
continue $sm;
|
|
1923
1923
|
} else {
|
|
1924
|
-
var tmp_1 = this.
|
|
1924
|
+
var tmp_1 = this.o8_1;
|
|
1925
1925
|
if (tmp_1 instanceof ClosedReceiveChannelException) {
|
|
1926
|
-
var ignore_0 = this.
|
|
1927
|
-
this.
|
|
1926
|
+
var ignore_0 = this.o8_1;
|
|
1927
|
+
this.l8_1 = 8;
|
|
1928
1928
|
continue $sm;
|
|
1929
1929
|
} else {
|
|
1930
|
-
var tmp_2 = this.
|
|
1930
|
+
var tmp_2 = this.o8_1;
|
|
1931
1931
|
if (tmp_2 instanceof ClosedSendChannelException) {
|
|
1932
|
-
var ignore_1 = this.
|
|
1933
|
-
this.
|
|
1932
|
+
var ignore_1 = this.o8_1;
|
|
1933
|
+
this.l8_1 = 8;
|
|
1934
1934
|
continue $sm;
|
|
1935
1935
|
} else {
|
|
1936
|
-
var tmp_3 = this.
|
|
1936
|
+
var tmp_3 = this.o8_1;
|
|
1937
1937
|
if (tmp_3 instanceof ClosedByteChannelException) {
|
|
1938
|
-
var ignore_2 = this.
|
|
1939
|
-
this.
|
|
1938
|
+
var ignore_2 = this.o8_1;
|
|
1939
|
+
this.l8_1 = 8;
|
|
1940
1940
|
continue $sm;
|
|
1941
1941
|
} else {
|
|
1942
|
-
throw this.
|
|
1942
|
+
throw this.o8_1;
|
|
1943
1943
|
}
|
|
1944
1944
|
}
|
|
1945
1945
|
}
|
|
1946
1946
|
}
|
|
1947
1947
|
|
|
1948
1948
|
case 8:
|
|
1949
|
-
this.
|
|
1949
|
+
this.m8_1 = 9;
|
|
1950
1950
|
return Unit_instance;
|
|
1951
1951
|
case 9:
|
|
1952
|
-
throw this.
|
|
1952
|
+
throw this.o8_1;
|
|
1953
1953
|
}
|
|
1954
1954
|
} catch ($p) {
|
|
1955
1955
|
var e = $p;
|
|
1956
|
-
if (this.
|
|
1956
|
+
if (this.m8_1 === 9) {
|
|
1957
1957
|
throw e;
|
|
1958
1958
|
} else {
|
|
1959
|
-
this.
|
|
1960
|
-
this.
|
|
1959
|
+
this.l8_1 = this.m8_1;
|
|
1960
|
+
this.o8_1 = e;
|
|
1961
1961
|
}
|
|
1962
1962
|
}
|
|
1963
1963
|
while (true);
|
|
1964
1964
|
};
|
|
1965
|
-
protoOf(pinger$slambda).
|
|
1966
|
-
var i = new pinger$slambda(this.
|
|
1967
|
-
i.
|
|
1965
|
+
protoOf(pinger$slambda).p24 = function ($this$launch, completion) {
|
|
1966
|
+
var i = new pinger$slambda(this.x5d_1, this.y5d_1, this.z5d_1, this.a5e_1, this.b5e_1, completion);
|
|
1967
|
+
i.c5e_1 = $this$launch;
|
|
1968
1968
|
return i;
|
|
1969
1969
|
};
|
|
1970
1970
|
function pinger$slambda_0($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
|
|
1971
1971
|
var i = new pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation);
|
|
1972
1972
|
var l = function ($this$launch, $completion) {
|
|
1973
|
-
return i.
|
|
1973
|
+
return i.l4m($this$launch, $completion);
|
|
1974
1974
|
};
|
|
1975
1975
|
l.$arity = 1;
|
|
1976
1976
|
return l;
|
|
1977
1977
|
}
|
|
1978
1978
|
function pinger$lambda($actorJob) {
|
|
1979
1979
|
return function (it) {
|
|
1980
|
-
$actorJob.
|
|
1980
|
+
$actorJob.ov();
|
|
1981
1981
|
return Unit_instance;
|
|
1982
1982
|
};
|
|
1983
1983
|
}
|
|
@@ -1994,16 +1994,16 @@ function WebSocketExtension() {
|
|
|
1994
1994
|
function WebSocketExtensionsConfig() {
|
|
1995
1995
|
var tmp = this;
|
|
1996
1996
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1997
|
-
tmp.
|
|
1997
|
+
tmp.h5e_1 = ArrayList_init_$Create$();
|
|
1998
1998
|
var tmp_0 = this;
|
|
1999
1999
|
// Inline function 'kotlin.arrayOf' call
|
|
2000
2000
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2001
2001
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2002
|
-
tmp_0.
|
|
2002
|
+
tmp_0.i5e_1 = [false, false, false];
|
|
2003
2003
|
}
|
|
2004
|
-
protoOf(WebSocketExtensionsConfig).
|
|
2004
|
+
protoOf(WebSocketExtensionsConfig).r3x = function () {
|
|
2005
2005
|
// Inline function 'kotlin.collections.map' call
|
|
2006
|
-
var this_0 = this.
|
|
2006
|
+
var this_0 = this.h5e_1;
|
|
2007
2007
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2008
2008
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2009
2009
|
var _iterator__ex2g4s = this_0.s();
|
|
@@ -2015,14 +2015,14 @@ protoOf(WebSocketExtensionsConfig).a3r = function () {
|
|
|
2015
2015
|
return destination;
|
|
2016
2016
|
};
|
|
2017
2017
|
function parametersToString($this) {
|
|
2018
|
-
return $this.
|
|
2018
|
+
return $this.k5e_1.j() ? '' : '; ' + joinToString($this.k5e_1, ';');
|
|
2019
2019
|
}
|
|
2020
2020
|
function WebSocketExtensionHeader(name, parameters) {
|
|
2021
|
-
this.
|
|
2022
|
-
this.
|
|
2021
|
+
this.j5e_1 = name;
|
|
2022
|
+
this.k5e_1 = parameters;
|
|
2023
2023
|
}
|
|
2024
2024
|
protoOf(WebSocketExtensionHeader).toString = function () {
|
|
2025
|
-
return this.
|
|
2025
|
+
return this.j5e_1 + ' ' + parametersToString(this);
|
|
2026
2026
|
};
|
|
2027
2027
|
function parseWebSocketExtensions(value) {
|
|
2028
2028
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2056,14 +2056,14 @@ function parseWebSocketExtensions(value) {
|
|
|
2056
2056
|
function WebSocketSession() {
|
|
2057
2057
|
}
|
|
2058
2058
|
function send_0(_this__u8e3s4, content, $completion) {
|
|
2059
|
-
return _this__u8e3s4.
|
|
2059
|
+
return _this__u8e3s4.q57(Text_init_$Create$(content), $completion);
|
|
2060
2060
|
}
|
|
2061
2061
|
function close(_this__u8e3s4, reason, $completion) {
|
|
2062
2062
|
reason = reason === VOID ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : reason;
|
|
2063
2063
|
var tmp = new $closeCOROUTINE$(_this__u8e3s4, reason, $completion);
|
|
2064
|
-
tmp.
|
|
2065
|
-
tmp.
|
|
2066
|
-
return tmp.
|
|
2064
|
+
tmp.n8_1 = Unit_instance;
|
|
2065
|
+
tmp.o8_1 = null;
|
|
2066
|
+
return tmp.t8();
|
|
2067
2067
|
}
|
|
2068
2068
|
function closeExceptionally(_this__u8e3s4, cause, $completion) {
|
|
2069
2069
|
var tmp;
|
|
@@ -2077,61 +2077,61 @@ function closeExceptionally(_this__u8e3s4, cause, $completion) {
|
|
|
2077
2077
|
}
|
|
2078
2078
|
function $closeCOROUTINE$(_this__u8e3s4, reason, resultContinuation) {
|
|
2079
2079
|
CoroutineImpl.call(this, resultContinuation);
|
|
2080
|
-
this.
|
|
2081
|
-
this.
|
|
2080
|
+
this.t5e_1 = _this__u8e3s4;
|
|
2081
|
+
this.u5e_1 = reason;
|
|
2082
2082
|
}
|
|
2083
|
-
protoOf($closeCOROUTINE$).
|
|
2084
|
-
var suspendResult = this.
|
|
2083
|
+
protoOf($closeCOROUTINE$).t8 = function () {
|
|
2084
|
+
var suspendResult = this.n8_1;
|
|
2085
2085
|
$sm: do
|
|
2086
2086
|
try {
|
|
2087
|
-
var tmp = this.
|
|
2087
|
+
var tmp = this.l8_1;
|
|
2088
2088
|
switch (tmp) {
|
|
2089
2089
|
case 0:
|
|
2090
|
-
this.
|
|
2091
|
-
this.
|
|
2092
|
-
this.
|
|
2093
|
-
suspendResult = this.
|
|
2090
|
+
this.m8_1 = 4;
|
|
2091
|
+
this.m8_1 = 3;
|
|
2092
|
+
this.l8_1 = 1;
|
|
2093
|
+
suspendResult = this.t5e_1.q57(Close_init_$Create$(this.u5e_1), this);
|
|
2094
2094
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2095
2095
|
return suspendResult;
|
|
2096
2096
|
}
|
|
2097
2097
|
|
|
2098
2098
|
continue $sm;
|
|
2099
2099
|
case 1:
|
|
2100
|
-
this.
|
|
2101
|
-
suspendResult = this.
|
|
2100
|
+
this.l8_1 = 2;
|
|
2101
|
+
suspendResult = this.t5e_1.j4e(this);
|
|
2102
2102
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2103
2103
|
return suspendResult;
|
|
2104
2104
|
}
|
|
2105
2105
|
|
|
2106
2106
|
continue $sm;
|
|
2107
2107
|
case 2:
|
|
2108
|
-
this.
|
|
2109
|
-
this.
|
|
2108
|
+
this.m8_1 = 4;
|
|
2109
|
+
this.l8_1 = 5;
|
|
2110
2110
|
continue $sm;
|
|
2111
2111
|
case 3:
|
|
2112
|
-
this.
|
|
2113
|
-
var tmp_0 = this.
|
|
2112
|
+
this.m8_1 = 4;
|
|
2113
|
+
var tmp_0 = this.o8_1;
|
|
2114
2114
|
if (tmp_0 instanceof Error) {
|
|
2115
|
-
var _unused_var__etf5q3 = this.
|
|
2116
|
-
this.
|
|
2115
|
+
var _unused_var__etf5q3 = this.o8_1;
|
|
2116
|
+
this.l8_1 = 5;
|
|
2117
2117
|
continue $sm;
|
|
2118
2118
|
} else {
|
|
2119
|
-
throw this.
|
|
2119
|
+
throw this.o8_1;
|
|
2120
2120
|
}
|
|
2121
2121
|
|
|
2122
2122
|
case 4:
|
|
2123
|
-
throw this.
|
|
2123
|
+
throw this.o8_1;
|
|
2124
2124
|
case 5:
|
|
2125
|
-
this.
|
|
2125
|
+
this.m8_1 = 4;
|
|
2126
2126
|
return Unit_instance;
|
|
2127
2127
|
}
|
|
2128
2128
|
} catch ($p) {
|
|
2129
2129
|
var e = $p;
|
|
2130
|
-
if (this.
|
|
2130
|
+
if (this.m8_1 === 4) {
|
|
2131
2131
|
throw e;
|
|
2132
2132
|
} else {
|
|
2133
|
-
this.
|
|
2134
|
-
this.
|
|
2133
|
+
this.l8_1 = this.m8_1;
|
|
2134
|
+
this.o8_1 = e;
|
|
2135
2135
|
}
|
|
2136
2136
|
}
|
|
2137
2137
|
while (true);
|
|
@@ -2157,8 +2157,8 @@ function Text_init_$Create$(text) {
|
|
|
2157
2157
|
function Close_init_$Init$(reason, $this) {
|
|
2158
2158
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
2159
2159
|
var builder = new Buffer();
|
|
2160
|
-
builder.
|
|
2161
|
-
writeText(builder, reason.
|
|
2160
|
+
builder.ns(reason.h57_1);
|
|
2161
|
+
writeText(builder, reason.i57_1);
|
|
2162
2162
|
Close_init_$Init$_0(builder, $this);
|
|
2163
2163
|
return $this;
|
|
2164
2164
|
}
|
|
@@ -2170,7 +2170,7 @@ function Close_init_$Init$_0(packet, $this) {
|
|
|
2170
2170
|
return $this;
|
|
2171
2171
|
}
|
|
2172
2172
|
function Close_init_$Init$_1($this) {
|
|
2173
|
-
Close.call($this, Companion_getInstance_2().
|
|
2173
|
+
Close.call($this, Companion_getInstance_2().x5a_1);
|
|
2174
2174
|
return $this;
|
|
2175
2175
|
}
|
|
2176
2176
|
function Close_init_$Create$_0() {
|
|
@@ -2200,11 +2200,11 @@ function Pong(data, disposableHandle) {
|
|
|
2200
2200
|
}
|
|
2201
2201
|
function Companion_2() {
|
|
2202
2202
|
Companion_instance_2 = this;
|
|
2203
|
-
this.
|
|
2203
|
+
this.x5a_1 = new Int8Array(0);
|
|
2204
2204
|
}
|
|
2205
|
-
protoOf(Companion_2).
|
|
2205
|
+
protoOf(Companion_2).y5a = function (fin, frameType, data, rsv1, rsv2, rsv3) {
|
|
2206
2206
|
var tmp;
|
|
2207
|
-
switch (frameType.
|
|
2207
|
+
switch (frameType.q2_1) {
|
|
2208
2208
|
case 1:
|
|
2209
2209
|
tmp = new Binary(fin, data, rsv1, rsv2, rsv3);
|
|
2210
2210
|
break;
|
|
@@ -2238,22 +2238,22 @@ function Frame(fin, frameType, data, disposableHandle, rsv1, rsv2, rsv3) {
|
|
|
2238
2238
|
rsv1 = rsv1 === VOID ? false : rsv1;
|
|
2239
2239
|
rsv2 = rsv2 === VOID ? false : rsv2;
|
|
2240
2240
|
rsv3 = rsv3 === VOID ? false : rsv3;
|
|
2241
|
-
this.
|
|
2242
|
-
this.
|
|
2243
|
-
this.
|
|
2244
|
-
this.
|
|
2245
|
-
this.
|
|
2246
|
-
this.
|
|
2247
|
-
this.
|
|
2241
|
+
this.q5a_1 = fin;
|
|
2242
|
+
this.r5a_1 = frameType;
|
|
2243
|
+
this.s5a_1 = data;
|
|
2244
|
+
this.t5a_1 = disposableHandle;
|
|
2245
|
+
this.u5a_1 = rsv1;
|
|
2246
|
+
this.v5a_1 = rsv2;
|
|
2247
|
+
this.w5a_1 = rsv3;
|
|
2248
2248
|
}
|
|
2249
2249
|
protoOf(Frame).toString = function () {
|
|
2250
|
-
return 'Frame ' + this.
|
|
2250
|
+
return 'Frame ' + this.r5a_1.toString() + ' (fin=' + this.q5a_1 + ', buffer len = ' + this.s5a_1.length + ')';
|
|
2251
2251
|
};
|
|
2252
2252
|
function get_OUTGOING_CHANNEL_CAPACITY() {
|
|
2253
2253
|
return 8;
|
|
2254
2254
|
}
|
|
2255
2255
|
//region block: post-declaration
|
|
2256
|
-
protoOf(DefaultWebSocketSessionImpl).
|
|
2256
|
+
protoOf(DefaultWebSocketSessionImpl).q57 = send;
|
|
2257
2257
|
defineProp(protoOf(FrameTooBigException), 'message', function () {
|
|
2258
2258
|
return this.e();
|
|
2259
2259
|
});
|