mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 12:45:35 +08:00
Refactor connection create process
This commit is contained in:
18
src/ws/ws_transmission.h
Normal file
18
src/ws/ws_transmission.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef _WS_TRANSMISSION_H_
|
||||
#define _WS_TRANSMISSION_H_
|
||||
|
||||
#include "ws_core.h"
|
||||
|
||||
class WsTransmission : public WsCore {
|
||||
public:
|
||||
WsTransmission(std::function<void(const std::string &)> on_receive_msg_cb);
|
||||
~WsTransmission();
|
||||
|
||||
public:
|
||||
void OnReceiveMessage(const std::string &msg);
|
||||
|
||||
private:
|
||||
std::function<void(const std::string &)> on_receive_msg_ = nullptr;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user