Here goes,
I’m newer to Defold and Lua but completed the “War battles tutorial” and feel pretty good about how things worked.
While trying to get an echo from the example at
API reference (extension-websocket) (defold.com)
I ran into some issues. It looks like the echo.websocket.org server may no longer be available and I’m getting this error when using log
ERROR:SCRIPT: /main/websocket_code.script:10: attempt to call global 'log' (a nil value)
stack traceback:
/main/websocket_code.script:10: in function </main/websocket_code.script:1>
Does log require a separate dependency?
Now onto the main question.
Does the WebSocket extension support using secure websockets?
Can you run a WebSocket server from Defold? Or rather is there a higher level API that allows creation of a websocket server without implementing the protocol yourself?
After doing some research I think the answer to both of the above may be no. After reading this post and an earlier one before signing up to the forum.
My intended use case is to run an instance of Defold as a WebSocket server per game match.