我正在尝试学习Android,我正在寻找这个应用程序:https://github.com/nkzawa/socket.io-android-chat
如何使用端口 XX 将URL更改为 myServerUrl ?
一些代码:
public class ChatApplication extends Application {
private Socket mSocket;
{
try {
mSocket = IO.socket(Constants.CHAT_SERVER_URL);
} catch (URISyntaxException e) {
throw new RuntimeException(e);
}
}
public Socket getSocket() {
return mSocket;
}
}