class QB::IPC::STDIO::Server::OutService

QB STDIO Service to proxy output from modules back to the main user process.

Public Class Methods

new(name:, socket_dir:, dest: super name: name, socket_dir: socket_dir) click to toggle source
# File lib/qb/ipc/stdio/server/out_service.rb, line 6
def initialize name:, socket_dir:, dest:
  super name: name, socket_dir: socket_dir
  @dest = dest
end

Public Instance Methods

work_in_thread() click to toggle source
# File lib/qb/ipc/stdio/server/out_service.rb, line 11
def work_in_thread
  while (line = @socket.gets) do
    logger.trace "received line",
      line: line,
      dest: @dest
    
    @dest.puts line
  end
end