ably-labs / go-chat

Basic Go chat program using Ably for networking.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ably Go Terminal Chat

Basic Go chat program using Ably for networking.

Setup

Firstly you need to replace the YOUR_API_KEY text in .env.example with your Ably API key and re-name the file to .env. You can sign up for an account with Ably and access your API key from the app dashboard. We keep the API key in .env and ignore it in .gitignore to avoid accidentally sharing the API key.

Next, run the application with the following line, specifying your ClientID as an argument, and you're ready to start communicating over Ably!

~ $ go run chat.go YOUR_USERNAME

About

Basic Go chat program using Ably for networking.

License:Apache License 2.0


Languages

Language:Go 93.0%Language:Shell 7.0%