Skip to content

Instantly share code, notes, and snippets.

@andrewshell
Created October 24, 2020 18:07
Show Gist options
  • Save andrewshell/6d554d5fd993e48d8cac8125c0e297f3 to your computer and use it in GitHub Desktop.
Save andrewshell/6d554d5fd993e48d8cac8125c0e297f3 to your computer and use it in GitHub Desktop.
  1. I'm in Little Outliner (using Google Chrome) and I have previously configured it to use my personal nodeStorage server.

I did this by opening the Chrome console and running:

switchServer(http://storage.shll.me:1229/);
  1. I create a new outline using "File > New..." named demo.opml

  2. I verify this outline exists on my nodeStorage server under the myprivatefiles folder.

It looks like this:

<?xml version="1.0"?>
<opml version="2.0">
        <head>
                <title>demo</title>
                <dateCreated>Sat, 24 Oct 2020 17:49:26 GMT</dateCreated>
                <dateModified>Sat, 24 Oct 2020 17:49:26 GMT</dateModified>
                </head>
        <body>
                <outline text="" created="Sat, 24 Oct 2020 17:49:26 GMT"></outline>
                </body>
        </opml>
  1. I add some text "This is a test" to the top node. It saves and updates the file on nodeStorage.

  2. I click "File > Get public link...", click OK and the link generated is "http://instantoutliner.com/lq"

I can see in the network tab for developer tools the following request:

http://instantoutliner.com/createglue?url=http%3A%2F%2Fstorage.shll.me%3A1229%2Fusers%2Fandrewshell%2FmyOutlines%2Fdemo.opml&title=demo&description=&socketserver=ws%3A%2F%2Fstorage2.littleoutliner.com%3A1242%2F

You can see that it includes my nodeStorage server for the opml url but not socketserver.

  1. I verify that my outline has been saved on my nodeStorage server under the mypublicfiles folder.

It looks like this:

<?xml version="1.0"?>
<opml version="2.0">
        <head>
                <title>demo</title>
                <dateCreated>Sat, 24 Oct 2020 17:49:26 GMT</dateCreated>
                <dateModified>Sat, 24 Oct 2020 17:56:15 GMT</dateModified>
                <expansionState></expansionState>
                <lastCursor>0</lastCursor>
                <ownerTwitterScreenName>andrewshell</ownerTwitterScreenName>
                <ownerName>Andrew Shell</ownerName>
                <ownerId>http://twitter.com/andrewshell</ownerId>
                <urlUpdateSocket>ws://storage2.littleoutliner.com:1242/</urlUpdateSocket>
                <urlInstant>http://instantoutliner.com/lq</urlInstant>
                <urlPublic>http://storage.shll.me:1229/users/andrewshell/myOutlines/demo.opml</urlPublic>
                </head>
        <body>
                <outline text="This is a test" created="Sat, 24 Oct 2020 17:49:26 GMT"/>
                </body>
        </opml>
  1. I open Safari and paste in the url http://instantoutliner.com/lq and see my outline.

  2. I go back to Little Outliner in Chrome and add a new line "This is an update" and I wait for the page to save.

  3. I go back to Safari and the new line does not show up.

  4. I check if the opml file on my nodeServer has updated. It has.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment