0
我想與使用Android客戶端的Socket.io服務器連接,但無法與服務器連接,這是我的代碼sinppet,我陷入EVENT_CONNECT_ERROR錯誤消息:io.socket.engineio.client.EngineIOException:服務器錯誤錯誤連接使用Android客戶端的Socket.io服務器
try{
Manager manager = new Manager(new URI(SERVER_URL));
socket = manager.socket(SERVER_NAMESPACE);
socket.on(Socket.EVENT_CONNECT,new Emitter.Listener(){
@Override
public void call(Object... args){
show_Dialog("Conected");
}
}).on(Socket.EVENT_CONNECT_ERROR,new Emitter.Listener(){
@Override
public void call(Object... args){
show_Dialog("Error connecting" + args[0].toString());
}
});
socket.connect();