netty-socketio icon indicating copy to clipboard operation
netty-socketio copied to clipboard

Add a HTTP endpoint for health check

Open rajan-github opened this issue 9 months ago • 1 comments

Enable a HTTP PORT for Health check. We are configuring websocket port using following configuration-

public SocketIOServer socketIOServer() {
        Configuration configuration = new Configuration();
        configuration.setHostname(hostname);
        configuration.setPort(port);
        return new SocketIOServer(configuration);
    }

But currently, there is no health check endpoint available on configured PORT. Can we please add a health check endpoint to enable library to support liveness probe and readiness probe under kubernetes deployment. @mrniko @unverbraucht

rajan-github avatar Mar 18 '25 13:03 rajan-github

I think the framework like spring-boot, quarkus, micronaut already provided the /health endpoint, you can just implment the health indicator within your framework environment to check the SocketIOServer health metrics (like the ops of messages and last message sent time, and etc.)

NeatGuyCoding avatar Oct 16 '25 01:10 NeatGuyCoding