multi domain support for SSE and WebSocket