Currently, we send a simple request to check if the server is turned on or not. The languageTool package ought to have a some indication if the server is on or not.
We ought to:
Connect on startup in the module
If connection fails on startup, we should flag a startup error (LT not running; run it or disable the module)
Persist the connection, with reconnects if we lose one
Connecting and disconnecting seems like the wrong way to do this.
The LanguageToolClient that does some of the additional processing only connects to the server when it makes a request. The client just makes a POST request to the server.
For now, checking the server via the port is fine until we can address this further.
Currently, we send a simple request to check if the server is turned on or not. The languageTool package ought to have a some indication if the server is on or not.
The LanguageToolClient that does some of the additional processing only connects to the server when it makes a request. The client just makes a
POSTrequest to the server.For now, checking the server via the port is fine until we can address this further.