code: function abortConnection(socket, code, name) {
  	try {
  		var response = [
  			'HTTP/1.1 ' + code + ' ' + name,
  			'content-type: text/html'
  		];
  
  		socket.write(response.concat('', '').join('\r\n'));
  	} catch (e) {
  		// ignore errors - we've aborted this connection
  	} finally {
  		// ensure that an early aborted connection is shut down completely
  		try {
  			socket.destroy();
  		} catch (e) {
  			// ignore errors - we've aborted this connection
  		}
  	}
  }
docs: This method came from the ws-library:
  https://github.com/einaros/ws/blob/master/lib/WebSocketServer.js#L447
  
  @param {net.Socket} socket
  @param {number} code
  @param {string} name