socket.io

nodejs-database connection

I work with sockets, use sicket.io, express, node.js and still need to connect mysql. Downloaded the mysql plugin via npm. I ... e: con.end(); And now when closing the connection to the database, the server turns off, tell me, maybe there is some option?

How do I save a file?

The file (let it be about 1GB) in the user's browser is cut using the slice() function and sent to the partner's browser in p ... rowser using JS? I tried to just encode it in base64, but if the file size was large enough, it caused the browser to hang.

Events are not listened to in the connection socket.io and socket. io-client, Nodejs, Angular

Hello everyone. The code I wrote is the Server server.js const app = require('express'); const server = require('http').creat ... he other emit, on, different events, kliekn does not see, it feels like on, emit do not do anything at all, maybe who knows?)

How to organize an app on socket.io, node.js

I'm going to write an application in node.js using socket.io. All the examples that I have seen on the Internet are quite sim ... neral, the question is: how to properly organize an application using socket.io large enough to hold everything in one file.

WebRTC: connect more than 2 users

The contest expires in 2 days. For the answer to this question, a reward in the amount of +200 reputation points. ... RTCPeerConnection': Failed to set remote answer sdp: Called in wrong state: stable This error can be traced in all browsers.

Error in the client or server part? net::ERR CONNECTION TIMED OUT socket.io

Please tell me what the problem is. I use it socket.io backend (index.js): const io = require('socket.io')(3030); io.on('conn ... o/?EIO=3&transport=polling&t=NN7Kw5v net::ERR_CONNECTION_TIMED_OUT Can you tell me who is to blame and how to fix it?

Data transfer server node.js

How to implement real-time data transfer server to server? I use node.js Express Socket.io, if a command is received on the ... r for execution. As the calculations are finished, it sends back to 1 and then to the client. I would appreciate an example.

Assign values of an array within a specific index of another array-React JS

I am developing a simple private chat in ReactJS and Socket.io. meanwhile a problem arose to solve the following situation. ... : "[email protected]", nickname: "carlos", **socketId: "BwaRW_6zF5rCwRGcAAAC"**} If anyone can help, I thank you right now!!

Show record without page refresh

Good afternoon, I swear I've researched everything that is place, but I only see teaching how to create chat :'( I am devel ... _unidade) ->get(); return $resultado->result_array(); } I'm sorry, if you happen to get confused.

Connection terminates when sending a client message to the server (c / c++ socket)

I am using the codes below to make a client-server connection. The client I am doing myself and the server for now I picked u ... d); /* Close the local socket */ close(serverfd); printf("Connection closed\n\n"); return EXIT_SUCCESS; }