Skip to content

WebSocket server and relative linking

Compare
Choose a tag to compare
@Arlen22 Arlen22 released this 06 Dec 15:36

This release wraps up the changes made up to this point in preparation for upgrading to the next version of TiddlyWiki.

Probably the most notable addition to TiddlyServer in this release is a basic WebSocket server which connects with data folders. At the risk of jumping the gun, it simply uses the hooks mechanism, but I am hoping that we will be able to add a WebSocket server/client to the core in the near future in a way that still allows TiddlyServer to operate seamlessly. We shall see, but it should be simple.

The other important change is relative linking. The trailing slash has been removed from data folders so that they now work exactly like single file wikis. This allows relative links to work when importing tiddlers from single file wikis to data folders and vice versa.

This release adds two settings to disable Etag checking or allow files to match if they were edited within so many seconds of the version being saved. This allows you to keep from overwriting hours of work because you have the same file open in more than one tab, but still allows you to continue saving if there is a slightly delayed write or your antivirus changes the modified time immediately after writing.

Next on the agenda is the upgrade to TiddlyWiki 5.1.15.

Changes in this release

  • Add the etag and etagWindow options to partially or completely disable etag checking.
  • Remove the trailing slash from data folders in order to allow relative links in tiddlers imported from single file wikis to continue to work without changing the folder structure.
    • Data folders are opaque and appear to the user to be identical to a single file TiddlyWiki, therefore the relative links should also work the same.
  • Move the TiddlyWiki bundle into the repository since changes have been made to the boot code.
  • Add a websocket server to TiddlyServer and add hooks to the data folders.
  • Point to the actual TiddlyWiki package.json file in the bundle instead of having a copy in the src folder.

There is no longer a bundled zip. Everything in the bundled version is now included in the repository, so just download the source code from the link below and follow the instructions like normal.