[fix] Add WebSocket events listeners for the browser
[fix] Add WebSocket events listeners for the browser

Despite `faye-websocket` documentation, the same API also works with the Node.js client.

modulexcite/primus,modulexcite/primus,basarat/primus,STRML/primus,beni55/primus,primus/primus,primus/primus,basarat/primus,clanwqq/primus,dercodebearer/primus,clanwqq/primus,STRML/primus,STRML/primus,colinbate/primus,modulexcite/primus,dercodebearer/primus,beni55/primus,dercodebearer/primus,colinbate/primus,basarat/primus,colinbate/primus,primus/primus,clanwqq/primus,beni55/primus