Giter Club home page Giter Club logo

Comments (8)

lvgithub avatar lvgithub commented on June 7, 2024

server 端你接受到的数据是bytes 类型的,需要用putData.
你这边问题,应该在你客户端发送消息的代码,应该使用的不对。你贴下client 部分

from stick.

lvgithub avatar lvgithub commented on June 7, 2024

msgCenter.putMsg(msg) => 向消息中心推送字符串消息

from stick.

lvgithub avatar lvgithub commented on June 7, 2024

putData要1万多个字节才能收到。 说明客户端的数据包,包头错了。你的客户端用法应该不对,贴下客户端的代码吧

from stick.

lvgithub avatar lvgithub commented on June 7, 2024

谁给你发的数据

from stick.

lvgithub avatar lvgithub commented on June 7, 2024

发送方的数据打包方式,是按照我这个库的规范打包的吗

from stick.

lvgithub avatar lvgithub commented on June 7, 2024

贴个数据包看下

from stick.

lvgithub avatar lvgithub commented on June 7, 2024

包头错了:1112 --表示你的数据长度4370

from stick.

lvgithub avatar lvgithub commented on June 7, 2024

示例: <Buffer 00 03 31 32 33> // 00 03 包长度 31 32 33 字符串123的ascii码

from stick.

Related Issues (13)

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.