Method: Cod.tcp
- Defined in:
- lib/cod.rb
.tcp(destination, serializer = nil) ⇒ Cod::TcpClient
Creates a tcp connection to the destination and returns a channel for it.
101 102 103 104 105 |
# File 'lib/cod.rb', line 101 def tcp(destination, serializer=nil) Cod::TcpClient.new( destination, serializer || SimpleSerializer.new) end |