/* SubEtha Peer Events v0.0.0-alpha | github.com/bemson | (c) 2014, APACHE */
!function(c,e,f,k){function b(){function b(g,d,a,c){return!!d&&"string"==typeof d&&"::"!=d.substring(0,2)&&g._transmit("event",c,{type:d,data:1<a.length?h.call(a,1):[]})}var a=e||c?require("subetha-client"):f.Subetha,h=Array.prototype.slice;a.Client.prototype.emit=function(a){return b(this,a,arguments,0)};a.Peer.prototype.send=function(a){return this.state?b(this._client,a,arguments,this.id):!1};return a}c?define(b):e?module.exports=b():f.Subetha&&b()}("function"==typeof define,"undefined"!=typeof exports,
this);