Skip to content

Commit

Permalink
Added date to header
Browse files Browse the repository at this point in the history
  • Loading branch information
ebababi authored and kojix2 committed Jul 18, 2024
1 parent f341266 commit d54a6b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/iruby/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
require 'iruby/session/mixin'

require 'securerandom'
require 'time'

module IRuby
class Session
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit d54a6b7

Please # to comment.