Recently I needed to implement a custom check for WebSocket connection of a Spring Boot application. The logic had to check if a configured connection limit has been reached, and reject opening further connections if so. The connections were opened by a mobile application client, and the developer wanted to get the error message in… Continue reading Restrict number of connected clients for Websocket