Skip to content

Commit 2fb037e

Browse files
authored
handle comm_info_request (#97)
* handle comm_info_request * fix union type
2 parents 139fd6f + 9551cdb commit 2fb037e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/IfSharp.Kernel/ShellMessages.fs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,8 @@ type ConnectReply =
332332

333333
type CommOpen = obj
334334

335+
type CommInfoRequest = obj
336+
335337
type KernelRequest = obj
336338

337339
type KernelReply_LanguageInfo =
@@ -498,6 +500,7 @@ type ShellMessage =
498500

499501
// comm open?
500502
| CommOpen of CommOpen
503+
| CommInfoRequest of CommInfoRequest
501504

502505
// kernel info
503506
| KernelRequest of KernelRequest
@@ -561,4 +564,6 @@ module ShellMessages =
561564
//Jupyter 4.x support, do we need to do anything with this?
562565
| "comm_open" -> CommOpen (JsonConvert.DeserializeObject<CommOpen>(messageJson))
563566

567+
| "comm_info_request" -> CommInfoRequest (JsonConvert.DeserializeObject<CommInfoRequest>(messageJson))
568+
564569
| _ -> failwith ("Unsupported messageType: " + messageType)

0 commit comments

Comments
 (0)