sugo-constants
2.4.2 • Public • Published sugo-constants
Constant variables for SUGOS
Installation
$ npm install sugo-constants --save
Usage
'use strict'
const { HubUrls } = require('sugo-constants')
{
const { ACTOR_URL, CALLER_URL } = HubUrls
}
Values
ActorEvents
Key |
Value |
SETUP |
actor:setup |
TEARDOWN |
actor:teardown |
UPDATE |
actor:update |
LOST |
actor:lost |
CallerEvents
Key |
Value |
JOIN |
caller:join |
LEAVE |
caller:leave |
ClientTypes
Key |
Value |
ACTOR |
sugo:actor |
CALLER |
sugo:caller |
OBSERVER |
sugo:observer |
HubNotices
Key |
Value |
CALLER_GONE |
CallerGone |
ACTOR_GONE |
ActorGone |
HubUrls
Key |
Value |
ACTOR_URL |
/actors |
CALLER_URL |
/callers |
OBSERVER_URL |
/observers |
HUB_URL |
/hubs |
PipeLevels
Key |
Value |
ACTOR_LEVEL |
level:actor |
MODULE_LEVEL |
level:module |
ReservedNames
Key |
Value |
MODULE |
module |
METHOD |
constructor,emit,addListener,removeListener,removeAllListeners,listeners,listenerCount,setMaxListeners,getMaxListeners,eventNames,on,off,once,with,of |
ATTRIBUTE |
name,prototype,caller |
License
This software is released under the Apache-2.0 License.
Links
Package Sidebar
Install
Weekly Downloads