msg: Create a message ('msg') from an event

msgR Documentation

Create a message (msg) from an event

Description

Create a message (msg) from an event

Usage

msg(event, msg = NULL, channel = NULL)

Arguments

event

(list) sole argument to the websocket onMessage callback

msg

(character) A message to be used if the event has no corresponding message

channel

(character) a default for channel if it cannot be assumed from the event. See ⁠\link[AlpacaforR]{event_channel}⁠


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