$ node ./tiddlywiki.js editions/MultiUserWiki --wsserver
NodeSettings - Parsed raw settings.
NodeSettings - Parsed raw settings.
Websockets listening on 8081
Serving on 0.0.0.0:8080
(press ctrl-C to exit)
syncer-server-WebsocketAdaptor: Dispatching 'save' task: $:/ServerIP
$:/plugins/OokTech/MultiUser/WebsocketAdaptor.js:90
var tiddlersPath = prefix === ''? $tw.MultiUser.Wikis.RootWiki.wikiTiddler
sPath:$tw.MultiUser.Wikis[prefix].wikiTiddlersPath
^
TypeError: Cannot read property 'RootWiki' of undefined
at WebsocketAdaptor.getTiddlerFileInfo ($:/plugins/OokTech/MultiUser/Websock
etAdaptor.js:90:60)
at WebsocketAdaptor.saveTiddler ($:/plugins/OokTech/MultiUser/WebsocketAdapt
or.js:189:12)
at Syncer.dispatchTask ($:/core/modules/syncer.js:488:21)
at Syncer.processTaskQueue ($:/core/modules/syncer.js:431:9)
at Timeout._onTimeout ($:/core/modules/syncer.js:410:26)
at ontimeout (timers.js:365:14)
at tryOnTimeout (timers.js:237:5)
at Timer.listOnTimeout (timers.js:207:5)
created: 20180501165851388
title: Hey I'm newer
tags:
modified: 20180501165857154
syncer-server-WebsocketAdaptor: Dispatching 'save' task: $:/StoryList
new connection
new connection
For New Enough Tiddler, type is application/x-tiddler hasMetaFile is false filep
ath is C:\Users\Mark\github\temp\TWM\editions\MultiUserWiki\tiddlers\New Enough
Tiddler.tid
saved file C:\Users\Mark\github\temp\TWM\editions\MultiUserWiki\tiddlers\New Eno
ugh Tiddler.tid
For Hey I'm newer, type is application/x-tiddler hasMetaFile is false filepath i
s C:\Users\Mark\github\temp\TWM\editions\MultiUserWiki\tiddlers\Hey I'm newer.ti
d
saved file C:\Users\Mark\github\temp\TWM\editions\MultiUserWiki\tiddlers\Hey I'm
newer.tid
new connection
Restarting Server!
Closed WSS
NodeSettings - Malformed settings. Using empty default.
NodeSettings - Check settings. Maybe comma error?
Websockets listening on 8082
Serving on 127.0.0.1:8081
(press ctrl-C to exit)
syncer-server-WebsocketAdaptor: Dispatching 'save' task: $:/StoryList
"filePathRoot": "C:\Users\Mark\WikiFiles"
new connection
Wikis Folder Exists
Copied edition 'markdowndemo' to C:\bag\dld\Wikis\jedTestMD
WebSocket error, probably closed connection: SyntaxError: Unexpected token o in JSON at position 1
at JSON.parse (<anonymous>)
at Object.$tw.nodeMessageHandlers.createNewWiki ($:/plugins/OokTech/MultiUser/NodeMessageHandler
s.js:618:34)
at WebSocket.incoming ($:/plugins/OokTech/MultiUser/NodeWebSocketsSetup.js:182:57)
at WebSocket.emit (events.js:159:13)
at Receiver._receiver.onmessage ($:/plugins/OokTech/MultiUser/WS/WebSocket.js:156:47)
at Receiver.dataMessage ($:/plugins/OokTech/MultiUser/WS/Receiver.js:402:14)
at Receiver.getData ($:/plugins/OokTech/MultiUser/WS/Receiver.js:343:12)
at Receiver.startLoop ($:/plugins/OokTech/MultiUser/WS/Receiver.js:178:16)
at Receiver.add ($:/plugins/OokTech/MultiUser/WS/Receiver.js:152:10)
at Socket._ultron.on ($:/plugins/OokTech/MultiUser/WS/WebSocket.js:152:22)
Were all three wikis using the same edition?
That is an odd error to get here. After it fails does the tiddler $:/WikiSettings/split have anything in it?
title: $:/WikiSettings/split
type: application/json
{
"wikis": "$:/WikiSettings/split/wikis",
"ws-server": "$:/WikiSettings/split/ws-server",
"suppressBrowser": false,
"serverInfo": "$:/WikiSettings/split/serverInfo"
}
title: $:/WikiSettings/split/wikis
type: application/json
{
"testJed1": ".\\Wikis\\testJed1",
"testJed2": ".\\Wikis\\testJed2"
}
testJed1
testJed2
testJed3
There are some new updates to the (not yet renamed) multiuser plugin.
A dat based system like this would be possible but it would be a separate thing. It may be possible to have a dat-based version running in parallel with the current version but there would be differences. The current version uses websockets for communication between different connected computers which allows the simultaneous editing without much worry about editing the same tiddler someone else is working on at the same time, the dat protocol is written with different goals and doesn't have the same near instantaneous updates between connected nodes.I do have plans for future additions that are more secure, but that security doesn't come from the tiddlywiki side. The multi-user wikis I have online right now use a custom expressjs server that uses https/wss with secure logins and authentication levels that allow different actions on each wiki (like view, edit or administrator).I also have another project called Dodo which is a purely p2p network that uses websockets and should be able to pretty seemlessly integrate with what I have made in tiddlywiki when it is ready, but there are only so many hours in a day and I need to do paying work in order to do things like eat.
There are some new updates to the (not yet renamed) multiuser plugin.
There are a lot of updates to the inner workings since the last release of the single executable.It no longer shows the dirty indicator in most cases because it wasn't accurate.It also fixes some errors from when there are errors in given paths.It adds a new command that starts the wiki without a server so it can be used with an external server, like an express js server, to go with this each web socket message is sent with an authentication token if one is saved in localstorage.there will be fewer terminal messages nowreconnecting to a server after losing the web socket connection is more consistentYou can export each wiki as a single file html, but it is imperfect. Documentation for the new message is in the plugin. But there is something weird where the html file works everywhere aside from importing it into another wiki.The settings in the control panel are only available on the root wiki because they should only be used there.There is a checkbox in the control panel that adds the list of available wikis to a tab in the sidebar.The plugin repo is hereThe single executable version is available hereIf you want to support the development OokTech has a patreon page hereor if you prefer there is a link for PayPal herehttps://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZG94CTLHTKYRE
Oh, and the bug that Stobot mentioned where newly opened browsers don't have the full list of tiddlers being edited is also fixed in the newly released version.
new connection$:/plugins/OokTech/MultiUser/ServerSide.js:122 var subWikiInfo = $tw.MultiUser.loadWikiTiddlers(resolvedIncludedWikiPath,{ ^
TypeError: $tw.MultiUser.loadWikiTiddlers is not a function at $:/plugins/OokTech/MultiUser/ServerSide.js:122:41 at Object.$tw.utils.each (/home/thatsme/GitHub/ThaTiddlyWikiFoldah/boot/boot.js:69:12) at Object.ServerSide.loadWikiTiddlers ($:/plugins/OokTech/MultiUser/ServerSide.js:116:15) at Object.ServerSide.loadWiki ($:/plugins/OokTech/MultiUser/ServerSide.js:73:33) at Object.handler ($:/plugins/OokTech/MultiUser/commands/wsserver.js:330:43) at SimpleServer.requestHandler ($:/plugins/OokTech/MultiUser/commands/wsserver.js:153:15) at emitTwo (events.js:126:13) at Server.emit (events.js:214:7) at parserOnIncoming (_http_server.js:619:12) at HTTPParser.parserOnHeadersComplete (_http_common.js:115:23)
includeWikis:I have never used this, looked at it and then promptly forgot about it. I may be able to include it but at the moment the server doesn't have a mechanism for it because the included wikis are supposed to be read-only. I am hoping to have an equivalent option available for combining multiple wikis in the future, but that isn't going to be part of this release. I hope you are correct about it not being a necessary feature for many people.That isn't an expected error so I will need to look into that and make sure it isn't going to affect anything else. For now includeWikis just won't be supported.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f302f718-dcb7-4062-80e6-f9af1dbf4153%40googlegroups.com.
Every time I gave a descriptive name to what I make people assume they know what it means from the name and they are invariably wrong about it. And then everyone said all the names I suggested were bad for one reason or another, so I went with a generic name.
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/m85IYlxjQss/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/1940924a-31ba-42e2-9282-c0851be7905b%40googlegroups.com.
I won't be able to rebuild the executables until I get home later today, but the plugin version should be fixed so it no longer gets trapped in an infinite loop when you import an image file by dragging and dropping it.I look froward to seeing what new bugs this fix introduces.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/d6fc96fd-1853-46d3-a2b0-13dda928125c%40googlegroups.com.
custom mimeMap:you can set the mimeMap in the settings in the $:/ControlPanel. Make a mimeMap property with type object and list the types of files along with their mime-types there like herethe entries for mp4 and .mov are:".mp4": "video/mp4",".mov": "video/quicktime"
".ico": "image/x-icon", ".html": "text/html", ".js": "text/javascript", ".json": "application/json", ".css": "text/css", ".png": "image/png", ".jpg": "image/jpeg", ".jpeg": "image/jpeg", ".wav": "audio/wav", ".mp3": "audio/mpeg", ".svg": "image/svg+xml", ".pdf": "application/pdf", ".doc": "application/msword", ".gif": "image/gif"
ending with als extension types:
They all end with the closing quotation mark and a comma.
In my case I get this
e.g. " .mp4": "video/mp4": "",
So after the closing quotation mark, there is a colon and
complete quotation marks and the the comma.
Moreover these quotation marks ar clickable.
Now when I look at
"suppressBrowser": "", I see the same, but still it not what
I thought that would be right. I was aiming for an exact copy
of the example in Configuration.md.
Can anybody please explain in simple English, as I am totally
a non-Wizard, what it all means.
This is how my Node Setting/Manual Settings looks now
Again thanks a lot to everybody helping out here!
.mp4
video/mp4
{
".ico": "image/x-icon",
".html": "text/html",
".js": "text/javascript",
".json": "application/json",
".css": "text/css",
".png": "image/png",
".jpg": "image/jpeg",
".jpeg": "image/jpeg",
".wav": "audio/wav",
".mp3": "audio/mpeg",
".svg": "image/svg+xml",
".pdf": "application/pdf",
".doc": "application/msword",
".gif": "image/gif",
".mp4": "video/mp4",
".mov": "video/quicktime"
}
Rename Tiddler undefined to $__DefaultTiddlers
saved file C:\Users\stobbea\Documents\TiddlyWiki\Wikis\test1\tiddlers\DefaultTiddlers.tid
Rename Tiddler undefined to $__DefaultTiddlers
Delete Tiddler C:\Users\stobbea\Documents\TiddlyWiki\Wikis\test1\tiddlers / DefaultTiddlers
Deleted tiddler file DefaultTiddlers
Delete Tiddler C:\Users\stobbea\Documents\TiddlyWiki\Wikis\test1\tiddlers / DefaultTiddlers
Deleted tiddler file DefaultTiddlers
saved file C:\Users\stobbea\Documents\TiddlyWiki\Wikis\test1\tiddlers\DefaultTiddlers.tid
Delete Tiddler C:\Users\stobbea\Documents\TiddlyWiki\Wikis\test1\tiddlers / DefaultTiddlers
Deleted tiddler file DefaultTiddlers
{ Error: ENOENT: no such file or directory, open 'C:\Users\stobbea\Documents\TiddlyWiki\Wikis\test1\tiddlers\DefaultTiddlers.tid'
at Object.fs.openSync (fs.js:663:18)
at Object.fs.openSync (pkg/prelude/bootstrap.js:483:32)
at Object.fs.readFileSync (fs.js:568:33)
at Object.fs.readFileSync (pkg/prelude/bootstrap.js:675:36)
at Object.$tw.loadTiddlersFromFile (C:\snapshot\SingleExecutable\boot\boot.js:1503:13)
at Object.$tw.nodeMessageHandlers.saveTiddler ($:/plugins/OokTech/MultiUser/NodeMessageHandlers.js:107:43)
at WebSocket.incoming ($:/plugins/OokTech/MultiUser/NodeWebSocketsSetup.js:182:57)
at WebSocket.emit (events.js:159:13)
at Receiver._receiver.onmessage ($:/plugins/OokTech/MultiUser/WS/WebSocket.js:156:47)
at Receiver.dataMessage ($:/plugins/OokTech/MultiUser/WS/Receiver.js:402:14)
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\\Users\\stobbea\\Documents\\TiddlyWiki\\Wikis\\test1\\tiddlers\\DefaultTiddlers.tid' }
I may not be the most responsible person in the world but I am not so irresponsible that I am willing to intentionally put someone in that position.
... I don't want to put default values in places where it could cause that sort of problem.