Skip to content

NoahCornell/cosock

 
 

Repository files navigation

cosock

cosock logo

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

About

A coroutine runtime for native luasocket code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 93.3%
  • Shell 6.7%