服务访问¶
默认端口映射¶
更多说明¶
业务程序统一从前置的API Gateway接入,通过端口8080访问。
RESTful
协议的访问URL
为http://localhost:8080/weevent-broker/rest
。JsonRPC
协议的访问URL
为http://localhost:8080/weevent-broker/jsonrpc
。STOMP
协议基于WebSocket
的 访问URL
为ws://localhost:8080/weevent-broker/stomp
,如果是基于SockJS
则为http://localhost:8080/weevent-broker/sockjs
。MQTT
协议基于WebSocket
的访问URL
为ws://localhost:8080/weevent-broker/mqtt
。API Gateway也支持HTTPS访问,端口为443。
客户端无论使用
HTTP
还是HTTPS
访问,API Gateway
都是通过HTTP
来访问后端服务。以上说明全是指默认端口, 所有端口都支持自定义配置