Go client package for the Ninchat API. Compatible with GopherJS (see also ninchat-js). Uses Gorilla WebSocket package with native Go.
The implementation uses few standard packages directly in order to reduce generated JavaScript code size. Subsets of encoding/json, math/rand, net/http and time packages are wrapped for native Go, and reimplemented using web browser APIs for GopherJS.