Save $.connection.transports._logic to a variable and reuse it throughout