2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
42#include "web/websocket/server/SubProtocol.h"
44#include "web/websocket/SubProtocol.hpp"
45#include "web/websocket/server/GroupsManager.h"
47#ifndef DOXYGEN_SHOULD_SKIP_THIS
54 : Super
(subProtocolContext
, name
, pingInterval
, maxFlyingPings
) {
SubProtocol(SubProtocolContext *subProtocolContext, const std::string &name, int pingInterval=60, int maxFlyingPings=3)
void sendBroadcast(const std::string &group, const char *message, std::size_t messageLength, const SubProtocol *excludedClient)
static GroupsManager * instance()
void sendBroadcastStart(const std::string &group, const std::string &message, const SubProtocol *excludedClient)
void forEachClient(const std::string &group, const std::function< void(const SubProtocol *)> &sendToClient, const SubProtocol *excludedClient)
void sendBroadcastStart(const std::string &group, const char *message, std::size_t messageLength, const SubProtocol *excludedClient)
void subscribe(SubProtocol *subProtocol, std::string group="")
void sendBroadcastEnd(const std::string &group, const char *message, std::size_t messageLength, const SubProtocol *excludedClient)
void sendBroadcast(const std::string &group, const std::string &message, const SubProtocol *excludedClient)
void unsubscribe(SubProtocol *subProtocol)
void sendBroadcastFrame(const std::string &group, const char *message, std::size_t messageLength, const SubProtocol *excludedClient)
void sendBroadcastEnd(const std::string &message, bool excludeSelf=false)
void forEachClient(const std::function< void(const SubProtocol *)> &sendToClient, bool excludeSelf=false)
void sendBroadcastFrame(const char *message, std::size_t messageLength, bool excludeSelf=false)
void sendBroadcastFrame(const std::string &message, bool excludeSelf=false)
void sendBroadcast(const char *message, std::size_t messageLength, bool excludeSelf=false)
void sendBroadcastStart(const char *message, std::size_t messageLength, bool excludeSelf=false)
void sendBroadcastStart(const std::string &message, bool excludeSelf=false)
SubProtocol(SubProtocolContext *subProtocolContext, const std::string &name, int pingInterval=0, int maxFlyingPings=3)
void sendBroadcastEnd(const char *message, std::size_t messageLength, bool excludeSelf=false)
void subscribe(const std::string &group)
void sendBroadcast(const std::string &message, bool excludeSelf=false)