Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion languages/javascript/src/shared/Transport/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ function getImplementation() {
implementation = win.__firebolt.transport
}
else if (win.__firebolt.endpoint) {
implementation = new WebsocketTransport(win.__firebolt.endpoint)
// Only adds RPCv2=true query parameter when using bidirectional SDK.
// This parameter will not be present when using unidirectional SDK.
// Unidirectional endpoint is handled in Gateway/Unidirectional.mjs
const endpoint = win.__firebolt.endpoint
const url = endpoint + (endpoing.includes('?') ? '&' : '?') + 'RPCv2=true'
implementation = new WebsocketTransport(url)
}
else {
implementation = MockTransport
Expand Down
Loading