I have this every so often, this is a result of a slow connection to the point where the game thinks you have disconnected. What is your ISP and your Download/Upload rate? Ping? What is your maximum bitrate? If you have a low-bitrate, this will instantly cause lag in-game and is your ISP and not Spiral Knights itself.
Your only suggestion is to first check what your bitrate is. If it's high, make sure you're not download/uploading anything as this will instantly eat at your connection. Another thing that could be causing it is your location and what server you're using: Are you using the EU or US one?
The only real "fix" is to get a better ISP if you're within the US or EU.