Juliver Galleto

Results 11 comments of Juliver Galleto

did you find a solution for this? can you share please? @tomaszs

@tomaszs hello, I sorted it out, it happens because Caman took the original dimension of the image as reference when cropping so the only solution is to resize the image...

You can just bind the canvas on load function to the function below **drawImageScaled** ``` img.onload = drawImageScaled.bind(null, img, ctx); function drawImageScaled(img, ctx) { ctx.canvas.width = img.offsetWidth; ctx.canvas.height = img.offsetHeight;...

easy, just use the client id as a reference.

@abhiburk you just need to send it to the specific socket id

@abhiburk basically I used an array to store client resource ids. Assume we store all connected clients to an array '$clients' and this is the structure of the clients array...

@abhiburk no, we're not using loop there `$clients[1]['conn']` we're just directly get it from clients array.

When client is connected. ` protected $clients; public function __construct() { $this->clients = array(); } public function onOpen(ConnectionInterface $conn) { // store client resource id $this->clients[$conn->resourceId] = array( 'con' =>...

@abhiburk absolutely, every client has their own respective resource id. I can suggest a flow for what you need, refer below... 1. first, client connect to your websocket server 2....

@abhiburk you can post your problems and if you want help, you can get answers from stackoverflow.com I'm one of the folks there.