服务访问

默认端口映射

../_images/port.png

更多说明

  • 业务程序统一从前置的API Gateway接入,通过端口8080访问。

    RESTful协议的访问URLhttp://localhost:8080/weevent-broker/rest

    JsonRPC协议的访问URLhttp://localhost:8080/weevent-broker/jsonrpc

    STOMP协议基于WebSocket的 访问URLws://localhost:8080/weevent-broker/stomp,如果是基于SockJS则为http://localhost:8080/weevent-broker/sockjs

    MQTT协议基于WebSocket的访问URLws://localhost:8080/weevent-broker/mqtt

  • API Gateway也支持HTTPS访问,端口为443。

    客户端无论使用HTTP还是HTTPS访问,API Gateway都是通过HTTP来访问后端服务。

  • 以上说明全是指默认端口, 所有端口都支持自定义配置