Added protected API for WebSocket creation