whycxzp
2025-05-28 559f070ad00a82ccbff884c0192729f4fee74525
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.whyc.webSocket.receiver;
 
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.client.standard.StandardWebSocketClient;
import org.springframework.web.socket.WebSocketHttpHeaders;
import org.springframework.web.socket.sockjs.client.SockJsClient;
import org.springframework.web.socket.sockjs.client.Transport;
import org.springframework.web.socket.sockjs.client.WebSocketTransport;
import java.util.ArrayList;
import java.util.List;
 
@Configuration
public class WebSocketClientConfig {
 
    @Bean
    public ThirdPartyWebSocketHandler thirdPartyWebSocketHandler() {
        return new ThirdPartyWebSocketHandler();
    }
 
}