isapir / lucee-websocket

Enables server WebSockets for Lucee via JSR-356 compliant servlet containers (e.g. Tomcat 8, Jetty 9.1, etc.)
GNU Lesser General Public License v2.1
17 stars 6 forks source link

The remote endpoint was in state [TEXT_FULL_WRITING] which is an invalid state for called method #27

Open psarin opened 2 years ago

psarin commented 2 years ago

Getting the above error after lucee websockets has been running for a while and/or a large number of messages are passed through. The closest thing I could find is the following, where they recommend using wsSession.getAsyncRemote().sendObject(message) rather than wsSession.getBasicRemote().sendObject(message)

https://stackoverflow.com/questions/65269411/websocket-closes-with-protocol-error-1002