Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WebSocket support for StompClient #28

Open
zhelezkov opened this issue Aug 16, 2017 · 3 comments
Open

Add WebSocket support for StompClient #28

zhelezkov opened this issue Aug 16, 2017 · 3 comments

Comments

@zhelezkov
Copy link

zhelezkov commented Aug 16, 2017

Add WebSocket support for StompClient

@zhelezkov zhelezkov changed the title WebSocket support for StompClient Add WebSocket support for StompClient Aug 16, 2017
@cescoffier
Copy link
Member

@rsredsq What do you mean? Having a stomp client connecting to a stomp server using web sockets instead of TCP?

@zhelezkov
Copy link
Author

@cescoffier exactly!

@zhhzhfya
Copy link

zhhzhfya commented Mar 8, 2023

Hi friends:
I have the same problem, how stompclient to connect a websocket variable? thanks
like :

StompClient client = StompClient.create(vertx,new StompClientOptions().setHost("localhost").setPort(1234));

HttpClientOptions htpClientOptions = new HttpClientOptions().setKeepAlive(false);
HttpClient httpClient = vertx.createHttpClient(htpClientOptions);
httpClient.webSocket("http://172.16.123.30:80/ws", res -> {
	if (res.succeeded()) {
		WebSocket ws = res.result();
		System.out.println("Connected!");
		
		client.xXX(ws);
	}
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants