1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

docs: update discussion in test-apps README about plugin inclusion

This commit is contained in:
Andy Green 2017-11-26 06:35:26 +08:00
parent 4ff8e866d5
commit fa73d31558

View file

@ -28,7 +28,9 @@ implementations of timers, dynamic lib loading etc for plugins and lwsws.
This method lets you configure web serving in code, instead of using lwsws.
Plugins are still used, which implies libuv needed.
Plugins are still used, but you have a choice whether to dynamically load
them or statically include them. In this example, they are dynamically
loaded.
$ cmake .. -DLWS_WITH_PLUGINS=1
@ -43,6 +45,16 @@ combined code is all squidged together and is much less maintainable.
This method is still supported in lws but all ongoing and future work is
being done in protocol plugins only.
You can simply include the plugin contents and have it buit statically into
your server, just define this before including the plugin source
```
#define LWS_PLUGIN_STATIC
```
This gets you most of the advantages without needing dynamic loading +
libuv.
Notes about lws test apps
=========================