whycxzp
2025-05-29 7d45db8d9d03a890e589c6b53980afdac180e029
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();
    }
 
}