why not just do connection.socket.send(transportLogic.stringifySend(connection, data));  Seems kinda useless to create a variable