package cn.com.poc.expose.websocket.config;

import cn.com.poc.expose.websocket.SuperLinkWebSocketServer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author alex.yao
 * @date 2023/12/7
 **/
@Configuration
public class SuperLinkWebSocketConfig {

    @Bean
    public SuperLinkWebSocketServer superLinkWebSocketServer() {
        return new SuperLinkWebSocketServer(40088, Runtime.getRuntime().availableProcessors() * 10);
    }

}
