R/cpp11.R

Defines functions wsUpdateLogChannels wsState wsProtocol wsClose wsSend wsConnect wsAddProtocols wsAppendHeader wsCreate

# Generated by cpp11: do not edit by hand

wsCreate <- function(uri, loop_id, robjPublic, robjPrivate, accessLogChannels, errorLogChannels, maxMessageSize) {
  .Call(`_websocket_wsCreate`, uri, loop_id, robjPublic, robjPrivate, accessLogChannels, errorLogChannels, maxMessageSize)
}

wsAppendHeader <- function(wsc_xptr, key, value) {
  invisible(.Call(`_websocket_wsAppendHeader`, wsc_xptr, key, value))
}

wsAddProtocols <- function(wsc_xptr, protocols) {
  invisible(.Call(`_websocket_wsAddProtocols`, wsc_xptr, protocols))
}

wsConnect <- function(wsc_xptr) {
  invisible(.Call(`_websocket_wsConnect`, wsc_xptr))
}

wsSend <- function(wsc_xptr, msg) {
  invisible(.Call(`_websocket_wsSend`, wsc_xptr, msg))
}

wsClose <- function(wsc_xptr, code, reason) {
  invisible(.Call(`_websocket_wsClose`, wsc_xptr, code, reason))
}

wsProtocol <- function(wsc_xptr) {
  .Call(`_websocket_wsProtocol`, wsc_xptr)
}

wsState <- function(wsc_xptr) {
  .Call(`_websocket_wsState`, wsc_xptr)
}

wsUpdateLogChannels <- function(wsc_xptr, accessOrError, setOrClear, logChannels) {
  invisible(.Call(`_websocket_wsUpdateLogChannels`, wsc_xptr, accessOrError, setOrClear, logChannels))
}

Try the websocket package in your browser

Any scripts or data that you put into this service are public.

websocket documentation built on Aug. 19, 2021, 1:08 a.m.