Class: OverSIP::WebSocket::WsAutobahnApp
- Defined in:
- lib/oversip/websocket/ws_apps/ws_autobahn_app.rb
Constant Summary collapse
- LOG_ID =
"WS IPv4 AutoBahn app"
Constants included from Logger
Logger::SYSLOG_POSIXMQ_MAPPING
Instance Method Summary collapse
- #log_id ⇒ Object
- #process_binary_message(ws_message) ⇒ Object
- #process_text_message(ws_message) ⇒ Object
Methods inherited from WsApp
class_init, #close_connection, #initialize, #message_done, #receive_payload_data, #tcp_closed
Methods included from Logger
close, #fatal, fg_system_msg2str, init_logger_mq, load_methods, syslog_system_msg2str, syslog_user_msg2str
Constructor Details
This class inherits a constructor from OverSIP::WebSocket::WsApp
Instance Method Details
#log_id ⇒ Object
6 7 8 |
# File 'lib/oversip/websocket/ws_apps/ws_autobahn_app.rb', line 6 def log_id LOG_ID end |
#process_binary_message(ws_message) ⇒ Object
16 17 18 19 |
# File 'lib/oversip/websocket/ws_apps/ws_autobahn_app.rb', line 16 def #log_system_info "received WS binary message: length=#{ws_message.bytesize}, replying the same..." @ws_framing.send_binary_frame end |
#process_text_message(ws_message) ⇒ Object
10 11 12 13 |
# File 'lib/oversip/websocket/ws_apps/ws_autobahn_app.rb', line 10 def #log_system_info "received WS text message: length=#{ws_message.bytesize}, replying the same..." @ws_framing.send_text_frame end |