Skip to content

Commit

Permalink
Allows adding metadata to comm_open message (#583)
Browse files Browse the repository at this point in the history
  • Loading branch information
JobJob authored and shashi committed Sep 13, 2017
1 parent c6a33c4 commit 70d1b90
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/comm_manager.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 70d1b90

Please sign in to comment.