trading_ws_close: Web Sockets: Close connection

Description Usage Arguments Value See Also Examples

View source: R/functions_websocket.R

Description

\Sexpr[results=rd, stage=render]{lifecycle::badge("maturing")}

This method it is use to close open Websocket connections.

Usage

1
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

1
2
3
4
5
6
# To close all connections at once

## Not run: 
trading_ws_close(close_all = TRUE)

## End(Not run)

rRofex documentation built on Aug. 2, 2021, 9:06 a.m.