sg-socket-constants
Version:
Constants variables for socket
55 lines (45 loc) • 802 B
JavaScript
/**
* Events for subscribing
* @namespace SubscribingEvents
* @deprecated
*/
// -- publisher -> cloud
/**
* @deprecated
* Ready to accept subscribes
*/
exports.RAISE = 'sg:pubsub:raise'
/**
* @deprecated
* No longer accepts subscribes
*/
exports.SHUT = 'sg:pubsub:shut'
/**
* @deprecated
* Publish event
*/
exports.PUBLISH = 'sg:pubsub:publish'
// -- cloud -> publisher
/**
* @deprecated
* Number of subscribers
*/
exports.COUNT = 'sg:pubsub:count'
// -- subscriber -> cloud
/**
* @deprecated
* Start subscribing
*/
exports.SUBSCRIBE = 'sg:pubsub:subscribe'
/**
* @deprecated
* Stop subscribing
*/
exports.UNSUBSCRIBE = 'sg:pubsub:unsubscribe'
// -- cloud -> subscriber
/**
* @deprecated
* Receive published event
*/
exports.RECEIVE = 'sg:pubsub:receive'