From 95a497938c3821c39d5de836620f6eb7c7c020ed Mon Sep 17 00:00:00 2001 From: CaptainB Date: Tue, 30 Jan 2024 20:38:48 +0800 Subject: [PATCH] refactor: websocket config --- .../metersphere/system/config/WebSocketConfig.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 backend/services/system-setting/src/main/java/io/metersphere/system/config/WebSocketConfig.java diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/config/WebSocketConfig.java b/backend/services/system-setting/src/main/java/io/metersphere/system/config/WebSocketConfig.java new file mode 100644 index 0000000000..0f58480eba --- /dev/null +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/config/WebSocketConfig.java @@ -0,0 +1,13 @@ +package io.metersphere.system.config; + +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.web.socket.server.standard.ServerEndpointExporter; + +@Configuration +public class WebSocketConfig { + @Bean + public ServerEndpointExporter serverEndpointExporter() { + return new ServerEndpointExporter(); + } +}