- Notifications
You must be signed in to change notification settings - Fork56
Examples of using github.com/gobwas/ws
License
NotificationsYou must be signed in to change notification settings
gobwas/ws-examples
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
ws examples
Example applications written in Go with
github.com/gobwas/ws
inside.
- Chat
- Chat CLI
- Twitter hashtag watcher
Currently these commands are developed:
bin/chat
the chat application, which is listening raw tcp socket andhandles [jsonrpc]-like messages.bin/proxy
proxy that used for two purposes. First of all, to serve staticfiles for chat ui. Second and technical one is to proxy/ws
requests torunning chat app. This is done only for running on heroku, where only one portis able to be exported.
All commands can be built bymake *
or by justmake
.
The directory structure is convinient forgbvendoring tool. But instead of usinggb
git submodules are used to vendordependencies. Thus,make vendor
will update existing submodules.
Also,
gb
directory structure is here to signal the heroku buildpack to useappropriate build logic.
Chat application deployedhere.