summaryrefslogtreecommitdiffstats
path: root/modules/websocket/wsl_server.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Disable Nagle's algorithm for WebSocket TCP.Fabio Alessandrelli2020-01-281-0/+1
| | | | | | This should greatly decrease latency for the most common use cases. A new function WebSocketPeer::set_no_delay will allow to configure it if so desired.
* Lower WebSocket latency, fixes.Fabio Alessandrelli2020-01-241-3/+1
| | | | | WSLPeer now tries to flush packet queue after put_packet call. WSLServer::listen correctly returns TCP_Server::listen return value.
* Prevent GDScript language server from listening to external hosts by defaultHoukime2020-01-151-1/+1
| | | | | | | | | | * Add bind_ip property to WebSocketServer defaulting to "*" (listen to everyone) * Set default for GDscript Language Server to listen only to localhost Fixes potential security issue with GDScript language server being exposed to the broad net by default. Since it is the server which primary usage is to provide utility to the local editor there is no need to expose it.
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* Trim protocol field from spaces in WS classes.Fabio Alessandrelli2019-10-161-3/+9
|
* Custom headers support in WebSocketClient.Fabio Alessandrelli2019-10-091-4/+5
| | | | | This commit also converts all PoolVector<String> parameters to `const Vector<String>` in both WebSocketServer and WebSocketClient.
* Implement WebSocketServer SSL support.Fabio Alessandrelli2019-10-091-1/+20
|
* Re-implement WebSocket get host/port.Fabio Alessandrelli2019-10-091-1/+3
| | | | Was lost during library switch
* Replace last occurrences of 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG'Rémi Verschelde2019-08-171-13/+12
| | | | | | | | | | The last remaining ERR_EXPLAIN call is in FreeType code and makes sense as is (conditionally defines the error message). There are a few ERR_EXPLAINC calls for C-strings where String is not included which can stay as is to avoid adding additional _MSGC macros just for that. Part of #31244.
* Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in rest of 'modules/'Robin Hübner2019-08-121-23/+7
|
* (Re-)Implement subprotocols in websocket server.Fabio Alessandrelli2019-07-081-6/+27
|
* Optimize header reads (avoid extra allocs)Fabio Alessandrelli2019-07-041-17/+26
|
* WebSocket module now uses wslay library.Fabio Alessandrelli2019-07-041-0/+272
Both client and server are supported on native builds (as usual). SSL server is still not supported, but will soon be possible with this new library. The API stays the same, we just need to work out potential issues due to this big library switch.