I could not find any information about the threading model used in Spring, and browsing the source code did not give me a straightforward answer. I was wondering about the threading limitations of using Spring websockets. I suspect the threading model is similar as handling ordinary HTTP request, but I could not find a definite answer.
Is the websocket implementation used by Spring asynchronous or can it block? Is it safe to use a websocket from other threads? Is is possible to configure Spring to only use a single thread to handle all the incoming messages?
I hope somebody can clarify how Spring handles threads in combinations with Websockets.