File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
src/main/kotlin/org/jetbrains/kotlinx/jupyter Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,10 @@ enum class MessageType(val contentClass: KClass<out MessageContent>) {
81
81
COMM_INFO_REQUEST (CommInfoRequest ::class ),
82
82
COMM_INFO_REPLY (CommInfoReply ::class ),
83
83
84
+ COMM_OPEN (CommOpen ::class ),
85
+ COMM_MSG (CommMsg ::class ),
86
+ COMM_CLOSE (CommClose ::class ),
87
+
84
88
LIST_ERRORS_REQUEST (ListErrorsRequest ::class ),
85
89
LIST_ERRORS_REPLY (ListErrorsReply ::class );
86
90
@@ -531,6 +535,29 @@ class CommInfoReply(
531
535
val comms : Map <String , Comm >
532
536
) : MessageContent()
533
537
538
+ @Serializable
539
+ class CommOpen (
540
+ @SerialName(" comm_id" )
541
+ val commId : String ,
542
+ @SerialName(" target_name" )
543
+ val targetName : String ,
544
+ val data : JsonObject ? = null
545
+ ) : MessageContent()
546
+
547
+ @Serializable
548
+ class CommMsg (
549
+ @SerialName(" comm_id" )
550
+ val commId : String ,
551
+ val data : JsonObject ? = null
552
+ ) : MessageContent()
553
+
554
+ @Serializable
555
+ class CommClose (
556
+ @SerialName(" comm_id" )
557
+ val commId : String ,
558
+ val data : JsonObject ? = null
559
+ ) : MessageContent()
560
+
534
561
@Serializable
535
562
class ListErrorsRequest (
536
563
val code : String ,
You can’t perform that action at this time.
0 commit comments