requestNum := binary.BigEndian.Uint16(transaction.Type)
if handler, ok := TransactionHandlers[requestNum]; ok {
for _, reqField := range handler.RequiredFields {
requestNum := binary.BigEndian.Uint16(transaction.Type)
if handler, ok := TransactionHandlers[requestNum]; ok {
for _, reqField := range handler.RequiredFields {
// if user was previously idle, mark as not idle and notify other connected clients that
// the user is no longer away
if cc.Idle {
// if user was previously idle, mark as not idle and notify other connected clients that
// the user is no longer away
if cc.Idle {