Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with NodeJS #2

Open
Echenique opened this issue May 12, 2021 · 1 comment
Open

Integration with NodeJS #2

Echenique opened this issue May 12, 2021 · 1 comment

Comments

@Echenique
Copy link

Echenique commented May 12, 2021

Hello, I'm trying to integrate with a Node server.

I can receive the connection, but I cannot receive the screen. which socket event should I listen to to receive the screen?

Example:

running ios-screen-mirror:
./ios-screen-mirror -udid "IOS_SERIAL" -pull -pushSpec "tcp://127.0.0.1:5443"

and, on my server node i was running server listen 5443 port

var protocol = require("eight-protocol");
var server =  new protocol.server(5443);

server.on('server_listening', function(){
    console.log("Server ir up! Now waiting for connections"); 
});
server.on('client_connected', function(socket){
    console.log("NEW CLIENT CONNECTED!"); //HERE I GET CONNECTION SUCCESS
});
server.on("message", function(socketClient, header, dataBuffer){
    console.log("MESSAGE RECEIVED!",header,dataBuffer.toString()); //BUT DONT RECIEVE DATA HERE
});
server.on('client_close', function(socketClient){
    console.log("CLIENT DISCONNECTED!");
});
@donmezburak
Copy link

any updates ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants