Skip to content

Commit

Permalink
Added comments to ws package methods
Browse files Browse the repository at this point in the history
  • Loading branch information
vasiliy-t committed Oct 4, 2015
1 parent 307e887 commit df4c29f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ws/ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ func Server(name string) *server {
return servers[name]
}

//append adds client to current server instance
// subscribe adds client to current server instance
func (serv *server) subscribe(c *client) {
serv.clients[c] = 0
}

// unsubscribe removes client from specified server instance
func (serv *server) unsubscribe(c *client) {
delete(serv.clients, c)
}
Expand Down

0 comments on commit df4c29f

Please sign in to comment.