From 70d1b9022bbb6c403f36c1143d2f716ce7c51a00 Mon Sep 17 00:00:00 2001 From: Joel Mason Date: Thu, 14 Sep 2017 01:53:11 +1000 Subject: [PATCH] Allows adding metadata to comm_open message (#583) --- src/comm_manager.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/comm_manager.jl b/src/comm_manager.jl index 5b4dbbe2..2d38f9d3 100644 --- a/src/comm_manager.jl +++ b/src/comm_manager.jl @@ -30,13 +30,14 @@ function Comm(target, primary=true, on_msg=noop_callback, on_close=noop_callback; - data=Dict()) + data=Dict(), + metadata=Dict()) comm = Comm{Symbol(target)}(id, primary, on_msg, on_close) if primary # Request a secondary object be created at the front end send_ipython(IJulia.publish[], msg_comm(comm, IJulia.execute_msg, "comm_open", - data, target_name=string(target))) + data, metadata, target_name=string(target))) end return comm end