var _ = require('lodash'),
  net = require('net');

function Client (opts) {
  opts = _.defaults(_.pick(opts, Object.keys(Client.defaults)), Client.defaults);

  for (var key in opts) {
    Object.defineProperty(this, key, { value: opts[key] })
  }
}

Client.prototype.connect = function () {
  return this.socket = net.connect({ host: this.host, port: this.port });
}

Client.defaults = {
  host: '127.0.0.1',
  port: 2003
}

module.exports = Client;

@@ -22,19 +22,21 @@
 sh'),%0A  
-net
+dgram
  = requi
@@ -39,19 +39,21 @@
 equire('
-net
+dgram
 ');%0A%0Afun
@@ -317,56 +317,36 @@
 t = 
-net.connect(%7B host: this.host, port: this.port %7D
+dgram.createSocket(this.type
 );%0A%7D
@@ -400,16 +400,32 @@
 rt: 2003
+,%0A  type: 'udp4'
 %0A%7D%0A%0Amodu

Switch to using a dgram socket