Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gobwas/ws-examples
Examples of using github.com/gobwas/ws
https://github.com/gobwas/ws-examples
examples golang websocket
Last synced: 3 days ago
JSON representation
Examples of using github.com/gobwas/ws
- Host: GitHub
- URL: https://github.com/gobwas/ws-examples
- Owner: gobwas
- License: mit
- Created: 2017-08-02T07:06:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-26T06:12:07.000Z (almost 4 years ago)
- Last Synced: 2025-01-21T12:06:20.147Z (10 days ago)
- Topics: examples, golang, websocket
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 211
- Watchers: 8
- Forks: 56
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [ws](https://github.com/gobwas/ws) examples
[![website][website-image]][website-url]
> Example applications written in Go with `github.com/gobwas/ws` inside.
# Applications
- [x] [Chat](https://github.com/gobwas/ws-examples/tree/master/src/chat)
- [ ] Chat CLI
- [ ] Twitter hashtag watcher# Notes
## Commands
Currently these commands are developed:
- `bin/chat` the chat application, which is listening raw tcp socket and
handles [jsonrpc]-like messages.
- `bin/proxy` proxy that used for two purposes. First of all, to serve static
files for chat ui. Second and technical one is to proxy `/ws` requests to
running chat app. This is done only for running on heroku, where only one port
is able to be exported.## Building
All commands can be built by `make *` or by just `make`.
The directory structure is convinient for [gb](https://getgb.io/docs/usage/)
vendoring tool. But instead of using `gb` git submodules are used to vendor
dependencies. Thus, `make vendor` will update existing submodules.> Also, `gb` directory structure is here to signal the heroku buildpack to use
> appropriate build logic.Chat application deployed [here][website-url].
[website-image]: https://img.shields.io/website-up-down-green-red/http/vast-beyond-95791.herokuapp.com.svg?label=running-example
[website-url]: https://vast-beyond-95791.herokuapp.com/#!/chat