8000 GitHub - ably-labs/go-chat: Basic Go chat program using Ably for networking.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ably-labs/go-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Important

This repository uses the Ably Pub/Sub approach for building chat apps. We now offer Ably Chat—a new family of SDKs and APIs that streamline development and manage realtime chat complexity for you. For a modern, easier way to create chat experiences, visit our Ably Chat documentation.

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0