mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
When a plugin broadcasts an event to instances there may be hosts and instances in the cluster which does not have the plugin loaded. This would cause an error to be logged for every instance which does not have the plugin loaded. Filter out broadcast events sent to hosts and instances such that instances and hosts that does not have the event do not received them.
11 lines
410 B
TypeScript
11 lines
410 B
TypeScript
import { bootstrap } from "./host";
|
|
export { default as BaseHostPlugin } from "./src/BaseHostPlugin";
|
|
export { default as BaseInstancePlugin } from "./src/BaseInstancePlugin";
|
|
export { default as Host, HostRouter } from "./src/Host";
|
|
export { default as Instance } from "./src/Instance";
|
|
export { default as InstanceConnection } from "./src/InstanceConnection";
|
|
|
|
if (module === require.main) {
|
|
bootstrap();
|
|
}
|