These docs are for PubNub 4.0 for Ruby which is our latest and greatest! For the docs of the older versions of the SDK, please check PubNub 3.0 for Ruby.
If you have questions about the PubNub for Ruby SDK, please contact us at email@example.com.
By default PubNub SDK keep logs in
pubnub.log located in the script direcotry. You can pass custom logger as
:logger parameter during initialization of the client.
| ||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. Not setting the
UUID can significantly impact your billing if your account uses the Monthly Active Users (MAUs) based pricing model, and can also lead to unexpected behavior if you have Presence enabled.
logger = Logger.new(...)
logger.level = Logger::DEBUG
pubnub = Pubnub.new(
The version is hold by
VERSION constant in the