mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
Allow WebSocket connect with no sub-protocols.
This commit is contained in:
parent
9e43129906
commit
6bc97cc7cc
4 changed files with 40 additions and 43 deletions
|
|
@ -41,9 +41,6 @@ Error LWSServer::listen(int p_port, PoolVector<String> p_protocols, bool gd_mp_a
|
|||
struct lws_context_creation_info info;
|
||||
memset(&info, 0, sizeof info);
|
||||
|
||||
if (p_protocols.size() == 0) // default to binary protocol
|
||||
p_protocols.append(String("binary"));
|
||||
|
||||
// Prepare lws protocol structs
|
||||
_lws_make_protocols(this, &LWSServer::_lws_gd_callback, p_protocols, &_lws_ref);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue