Starting Session
There is no distinction between starting a new session or joining an existing session from the service’s point of view. The Codox
client-side library will handle the bootstrapping logic for both cases transparently.
Auto start/join
When init(config)
is called without specifying a value for autoStart
, or if the value ofautoStart
is set totrue,
then the Codox
client will immediately start a new session if one doesn’t exist, or join an existing session if one already exists.
Example:
Delayed start/join
If the autoStart
field is set to false,
then the Codox
client will be initialized, but the session starting/joining process will be delayed till an explicit call to codox.start().
codox.start(config)
Calling start
will explicitly start or join a co-editing session. The config
parameter is optional. If init(config)
has already been invoked, calling start()
will start/join the session based on the existing config
values.
Example: