From 6355596d6d8a93a92730869e28cb6b27c70e4f93 Mon Sep 17 00:00:00 2001 From: Karchnu Date: Sat, 18 Jul 2020 12:14:19 +0200 Subject: [PATCH] TestWS: up to the newest libipc bindings version. --- tests/test-ws.cr | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test-ws.cr b/tests/test-ws.cr index f4ccabb..0582b29 100644 --- a/tests/test-ws.cr +++ b/tests/test-ws.cr @@ -10,12 +10,12 @@ require "../src/lib_modifications.cr" require "json" class TestIPC - property ipcc : IPC::Connection + property ipcc : IPC::Client property is_json : Bool def initialize(service_name : String) @is_json = uri.ends_with? ".JSON" - @ipcc = IPC::Connection.new service_name + @ipcc = IPC::Client.new service_name end # TODO @@ -60,9 +60,9 @@ class TestWS m : String | Bytes if @is_json - m = IPC::Message.new(1.to_u8, type.to_u8, data).to_json + m = IPC::Message.new(0, 1.to_u8, type.to_u8, data).to_json else - m = IPC::Message.new(1.to_u8, type.to_u8, data).to_packet + m = IPC::Message.new(0, 1.to_u8, type.to_u8, data).to_packet end @ws.send m