Galileo::Client
Inherits Reference / Object
Base dogehouse cilent to interface with api with
Constructors
Client takes your dogehouse token and refreshToken in order to auth
Instance methods
All messages will be sent through this callback.
client.on_all do |msg|
puts msg
end
All messages will be sent through this callback.
client.on_all do |msg|
puts msg
end
Will create room with given name description and privacy option Privacy options are limited to "public" and "private"
Join room will join the room associated with a roomId
client.join_room "roomid"
When room is joined this callback will be called
client.on_room_join do |room|
puts room.name
end
When room is joined this callback will be called
client.on_room_join do |room|
puts room.name
end
Optional message_callback property Add a message callback function with .on_message
client.on_message do |msg|
puts msg
end
Optional message_callback property Add a message callback function with .on_message
client.on_message do |msg|
puts msg
end
If newtokens are passed this callback will be called
client.on_new_tokens do |token, refresh_token|
puts token
end
If newtokens are passed this callback will be called
client.on_new_tokens do |token, refresh_token|
puts token
end
Add all callback All messages recieved in the client will be sent through this callback
client.on_all do |msg|
puts msg
end
Add a message callback on_message takes block with context parameter and String parameter
client.on_message do |msg|
puts msg
end
Add new tokens callback
client.on_new_tokens do |token, refresh_token|
puts token
end
Add user joined room callback
client.on_user_joined_room do |user|
puts user.display_name
end
Optional on ready callback property
client.on_ready do |user|
puts user.display_name
end
Optional on ready callback property
client.on_ready do |user|
puts user.display_name
end
Takes a role "raised_hand", "listener", "speaker" and an optional userId which will default to the bot userId
If a user joins a room this callback will be called
client.on_user_joined_room do |user|
puts user.display_name
end
If a user joins a room this callback will be called
client.on_user_joined_room do |user|
puts user.display_name
end