Skip to content

Commit

Permalink
added #identity message type
Browse files Browse the repository at this point in the history
  • Loading branch information
mackuba committed Feb 21, 2024
1 parent c5fd9c9 commit 4b52b19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/skyfall/messages/identity_message.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module Skyfall
class IdentityMessage < WebsocketMessage
end
end
2 changes: 2 additions & 0 deletions lib/skyfall/messages/websocket_message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class WebsocketMessage

require_relative 'commit_message'
require_relative 'handle_message'
require_relative 'identity_message'
require_relative 'info_message'
require_relative 'tombstone_message'
require_relative 'unknown_message'
Expand All @@ -25,6 +26,7 @@ def self.new(data)
message_class = case type_object['t']
when '#commit' then CommitMessage
when '#handle' then HandleMessage
when '#identity' then IdentityMessage
when '#info' then InfoMessage
when '#tombstone' then TombstoneMessage
else UnknownMessage
Expand Down

0 comments on commit 4b52b19

Please sign in to comment.