diff --git a/src/connection.js b/src/connection.js
index <HASH>..<HASH> 100644
--- a/src/connection.js
+++ b/src/connection.js
@@ -149,6 +149,9 @@ Connection.prototype.send = function(message) {
   if (this._options['apisecret']) {
     message.apisecret = this._options['apisecret'];
   }
+  if (!message['transaction']) {
+    message['transaction'] = Transaction.generateRandomId();
+  }
   return this._websocketConnection.send(message);
 };
Always add transaction on connection.send if it's not present