8000 Merge pull request #296 from getbyte/master · BirdAPI/arduinoWebSockets@5bf8b24 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5bf8b24

Browse files
authored
Merge pull request Links2004#296 from getbyte/master
fix undefined virtual methods
2 parents 7443f9b + 50d9a8d commit 5bf8b24

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/WebSockets.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,10 @@ class WebSockets {
272272
typedef std::function<void(WSclient_t * client, bool ok)> WSreadWaitCb;
273273
#endif
274274

275-
virtual void clientDisconnect(WSclient_t * client);
276-
virtual bool clientIsConnected(WSclient_t * client);
275+
virtual void clientDisconnect(WSclient_t * client) = 0;
276+
virtual bool clientIsConnected(WSclient_t * client) = 0;
277277

278-
virtual void messageReceived(WSclient_t * client, WSopcode_t opcode, uint8_t * payload, size_t length, bool fin);
278+
virtual void messageReceived(WSclient_t * client, WSopcode_t opcode, uint8_t * payload, size_t length, bool fin) = 0;
279279

280280
void clientDisconnect(WSclient_t * client, uint16_t code, char * reason = NULL, size_t reasonLen = 0);
281281
bool sendFrame(WSclient_t * client, WSopcode_t opcode, uint8_t * payload = NULL, size_t length = 0, bool mask = false, bool fin = true, bool headerToPayload = false);

0 commit comments

Comments
 (0)
0