Module: SocketIo::Websocket
- Includes:
- CarrierWave, Receiver, Sender
- Defined in:
- lib/socket.io/websocket.rb,
lib/socket.io/websocket/sender.rb,
lib/socket.io/websocket/receiver.rb,
lib/socket.io/websocket/carrier_wave.rb
Defined Under Namespace
Modules: CarrierWave, ClassMethods, Receiver, Sender
Constant Summary collapse
- @@events =
{}
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Sender
Methods included from Receiver
#handle_error, #handle_event, #handle_json, #handle_message, #handle_packet
Methods included from CarrierWave
#init_session, #session, #session=, #session_id, #session_key
Class Method Details
.included(target) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/socket.io/websocket.rb', line 13 def self.included(target) target.transport = :websocket target.on_start :init_session target.on_data :handle_packet target.extend ClassMethods @@events[target] = {} end |
Instance Method Details
#events ⇒ Object
23 24 25 |
# File 'lib/socket.io/websocket.rb', line 23 def events @@events[self.class] end |