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.
Name | Description |
---|---|
Here Now | Obtain 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 Now | Obtain information about the current list of a channels to which a UUID is subscribed. |
Publish
Publish a message on a channel.
Name | Description |
---|---|
Publish RAW JSON | Publish JSON as is. |
Publish using GET | Publish using HTTP GET. |
Publish Synchronously | Publish the message synchronously. |
Publish Asynchronously | Publish 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.
Name | Description |
---|---|
Count of Messages on Channels | The 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. |
Reverse | Traverse the timeline in reverse starting with the oldest message first. |
Start End | Time token delimiting the start/end of time slice (exclusive) to pull messages from. |
Count | Specifies the number of historical messages to return. |
Time
Return a 17 digit precision Unix epoch from the server.
Name | Description |
---|---|
Time | This 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.
Name | Description |
---|---|
Subscribe to channels | Ability to subscribe to channels. |
Subscribe to presence channels | Ability to subscribe to presence channels. |
Wildcard subscribe | Wildcard 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 (.). |