PubNub LogoDocs
SupportContact SalesLoginTry Our APIs

›nodeJS

nodeJS

  • Getting Started
  • API Reference

    • Configuration
    • Publish & Subscribe
    • Presence
    • Access Manager
    • Channel Groups
    • Message Persistence
    • Mobile Push
    • Objects
    • Files
    • Message Actions
    • Miscellaneous
  • Status Events
  • Troubleshooting
  • Change Log
  • Feature Support
  • Platform Support

Troubleshooting PubNub Node.js SDK

How to enable logging

Set logVerbosity to true on initialization.

Note

Always set the UUID to uniquely identify the user or device that connects to PubNub. This UUID should be persisted, and should remain unchanged for the lifetime of the user or the device. If you don't set the UUID, you won't be able to connect to PubNub.

// PubNub = require('pubnub');   ES5
import PubNub from 'pubnub';  // ES6

var pubnub = new PubNub({
    subscribeKey: "mySubscribeKey",
    publishKey: "myPublishKey",
    logVerbosity: true,
    uuid: "myUniqueUUID"
});
Note

Copy the logs from the console output of the browser as text and submit to support@pubnub.com

← Status EventsChange Log →
  • How to enable logging
© PubNub Inc. - Privacy Policy