mirror of
https://github.com/defold/extension-websocket.git
synced 2025-09-30 09:12:18 +02:00
Websocket now supports html5 as well
This commit is contained in:
@@ -5,6 +5,14 @@
|
||||
namespace dmWebsocket
|
||||
{
|
||||
|
||||
dmSocket::Result WaitForSocket(WebsocketConnection* conn, dmSocket::SelectorKind kind, int timeout)
|
||||
{
|
||||
dmSocket::Selector selector;
|
||||
dmSocket::SelectorZero(&selector);
|
||||
dmSocket::SelectorSet(&selector, kind, conn->m_Socket);
|
||||
return dmSocket::Select(&selector, timeout);
|
||||
}
|
||||
|
||||
dmSocket::Result Send(WebsocketConnection* conn, const char* buffer, int length, int* out_sent_bytes)
|
||||
{
|
||||
int total_sent_bytes = 0;
|
||||
|
Reference in New Issue
Block a user