make HTTP and WebSocket work