Module PryRemoteEm::Proto
In: lib/pry-remote-em/proto.rb

Methods

Constants

PREAMBLE = 'PRYEM'
SEPERATOR = ' '
PREAMBLE_LEN = PREAMBLE.length
SEPERATOR_LEN = SEPERATOR.length

Public Instance methods

Each frame is a string consisting of 4 parts

  1. preamble (PRYEM)
  2. length in characters of crc, a seperator, and body
  3. CRC
  4. JSON encoded body

It is possible and likely that receive_data will be given more than one frame at a time, or an incomplete frame. @example "PRYEM42 3900082256 {\"g\":\"PryRemoteEm 0.7.0 pryem\"}PRYEM22 1794245389 {\"a\":false}"

[Validate]