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


yogat3ch/AlpacaforR documentation built on July 2, 2023, 10:48 a.m.