Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
socket_io
main
EngineIO
Client
Decoder
Packet
PacketType
SocketIO
Client
CorrelationID
Decoder
Decoders
BaseDecoder
MsgpackDecoder
Emitter
Event
EventHandler
JsonParser
MsgpackParser
Packet
PacketType
Parser
Built with Crystal 1.9.2
2023-10-07 18:33:34 UTC
class
EngineIO::Decoder
EngineIO::Decoder
Reference
Object
Defined in:
engine_io/decoder.cr
Constructors
.new
(base64 : Bool =
false
)
Instance Method Summary
#base64
: Bool
#decode
(encoded_packet : String | Bytes) : Packet
#encode
(decoded_packet : Packet) : String | Bytes
Constructor Detail
def self.
new
(base64 : Bool =
false
)
#
[
View source
]
Instance Method Detail
def
base64
: Bool
#
[
View source
]
def
decode
(encoded_packet : String | Bytes) :
Packet
#
[
View source
]
def
encode
(decoded_packet :
Packet
) : String | Bytes
#
[
View source
]