Code Monkey home page Code Monkey logo

chirp-pubnub-chat's Introduction

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.

chirp-pubnub-chat's People

Contributors

chandler767 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.