server handles websockets correctly