diff --git a/lib/skyfall/messages/identity_message.rb b/lib/skyfall/messages/identity_message.rb new file mode 100644 index 0000000..1f2a001 --- /dev/null +++ b/lib/skyfall/messages/identity_message.rb @@ -0,0 +1,4 @@ +module Skyfall + class IdentityMessage < WebsocketMessage + end +end diff --git a/lib/skyfall/messages/websocket_message.rb b/lib/skyfall/messages/websocket_message.rb index c6f0360..4d444d5 100644 --- a/lib/skyfall/messages/websocket_message.rb +++ b/lib/skyfall/messages/websocket_message.rb @@ -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' @@ -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