Reply creates a new ComposedMsg and sends it back to the return identities over the Shell channel.
(msgType string, content interface{})
| 199 | // Reply creates a new ComposedMsg and sends it back to the return identities over the |
| 200 | // Shell channel. |
| 201 | func (receipt *msgReceipt) Reply(msgType string, content interface{}) error { |
| 202 | msg, err := NewMsg(msgType, receipt.Msg) |
| 203 | |
| 204 | if err != nil { |
| 205 | return err |
| 206 | } |
| 207 | |
| 208 | msg.Content = content |
| 209 | return receipt.Sockets.ShellSocket.RunWithSocket(func(shell zmq4.Socket) error { |
| 210 | return receipt.SendResponse(shell, msg) |
| 211 | }) |
| 212 | } |
| 213 | |
| 214 | // PublishKernelStatus publishes a status message notifying front-ends of the state the kernel is in. Supports |
| 215 | // states "starting", "busy", and "idle". |
no test coverage detected