Class: OverSIP::WebSocket::WsAutobahnApp

Inherits:
WsApp
  • Object
show all
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

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_idObject



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 process_binary_message ws_message
  #log_system_info "received WS binary message: length=#{ws_message.bytesize}, replying the same..."
  @ws_framing.send_binary_frame ws_message
end

#process_text_message(ws_message) ⇒ Object



10
11
12
13
# File 'lib/oversip/websocket/ws_apps/ws_autobahn_app.rb', line 10

def process_text_message ws_message
  #log_system_info "received WS text message: length=#{ws_message.bytesize}, replying the same..."
  @ws_framing.send_text_frame ws_message
end