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
package/dist/Classes/Firstock.js
CHANGED
|
@@ -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';
|