public boolean isConnectedToMaster() {
        return isConnectedToMaster;
    }
whether connect to master.

@return whether connect to master
shenyu-sync-data-center/shenyu-sync-data-websocket/src/main/java/org/apache/shenyu/plugin/sync/data/websocket/client/ShenyuWebsocketClient.java