Archived
3
0

Fixes on the WIP "ipc/json" library.

This fixes parse_ipc_json that had a quite useless prototype, it now
looks functionnal enough.
This commit is contained in:
Luka Vandervelden 2020-05-14 17:47:45 +02:00
parent 0f52ca1b2a
commit 319573bb1e

View File

@ -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