Skip to content

Go package for interacting with the Stack Exchange chat network

License

Notifications You must be signed in to change notification settings

nathan-osman/go-sechat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-sechat

GoDoc MIT License

The Stack Exchange chat network does not provide an official API. This package aims to bridge that gap for Go applications by providing a simple interface with native Go primitives (channels, etc.).

Features

As go-sechat grows, more and more chat functionality is exposed through the package. Here's a list of just some of the things go-sechat can do:

  • Run completely headless with no UI or embedded browser
  • Login using Stack Exchange credentials
  • Maintain a persistent connection to the chat server; reauthenticating, pausing, and reconnecting when a failure occurs
  • Join, create, leave, and invite users to rooms
  • Perform basic chat activities, such as posting and starring messages
  • Receive a stream of all events from rooms that have been joined
  • Intelligently retry failed messages when throttling occurs
  • Upload images to i.stack.imgur.com

Usage

To use the package in an application, simply import it:

import "github.com/nathan-osman/go-sechat"

Examples are provided in the package documentation.

About

Go package for interacting with the Stack Exchange chat network

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages