Sha256: f876ee8e511f919654f8fef0f1dab4760c4646413d59dbe9c71a5481a8416302
Contents?: true
Size: 450 Bytes
Versions: 5
Compression:
Stored size: 450 Bytes
Contents
module Bixby module WebSocket class Request < Message def initialize(json_request, id=nil, type="rpc", headers=nil) if json_request.respond_to? :headers then headers = json_request.headers end super(id, type, headers) @hash[:data] = json_request.to_wire @body = MultiJson.dump(@hash) end def json_request JsonRequest.from_json(body) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems