|
|
@@ -1,5 +1,4 @@
|
|
|
#include "net/http_wsserver.h"
|
|
|
-//#include "HPSocket/HPSocket.h"
|
|
|
#include "HPSocket/HPSocket-SSL.h"
|
|
|
#include "util/codec.h"
|
|
|
|
|
|
@@ -231,6 +230,7 @@ void ylib::network::http::wsserver::stop()
|
|
|
|
|
|
bool ylib::network::http::wsserver::send(int64 conn, std::string_view value)
|
|
|
{
|
|
|
+
|
|
|
BOOL bFinal;
|
|
|
BYTE iReserved;
|
|
|
BYTE iOperationCode;
|
|
|
@@ -238,3 +238,8 @@ bool ylib::network::http::wsserver::send(int64 conn, std::string_view value)
|
|
|
return false;
|
|
|
return HPSERVER->SendWSMessage(conn,bFinal,iReserved,iOperationCode,(const BYTE*)value.data(),value.length());
|
|
|
}
|
|
|
+
|
|
|
+void ylib::network::http::wsserver::disconn(int64 conn)
|
|
|
+{
|
|
|
+ HPSERVER->Disconnect(conn);
|
|
|
+}
|