In the following code, the uri option is required to be passed in, even though its not used since the socket parameter is provided. I've used this to supply my own socket connection parameters.
createNetworkInterface({
uri: '/this-does-not-matter',
Socket: () => { return socket; }
});