Socket.IO seems to include an own reconnect mechanism for some time. HedgeDoc however built an own reconnect mechanism on top of that. Since the 'reconnect' event was dropped for socket.io 4.x, the reconnect-cleanup code didn't run anymore. This commit fixes this by: - removing the manual reconnect interval, - putting the reconnect handler into the correct place, - setting reconnection options on the server side Signed-off-by: Erik Michelson <github@erik.michelson.eu>
108 KiB
108 KiB