class Cable::Server
- Cable::Server
- Reference
- Object
Included Modules
Defined in:
cable/server.crConstructors
Instance Method Summary
- #add_connection(connection)
- #connections : Hash(String, Cable::Connection)
- #fiber_channel : Channel({String, String})
-
#publish(channel : String, message : String)
redis only accepts strings, so we should be strict here
- #redis_publish
- #redis_subscribe : Redis
- #remove_connection(connection_id)
- #safe_decode_message(message)
- #send_to_channels(channel_identifier, message)
- #shutdown
- #subscribe_channel(channel : Channel, identifier : String)
- #unsubscribe_channel(channel : Channel, identifier : String)
Constructor Detail
Instance Method Detail
def publish(channel : String, message : String)
#
redis only accepts strings, so we should be strict here