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.
|
|
package app
import ( "github.com/ouxuanserver/osmanthuswine/src/core" "gopkg.in/olahol/melody.v1" )
type Wstest struct { core.WebSocket }
func (that *Wstest) HandleConnect(session *melody.Session) { //implement
}
func (that *Wstest) HandlePong(session *melody.Session) { //implement
}
func (that *Wstest) HandleMessage(session *melody.Session, data []byte) { that.GetMelody().Broadcast(data) //implement
}
func (that *Wstest) HandleMessageBinary(session *melody.Session, data []byte) { //implement
}
func (that *Wstest) HandleSentMessage(session *melody.Session, data []byte) { //implement
}
func (that *Wstest) HandleSentMessageBinary(session *melody.Session, data []byte) { //implement
}
func (that *Wstest) HandleDisconnect(session *melody.Session) { //implement
}
func (that *Wstest) HandleError(session *melody.Session, err error) { //implement
}
|