blob: e454d08e5801c68f03acafdd2785a7690fe002bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
package hotline
// HandlerFunc is the signature of a func to handle a Hotline transaction.
type HandlerFunc func(*ClientConn, *Transaction) []Transaction
func (s *Server) HandleFunc(tranType [2]byte, handler HandlerFunc) {
s.handlers[tranType] = handler
}
// The total size of a chat message data field is 8192 bytes.
const LimitChatMsg = 8192
|