@Override
    public void registerWebSocketHandlers(final WebSocketHandlerRegistry registry) {
        registry.addHandler(httpAuthHandler, "myWebSocket")
                .addInterceptors(myInterceptor)
                .setAllowedOrigins("*");
    }
The type Web socket configuration.
eg:   ws://127.0.0.1:9195/ws-native/myWebSocket?token=shenyu
shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-native-websocket/src/main/java/org/apache/shenyu/examples/websocket/config/WebSocketConfig.java