sg-socket-constants
Version:
Constants variables for socket
18 lines (13 loc) • 350 B
JavaScript
/**
* Events for auth
* @see https://github.com/facundoolano/socketio-auth
*/
// Client -> Server
/** Require authentication */
exports.AUTHENTICATION = 'authentication'
// Server -> Client
/** Authentication approved */
exports.AUTHENTICATED = 'authenticated'
/** Authentication rejected */
exports.UNAUTHORIZED = 'unauthorized'