Skip to content

Commit 3d4229e

Browse files
committed
pass raw json as well, v0.0.11
1 parent a1e1777 commit 3d4229e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class Connection extends EventEmitter {
175175

176176
else if(payload.type === 'update' || payload.type === 'partial') {
177177
const id = this.toId(payload.market, payload.channel);
178-
this.emit(id, payload.data);
178+
this.emit(id, payload.data, e.data);
179179
}
180180

181181
else {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ftx-api-ws",
3-
"version": "0.0.10",
3+
"version": "0.0.11",
44
"description": "light wrapper for ftx websocket api",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)