Update README

This commit is contained in:
Trevor Slocum 2023-09-13 00:45:54 -07:00
parent 5ecbc5d583
commit cf99329267
3 changed files with 3 additions and 7 deletions

View file

@ -1,10 +1,8 @@
# bgammon - Online backgammon server
# bgammon - Backgammon server powering [bgammon.org](https://bgammon.org)
[![GoDoc](https://code.rocket9labs.com/tslocum/godoc-static/raw/branch/master/badge.svg)](https://docs.rocket9labs.com/code.rocket9labs.com/tslocum/bgammon)
[![Donate via LiberaPay](https://img.shields.io/liberapay/receives/rocket9labs.com.svg?logo=liberapay)](https://liberapay.com/rocket9labs.com)
[![Donate via Patreon](https://img.shields.io/badge/dynamic/json?color=%23e85b46&label=Patreon&query=data.attributes.patron_count&suffix=%20patrons&url=https%3A%2F%2Fwww.patreon.com%2Fapi%2Fcampaigns%2F5252223)](https://www.patreon.com/rocketnine)
**Note:** This is unfinished alpha-quality software. Here be dragons.
## Play
### Browser

View file

@ -21,12 +21,11 @@ type socketClient struct {
}
func newSocketClient(conn net.Conn, commands chan<- []byte, events chan []byte) *socketClient {
c := &socketClient{
return &socketClient{
conn: conn,
events: events,
commands: commands,
}
return c
}
func (c *socketClient) HandleReadWrite() {

View file

@ -28,12 +28,11 @@ func newWebSocketClient(r *http.Request, w http.ResponseWriter, commands chan<-
return nil
}
c := &webSocketClient{
return &webSocketClient{
conn: conn,
events: events,
commands: commands,
}
return c
}
func (c *webSocketClient) HandleReadWrite() {