Change from ws.on('message') to ws.onmessage for browser compat.
Change from ws.on('message') to ws.onmessage for browser compat.

darkdarkdragon/ripple-lib,ripple/ripple-lib,wilsonianb/ripple-lib,wilsonianb/ripple-lib,ripple/ripple-lib,darkdarkdragon/ripple-lib,darkdarkdragon/ripple-lib,ripple/ripple-lib,wilsonianb/ripple-lib,ripple/ripple-lib