Your Name
2023-07-05 4ed693f48d1435de7a6333df17c2b34154731429
springboot/src/main/java/com/java110/boot/websocket/MessageWebsocket.java
@@ -155,7 +155,10 @@
     * 实现服务器主动推送
     */
    public void sendMessage(String message) throws IOException {
        this.session.getBasicRemote().sendText(message);
        //this.session.getBasicRemote().sendText(message);
        synchronized (this.session) {
            this.session.getBasicRemote().sendText(message);
        }
    }