Sha256: 8546018aa310e5f5d527240a8a98483e08eb176333f649a57b4978350a97fc7e
Contents?: true
Size: 339 Bytes
Versions: 3
Compression:
Stored size: 339 Bytes
Contents
# frozen_string_literal: true require "msgpack" module Wamp module Serializer # Add common API for serializer class MessagePack def self.encode(message) ::MessagePack.pack(message).unpack("c*") end def self.decode(message) ::MessagePack.unpack(message.pack("c*")) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xconn-0.1.2 | lib/wamp/serializer/message_pack.rb |
xconn-0.1.1 | lib/wamp/serializer/message_pack.rb |
xconn-0.1.0 | lib/wamp/serializer/message_pack.rb |