class Riddl::WebSocketImplementation
Public Class Methods
Source
# File lib/ruby/riddl/implementation.rb, line 65 def initialize(ws) @ws = ws @r = ws[:r] # the matching resource path @s = ws[:s] # the matching resource path schema @match = ws[:match] # the path of the branch matching, important for recursive @env = ws[:env] # environment (all headers) @a = ws[:a] # args to run command end
Public Instance Methods
Source
# File lib/ruby/riddl/implementation.rb, line 93 def close @ws[:io].close_connection end
Source
# File lib/ruby/riddl/implementation.rb, line 83 def io=(connection) @ws[:io] = connection end
Source
# File lib/ruby/riddl/implementation.rb, line 79 def send(data) @ws[:io].send data end