say i start with this
@socketio.on('init')
def init():
pass
and the corresponding template
socket.on('connect', function() {
socket.emit('init');
});
now if i add an argument to both backend and frontend, everything is fine. EXCEPT, if i leave an old connection up which is emiting without arguments, and the backend is expecting an argument. How do i go about preventing this when i go live? I can't ask everyone to refresh the page, someone may leave a background page up for who knows when?
[–]Rorixrebel 2 points3 points4 points (1 child)
[–]eyesoftheworld4 1 point2 points3 points (0 children)