]> git.r.bdr.sh - rbdr/mobius/blame - hotline/transaction_handlers.go
Account for the root
[rbdr/mobius] / hotline / transaction_handlers.go
CommitLineData
6988a057
JH
1package hotline
2
a2ef262a
JH
3// HandlerFunc is the signature of a func to handle a Hotline transaction.
4type HandlerFunc func(*ClientConn, *Transaction) []Transaction
5
fd740bc4
JH
6func (s *Server) HandleFunc(tranType [2]byte, handler HandlerFunc) {
7 s.handlers[tranType] = handler
6988a057
JH
8}
9
6dabc6b4 10// The total size of a chat message data field is 8192 bytes.
fd740bc4 11const LimitChatMsg = 8192