Free up to 1MM monthly messages. No credit card required.
We’ve updated our SDKs, and this code is now deprecated.
Good news is we’ve written a comprehensive guide to building a multiplayer game. Check it out!
Enable multiplayer networking with your mobile games with three functions:
Init PubNub Multiplayer Object
Subscribe()
to begin receiving messages.Publish()
to send messages.Additionally, you can take a look at the Corona SDK website here. We’ll be using the Corona SDK with the multiplayer networking API.
Follow these easy steps to get starting with your Multiplayer API.
To get your PubNub keys, first sign up for a free account. All your keys are available in our Developer’s Portal after signing up.
PubNub is a new kind of Cloud-Hosted Broadcasting Service for Mass Communication on Mobile Phones, Tablets, TVs, HTML5 Web Browsers and Game Consoles. Already more messages are published to PubNub each day than to Twitter. We believe in unified broadcasting and mass communication empowerment for application and game developers who build on Mobile Phones, TVs, HTML5 Web Browsers, Tablets and Game Consoles.
Below are code snippets you’ll need to get going:
You’ll first need to sign up for a PubNub account. Once you sign up, you can get your unique PubNub keys in the PubNub Developer Portal. Once you have, clone the GitHub repository, and enter your unique PubNub keys on the PubNub initialization.
Get Started
Sign up for free and use PubNub to power multiplayer gaming
Display real-time notification badges with PubNub and React Native to display important information and bring users back to your...
Michael Carroll
The concept of Digital Twins has evolved over the last two decades, however, one thing remains the same: the need for real-time...
Michael Carroll
Learn the ins-and-outs of PubNub message size and get a better idea of how many text characters fit in a single message.
Michael Carroll