src/steroidsSocket.js
function SteroidsSocket(options) {
    var finalTarget;

    if (options.target && net.isIPv6(options.target)) {
        finalTarget = normalize6(options.target);
    } else {
        finalTarget = options.target;
    }

    this.target = finalTarget;
    this.port = options.port || 80;
    this.transport = options.transport || 'TCP';
    this.lport = options.lport || null;
    this.timeout = options.timeout || 8000;
    this.allowHalfOpen = options.allowHalfOpen || null;
    this.wsProto = options.wsProto || 'sip';
    this.wsPath = options.wsPath || null;

    // We init the socket in the send function to be able
    // to detect timeouts using UDP (no "received" or similar event)
}
function SteroidsSocket(options) {
    var finalTarget;

    if (options.target && net.isIPv6(options.target)) {
        finalTarget = normalize6(options.target);
    } else {
        finalTarget = options.target;
    }

    this.target = finalTarget;
    this.port = options.port || 80;
    this.transport = options.transport || 'TCP';
    this.lport = options.lport || null;
    this.timeout = options.timeout || 8000;
    this.allowHalfOpen = options.allowHalfOpen || null;
    this.wsProto = options.wsProto || 'sip';
    this.wsPath = options.wsPath || null;

    // We init the socket in the send function to be able
    // to detect timeouts using UDP (no "received" or similar event)
}
Public stuff Constructor