Smart load balancer for websocket and http servers