Fix incorrect function declaration of Webmocket.prototype.dispatchEvent()