It would require having a browser open with someone logged in.
You could use some sort of password or special username, which upon trying to connect to a room and becoming host, gets checked.
Name/pass matches ? allow joining and become host
Name / pass does not match, disconnect from room.