code: func (c *Connection) isNotificationMessage(msgID uint16) bool {
  	c.subscriptionsLock.RLock()
  	defer c.subscriptionsLock.RUnlock()
  
  	_, exists := c.subscriptions[msgID]
  	return exists
  }
docs: // isNotificationMessage returns true if someone has subscribed to provided message ID.