From d11743af1c96598872379edb63e9c973a95a3f65 Mon Sep 17 00:00:00 2001 From: daniel-exceed <30625263+daniel-exceed@users.noreply.github.com> Date: Thu, 7 Feb 2019 19:13:50 +0200 Subject: [PATCH] remove array slice of subscribe headers (#96) * subscribe headers properly typped * remove array slice of subscribe headers * init properly headers --- src/client.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.jsx b/src/client.jsx index 6128529..2360517 100644 --- a/src/client.jsx +++ b/src/client.jsx @@ -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) } }