2019-05-23 09:33:59 +00:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
assertion type ServerActive(scope) = Symbol.for('server-active');
|
|
|
|
|
|
|
|
assertion type POA(connId) = Symbol.for('server-poa');
|
2019-05-30 22:06:15 +00:00
|
|
|
assertion type POAReady(connId) = Symbol.for('server-poa-ready');
|
2019-05-23 09:33:59 +00:00
|
|
|
message type FromPOA(connId, body) = Symbol.for('message-poa->server');
|
|
|
|
message type ToPOA(connId, body) = Symbol.for('message-server->poa');
|
|
|
|
|
|
|
|
message type Disconnect(connId) = Symbol.for('disconnect-poa');
|
|
|
|
|
|
|
|
// Internal isolation
|
|
|
|
assertion type Proposal(scope, body) = Symbol.for('server-proposal');
|
|
|
|
assertion type Envelope(scope, body) = Symbol.for('server-envelope');
|
|
|
|
|
|
|
|
// Monitoring
|
|
|
|
assertion type POAScope(connId, scope) = Symbol.for('server-poa-scope');
|
|
|
|
|
2019-05-23 12:51:16 +00:00
|
|
|
// Federation
|
|
|
|
assertion type FederatedLink(id, scope) = Symbol.for('federated-link');
|
2019-05-30 22:06:15 +00:00
|
|
|
assertion type FederatedLinkReady(id) = Symbol.for('federated-link-ready');
|
2019-05-23 12:51:16 +00:00
|
|
|
|
2019-05-23 09:33:59 +00:00
|
|
|
Object.assign(module.exports, {
|
|
|
|
ServerActive,
|
2019-05-30 22:06:15 +00:00
|
|
|
POA, POAReady, FromPOA, ToPOA,
|
2019-05-23 09:33:59 +00:00
|
|
|
Disconnect,
|
|
|
|
Proposal, Envelope,
|
|
|
|
POAScope,
|
2019-05-30 22:06:15 +00:00
|
|
|
FederatedLink, FederatedLinkReady,
|
2019-05-23 09:33:59 +00:00
|
|
|
});
|