Class: SocketIo::Packet::MessagePacket

Inherits:
SocketIo::Packet show all
Defined in:
lib/socket.io/packet/message_packet.rb

Constant Summary

Constants inherited from SocketIo::Packet

PACKET_REGEX, PACKET_TYPES

Instance Attribute Summary

Attributes inherited from SocketIo::Packet

#ack, #data, #endpoint, #id

Instance Method Summary collapse

Methods inherited from SocketIo::Packet

#ackdata?, #initialize, #json, parse, parse_json

Constructor Details

This class inherits a constructor from SocketIo::Packet

Instance Method Details

#to_sObject



6
7
8
# File 'lib/socket.io/packet/message_packet.rb', line 6

def to_s
  super json
end

#type_idObject



4
# File 'lib/socket.io/packet/message_packet.rb', line 4

def type_id; 3; end