Feature Support for PubNub Lua SDK

Presence

PubNub's Channel Presence empowers your applications to Track online and offline status of users and devices in realtime.
NameDescription
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

Publish a message on a channel.
NameDescription
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.
NameDescription
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.

Time

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

Subscribe

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.
NameDescription
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