Skip to content

how stompclient to connect a websocket variable #82

@zhhzhfya

Description

@zhhzhfya

how stompclient to connect a websocket variable

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!");

		// just here, the client how connect the websocket
		client.xXX(ws);
	}
});

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions