Skip to content

Commit

Permalink
remove array slice of subscribe headers (#96)
Browse files Browse the repository at this point in the history
* subscribe headers properly typped

* remove array slice of subscribe headers

* init properly headers
  • Loading branch information
daniel-exceed authored and lahsivjar committed Feb 7, 2019
1 parent b212ef6 commit d11743a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class SockJsClient extends React.Component {
if (!this.subscriptions.has(topic)) {
let sub = this.client.subscribe(topic, (msg) => {
this.props.onMessage(this._processMessage(msg.body), msg.headers.destination)
}, Lo.slice(this.props.subscribeHeaders))
}, this.props.subscribeHeaders)
this.subscriptions.set(topic, sub)
}
}
Expand Down

0 comments on commit d11743a

Please sign in to comment.