ws-examples
ws-examples copied to clipboard
Examples of using github.com/gobwas/ws
ws examples
Example applications written in Go with
github.com/gobwas/wsinside.
Applications
- [x] Chat
- [ ] Chat CLI
- [ ] Twitter hashtag watcher
Notes
Commands
Currently these commands are developed:
bin/chatthe chat application, which is listening raw tcp socket and handles [jsonrpc]-like messages.bin/proxyproxy that used for two purposes. First of all, to serve static files for chat ui. Second and technical one is to proxy/wsrequests 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
vendoring tool. But instead of using gb git submodules are used to vendor
dependencies. Thus, make vendor will update existing submodules.
Also,
gbdirectory structure is here to signal the heroku buildpack to use appropriate build logic.
Chat application deployed here.