diff --git a/src/Engine/SocketIO.php b/src/Engine/SocketIO.php
index <HASH>..<HASH> 100644
--- a/src/Engine/SocketIO.php
+++ b/src/Engine/SocketIO.php
@@ -81,10 +81,9 @@ abstract class SocketIO implements EngineInterface
      */
     protected function getServerInformation()
     {
-        $server = array_replace($this->url, ['scheme'    => 'http',
-                                             'host'      => 'localhost',
-                                             'path'      => 'socket.io',
-                                             'transport' => static::TRANSPORT_POLLING]);
+        $server = array_replace($this->url, ['scheme' => 'http',
+                                             'host'   => 'localhost',
+                                             'path'   => 'socket.io']);
 
         if (!isset($server['port'])) {
             $server['port'] = 'https' === $server['scheme'] ? 443 : 80;
@@ -94,6 +93,8 @@ abstract class SocketIO implements EngineInterface
             $server['scheme'] = 'ssl';
         }
 
+        $server['transport'] = $this->transport ?: static::TRANSPORT_POLLING;
+
         return $server;
     }
The transport should not be in the url configuration