Webscokcet my settings:
function init ()
OnBeat function ()
function onMessage (uid, msg)
?? broadcast (uid, msg)
?? return ""
onConnect function (uid)
OnDisconnect function (uid)
function onMessage (uid, msg) - Called When a user sends a message
sendto (uid, msg) - Send a message to a user by Their uid
This is the configuration of my websocket. What I search is the following:
The player presses a button, it sends a message such as "Hello" and the second player receives this message in a text box, and can respoder, to pressed another button.
How I can do this? I am crazy, trying to create this.
Develop games in your browser. Powerful, performant & highly capable.
Closing, this is not an appropriate forum to ask this type of question. Try StackOverflow.