Websocket RPC+PUB/SUB client library for browser use