cosock
cosock is a library that provides a coroutine executor for luasocket code. Unlike existing coroutine executors it aims to provide a socket facade API inside each coroutine that is as close to the native luasocket API as is possible.
Note: currenly the only goals are to provide the API as documented, undocumented APIs are out of scope for now (however, small quirks that are heavily depened on in the ecosystem will be considered).
For now see the tests folder for example usage.
Testing
To run ssl tests, test keys and certificates first need to be generated via openssl. To do so run:
sh tests/ssl/certs/generate.sh