Spec requirement
RTC1a: The echoMessages option (default true) should be sent as an echo=true query parameter on the WebSocket connection URL.
Current behaviour
ably-js only sends echo=false when echoMessages is explicitly set to false. When echoMessages is true (the default), no echo parameter is sent — the server defaults to echoing.
Reproduction
RUN_DEVIATIONS=1 npx mocha --no-config --require tsx/cjs 'test/uts/realtime/client/realtime_client.test.ts' --timeout 30000 --grep "RTC1a - echoMessages default sends echo=true"
UTS test
test/uts/realtime/client/realtime_client.test.ts — asserts the WebSocket URL contains echo=true.
┆Issue is synchronized with this Jira Task by Unito
Spec requirement
RTC1a: The
echoMessagesoption (defaulttrue) should be sent as anecho=truequery parameter on the WebSocket connection URL.Current behaviour
ably-js only sends
echo=falsewhenechoMessagesis explicitly set tofalse. WhenechoMessagesistrue(the default), noechoparameter is sent — the server defaults to echoing.Reproduction
UTS test
test/uts/realtime/client/realtime_client.test.ts— asserts the WebSocket URL containsecho=true.┆Issue is synchronized with this Jira Task by Unito