console_prefix: The socket name formatted for display on the console

console_prefixR Documentation

The socket name formatted for display on the console

Description

Use colors specific to each websocket for easy visual discernment of which socket is reporting to the console

Usage

console_prefix(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) prefix for console display


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