class Crirc::UserList

Overview

TODO . UserList is used to send message to a list of Protocol::User.

chan1 = UserList.new
chan1.users << user_joined
chan1.puts current_controller, crafted_message

Included Modules

Defined in:

crirc/broadcast/user_list.cr

Constructors

Instance Method Summary

Instance methods inherited from module Crirc::Broadcast

puts(context : Controller::Controller, data) puts

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def puts(context : Controller::Controller, data) #

TODO

NOTE combine data+user Broadcast a message to the users


[View source]
def users : Array(Protocol::User) #

[View source]