Forums » Union Coders »
A space character in the end of room name
Added by kazuya okuyama 713 days ago
Hi all.
I found some problems.
When there is a blank character in the end of the room name,
the user can not join the room.
You can create a room successfully, but onJoinResult handler will not be called.
reactor.getRoomManager().addEventListener(RoomManagerEvent.CREATE_ROOM_RESULTS, onCreateRoomResult);
reactor.getRoomManager().createRoom("examples.chat ");
private function onCreateRoomResult(e:RoomManagerEvent):void {
if (e.getStatus() == Status.SUCCESS) {
var room:Room = reactor.getRoomManager().getRoom(e.getRoomID());
room.addEventListener(RoomEvent.JOIN_RESULT, onJoinResult);
room.join();
}
}
private function onJoinResult(e:RoomEvent):void {
trace(e.getStatus());
}
Is it not allowed to use a space ?
In addition,
If the room name contains "<" character, a TypeError occurs.
Replies
RE: A space character in the end of room name - Added by colin moock 713 days ago
hi kazuya-san,
both of those cases look like a bug. i've logged the issue here:
http://factory.user1.net/issues/show/297
for now, please avoid using those characters in your room ids.
thanks for posting this issue!
教えてくれたありがとう!
colin
RE: A space character in the end of room name - Added by colin moock 694 days ago
fyi, our next release (alpha 7) fixes these issues.
colin