Sha256: 6ee193e310839674ac602a6705387aa561dbad867cb34b43a05967592f269474
Contents?: true
Size: 481 Bytes
Versions: 7
Compression:
Stored size: 481 Bytes
Contents
require 'rjr/nodes/ws' # listen for methods via amqp, websockets, http, and via local calls ws_node = RJR::Nodes::WS.new :node_id => 'server', :host => '127.0.0.1', :port => 5007 # define a rpc method called 'hello' which takes # one argument and returns it in upper case ws_node.dispatcher.handle("initialize") { |processId,clientInfo,locale,rootPath,rootUri,capabilities,trace,workspaceFolders| arg.upcase } # start the server and block ws_node.listen ws_node.join
Version data entries
7 entries across 7 versions & 1 rubygems