event_channel: Get the event channel

event_channelR Documentation

Get the event channel

Description

Given a msg object return the channel from which it came

Usage

event_channel(msg)

Arguments

msg

(msg/tbl) The msg tibble object returned from msg() which consists of the following:

  • ts (POSIXct) timestamp

  • socket (character) the socket over which the message arrived

  • channel (character) the channel over which the message arrived

  • ... (varies) all fields encoded in the event data JSON

Value

(character) the channel


jagg19/AlpacaforR documentation built on July 3, 2023, 12:14 p.m.