lib/faye/websocket/api.rb in faye-websocket-0.10.8 vs lib/faye/websocket/api.rb in faye-websocket-0.10.9
- old
+ new
@@ -81,10 +81,10 @@
reason ||= ''
unless code == 1000 or (code >= 3000 and code <= 4999)
raise ArgumentError, "Failed to execute 'close' on WebSocket: " +
"The code must be either 1000, or between 3000 and 4999. " +
- "#{code} is neither."
+ "#{ code } is neither."
end
@ready_state = CLOSING unless @ready_state == CLOSED
@close_timer = EventMachine.add_timer(CLOSE_TIMEOUT) { begin_close('', 1006) }