@Override
  public void init() {
    addConnectListener(new ConnectListener() {
      @Override
      public void OnConnectEvent(ConnectEvent evt) {
        fireConnect(evt);
      }
    });
    addReceiveDataListener(new IReceiveDataListener() {
      @Override
      public void OnReceiveDataEvent(ReceiveDataEvent evt) {
        fireReceiveData(evt);
      }
    });
    addDisconnectListener(new DisconnectListener() {
      @Override
      public void OnDisconnectEvent(DisconnectEvent evt) {
        fireDisconnect(evt);
      }
    });

    isInitiate = true;
  }