Monday, November 08, 2010 at 12:00 AM.

scripting2Suite.data.code.realtime.client.start

on start (server, username, password) {
	<<Changes
		<<7/20/10; 5:41:23 AM by DW
			<<Be sure the realtime thread is running. If not, launch it.
	local (adrdata = realtime.init ());
	if adrdata^.client.prefs.enabled {
		local (flstart = true);
		adrdata^.client.prefs.server = server;
		adrdata^.client.prefs.username = username;
		adrdata^.client.prefs.password = password;
		if defined (system.temp.realtime.stats.idRealtimeThread) {
			flstart = not thread.exists (system.temp.realtime.stats.idRealtimeThread)};
		if flstart {
			thread.callscript (@realtime.client.getUpdates, {})}}};
bundle { //test code
	start ()}



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.