FAQ

cumulusdev edited this page Dec 1, 2012 · 16 revisions

Here are listed answers for frequently asked questions.

Why the cirrus sample doesn't work?

Because cirrus server includes the following script server:

	function onConnection(client,...)
		function client:relay(targetId,...)
			target = cumulus.clients(targetId)
			if not target then
				error("client '"..targetId.."' not found")
				return
			end
			target.writer:writeAMFMessage("onRelay",self.id,...)
			target.writer:flush(true)
		end
	end

Adding it for your www/main.lua file will make working the cirrus sample.

Note the cirrus sample requires some python scripts to exchange user names, it makes the thing complex whereas it could be easily to replace with some LUA code line. I guess you to keep an eye on the meeting sample of the [Server Application, Samples] page which does the same thing but without other external dependencies.