package com.cm.websocket.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * When you feel like quitting. Think about why you started
 * 当你想要放弃的时候，想想当初你为何开始
 *
 * @ClassName: WebSocketConfig
 * @Description: WebSocket配置
 * @Author: WangGeng
 * @Date: 2020/9/26 11:36
 * @Version: 1.0
 **/
@Configuration
@EnableWebSocket
public class WebSocketConfig {

    @Bean
    public ServerEndpointExporter webSocketEndpoint() {
        return new ServerEndpointExporter();
    }

}
