/real-time-chat

Real-time chat that takes advantage of MQTT over Websockets through AWS IoT

Primary LanguageHTML

Real-Time Chat

Chat in Action

"Ferret Chat" is a real-time chat project that takes advantage of MQTT over Websockets through AWS IoT. It uses restricted permission credentials to establish a connection over a signed URL (SigV4), using Paho as the client.

The project also includes a very simple client interface for letting you chat.

Getting Started

  1. Launch the Cloudformation to setup an IAM User with restricted permissions as well as an IoT Thing (which provides an endpoint you can connect to).

  2. Copy the outputs from the Cloudformation, whilst will provide a set of AWS Credentials which will be used to connect to the "chat room".

  3. In the AWS IoT Console, copy the host domain name for the Thing, ie. my-endpoint.iot.us-east-1.amazonaws.com

  4. Load up client/index.html in your browser.

  5. Enter in the IoT Endpoint, the copied Access Key and Secret and hit connect.

  6. Once connected, the interface will send a message to the chat room telling everyone that you've connected.

  7. Connect using multiple tabs or browsers to increase the number of participants.