Answer the question
In order to leave comments, you need to log in
Socket.io node js - how to send a message from the server to the client and get a response to it?
I send messages from the node server to the client on electronjs via socket.io.
io.sockets.to(socket_id).json.send({
"msg":"msg"
});socket.send({
"msg":msg
});Answer the question
In order to leave comments, you need to log in
The string means the declaration of a static constructor. Most likely it is empty, or it is defined somewhere else (if it is possible in C++\CLI).
Strings:static ConvertedString();
private:
ConvertedString(const wchar_t const * data, int ActualLength) :
char_data(data),
length(ActualLength)
{
...
}private
I figured it out myself.
socket.emit("eventName", "argString", function(data) {
console.log("data");//Вернет test
});socket.on('eventName', (argString, fn) => {
fn('test');
});Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question