Answer the question
In order to leave comments, you need to log in
Elephant.io - how to open a connection just once?
using elephant.io to transfer data from php to nodejs
here is the transfer code:
public function emit($data) {
$log = new Log();
$elephant = new Elephant(new Version1X('http://localhost:2222'));
$elephant->initialize();
$elephant->emit($data);
$elephant->close();
}
while (1) { ... }
Answer the question
In order to leave comments, you need to log in
$elephant = new Elephant(new Version1X('http://localhost:2222'));
$elephant->initialize();
public function emit($data) {
$log = new Log();
$elephant->emit($data);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question