diff options
Diffstat (limited to 'src/Client/SocketClient.java')
-rw-r--r-- | src/Client/SocketClient.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Client/SocketClient.java b/src/Client/SocketClient.java new file mode 100644 index 0000000..9ce80a3 --- /dev/null +++ b/src/Client/SocketClient.java @@ -0,0 +1,19 @@ +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); + } + + } +} |