public void connect(){
try{
//give time to server to start
Thread.sleep(1000);
WampJettyFactory wampFact = WampJettyFactory.getInstance();
//wampFact.getSerializer().setDesiredFormat(WampSerializer.format.BINARY);
wampFact.setWampParameter(new DefaultWampParameter.SimpleClientParameter(getClass().getResourceAsStream("/wamp-client.xml"), getEventListener()));
wamp = wampFact.connect(server.getServerURI(), 1000, 1000, ReconnectPolicy.YES);
waitEventResponse.start();
}catch(Exception e){
log.error("Connection Error", e);