0

Did anyone try to use websockets with Shiva3D ? I want to create communication between client and server and I think it is easier to use websockets than tcp, because overhead is not so big. Is there already library for websockets or I can use c++ and bind to lua. I am totally new to lua.

Damir
  • 54,277
  • 94
  • 246
  • 365

1 Answers1

0

Shiva3D does not let you 'require' external modules (probably security risk). Otherwise you could use lua-websockets on github, find it easily with google. It is mentioned in another SO post: LUA Script - web socket communication.

You can write c++ plugin, which is then accessible from Lua scripts. THis requires you have a Verisign certificate to sign the plugin. So if you have a favorite c++ library for websockets (wt, websockets++, etc) you can expose that to your Lua scripts.

Community
  • 1
  • 1
Oliver
  • 27,510
  • 9
  • 72
  • 103