package Client; import io.socket.client.IO; import io.socket.client.Socket; import java.net.URISyntaxException; public class SocketClient { public static Socket socket; public SocketClient(String url) { try { socket = IO.socket(url); } catch (URISyntaxException e) { throw new RuntimeException(e); } } }