Websocket chat messages.

0 favourites
  • 2 posts
From the Asset Store
Chat with smart animals using the OpenAi Chat GPT 3 API
  • Webscokcet my settings:

    function init ()


    OnBeat function ()



    function onMessage (uid, msg)

    ?? broadcast (uid, msg)

    ?? return ""


    onConnect function (uid)

    ?? return ""


    OnDisconnect function (uid)

    ?? return ""

    function onMessage (uid, msg) - Called When a user sends a message

    • Uid (string): userid of user messaging server
    • Msg (string): message received

    sendto (uid, msg) - Send a message to a user by Their uid

    • Uid (string): userid of who will receive msg
    • Msg (string): message to be sent


    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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Closing, this is not an appropriate forum to ask this type of question. Try StackOverflow.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)