Method

AgsAudioOscXmlrpcServeradd_websocket_handler

since: 3.0.0

Declaration [src]

void
ags_osc_xmlrpc_server_add_websocket_handler (
  AgsOscXmlrpcServer* osc_xmlrpc_server,
  char* path,
  char* origin,
  char** protocols,
  SoupServerWebsocketCallback callback,
  gpointer user_data,
  GDestroyNotify destroy
)

Description [src]

Add websocket handler to soup server.

Available since: 3.0.0

Parameters

path

Type: char*

The path.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
origin

Type: char*

The origin.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
protocols

Type: char**

The protocls as string vector.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
callback

Type: SoupServerWebsocketCallback

The callback.

user_data

Type: gpointer

User data.

The argument can be NULL.
The data is owned by the caller of the method.
destroy

Type: GDestroyNotify

Destroy notify function.