-
My websocket can only accept data on newly opened pages.
segmentfault
dvaws.open().websocketwebsocketws
ws.openfetchGETloginsendfetchCOOKIECOOKIEFETCHCOOKIECOOKIE
...
-
How to convert long data to ArrayBuffer 64-bit binary data?
the front and back end communicates with websocket. How does the front end convert long data into ArrayBuffer 64-bit binary data ...
-
Find an implementation scheme for the problem of transferring websocket in the back-end
requirements:
Connect to a known remote websocket server, read its incoming messages and display them on the page in real time. but the address and login information of the remote server need to be kept secret, so you can t connect to the server d...
-
Communicate with the front and back end of websocket, and the back end sends 64-bit binary to the front end. How does the front end change the binary to the long type defined in the back-end service?
1. The back-end converts a long data into 64-bit binary, which is transmitted to the front-end through websocket. The front-end receives an ArrayBuffer object, reads the data in memory with getFloat64, and converts it into an integer, but it is found to...
-
Websocket re-new the address after being disconnected. Ws.onmessage has no data.
after WebSocket was disconnected, I re-new a link. In the new connection, I can continue to receive and send data, but I found that ws.onmessage did not return the data after reconnection. I think he is still waiting for the data of the address before ...
-
The problem of the loss of request response in the front-end websocket
in the use of websocket, it is found that if requests are sent continuously, some requests will not receive a response.
assume that 5 call requests are issued in a row
ws.send(1);
ws.send(1);
ws.send(1);
ws.send(1);
ws.send(1);
but not every send re...
-
Socket io loop calls emit
I called the emit method of socket in the loop to send events to the front end, and sleep each loop for 1 second. However, in the course of testing, it is found that the front end is cumulative to handle these events. For example, I looped 10 times, and ...
-
Django uses dwebsocket to debug fail:failed:Invalid frame header natively
django uses an online case for dwebsocket, local debugging (what else do you need to do to support local debugging?) after printing out the Websocket open, chrome reported an error: websocket connection to ws: localhost:8000 echo_once failed:Inv...
-
Why does the stompClient.connect method not execute when using SockJS for WebSocket connections?
function connect() {
var socket = new SockJS( socket );
stompClient = Stomp.over(socket);
stompClient.connect({}, function (frame) {
setConnected(true);
});
console.log("...
-
WeChat Mini Programs visits the websocket server and returns 301. Would you please help me to see what the problem is?
nginx configuration
server {
listen 443 ssl;
ssl_certificate etc letsencrypt live ** **.pem;
ssl_certificate_key etc letsencrypt live ** **.key;
ssl_session_timeout 1d;
ssl_session_cache shared:SSL:50m;
ssl_dhparam opt dhpara...
-
The onClose event cannot be triggered by the direct disconnection of swoole websocket.
php: 7.0.29 swoole: 2.1.3 linux: ubuntu16.04 swoole Startup Settings daemonize = > 0, worker_num = > 2
I use a Mini Program websocket.. Under normal circumstances, Mini Program shuts down can trigger onClose events. but if I disconnect wif...
-
How to use node to initiate and manage 100websocket client
you need to initiate websocket client clients locally through node. is not a server , and then keep running scripts. How to initiate and manage ...
-
Use nodejs's ws module to simulate the client side to create up to 500 connections?
create a websocket in the loop and bind the corresponding event. When the upper limit is 500, each connection will be created successfully and the backend will be returned correctly. But when this number reaches 520 +, the excess cannot be created succe...
-
What happens when a page has an upgrade protocol plus a lot of polling, when the protocol is downgraded?
here s the thing
A page has two left and right blocks the left side is connected to the socket line, and the right side is in the polling data
when the socket on the left is broken, the data in polling on the right will be unable to request data a...
-
Can I connect two websocket connections to one page?
can I connect two websocket connections to one page?
because of the backend data architecture, different data have to be obtained from different servers, so there is this requirement
have any buddies ever used the experience of using one page with t...
-
How to implement web terminal with Python?
I want to add web terminal, to python s web project so that it can connect to the server directly through web to achieve a function similar to that of a fortress machine. Baidu for a while, look at is written in tornado + xterm.js. Can I write it in fla...
-
How does websocket handle the number of unread messages
The project should have a trigger mechanism similar to qq chat. When there is a message, the user does not read it and shows the number of unread messages. How to deal with this, especially when a user is chatting with another user and another user sends...
-
WebSocket handshake failed 400 error
my application is spring websocket + stomp sockjs, configuration. It s OK to test locally, and it s OK to put it on the http server. Only the server deployed to https will make an error. Our server is jboss wildfly.
the error in webserver log is as ...
-
I used the code for this example to create a websocket, in vue, but there are often errors in refreshing things.
how vue uses websocket
<script>
export default {
data() {
return {
websock: null,
}
},
methods: {
threadPoxi(){
const agentD...
-
The following error occurred when Socket.js and stomp.js established the stomp endpoint
1. Question:
the following error occurred:
public void registerStompEndpoints(StompEndpointRegistry stompEndpointRegistry) {
log.info("stomp ... ... ... ");
stompEndpointRegistry
.addEndpoint(" chat&q...