dist/lib/server.js
/**
         * Emits a specified event to this namespace.
         * @inner
         * @method
         * @param {String} event - event name
         * @param {Array} params - event parameters
         * @return {Undefined}
         */
Emits a specified event to this namespace.
Emits a specified event to this namespace .
function emit(event) {
          var socket_ids = (0, _toConsumableArray2["default"])(self.namespaces[name].clients.keys());
          for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
            params[_key2 - 1] = arguments[_key2];
          }
          for (var i = 0, id; id = socket_ids[i]; ++i) {
            self.namespaces[name].clients.get(id).send(_circularJson["default"].stringify({
              notification: event,
              params: params || []
            }));
          }
        }
function emit ( event ) { var socket_ids = ( 0 , _toConsumableArray2 [ "default" ] ) ( self . namespaces [ name ] . clients . keys ( ) ) ; for ( var _len2 = arguments . length , params = new Array ( _len2 > 1 ? _len2 - 1 : 0 ) , _key2 = 1 ; _key2 < _len2 ; _key2 ++ ) { params [ _key2 - 1 ] = arguments [ _key2 ] ; } for ( var i = 0 , id ; id = socket_ids [ i ] ; ++ i ) { self . namespaces [ name ] . clients . get ( id ) . send ( _circularJson [ "default" ] . stringify ( { notification : event , params : params || [ ] } ) ) ; } }
Emits a specified event to this namespace.
Emits a specified event to this namespace .