dist/corbel.with-polyfills.js
function(eventData) {
                if (!eventData) {
                    throw new Error('Send event require data');
                }
                console.log('evciInterface.publish', eventData);
                corbel.validate.value('eventType', this.eventType);
                return this.request({
                    url: this._buildUri(this.uri, this.eventType),
                    method: corbel.request.method.POST,
                    data: eventData
                }).then(function(res) {
                    return res;
                });
            }
function(eventData) {
                if (!eventData) {
                    throw new Error('Send event require data');
                }
                console.log('evciInterface.publish', eventData);
                corbel.validate.value('eventType', this.eventType);
                return this.request({
                    url: this._buildUri(this.uri, this.eventType),
                    method: corbel.request.method.POST,
                    data: eventData
                }).then(function(res) {
                    return res;
                });
            }
function ( eventData ) { if ( ! eventData ) { throw new Error ( 'Send event require data' ) ; } console . log ( 'evciInterface.publish' , eventData ) ; corbel . validate . value ( 'eventType' , this . eventType ) ; return this . request ( { url : this . _buildUri ( this . uri , this . eventType ) , method : corbel . request . method . POST , data : eventData } ) . then ( function ( res ) { return res ; } ) ; }
Publish a new event.

@method
@memberOf corbel.Evci.EventBuilder

@param {Object} eventData  The data of the event.

@return {Promise} A promise with the id of the created scope or fails
with a {@link corbelError}.
Publish a new event .