Feature Support for PubNub Lua SDK


PubNub's Channel Presence empowers your applications to Track online and offline status of users and devices in realtime.
Here NowObtain information about the current state of a channel including a list of unique user IDs currently subscribed to the channel and the total occupancy count of the channel.
Where NowObtain information about the current list of a channels to which a UUID is subscribed.


Publish a message on a channel.
Publish RAW JSONPublish JSON as is.
Publish using GET Publish using HTTP GET.
Publish SynchronouslyPublish the message synchronously.
Publish AsynchronouslyPublish the message asynchronously.

Message Persistence

PubNub's Message Persistence feature enables developers to store messages as they are published, and retrieve them at a later time.
Count of Messages on ChannelsThe API is a history based API that simply does a mostly normal history operation but instead of returning the messages in a channel it returns the count of messages. Without actually calling history on those channels this API gives you the ability to say if there are messages in the chat channel you can go look at further.
ReverseTraverse the timeline in reverse starting with the oldest message first.
Start EndTime token delimiting the start/end of time slice (exclusive) to pull messages from.
CountSpecifies the number of historical messages to return.


Return a 17 digit precision Unix epoch from the server.
TimeThis function will return a 17 digit precision Unix epoch from the server.


This function causes the client to create an open TCP socket to the PubNub Real-Time Network and begin listening for messages on a specified channel.
Subscribe to channelsAbility to subscribe to channels.
Subscribe to presence channelsAbility to subscribe to presence channels.
Wildcard subscribeWildcard subscribes allow the client to subscribe to multiple channels using wildcard. E.g., if you subscribe to a.* you will get all messages for a.b, a.c, a.x. The wildcarded * portion refers to any portion of the channel string name after the dot (.).
Last updated on
On this page