Coder Social home page Coder Social logo

About the WebSocket issue about getx HOT 2 CLOSED

XiaoSGentle avatar XiaoSGentle commented on June 12, 2024
About the WebSocket issue

from getx.

Comments (2)

PeterMX avatar PeterMX commented on June 12, 2024 1

looks like the one in GetConnect is a 8 bytes while Gin requires a 16 byte one:
var key = base64.encode(List<int>.generate(8, (_) => r.nextInt(255)));
you should change that 8 for a 16 locally and use that, since looks like this project is dead,
the file is on ./lib/get_connect/sockets/src/sockets_io.dart in line 105 in GetX 4.6.6
Good luck!

from getx.

XiaoSGentle avatar XiaoSGentle commented on June 12, 2024

looks like the one in GetConnect is a 8 bytes while Gin requires a 16 byte one:看起来 GetConnect 中的那个是 8 字节,而 Gin 需要 16 字节: var key = base64.encode(List<int>.generate(8, (_) => r.nextInt(255))); you should change that 8 for a 16 locally and use that, since looks like this project is dead,您应该在本地将 8 更改为 16 并使用它,因为看起来这个项目已经死了, the file is on ./lib/get_connect/sockets/src/sockets_io.dart in line 105 in GetX 4.6.6该文件位于 ./lib/get_connect/sockets/src/sockets_io.dart GetX 4.6.6 中的第 105 行 Good luck! 祝你好运!

It worked , Thanks!

from getx.

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.