lib/sockets/SocketDirect.js
function SocketDirect(node, options) {
        options = options || {};

        // ## Private properties

        /**
         * ### SocketDirect.node
         *
         * Reference to the node object.
         */
        this.node = node;

        /**
         * ## SocketDirect.socket
         *
         * The SocketDirect object shared with the server
         */
        this.socket = options.socket;

        /**
         * ## SocketDirect.connected
         *
         * TRUE, if a connection is established
         */
        this.connected = false;
    }
function SocketDirect(node, options) {
        options = options || {};

        // ## Private properties

        /**
         * ### SocketDirect.node
         *
         * Reference to the node object.
         */
        this.node = node;

        /**
         * ## SocketDirect.socket
         *
         * The SocketDirect object shared with the server
         */
        this.socket = options.socket;

        /**
         * ## SocketDirect.connected
         *
         * TRUE, if a connection is established
         */
        this.connected = false;
    }
## SocketDirect constructor

Creates a new instance of SocketDirect

@param {NodeGameClient} node Reference to the node instance
@param {object} options Optional. Configuration options