Socket Connection To be Always alive

Gurus,

I was wondering what will be the best way to keep the connection alive for the Socket Listener inside perspective.

We have a situation where we have to be a Server for a printer which will be a client, and have to keep the connection alive.

Regards.

Perspective doesn't "reach out" to clients. Clients "reach out" to Ignition, with a browser, to establish a Perspective session.

Does this printer have a builtin browser that supports modern HTML5, JS, and CSS?

If not, this isn't a Perspective question. You would need to share more information about what you are trying to do.

If the printer does have such a browser, that browser would be responsible for keep-alive.

1 Like

This definitely sounds more like a WebDev module question. Can you confirm?

The printer is trying to connect through TCP port, we can configure the IP and PORT where the printer connects to.

Ok, but what protocol? (This is not typical behavior for a printer.)

Perhaps you should identify what kind of printer this is and point to its documentation.

it should be socket, when i created a C# TCP Listener, printer is able to connect to that Listener.

A socket is not a protocol. Typically, and for all common drivers, printers are the listeners, not originators, for TCP connections that print something. Why is this printer different, and how do you expect to print anything?

Please share the printer documentation.

2 Likes