docs: function(method, streamId, fromAddress, message) {
  
          var fromConnection,
              actors;
  
          switch (method) {
            // Messages for Subscribers
            case 'offer':
              actors = [];
              var subscriber = OT.subscribers.find({streamId: streamId});
              if (subscriber) actors.push(subscriber);
              break;
  
  
            // Messages for Publishers
            case 'answer':
            case 'pranswer':
            case 'generateoffer':
            case 'unsubscribe':
              actors = OT.publishers.where({streamId: streamId});
              break;
  
  
            // Messages for Publishers and Subscribers
            case 'candidate':
              // send to whichever of your publisher or subscribers are
              // subscribing/publishing that stream
              actors = OT.publishers.where({streamId: streamId})
                .concat(OT.subscribers.where({streamId: streamId}));
              break;
  
  
            default:
              OT.warn('OT.Raptor.dispatch: jsep#' + method +
                ' is not currently implemented');
              return;
          }
  
          if (actors.length === 0) return;
  
          // This is a bit hacky. We don't have the session in the message so we iterate
          // until we find the actor that the message relates to this stream, and then
          // we grab the session from it.
          fromConnection = actors[0].session.connections.get(fromAddress);
          if(!fromConnection && fromAddress.match(/^symphony\./)) {
            fromConnection = OT.Connection.fromHash({
              id: fromAddress,
              creationTime: Math.floor(OT.$.now())
            });
  
            actors[0].session.connections.add(fromConnection);
          } else if(!fromConnection) {
            OT.warn('OT.Raptor.dispatch: Messsage comes from a connection (' +
              fromAddress + ') that we do not know about. The message was ignored.');
            return;
          }
  
          OT.$.forEach(actors, function(actor) {
            actor.processMessage(method, fromConnection, message);
          });
        }