leafo / aroma

a game engine: lua, opengl es 2.0, native client
http://leafo.net/aroma
Other
197 stars 20 forks source link

Support for LuaSocket #2

Open vschiavoni opened 12 years ago

vschiavoni commented 12 years ago

Hello, this is a very interesting project. It would be interesting to have LuaSocket support for applications. Do you plan to support it/does it already work ?

thanks, valerio

leafo commented 12 years ago

Sadly LuaSocket won't be able to work with Native Client. Chrome restricts what is possible from Native Client app, and opening a socket is not allowed for security reasons.

But, Native Client does have a WebSocket API, which is alternative great for multiplayer games and other similar things. I plan to expose this in Lua, I just haven't done it yet!

leafo commented 12 years ago

Interestingly enough I just saw this: http://blog.alexmaccaw.com/chrome-tcp-udp

Looks like I'll be able to add a LuaSocket like api in the near future.