code: function (connection, sessionRead) {
          connection = OT.Connection.fromHash(connection);
          if (sessionRead || session.connection && connection.id !== session.connection.id) {
            session.connections.add( connection );
            delayedSessionEvents.triggerConnectionCreated(connection);
          }
  
          OT.$.forEach(OT.$.keys(unconnectedStreams), function(streamId) {
            var stream = unconnectedStreams[streamId];
            if (stream && connection.id === stream.connection.id) {
              // dispatch streamCreated event now that the connectionCreated has been dispatched
              parseAndAddStreamToSession(stream, session);
              delete unconnectedStreams[stream.id];
              
              var payload = {
                debug: sessionRead ? 'connection came in session#read' :
                  'connection came in connection#created',
                streamId : stream.id,
                connectionId : connection.id
              };
              session.logEvent('streamCreated', 'warning', payload);
            }
          });
          
          return connection;
        }
docs: This method adds connections to the session both on a connection#created and on a session#read. In the case of session#read sessionRead is set to true and we include our own connection.