Skip to content

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

Notifications You must be signed in to change notification settings

davidkelley/real-time-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published