split net HTTP and WS into independant parts