Type for picking out the data type of a message.
Type for defining the type of message.
Type generator for creating a union of Message types. This allows for checks like this:
if(msg.type === 'type') {
// Type of data will be inferred from type
const data = msg.data;
}
Generated using TypeDoc
Mesh networking with peer-to-peer messaging for NodeJS and the browser. Ataraxia connects different instances together and allows messages to be passed between these instances. Some instances may act as routers for other instances to create a partially connected mesh network.
Network is the main class used to join a network:
Authentication is provided via AnonymousAuth or SharedSecretAuth.