Examples of using github.com/gobwas/ws
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
Example applications written in Go withgithub.com/gobwas/wsinside.
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.
All commands can be built by
make *or by just
The directory structure is convinient for gb vendoring tool. But instead of using
gbgit submodules are used to vendor dependencies. Thus,
make vendorwill update existing submodules.
Also,gbdirectory structure is here to signal the heroku buildpack to use appropriate build logic.
Chat application deployed here.