Test and fix to enforce room emitting state for socket