From d54a6b7621ce2d961775f9c262605171cb1fa39a Mon Sep 17 00:00:00 2001 From: Nikolaos Anastopoulos Date: Thu, 18 Jul 2024 14:03:09 +0300 Subject: [PATCH] Added `date` to header In message header, `date` field is required. Ref: https://jupyter-client.readthedocs.io/en/latest/messaging.html#message-header --- lib/iruby/session.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/iruby/session.rb b/lib/iruby/session.rb index 36a8987..584de9a 100644 --- a/lib/iruby/session.rb +++ b/lib/iruby/session.rb @@ -2,6 +2,7 @@ require 'iruby/session/mixin' require 'securerandom' +require 'time' module IRuby class Session @@ -79,6 +80,7 @@ def send(socket_type, message_type, content) header = { msg_type: message_type, msg_id: SecureRandom.uuid, + date: Time.now.utc.iso8601, username: 'kernel', session: @session_id, version: '5.0'