Sha256: 68034e1710244c09d6a3d7f3b8f77b7baff8838140c315cafec0fa7559a7334f

Contents?: true

Size: 870 Bytes

Versions: 41

Compression:

Stored size: 870 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 uuid, used in hash signing of websocket responses (RFC6455)
  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

41 entries across 41 versions & 1 rubygems

Version Path
ftw-0.0.49 lib/ftw/websocket/constants.rb
ftw-0.0.48 lib/ftw/websocket/constants.rb
ftw-0.0.47 lib/ftw/websocket/constants.rb
ftw-0.0.46 lib/ftw/websocket/constants.rb
ftw-0.0.45 lib/ftw/websocket/constants.rb
ftw-0.0.44 lib/ftw/websocket/constants.rb
ftw-0.0.43 lib/ftw/websocket/constants.rb
ftw-0.0.42 lib/ftw/websocket/constants.rb
ftw-0.0.41 lib/ftw/websocket/constants.rb
ftw-0.0.40 lib/ftw/websocket/constants.rb
ftw-0.0.39 lib/ftw/websocket/constants.rb
ftw-0.0.38 lib/ftw/websocket/constants.rb
ftw-0.0.37 lib/ftw/websocket/constants.rb
ftw-0.0.36 lib/ftw/websocket/constants.rb
ftw-0.0.35 lib/ftw/websocket/constants.rb
ftw-0.0.34 lib/ftw/websocket/constants.rb
ftw-0.0.33 lib/ftw/websocket/constants.rb
ftw-0.0.32 lib/ftw/websocket/constants.rb
ftw-0.0.31 lib/ftw/websocket/constants.rb
ftw-0.0.30 lib/ftw/websocket/constants.rb