websocket 增加多分组 fork https://github.com/olahol/melody
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
192 B

5 years ago
5 years ago
5 years ago
5 years ago
  1. package melody
  2. type Channel struct {
  3. name string
  4. online int
  5. session *Session
  6. }
  7. func (c *Channel) Online() int {
  8. return c.online
  9. }
  10. func (c *Channel) Name() string {
  11. return c.name
  12. }