Show More
@@ -115,10 +115,10 b' class Session(object):' | |||||
115 | msg : dict |
|
115 | msg : dict | |
116 | The message, as constructed by self.msg(msg_type,content,parent) |
|
116 | The message, as constructed by self.msg(msg_type,content,parent) | |
117 | """ |
|
117 | """ | |
118 | if isinstance(msg_type, (Message, dict)): |
|
118 | if isinstance(msg_or_type, (Message, dict)): | |
119 | msg = dict(msg_type) |
|
119 | msg = dict(msg_or_type) | |
120 | else: |
|
120 | else: | |
121 | msg = self.msg(msg_type, content, parent) |
|
121 | msg = self.msg(msg_or_type, content, parent) | |
122 | if ident is not None: |
|
122 | if ident is not None: | |
123 | socket.send(ident, zmq.SNDMORE) |
|
123 | socket.send(ident, zmq.SNDMORE) | |
124 | socket.send_json(msg) |
|
124 | socket.send_json(msg) |
General Comments 0
You need to be logged in to leave comments.
Login now