RabbitMQ Web STOMP without SockJS

橙三吉。 提交于 2020-02-20 05:45:50

问题


Is it possible to setup RabbitMQ Web STOMP connection without SockJS library?

I have played around with rabbitmq-web-stomp plugin without a success as the initial response generated by the server is Welcome to SockJS! (which is obviously not a STOMP based message).

Is SockJS really required? What does it bring into the game (besides legacy browser support)?


回答1:


SockJS protocol does support raw WebSocket clients under /websocket path.

Any SockJS server complying with 0.3 protocol does support a raw WebSocket url. The raw WebSocket url for the test server looks like:

ws://localhost:8081/echo/websocket

You can connect any WebSocket RFC 6455 compliant WebSocket client to this url.

This is supported by Rabbit's implementation as well. So the default endpoint is: http://example.com:15674/stomp/websocket.



来源:https://stackoverflow.com/questions/29217428/rabbitmq-web-stomp-without-sockjs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!