Fixes on the WIP "ipc/json" library.
This fixes parse_ipc_json that had a quite useless prototype, it now looks functionnal enough.ipc07
parent
0f52ca1b2a
commit
319573bb1e
|
@ -33,7 +33,7 @@ end
|
|||
|
||||
# CAUTION: Only use this method on an Array(IPC::JSON.class)
|
||||
class Array(T)
|
||||
def parse_ipc_json(messages : Array(IPC::JSON.class), message : IPC::Message) : IPC::JSON?
|
||||
def parse_ipc_json(message : IPC::Message) : IPC::JSON?
|
||||
message_type = find &.type.==(message.utype)
|
||||
|
||||
payload = String.new message.payload
|
||||
|
|
Reference in New Issue