make WSclient_t * newClient(WEBSOCKETS_NETWORK_CLASS * TCPclient); public

This commit is contained in:
Links
2021-01-19 16:59:03 +01:00
parent 0ecef8c552
commit 900d81e534

View File

@ -98,6 +98,8 @@ class WebSocketsServerCore : protected WebSockets {
void loop(void); // handle client data only void loop(void); // handle client data only
#endif #endif
WSclient_t * newClient(WEBSOCKETS_NETWORK_CLASS * TCPclient);
protected: protected:
String _origin; String _origin;
String _protocol; String _protocol;
@ -116,8 +118,6 @@ class WebSocketsServerCore : protected WebSockets {
uint32_t _pongTimeout; uint32_t _pongTimeout;
uint8_t _disconnectTimeoutCount; uint8_t _disconnectTimeoutCount;
WSclient_t * newClient(WEBSOCKETS_NETWORK_CLASS * TCPclient);
void messageReceived(WSclient_t * client, WSopcode_t opcode, uint8_t * payload, size_t length, bool fin); void messageReceived(WSclient_t * client, WSopcode_t opcode, uint8_t * payload, size_t length, bool fin);
void clientDisconnect(WSclient_t * client); void clientDisconnect(WSclient_t * client);