Skip to content

echoMessages default does not send echo=true query parameter (RTC1a) #2206

@paddybyers

Description

@paddybyers

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working. It's clear that this does need to be fixed.uts-issueIssues raised there there is an apparent discrepancy between this library and the UTS tests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions