mirror of
https://github.com/faye/websocket-driver-ruby.git
synced 2025-11-01 13:59:38 +00:00
Messages should be queued when the client is in the 'pre-connecting' state, as the client is initially.
This commit is contained in:
@@ -103,7 +103,7 @@ module WebSocket
|
||||
end
|
||||
|
||||
def frame(data, type = nil, code = nil)
|
||||
return queue([data, type, code]) if @ready_state == 0
|
||||
return queue([data, type, code]) if @ready_state <= 0
|
||||
return false unless @ready_state == 1
|
||||
|
||||
data = data.to_s unless Array === data
|
||||
|
||||
Reference in New Issue
Block a user