write_msg: Write messages to disk

write_msgR Documentation

Write messages to disk

Description

Write messages based on conditions supplied as options to *Socket object (stored as logfile in private fields).

Usage

write_msg(msg, private)

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

private

(environment) The ⁠*Socket⁠ private environment


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