mirror of
https://github.com/defold/extension-websocket.git
synced 2025-06-27 01:47:42 +02:00
Removed hard length limit for received messages (#51)
This commit is contained in:
parent
6ec47ddc17
commit
0ac6e3f9a3
@ -39,11 +39,7 @@ const char* WSL_ResultToString(int err)
|
|||||||
int WSL_Init(wslay_event_context_ptr* ctx, ssize_t buffer_size, void* userctx)
|
int WSL_Init(wslay_event_context_ptr* ctx, ssize_t buffer_size, void* userctx)
|
||||||
{
|
{
|
||||||
// Currently only supports client implementation
|
// Currently only supports client implementation
|
||||||
int ret = -1;
|
return wslay_event_context_client_init(ctx, &g_WslCallbacks, userctx);
|
||||||
ret = wslay_event_context_client_init(ctx, &g_WslCallbacks, userctx);
|
|
||||||
if (ret == 0)
|
|
||||||
wslay_event_config_set_max_recv_msg_length(*ctx, buffer_size);
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -165,4 +161,4 @@ int WSL_GenmaskCallback(wslay_event_context_ptr ctx, uint8_t *buf, size_t len, v
|
|||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
#endif // HAVE_WSLAY
|
#endif // HAVE_WSLAY
|
||||||
|
Loading…
x
Reference in New Issue
Block a user