Using the Electron with Third-party Servers Directly

Yes of course you can use other servers.
You can use the http library.
It works great with Electron.
Also other libraries that are based on TCP Client you are free to use.