An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/nathan-osman/go-sechat

Package go-sechat aims to bridge the gap between the Stack Exchange chat network and Go applications by providing a simple interface with native Go primitives. In order to make requests, create a `Conn` object: Since authentication and connection are done asynchronously, waiting for them to complete is highly recommended: To join an additional room, use the `Join()` method: To leave, use the (appropriately named) `Leave()` method: To obtain a list of users in the room, use `UsersInRoom()`: To obtain a list of rooms that a user is in, use `User()`: The `NewRoom()` method can be used to create new rooms: In the example above, `r` is an `int` containing the ID of the new room that was created. To receive events from the chat server, simply receive from the `Events` channel in `Conn`: To post a message, simply invoke `Send()`: If the message is in response to an earlier event, the `Reply()` method is also available: To upload an image, prepare an `io.Reader` and pass it to `Image()`: In the example above, `u` is the URL of the newly uploaded image.

Registry - Source - Documentation - JSON - codemeta.json
purl: pkg:golang/github.com/nathan-osman/go-sechat
Keywords: golang , stack-exchange , stack-exchange-chat
License: MIT
Latest release: over 8 years ago
First release: over 8 years ago
Namespace: github.com/nathan-osman
Stars: 5 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 2 months ago

    Loading...
    Readme
    Loading...