Remove spaces from custom error names for consistency with standard error object.
Emit an error event instead of throwing an error when presented with an invalid room id.
Compiled source