private void clearSession(final Session session) {
        SESSION_SET.remove(session);
        String namespaceId = getNamespaceId(session);
        if (StringUtils.isNotBlank(namespaceId)) {
            NAMESPACE_SESSION_MAP.getOrDefault(namespaceId, Sets.newConcurrentHashSet()).remove(session);
        }
        ThreadLocalUtils.clear();
    }
Send.

@param namespaceId the namespaceId
@param message the message
@param type the type
shenyu-admin/src/main/java/org/apache/shenyu/admin/listener/websocket/WebsocketCollector.java