diff --git a/src/websocketd.cr b/src/websocketd.cr index 97b202d..641235a 100644 --- a/src/websocketd.cr +++ b/src/websocketd.cr @@ -177,7 +177,7 @@ def websocket_client_connection(client, context : InstanceStorage) # => JSON has to include these attributes: mtype, utype, payload # message = IPC::Message.new mtype, utype, payload remote_address = client.remote_address.address - message = IPC::Message.new 1, 1.to_u8, "{\"ip-address\": \"#{remote_address}\"}" + message = IPC::Message.new 1, 1.to_u8, "{\"ipaddress\": \"#{remote_address}\"}" serv = WrappedTCPFileDescriptor.new(fd: sfd, family: Socket::Family::INET) serv.send message.to_packet end