[Maturing] This method it is use to close open Websocket connections.

trading_ws_close(close_all = TRUE, selection, where_is_env = .GlobalEnv)

Arguments

close_all

Logical. Should all connections be closed or only the selected ones.

selection

List. Is the same name that you have chosen for destination in trading_ws_md

where_is_env

Environment. Only for advance users.

Value

If correct, it will show a message saying that the connection has been closed.

See also

Other websocket functions: trading_ws_md(), trading_ws_orders()

Examples


# To close all connections at once

if (FALSE) {
trading_ws_close(close_all = TRUE)
}