[middleware] websocketServer - check the params before creating socket io