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
15 lines
192 B
package melody
|
|
|
|
type Channel struct {
|
|
name string
|
|
online int
|
|
session *Session
|
|
}
|
|
|
|
func (c *Channel) Online() int {
|
|
return c.online
|
|
}
|
|
|
|
func (c *Channel) Name() string {
|
|
return c.name
|
|
}
|