Skip to content

gkiryaziev/go-ws-client

Repository files navigation

Golang Publish/Subscribe Websocket Client

Go Report Card

Go websocket client with Gorilla toolkit.

This client was written for the Raspberry Pi 2. At this time, you can get Cpu temp and memory, and System memory total, used and free. Led implemented only as a stub, work continues on them. With this client you can subscribe, unsubscribe and publish messages. Implementation of Public/Subscribe server can be found here.

ACTION - SUBSCRIBE, UNSUBSCRIBE, PUBLISH

Message example:

{"action" : "ACTION", "topic" : "TOPIC NAME", "data" : "DATA"}

Mind

Installation:

go get github.com/gkiryaziev/go-ws-client

Edit configuration:

Copy `config.default.yaml` to `config.yaml` and edit configuration.

Build and Run:

go build && go-ws-client

Packages:

You can use glide packages manager to get all needed packages.

go get -u -v github.com/Masterminds/glide

cd go-ws-client && glide install

About

Golang Publish/Subscribe Websocket Client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages