public static void init() {
   mJWC = new BaseTokenClient();
   mJWC.addListener(new Listener());
   mJWC.addListener(new RpcListener());
   // TODO: this could be improve if we use client plugins.
   Rpc.setDefaultBaseTokenClient(mJWC);
   Rrpc.setDefaultBaseTokenClient(mJWC);
 }
 public static void send(String aString) throws WebSocketException {
   mJWC.send(mURL, DEF_ENCODING);
 }
 public static void close() throws WebSocketException {
   mJWC.close();
 }
 public static void open() throws WebSocketException {
   mJWC.open(mURL);
 }
 public static void sendFile(String aHeader, byte[] aData, String aFilename, String aTarget)
     throws WebSocketException {
   mJWC.sendFile(aHeader, aData, aFilename, aTarget);
 }
 public static void saveFile(byte[] aData, String aFilename, String aScope, Boolean aNotify)
     throws WebSocketException {
   mJWC.saveFile(aData, aFilename, aScope, aNotify);
 }
 public static void broadcastText(String aData) throws WebSocketException {
   mJWC.broadcastText(aData);
 }
 public static void sendText(String aTarget, String aData) throws WebSocketException {
   mJWC.sendText(aTarget, aData);
 }
 public static void sendToken(Token aToken) throws WebSocketException {
   mJWC.sendToken(aToken);
 }