Comments (8)
server 端你接受到的数据是bytes 类型的,需要用putData.
你这边问题,应该在你客户端发送消息的代码,应该使用的不对。你贴下client 部分
from stick.
msgCenter.putMsg(msg) => 向消息中心推送字符串消息
from stick.
putData要1万多个字节才能收到。 说明客户端的数据包,包头错了。你的客户端用法应该不对,贴下客户端的代码吧
from stick.
谁给你发的数据
from stick.
发送方的数据打包方式,是按照我这个库的规范打包的吗
from stick.
贴个数据包看下
from stick.
包头错了:1112 --表示你的数据长度4370
from stick.
示例: <Buffer 00 03 31 32 33> // 00 03 包长度 31 32 33 字符串123的ascii码
from stick.
Related Issues (13)
- 如何配置大端小端读取[后期迭代] HOT 5
- 项目应用 HOT 9
- npm安装之后有50个漏洞啊,麻烦更新一下吧~~~ HOT 1
- 有逻辑错误,收到正好长度的包时,没有emit事件 HOT 4
- stickpackage提供typescript支持 HOT 2
- 视频传输后,虽然能播放但会出现花屏 HOT 1
- 服务器很好,多几种客户端语言库啊 HOT 1
- 服务端重复接收 HOT 5
- 当数据包含有标点符号,tcp server端收到数据多了一些其他符号 HOT 5
- 包头的问题 HOT 18
- core.js长度拷贝问题? HOT 6
- 包头扩展 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stick.