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

websocket handling More...

#include "dist/mongoose/mongoose.h"
#include "src/lib/api.h"
Include dependency graph for websocket.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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