How to increase output buffer for spring sockjs websocket server implementation

后端 未结 3 1145
孤城傲影
孤城傲影 2020-12-17 18:47

I have used spring implementation of sockjs websocket server and unable to transmit message over 8KB, following is the error

2014-02-12 19:36:29,990 - org.sp         


        
3条回答
  •  爱一瞬间的悲伤
    2020-12-17 19:03

    You can configure the websocket engine and increase the buffer size.

    Watch out, depending on the actual size you'd like to use, remember that those messages will be buffered entirely in memory! You may want to consider using partial messages if your client supports it.

提交回复
热议问题