We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afe5479 commit 101e6b7Copy full SHA for 101e6b7
languages/javascript/src/shared/Transport/index.mjs
@@ -56,7 +56,12 @@ function getImplementation() {
56
implementation = win.__firebolt.transport
57
}
58
else if (win.__firebolt.endpoint) {
59
- implementation = new WebsocketTransport(win.__firebolt.endpoint)
+ // Only adds RPCv2=true query parameter when using bidirectional SDK.
60
+ // This parameter will not be present when using unidirectional SDK.
61
+ // Unidirectional endpoint is handled in Gateway/Unidirectional.mjs
62
+ const endpoint = win.__firebolt.endpoint
63
+ const url = endpoint + (endpoint.includes('?') ? '&' : '?') + 'RPCv2=true'
64
+ implementation = new WebsocketTransport(url)
65
66
else {
67
implementation = MockTransport
0 commit comments