Sha256: e6118697540e157cb8d3c676ea0205e8b9bb4f0208bfa1bb7158c41a45d63ef9

Contents?: true

Size: 501 Bytes

Versions: 2

Compression:

Stored size: 501 Bytes

Contents

module NATS
  module Protocol
    MSG: Regexp
    HMSG: Regexp
    OK: Regexp
    ERR: Regexp
    PING: Regexp
    PONG: Regexp
    INFO: Regexp
    UNKNOWN: Regexp

    AWAITING_CONTROL_LINE: 1
    AWAITING_MSG_PAYLOAD: 2

    CR_LF: '\r\n'
    CR_LF_SIZE: Integer

    PING_REQUEST: String
    PONG_RESPONSE: String

    SUB_OP: 'SUB'
    EMPTY_MSG: ''

    class Parser
      def initialize: (NATS::Client) -> void

      def reset!: () -> void

      def parse: (String) -> void
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nats-pure-2.4.0 sig/nats/io/parser.rbs
nats-pure-2.3.0 sig/nats/io/parser.rbs