反馈已提交

网络繁忙

You are viewing 5.1 help doc. More details are displayed in the latest help doc.

Introduction to WebSocket

  • Recent Updates: July 12, 2022
  • Ⅰ. Overview

    1. Version

    BI server version

    JAR package version

    new features

    5.1

    -

    -

    5.1

    2019-11-08

    The WebSocket forwarding port   field is changed from WebSocketConfig.requestPort to   WebSocketConfig.requestPortS

    WebSocket forwarding port supports setting multiple values

    5.1.5

    2020-09-02

    When the WebSocket is not   connected, the administrator logs in to the platform and removes the pop-up   prompt at the top .

    Websocket is not connected, the token can be automatically refreshed


    2. Function introduction

    websocket from the following points.

    1) Why set up websocket

    2) What happens if websocket is not set

    3) How to set up websocket

    4) How to troubleshoot if the websocket setting does not take effect

    Ⅱ.The role of WebSocket

    WebSocket allows the server to actively push data to the client.

    In the WebSocket API, the client and the server only need to complete a handshake once, and a persistent connection can be created directly between the two, and two-way data transmission can be performed.

    WebSocket is mainly used to refresh the token, the user is kicked out, the platform message, the memory and CPU display, the current system online number in the platform log, and the determination of the editing status of the data connection.

    Ⅲ. WebSocket port configuration

    1. Default Port

    FineBI project is configured with WebSocket port and WebSocket forwarding port by default.

    According to different engineering environments, the effective order of the two ports is not exactly the same. According to the effective order, it will try to listen in turn. If one port is successfully monitored, other ports will not be tried.

    port

    JAR package

    ID

    Defaults

    support

    set multiple values

    Websocket port

    -

    WebSocketConfig.port

    ["48888", "49888"]

    support

    Websocket forwarding port

    Before 2019-11-08

    WebSocketConfig.requestPort

    48889

    support

    2019-11-08 and after

    WebSocketConfig.requestPorts

    48889

    support


    2. Configuration method

    Users can choose the appropriate WebSocket port configuration method according to their own project conditions. For details, please refer to the following table:

    Scenes

    Configuration method

    Configuring the WebSocket Port in a Single-Server Environment

    Single machine configuration WebSocket port

    Cluster environment configuration WebSocket port

    Cluster configuration WebSocket port

    HTTPS environment configuration Websocket port

    Configuring WebSockets in an HTTPS Environment

    Only open one port to the outside world

    Do not open additional ports for WebSocket

    Ⅳ. Websocket connection failed

    websocket still fails to connect after configuring according to the WebSocket port configuration method in Section 3.2 , please refer to the documentation for troubleshooting: WebSocket connection failed

     

    Attachment List


    Theme: Admin Guide
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    售前咨询电话

    400-811-8890转1

    在线技术支持

    在线QQ:800049425

    热线电话:400-811-8890转2

    总裁办24H投诉

    热线电话:173-1278-1526

    文 档反 馈

    鼠标选中内容,快速反馈问题

    鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。

    不再提示

    10s后关闭