Sha256: 604504f8b439b2d03c43579f00736b29f687cffe456e25790a9f38a01a1f1448
Contents?: true
Size: 494 Bytes
Versions: 8
Compression:
Stored size: 494 Bytes
Contents
require_relative 'szmq/szmq' require 'json' module Kymera class ResultsBus def initialize config = Kymera::Config.new @zmq = Kymera::SZMQ.new @incoming_socket = @zmq.socket("tcp://*:#{config.result_bus["pub_port"]}", 'xsub') @outgoing_socket = @zmq.socket("tcp://*:#{config.result_bus["sub_port"]}", 'xpub') end def start_bus puts "Results bus started..." @zmq.start_pub_sub_proxy(@incoming_socket, @outgoing_socket) end end end
Version data entries
8 entries across 8 versions & 1 rubygems