Sha256: 3c8e69d15e7cef89dd49b381f02a0d998941abb402ae780dbec139c26a4a1e50
Contents?: true
Size: 950 Bytes
Versions: 3
Compression:
Stored size: 950 Bytes
Contents
# # OverSIP - Events. # # # OverSIP common callbacks. Fill them according to your needs. module OverSIP::Events extend ::OverSIP::Logger @log_id = "Events" # This method is called once a WebSocket connection has been accepted # but before the HTTP 101 has been replied to the client. # Here you can inspect the HTTP request (WebSocket handshake) and, # based on your service, reject the connection by calling: # # connection.http_reject(status_code, reason_phrase=nil, extra_headers=nil) # # You can also set variables for this connection via the connection.cvars # hash. You can later inspect such a hash within the logic.rb file by # accessing to @request.cvars. # def self.on_new_websocket_connection connection, http_request # Do something. end # This method is called once a WebSocket connection has been closed. # def self.on_websocket_connection_closed connection # Do something. end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
oversip-1.0.7.beta1 | etc/events.rb |
oversip-1.0.6.beta3 | etc/events.rb |
oversip-1.0.6.beta2 | etc/events.rb |