trinopoty / socket.io-server-java

Socket.IO Server Library for Java
Other
183 stars 51 forks source link

Middleware support v4 #42

Closed puppanic closed 1 year ago

puppanic commented 1 year ago

Hi @trinopoty , is middleware functionality supported ? If yes, can you give some example ?

stijnb1234 commented 1 year ago

+1, please implement. It would be great for authentication.

trinopoty commented 1 year ago

Hi, I don't think this will be added anytime soon. You can pretty much replicate middleware functionality by adding any custom processing into your servlet/controller before calling the socket.io handler. Similar processing can be done for websocket as well.