code: def _wrap_callback_parse_link_event(subscription, on_data, message):
      
      if message.type == message.DATA:
          if message.data.type == yamcs_pb2.LINK_EVENT:
              link_message = getattr(message.data, 'linkEvent')
              link_event = LinkEvent(link_message)
              #pylint: disable=protected-access
              subscription._process(link_event)
              if on_data:
                  on_data(link_event)
docs: Wraps a user callback to parse LinkEvents
      from a WebSocket data message