@wixc3/engine-core
Advanced tools
Comparing version 45.5.0 to 45.6.0
import type { ContextualEnvironment, Environment, EnvironmentMode } from '../entities/env.js'; | ||
import { type IDTag } from '../types.js'; | ||
import type { ReadyMessage } from './message-types.js'; | ||
import { type AnyServiceMethodOptions, type AsyncApi, type EnvironmentInstanceToken, type EnvironmentRecord, type ServiceComConfig, type Target } from './types.js'; | ||
@@ -128,3 +127,5 @@ export interface ConfigEnvironmentRecord extends EnvironmentRecord { | ||
private handleEventMessage; | ||
handleReady({ from }: ReadyMessage): void; | ||
handleReady({ from }: { | ||
from: string; | ||
}): void; | ||
private handleUnListen; | ||
@@ -131,0 +132,0 @@ private handleListen; |
@@ -483,2 +483,6 @@ "use strict"; | ||
} | ||
if (this.pendingEnvs.get(env.id)) { | ||
this.pendingMessages.add(env.id, () => this.post(this.resolveMessageTarget(env.id), message)); | ||
return; | ||
} | ||
this.post(env.host, message); | ||
@@ -485,0 +489,0 @@ } |
{ | ||
"name": "@wixc3/engine-core", | ||
"version": "45.5.0", | ||
"version": "45.6.0", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "exports": { |
@@ -38,3 +38,2 @@ import { SetMultiMap, isDisposable } from '@wixc3/patterns'; | ||
Message, | ||
ReadyMessage, | ||
StatusMessage, | ||
@@ -612,3 +611,6 @@ UnListenMessage, | ||
} | ||
if (this.pendingEnvs.get(env.id)) { | ||
this.pendingMessages.add(env.id, () => this.post(this.resolveMessageTarget(env.id), message)); | ||
return; | ||
} | ||
this.post(env.host, message); | ||
@@ -770,3 +772,3 @@ } | ||
public handleReady({ from }: ReadyMessage): void { | ||
public handleReady({ from }: { from: string }): void { | ||
this.readyEnvs.add(from); | ||
@@ -773,0 +775,0 @@ const pendingEnvCb = this.pendingEnvs.get(from); |
import type { SocketOptions } from 'socket.io-client'; | ||
import { WsClientHost } from '../hosts/ws-client-host.js'; | ||
import type { ReadyMessage } from '../message-types.js'; | ||
import type { InitializerOptions } from './types.js'; | ||
@@ -29,3 +28,3 @@ | ||
communication.handleReady({ from: instanceId } as ReadyMessage); | ||
communication.handleReady({ from: instanceId }); | ||
@@ -32,0 +31,0 @@ return { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1352515
13406