public static SocketIO getInstance() { if (instance == null) { instance = new SocketIO(); instance.InitSocket(); } return instance; }