• Robert Knight's avatar
    Fix sending of WebSocket messages enqueued during a disconnection · 96c48706
    Robert Knight authored
    Any WebSocket messages submitted whilst the WS is disconnected
    should be re-sent when the WS reconnects.
    
    This was broken because upon a disconnect, the 'onclose'
    event handler first synchronously called reconnect(), resulting
    in a new WebSocket instance being created and then set 'socket'
    to null. This caused an error in sendMessages() after the 'onopen'
    event was triggered.
    
    Fix the problem by not using a null 'socket' var to represent
    a disconnected socket. Instead just use the WebSocket's readyState
    property.
    96c48706
Name
Last commit
Last update
..
annotation-mapper-test.js Loading commit data...
annotation-sync-test.coffee Loading commit data...
annotation-ui-controller-test.coffee Loading commit data...
annotation-ui-sync-test.coffee Loading commit data...
annotation-ui-test.coffee Loading commit data...
annotation-viewer-controller-test.coffee Loading commit data...
app-controller-test.coffee Loading commit data...
auth-controller-test.coffee Loading commit data...
auth-test.js Loading commit data...
blocklist-test.js Loading commit data...
bootstrap.js Loading commit data...
bridge-test.coffee Loading commit data...
create-group-form-test.js Loading commit data...
cross-frame-test.coffee Loading commit data...
discovery-test.coffee Loading commit data...
drafts-test.js Loading commit data...
features-test.js Loading commit data...
form-respond-test.coffee Loading commit data...
groups-test.js Loading commit data...
host-test.coffee Loading commit data...
identity-test.coffee Loading commit data...
local-storage-test.coffee Loading commit data...
permissions-test.coffee Loading commit data...
search-filter-test.coffee Loading commit data...
session-test.js Loading commit data...
store-test.js Loading commit data...
stream-controller-test.coffee Loading commit data...
streamer-test.js Loading commit data...
tags-test.coffee Loading commit data...
threading-test.coffee Loading commit data...
time-test.coffee Loading commit data...
unicode-test.coffee Loading commit data...
view-filter-test.coffee Loading commit data...
websocket-test.js Loading commit data...
widget-controller-test.coffee Loading commit data...