Giter Site home page Giter Site logo

Comments (4)

Tuxerito avatar Tuxerito commented on May 20, 2024 1

Thanks again.
I will check what you mentioned

from gdx-lml.

czyzby avatar czyzby commented on May 20, 2024

I think someone had a similar problem.

GWT does not support IO.Socket, as you've noticed. This library is a barebones web socket client implementation. To be honest, I haven't used Socket.IO myself, but if it adds anything on top of regular web sockets protocol, I'm pretty sure this library would be incompatible. Socket.IO should have a native JS client, so you can try to use that via GWT native calls. Here's an example of blending native JS and GWT-compiled Java.

Or you could build your web socket server with Java/Kotlin/any other JVM language. You could try sharing some common logic between your client and server if you decide to switch. I recommend looking into Vert.x.

from gdx-lml.

Tuxerito avatar Tuxerito commented on May 20, 2024

Hi thanks for the reply.

So gdx-websocket is not for I want it? To connect to a server like the JavaScript or IO.Socket(Java) samples.

The server is not mine.

Thanks

from gdx-lml.

czyzby avatar czyzby commented on May 20, 2024

gdx-websocket lets you connect with any web socket server, but I don't think it supports whatever protocol Socket.IO adds on top of that. Instead, I recommend using IO.Socket for desktop/mobile and native JS client on GWT/HTML.

from gdx-lml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.