Class: DDP::Server::WebSocket
- Inherits:
-
Celluloid::WebSocket
- Object
- Celluloid::WebSocket
- DDP::Server::WebSocket
- Includes:
- Protocol
- Defined in:
- lib/ddp/server.rb
Overview
Server on top of a Celluloid::WebSocket
Constant Summary
Constants included from Protocol
Constants included from Protocol::RPC
Instance Attribute Summary
Attributes included from Protocol
Instance Method Summary collapse
Methods included from Protocol
#handle_connect, #handle_established, #handle_session, #new_session_id
Methods included from Protocol::RPC
#handle_method, #handle_rpc, #send_error_result, #send_result, #send_updated
Methods included from Protocol::Data
#handle_data, #handle_sub, #handle_unsub, #send_added, #send_added_before, #send_changed, #send_moved_before, #send_nosub, #send_ready, #send_removed
Methods included from Protocol::Heartbeat
Instance Method Details
#on_open ⇒ Object
13 14 15 |
# File 'lib/ddp/server.rb', line 13 def on_open handle_connect end |
#read_message ⇒ Object
17 18 19 |
# File 'lib/ddp/server.rb', line 17 def JSON.parse read end |
#write_message(message) ⇒ Object
21 22 23 |
# File 'lib/ddp/server.rb', line 21 def () write JSON.generate() end |