There is no output when using java websocket, why is this?

Hi, it looks like you’re using some sort of testing framework. Can you try the following snippet outside of a testing scenario and see if you get output?

import com.binance.connector.client.impl.WebsocketClientImpl;

public final class AllTickerStream {
    private AllTickerStream() {
    }

    public static void main(String[] args) {
        WebsocketClientImpl client = new WebsocketClientImpl();
        client.allTickerStream(((event) -> {
            System.out.println(event);
            client.closeAllConnections();
        }));
    }
}

I get the following output which is as expected:

Thank you very much, I have been confused for a long time :sweat_smile: