public static WebSocketUpstream buildWebSocketUpstream(final String protocol, final String host, final Integer port, final String namespaceId) {
        return WebSocketUpstream.builder().host(LOCALHOST).protocol(protocol)
                .upstreamUrl(buildUrl(host, port)).weight(DEFAULT_WEIGHT)
                .warmup(Constants.WARMUP_TIME)
                .timestamp(System.currentTimeMillis())
                .status(Objects.nonNull(port) && StringUtils.isNotBlank(host))
                .namespaceId(namespaceId)
                .build();
    }
Build websocket upstream divide upstream.

@param protocol the protocol
@param host     the host
@param port     the port
@param namespaceId the namespaceId
@return the websocket upstream
shenyu-admin/src/main/java/org/apache/shenyu/admin/utils/CommonUpstreamUtils.java