socketio / socket.io-client-java

Full-featured Socket.IO Client Library for Java, which is compatible with Socket.IO v1.0 and later.
https://socketio.github.io/socket.io-client-java/installation.html
Other
5.34k stars 977 forks source link

in the this one the depencies are not dwonloading for me #765

Closed visaladi closed 7 months ago

visaladi commented 7 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce

Please fill the following code example:

Socket.IO server version: x.y.z

Server

import { Server } from "socket.io";

const io = new Server(8080);

io.on("connection", (socket) => {
  // ...
});

Socket.IO java client version: x.y.z

Client

public class MyApplication {
    public static void main(String[] args) throws URISyntaxException {
        IO.Options options = IO.Options.builder()
                .build();

        Socket socket = IO.socket("http://localhost:8080", options);

        socket.on(Socket.EVENT_CONNECT, new Emitter.Listener() {
            @Override
            public void call(Object... args) {
                System.out.println("connect");
            }
        });

        socket.open();
    }
}

Expected behavior A clear and concise description of what you expected to happen.

Platform:

Additional context Add any other context about the problem here.