【问题标题】:socket.io source code for GWTGWT 的 socket.io 源代码
【发布时间】:2025-12-05 09:00:01
【问题描述】:

我正在使用 GDX 制作多人游戏。它适用于桌面/安卓,但是当我想用 GWT 编译它时,我得到了这个错误:

[ERROR] Line 24: No source code is available for type io.socket.client.Socket; did you forget to inherit a required module?
      [ERROR] Line 69: No source code is available for type io.socket.client.IO; did you forget to inherit a required module?
      [ERROR] Line 79: No source code is available for type io.socket.emitter.Emitter.Listener; did you forget to inherit a required module?

我该如何解决这个问题?

【问题讨论】:

    标签: gwt socket.io libgdx


    【解决方案1】:

    Socket.io 与 GWT 不兼容。考虑使用不同的框架,例如Atmosphere

    【讨论】: