Class: LanGrove::Handler::WebSocket
- Inherits:
-
EM::WebSocket::Connection
- Object
- EM::WebSocket::Connection
- LanGrove::Handler::WebSocket
show all
- Includes:
- SocketBase
- Defined in:
- lib/langrove/handler/web_socket.rb
Constant Summary
Default
Instance Attribute Summary
#capsule, #config, #key, #logger, #pending_capsule, #protocol, #scheduler, #server, #type
Instance Method Summary
collapse
Methods included from SocketBase
#handle_connect, #handle_disconnect, #handle_error, #handle_receive_data, #unbind
#assign, #connect, #disconnect, #error, #event_filter, #receive, #reload, #reload_handler, #start, #start_handler, #stop, #stop_handler, #transform, #unique
Instance Method Details
#trigger_on_close ⇒ Object
31
32
33
34
35
|
# File 'lib/langrove/handler/web_socket.rb', line 31
def trigger_on_close
handle_disconnect
end
|
#trigger_on_error(error) ⇒ Object
24
25
26
27
28
|
# File 'lib/langrove/handler/web_socket.rb', line 24
def trigger_on_error( error )
handle_error( error )
end
|
#trigger_on_message(message) ⇒ Object
17
18
19
20
21
|
# File 'lib/langrove/handler/web_socket.rb', line 17
def trigger_on_message( message )
handle_receive_data( message )
end
|
#trigger_on_open ⇒ Object
11
12
13
14
15
|
# File 'lib/langrove/handler/web_socket.rb', line 11
def trigger_on_open
handle_connect
end
|