firstock 1.1.0 → 1.2.0

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/Readme.md CHANGED
@@ -5,7 +5,7 @@ To communicate with the Firstock Developer API using Nodejs, you can use the off
5
5
  Licensed under the MIT License.
6
6
 
7
7
 
8
- [Version - 1.0.9](https://www.npmjs.com/package/firstock)
8
+ [Version - 1.2.0](https://www.npmjs.com/package/firstock)
9
9
 
10
10
 
11
11
  ## Documentation
@@ -1857,7 +1857,7 @@ class Firstock extends AFirstock_1.default {
1857
1857
  */
1858
1858
  initializeWebsockets(userId, model, config) {
1859
1859
  return __awaiter(this, void 0, void 0, function* () {
1860
- const finalConfig = Object.assign({ scheme: 'wss', host: 'socket.firstock.in', path: '/ws', source: 'developer-api', accept_encoding: 'gzip, deflate, br', accept_language: 'en-US,en;q=0.9', origin: 'https://firstock.in', max_websocket_connection_retries: 3, time_interval: 5 }, config);
1860
+ const finalConfig = Object.assign({ scheme: 'wss', host: 'socket.firstock.in/V2', path: '/ws', source: 'developer-api', accept_encoding: 'gzip, deflate, br', accept_language: 'en-US,en;q=0.9', origin: 'https://firstock.in', max_websocket_connection_retries: 3, time_interval: 5 }, config);
1861
1861
  const [baseUrl, headers, err] = (0, websocket_functions_1.getUrlAndHeaderData)(userId, finalConfig);
1862
1862
  if (err) {
1863
1863
  return [null, { error: { message: err.message } }];
@@ -202,7 +202,7 @@ function _clearShutdownFlag(ws) {
202
202
  }
203
203
  function getUrlAndHeaderData(userId, config) {
204
204
  const scheme = config.scheme || 'wss';
205
- const host = config.host || 'socket.firstock.in';
205
+ const host = config.host || 'socket.firstock.in/V2';
206
206
  const path = config.path || '/ws';
207
207
  const srcVal = config.source || 'API';
208
208
  const acceptEncoding = config.accept_encoding || 'gzip, deflate, br';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firstock",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Node js package for using firstock developer apis",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",