Zaphod::Session::Multiplexer - Multiplexer for JS requests
Generates a string for uniquely/opaquely identifying a session.
$mx->add_session KEY, ARGS
Adds new session to the list of sessions.
Saves all sessions into the given directory.
Loads a session from a
.meta file and adds it to the list.
Returns the newly created session.
Returns the session a client belongs to.
Returns a new session as initialized from the
The session is automatically added to the list of active sessions.
DOCUMENT_ID is a false value,
a document id will be generated via
Forwards the request for the document to the corresponding session.
If no fitting session is found, redirects to the list of sessions. Well, maybe later.
$mx->connect_client SESSION_KEY, ARGS
Connects a client to the specified session. If the session doesn't exist or is a false value, a new session is created and the client is connected to it.
The parameters for the session are taken from the
If a session for the client cannot be found, it is rejected, otherwise these methods are forwarded to the implementation in Zaphod::Session::API::JS.