OpenConnection(String,String,Int16) Method
- Last UpdatedApr 08, 2026
- 1 minute read
Deprecated: Connects to the specified PubSub engine on the same domain.
[Obsolete("Replace usages with --> PubSubConnectionFactory.OpenConnection(~) <-- [DECEMBER 2018]")]
public void OpenConnection(
string AppName,
string IPName,
short port
)
[Obsolete("Replace usages with --> PubSubConnectionFactory.OpenConnection(~) <-- [DECEMBER 2018]")]
public:
void OpenConnection(
String^ AppName,
String^ IPName,
short port
)
Parameters
- AppName
- The identifier for this connection. If blank the value appnameGlobal plus the connection number will be used.
- IPName
- The IP address or computer name to connect to.
- port
- The port number to use (0 is the default).
This method has been deprecated. Use PubSubConnectionFactory.OpenConnection.
The connection state is independent of subscriptions, persistence store registration, and secured topics. However, to ensure proper behavior subscriptions, persistence store registrations, and secured topic calls are replayed when a connection is opened. This behavior allows subscriptions and other such calls to be made against a connection once it is initialized but before it is opened.
PubSubConnection PS = new PubSubConnection();
PS.OpenConnection("myApp", "192.168.10.10", 5051);
PubSubConnection PS = new PubSubConnection();
PS.OpenConnection("myApp", "192.168.10.10", 5051);