This file contains 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
server { | |
listen 80; | |
server_name mydomain.com; | |
root /home/forge/mydomain.com/public; | |
# FORGE SSL (DO NOT REMOVE!) | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
index index.html index.htm index.php; |
This file contains 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
server { | |
server_name ...; | |
listen ...; | |
location /one { | |
root /home/app/laravel1/public; | |
.... | |
} | |
location /two { | |
root /home/app/laravel2/public; | |
.... |
This file contains 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
stdClass Object | |
( | |
[type] => 1 | |
[encoding] => 0 | |
[ifsubtype] => 1 | |
[subtype] => REPORT | |
[ifdescription] => 0 | |
[ifid] => 0 | |
[ifdisposition] => 0 | |
[ifdparameters] => 0 |
This file contains 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
<script src="http://localhost:3000/socket.io/socket.io.js"></script> | |
<script> | |
var news = io.connect('http://localhost:3000/news'); | |
news.on('connect', function(socket) { | |
news.emit("raul", new Array("1","2","3","4","5","6","7","8","9","10") ); | |
news.on('get_random_number_from_raul', function(data) { | |
console.log(data); | |
}); |
This file contains 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
var io = require('socket.io').listen(3000); | |
var news = io.of('/news').on('connection', function (socket) { | |
socket.on('raul', function(data){ | |
var rand = data[Math.floor(Math.random() * data.length)]; | |
news.emit("get_random_number_from_raul", rand); | |
}); | |
socket.on("createroom", function(room) { | |
socket.join(room); | |
console.log(socket); |
This file contains 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
// For IronIO | |
// file src/Illuminate/Queue/IronQueue.php line 64 | |
public function push($job, $data = '', $queue = null) | |
{ | |
$payload = $this->createPayload($job, $data); | |
$response = $this->iron->postMessage($this->getQueue($queue), $payload); | |
return $response->id; | |
} |