Skip to content

Chat application that uses chirps to connect users to the same channel using the Chirp WebAssembly SDK and PubNub Javascript SDK.

License

Notifications You must be signed in to change notification settings

chandler767/Chirp-PubNub-Chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chirp PubNub Chat

This project is a demo chat application that uses audible chirps to connect users to the same channel using the Chirp WebAssembly SDK and PubNub Javascript SDK.

Use Chirp to connect users to the same chat.

Using Chirp you can eliminate the need to users to manually enter the channel they want to join. The users only need to enable microphone access and turn up their speaker to connect to each other. Chirp is a great alternative to QR codes.

Want to learn more about this project or build a clone from scratch? Check out the tutorial.

PubNub Blog

What is Chirp?

Chirp’s SDKs allows you to send small amounts of data over sound. It is designed to work in noisy everyday environments and doesn’t require perfect silence to work. In my experiments I found that my chirps were received in almost every reasonable scenario I tested.

Chirp

Getting Started

Replace “YOUR_PUBNUB_PUBLISH_KEY_HERE” and “YOUR_PUBNUB_SUBSCRIBE_KEY_HERE” with your Publish Key and Subscribe Key from the PubNub Admin Dashboard.

Replace "YOUR_CHIRP_KEY_HERE" with your Chirp key from the applications page.

Although Chirp sends data completely offline, registration credentials are needed to identify your user account to the SDK, and to configure the SDK with your profile-specific features.

For web-based applications using the Chirp JavaScript or WebAssembly SDKs, applications are identified using your application key, and must be hosted on one of the web origins that you specify in the origins pane of your application.

Important Note: CORS rules won’t allow the browser to load the Chirp WebAssembly SDK directly from the file system.

You must host the files using a server. I recommend http-server to test locally.

Install with NPM:

npm install http-server -g

Start the server from the same directory as your project files:

http-server

Add your origin to the origins pane of your application.

Chirp applications config

Visit http://localhost:8080 to view and test your chat application powered by Chirp and PubNub.