package cn.van333.mt2ql.wxMessage.config;

import cn.van333.mt2ql.wxMessage.binance.WSClient;
import org.java_websocket.client.WebSocketClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;
import java.net.URISyntaxException;

/**
 * @author Leo
 * @version 1.0
 * @create 2024/03/11 0011 下午 03:57
 * @description：
 */
//@Configuration
public class WebSocketConfig {
    private WebSocketClient client;

    @PostConstruct
    public void init() throws URISyntaxException{
        //client = new WSClient("wss://data-stream.binance.vision/ws/aptusdt@avgPrice");
    }

    @Bean
    public WebSocketClient webSocketClient() {
        return client;
    }
}
