tildeio/oasis.js — pull request #75 by hjdivad (2013-12-18 09:28:49+00:00)
Title: Reconnect now supports 'none', 'verify' and 'any'.

Reconnection exists to support applications that navigate (ie non-single
page apps). Sandboxes that navigate should simply load `oasis` and call
`oasis.connect`, just as if it were an initial load.

Configure oasis-wide reconnection with:

```js oasis.configure('reconnect', 'verify');
```

Or override with a sandbox-specific option:

```js oasis.createSandbox({
url: sandboxURL,
reconnect: 'any'
});
```

The different reconnection options are:

'none' - sandboxes may not reconnect.
'verify' - sandboxes may only reconnect if `allowSameOrigin` is `true` and
the
origin the sandbox navigates to is the same as the original sandbox URL.
'any' - sandboxes will always reconnect. This is primarily intended to be
used
for null origin sandboxes. Great care should be taken when using this
setting: it is advanced usage and is not recommended unless you clearly
understand the security implications.