diff --git a/README.md b/README.md index f839024..5c43902 100644 --- a/README.md +++ b/README.md @@ -391,7 +391,7 @@ The signalflow client can be built for usage in a browser. This is accomplished ``` $ npm install -$ gulp browserify +$ npm run build:browser The output can be found at ./build/signalfx.js ``` diff --git a/lib/client/signalflow/signalflow_client.js b/lib/client/signalflow/signalflow_client.js index 952ba4a..9fcac94 100644 --- a/lib/client/signalflow/signalflow_client.js +++ b/lib/client/signalflow/signalflow_client.js @@ -32,6 +32,9 @@ function SignalflowClient(apiToken, options) { } function msgCallback(msg) { + // For handling the non-object typed of the 'msg' data. + if(!msg) return; + if (msg.type === 'metadata') { metaDataMap[msg.tsId] = msg; }