fix(v4.0.0-beta.2): separator for req_id topic list
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "bybit-api",
|
"name": "bybit-api",
|
||||||
"version": "4.0.0-beta.1",
|
"version": "4.0.0-beta.2",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "bybit-api",
|
"name": "bybit-api",
|
||||||
"version": "4.0.0-beta.1",
|
"version": "4.0.0-beta.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.7.9",
|
"axios": "^1.7.9",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bybit-api",
|
"name": "bybit-api",
|
||||||
"version": "4.0.0-beta.1",
|
"version": "4.0.0-beta.2",
|
||||||
"description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.",
|
"description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"types": "lib/index.d.ts",
|
"types": "lib/index.d.ts",
|
||||||
|
|||||||
@@ -555,7 +555,7 @@ export class WebsocketClient extends BaseWebsocketClient<
|
|||||||
// Previously used to track topics in a request. Keeping this for subscribe/unsubscribe requests, no need for incremental values
|
// Previously used to track topics in a request. Keeping this for subscribe/unsubscribe requests, no need for incremental values
|
||||||
const req_id =
|
const req_id =
|
||||||
['subscribe', 'unsubscribe'].includes(operation) && topics.length
|
['subscribe', 'unsubscribe'].includes(operation) && topics.length
|
||||||
? topics.join('_')
|
? topics.join(',')
|
||||||
: this.getNewRequestId();
|
: this.getNewRequestId();
|
||||||
|
|
||||||
const wsEvent: WsRequestOperationBybit<WsTopic> = {
|
const wsEvent: WsRequestOperationBybit<WsTopic> = {
|
||||||
|
|||||||
Reference in New Issue
Block a user