Method: Cod::TcpServer#get

Defined in:
lib/cod/tcp_server.rb

#get(opts = {}) ⇒ Object

Receives one object from the channel. This will receive one message from one of the connected clients in a round-robin fashion.

Examples:

channel.get # => object

Parameters:

  • opts (Hash) (defaults to: {})

Returns:

  • (Object)

    message sent by one of the clients



47
48
49
50
# File 'lib/cod/tcp_server.rb', line 47

def get(opts={})
  msg, socket = _get(opts)
  return msg
end