mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
Split up the action of registring an event or request data class to be decoded by the Link class and the action of registring a handler for those requests and events. This moves the validation work from Link instantiation time to startup initialisation which makes logic errors fail on startup instead of failing instantiation of the link when a connection attempt is made. Additionally implement a partial validation logic for messages received using the newly refactored message registration. This unfortunately ended up merged with the registration refactor.
15 lines
276 B
JavaScript
15 lines
276 B
JavaScript
"use strict";
|
|
const messages = require("./messages");
|
|
|
|
module.exports = {
|
|
name: "global_chat",
|
|
title: "Global Chat",
|
|
description: "Forwards chat between instances.",
|
|
instanceEntrypoint: "instance",
|
|
controlEntrypoint: "control",
|
|
|
|
messages: [
|
|
messages.ChatEvent,
|
|
],
|
|
};
|