diff --git a/Net/include/Poco/Net/WebSocketImpl.h b/Net/include/Poco/Net/WebSocketImpl.h index b631a5d2e..31857c162 100644 --- a/Net/include/Poco/Net/WebSocketImpl.h +++ b/Net/include/Poco/Net/WebSocketImpl.h @@ -57,6 +57,7 @@ public: virtual int sendTo(const void* buffer, int length, const SocketAddress& address, int flags = 0); virtual int receiveFrom(void* buffer, int length, SocketAddress& address, int flags = 0); virtual void sendUrgent(unsigned char data); + virtual int available(); virtual bool secure() const; virtual void setSendTimeout(const Poco::Timespan& timeout); virtual Poco::Timespan getSendTimeout(); diff --git a/Net/src/WebSocketImpl.cpp b/Net/src/WebSocketImpl.cpp index 4ed6354d6..a9e75817f 100644 --- a/Net/src/WebSocketImpl.cpp +++ b/Net/src/WebSocketImpl.cpp @@ -322,5 +322,11 @@ Poco::Timespan WebSocketImpl::getReceiveTimeout() return _pStreamSocketImpl->getReceiveTimeout(); } + +int WebSocketImpl::available() +{ + return _pStreamSocketImpl->available(); +} + } } // namespace Poco::Net