TakahikoKawasaki / nv-websocket-client

High-quality WebSocket client implementation in Java.
Apache License 2.0
2.03k stars 292 forks source link

subscribe on topics #158

Closed vitaliy-denys closed 6 years ago

vitaliy-denys commented 6 years ago

I cannot subscribe on topics

chanwenbi commented 6 years ago

@vitaliy-denys please let me know any background for your question.

vitaliy-denys commented 6 years ago

@Override public void afterConnected( StompSession session, StompHeaders connectedHeaders) { session.subscribe("/topic", this); }

kantenkugel commented 6 years ago

Does that even have anything to do with nv-websocket-client (the repo you are posting this to)? StompSession (and its subscribe stuff) is Spring framework

TakahikoKawasaki commented 6 years ago

"subscribe to topics"? I'm afraid you are talking about MQTT. WebSocket and MQTT are different.