https://github.com/go-playground/ws
:raised_hands: ws creates a hub for WebSocket connections and abstracts away allot of the boilerplate code for managing connections using Gorilla WebSocket
https://github.com/go-playground/ws
gorilla-websocket hub websockets
Last synced: 5 months ago
JSON representation
:raised_hands: ws creates a hub for WebSocket connections and abstracts away allot of the boilerplate code for managing connections using Gorilla WebSocket
- Host: GitHub
- URL: https://github.com/go-playground/ws
- Owner: go-playground
- License: mit
- Created: 2017-03-17T23:23:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-17T23:36:55.000Z (over 8 years ago)
- Last Synced: 2024-06-20T02:08:15.724Z (over 1 year ago)
- Topics: gorilla-websocket, hub, websockets
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 8
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Package ws
==========

[](https://semaphoreci.com/joeybloggs/ws)
[](https://coveralls.io/github/go-playground/ws?branch=master)
[](https://goreportcard.com/report/github.com/go-playground/ws)
[](https://godoc.org/github.com/go-playground/ws)
Package ws creates a hub for WebSocket connections and abstracts away allot of the boilerplate code for managing connections using [Gorilla WebSocket](https://github.com/gorilla/websocket). The design of this library was inspired by [Dave Cheney's Talk on first Class Functions](https://www.youtube.com/watch?v=5buaPyJ0XeQ)
Installation
-------------
```shell
go get -u github.com/go-playground/ws
```Examples
---------
- [Basic Usage](https://github.com/go-playground/ws/blob/master/examples/basic/main.go)
- [Custom Client Logic](https://github.com/go-playground/ws/blob/master/examples/custom/main.go)Contributing
------------
Make a pull requestPackage Versioning
----------
I'm jumping on the vendoring bandwagon, you should vendor this package as I will not
be creating different version with gopkg.in like allot of my other libraries.Why? because my time is spread pretty thin maintaining all of the libraries I have + LIFE,
it is so freeing not to worry about it and will help me keep pouring out bigger and better
things for you the community.License
------
Distributed under MIT License, please see license file in code for more details.