WebSocket消息在Mozilla Firefox中变成了怪异的角色(WebSocket message turns into weird characters at Mozilla Firefo

编程入门 行业动态 更新时间:2024-10-26 18:29:36
WebSocket消息在Mozilla Firefox中变成了怪异的角色(WebSocket message turns into weird characters at Mozilla Firefox)

我们试图在Firefox中通过WebSocket发送消息,但是当消息超过一定长度时,它会变成奇怪的字符,如:

��

无论如何设置此缓冲区长度或方式除了将消息作为部分发送之外?

We're trying to send a message via WebSocket in Firefox but when message exceeds some length it turns into weird characters like:

��

Is there anyway to set this buffer length or way out of this except sending the message as parts?

最满意答案

这真的很奇怪但是,我们需要在发送消息之前重新握手。

这解决了我们的问题。

It's really weird but, we needed to rehandshake before sending our message.

That solved our problem.

更多推荐

本文发布于:2023-07-26 18:58:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1279584.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:怪异   变成了   角色   消息   Mozilla

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!