Main Content

isconnection

Determine if Money.Net web socket interface connection is valid

Since R2021b

Description

v = isconnection(c) returns logical 1 (true) if c is a valid Money.Net web socket interface connection. Otherwise, isconnection returns logical 0 (false).

example

Examples

collapse all

Create Money.Net web socket interface connection c using a user name and password.

username = "user@company.com";
pwd = "999999";

c = moneynetws(username,pwd);

Validate the Money.Net web socket interface connection c.

v = isconnection(c)
v =

  logical

   1

isconnection returns 1, indicating a successful connection.

Close the Money.Net web socket interface connection.

close(c)

Validate that the Money.Net web socket interface connection c is closed.

v = isconnection(c)
v =

  logical

   0

isconnection returns 0, indicating a closed connection.

Input Arguments

collapse all

Money.Net web socket interface connection, specified as a moneynetws object created using the moneynetws function.

Output Arguments

collapse all

Valid Money.Net web socket interface connection, returned as a logical 1 (true) that specifies a successful connection, or logical 0 (false) that specifies a closed or invalid connection.

Version History

Introduced in R2021b