go-hub
is an attempt at providing a simple, easy to use and expandable websocket client-server communication bus.
Currently, go-hub
requires Go version 1.13 or greater.
go get github.com/devodev/go-hub
You can use the provided Dockerfile
to build an image that will provide a clean environment for development purposes.
Instructions that follow assumes you are running Windows
, have Docker Desktop
installed and its daemon is running.
Clone this repository and build the image
$ git clone https://github.com/devodev/go-hub
$ cd ./go-hub
$ docker build --tag=go-hub .
Run a container using the previously built image while mounting the CWD and exposing port 8080
$ docker run \
--rm \
--volume="$(pwd -W):/srv/src/github.com/devodev/go-hub" \
--tty \
--interactive \
-p 8080:8080 \
go-hub
$ root@03e67598a37f:/srv/src/github.com/devodev/go-hub#
Start deving
$ go run .
go: downloading github.com/gorilla/websocket v1.4.2
go: extracting github.com/gorilla/websocket v1.4.2
go: finding github.com/gorilla/websocket v1.4.2
2020/04/17 18:10:34 ListenAndServe: ":8080"
This repository is under heavy development and is subject to change in the near future.
Versioning will be locked and a proper contributing section will be created in a timely manner, when code is stabilized.
go-hub
is released under the MIT license. See LICENSE.txt