This application demonstrates how to integrate Pusher with a JavaScript application to implement a who is typing feature. It is accompanied by a tutorial that can be found here.
In order to run this application successfully on your local machine, you need to have Node.js installed. Head over to https://nodejs.org/en/download/ to download and install Node.js for your version of operating system.
To get this project up and running on your local machine for development and testing, please follow the following instructions:
- Create an app on Pusher and copy your app's id, key, and secret.
- Clone this repository and
cd
into it. - Execute
npm install
to download dependencies. - Update server.js with your Pusher Credentials.
- Execute
node server.js
to set the environment variables needed by the app with your Pusher info and start it. - Go to
http://localhost:3000
and start playing with the app. You can open multiple tabs and type on each tab to know who is typing.
- [Node.js]((https://nodejs.org/en/download/) - Server side Javascript runtime
- Pusher - APIs to enable devs building realtime features