This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INIT | |
{"command": "INIT","file_name":"prueba.pdf"} | |
APPEND | |
{"command": "APPEND","file_name":"prueba.pdf", "media_id":"a276c818fbc610e1d72a0c993101c59d", "segment_index":1, "chunk":"ZGVtbw==BASE64"} | |
{"command": "APPEND","file_name":"prueba.pdf", "media_id":"a276c818fbc610e1d72a0c993101c59d", "segment_index":2, "chunk":"ZGVtbw==BASE64"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Worker.php | |
/* Create a connection using all default credentials: */ | |
$connection = new AMQPConnection(); | |
$connection->connect(); | |
$channel = new AMQPChannel($connection); | |
/* create a queue object */ | |
$queue = new AMQPQueue($channel); |
NewerOlder