socket-function 1.2.13 → 1.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "socket-function",
3
- "version": "1.2.13",
3
+ "version": "1.2.14",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
@@ -488,7 +488,7 @@ export async function createCallFactory(
488
488
  let alternates = await SocketFunction.GET_ALTERNATE_NODE_IDS(nodeId);
489
489
  if (alternates) {
490
490
  for (let alternateNodeId of alternates) {
491
- let newWebSocket = createWebsocket(alternateNodeId, proposeProtocols(isNode() ? nodeId : undefined, { lz4: true }));
491
+ let newWebSocket = createWebsocket(alternateNodeId, proposeProtocols(nodeId, { lz4: true }));
492
492
  await initializeWebsocket(newWebSocket, true);
493
493
 
494
494
  if (callFactory.isConnected) {