embedded-websocket | A rust websocket library for embedded systems
kandi X-RAY | embedded-websocket Summary
kandi X-RAY | embedded-websocket Summary
A rust websocket library for embedded systems (no_std)
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of embedded-websocket
embedded-websocket Key Features
embedded-websocket Examples and Code Snippets
Community Discussions
Trending Discussions on embedded-websocket
QUESTION
Every time my WebSocket sends a message to my client, the client calls the onClose-function for the connection and does not receive the message.
Error is 1006 - Websocket Read EOF
I am aware of this answer getting the reason why websockets closed , so error is locally by browser, but I am using Firefox(newest) and html and javascript code is nothing special.
Until server calls session.getRemote().sendString or sendStringByFuture client seems to be connected. When sendString(message) is called, ws.onclose is triggered always!
The Server side:
My Websocket.war runs on a jetty-server with module deploy, http, jsp, client and websocket and in my opinion connection is successful etablished. (See log)
I took the official jetty-websocket example. I deleted Main.java, because I map the websocket-server using import javax.servlet.annotation.WebServlet;
...ANSWER
Answered 2017-Jan-26 at 13:37Ok, after hours of reading and searching I finaly found my mistake.
I am using Windows with Kaspersky preinstalled on my workdesk, my workmate using Linux without antivirus. In his Browser everything works fine, in my one connection is closed immediatly when try to receive a message.
It's my antivirus/firewall which is blocking http-websockets.
Solution: I am now ussing https-websockets with "wss://myIP:8443/mySite" and its working fine. A good tutorial is also this site here
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install embedded-websocket
Rust is installed and managed by the rustup tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. Please refer rust-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page