myMPD
Internal API documentation
Loading...
Searching...
No Matches
websocket.c File Reference

websocket handling More...

#include "compile_time.h"
#include "src/webserver/websocket.h"
#include "src/lib/log.h"
#include "src/webserver/utility.h"
Include dependency graph for websocket.c:

Functions

void websocket_send_notify (struct mg_mgr *mgr, struct t_work_response *response)
 
void websocket_send_notify_client (struct mg_mgr *mgr, struct t_work_response *response)
 

Detailed Description

websocket handling

Function Documentation

◆ websocket_send_notify()

void websocket_send_notify ( struct mg_mgr *  mgr,
struct t_work_response response 
)

Broadcasts a message through all websocket connections for a specific or all partitions

Parameters
mgrmongoose mgr
responsejsonrpc notification

◆ websocket_send_notify_client()

void websocket_send_notify_client ( struct mg_mgr *  mgr,
struct t_work_response response 
)

Sends a message through the websocket to a specific client We use the jsonprc id to identify the websocket connection

Parameters
mgrmongoose mgr
responsejsonrpc notification