scripts/muc_instant_rooms.scs

Sun, 30 Dec 2018 09:43:36 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 30 Dec 2018 09:43:36 +0000
changeset 164
14500a149b31
parent 85
c928e514aa95
permissions
-rw-r--r--

client: Ignore timeout timer if we received a stanza

# Test for instant room creation
# http://xmpp.org/extensions/xep-0045.html#createroom-instant
# https://prosody.im/issues/issue/377

[Client] Crone
	jid: crone1@shakespeare.lit/desktop
	password: iwillnevertell

# [Muc Room] 
# jid: 
------------

Crone connects

Crone sends:
	<presence to="coven@chat.shakespeare.lit/firstwitch">
		<x xmlns="http://jabber.org/protocol/muc"/>
	</presence>

Crone receives:
	<presence from="coven@chat.shakespeare.lit/firstwitch">
		<x xmlns="http://jabber.org/protocol/muc#user">
			<item affiliation="owner" role="moderator"/>
			<status code="110"/>
			<status code="201"/>
		</x>
	</presence>

// NOTE: May receive (empty) room subject here

// TODO Have another client try joining the room, it should fail.

Crone sends:
	<iq type="set" id="instant" to="coven@chat.shakespeare.lit">
		<query xmlns="http://jabber.org/protocol/muc#owner">
			<x xmlns="jabber:x:data" type="submit"/>
		</query>
	</iq>

Crone receives:
	<iq type="result" id="instant" from="coven@chat.shakespeare.lit"/>

// TODO Have another client try joining the room, it should succeed now.

// vim: syntax=xml

mercurial