Sha256: a9874138e6d30d368787cf016a932537448c0bd1234b8801c4c2be23827e1df3

Contents?: true

Size: 796 Bytes

Versions: 1

Compression:

Stored size: 796 Bytes

Contents

# The UUID comes from: 
# http://tools.ietf.org/html/rfc6455#page-23
#
# The opcode definitions come from:
# http://tools.ietf.org/html/rfc6455#section-11.8
module FTW::WebSocket::Constants
  WEBSOCKET_ACCEPT_UUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"

  # Indication that this frame is a continuation in a fragmented message
  # See RFC6455 page 33.
  OPCODE_CONTINUATION = 0

  # Indication that this frame contains a text message
  OPCODE_TEXT = 1

  # Indication that this frame contains a binary message
  OPCODE_BINARY = 2

  # Indication that this frame is a 'connection close' message
  OPCODE_CLOSE = 8

  # Indication that this frame is a 'ping' message
  OPCODE_PING = 9

  # Indication that this frame is a 'pong' message
  OPCODE_PONG = 10
end # module FTW::WebSocket::Constants

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ftw-0.0.7 lib/ftw/websocket/constants.rb