1. Hello Guest! It's with a heavy heart that we must announce the removal of the Legacy GMC Archive. If you wish to save anything from it, now's the time! Please see this topic for more information.
    Dismiss Notice

Asset - Extension Android Socket.IO Client

Discussion in 'Marketplace' started by Lê Tuấn Anh, Dec 3, 2019.

  1. Lê Tuấn Anh

    Lê Tuấn Anh Member

    Joined:
    Nov 27, 2019
    Posts:
    9
    Native Socket.IO and Android

    Implemention Socket.IO in game maker studio

    Information: https://socket.io/blog/native-socket-io-and-android/

    Server socket test: https://socket-io-chat.now.sh/

    Socket funtion:

    initSocket(String host): Init socket io with host

    onListener(String type): Add listener from host, type listener data in async social(GMS)

    connect(): Call connect to host

    disconnect(): Disconnect to host

    sendJsonArray(key, json): Send data json array to host, (json as String)

    sendJsonObject(key, json): Send data json object to host, (json as String)

    sendString(key, value): Send string to host

    sendDouble(key, value): Send double to host
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice