Add configurability for underlying WebSocket engine

Issue: SPR-10844
Fix failing tests

Issue: SPR-10825