test
continuous-integration/drone/push Build is passing Details

ServeurDeTest
Johan LACHENAL 2 years ago
parent 0f28e920ef
commit 8d93254530

@ -114,11 +114,10 @@ class UserController
$model = new UserModel();
$model->addToQueue();
$userGroup = $model->findUserGroup();/*.$serverAdress.$port*/
echo '<script>
module = "/usr/local/lib/node_modules/";
const socketIO = require(module +"socket.io");
io = socketIO("http://82.165.180.114:3000")
$io.to($userGroup).emit("launchGame");
echo '
<script src="/socket.io/socket.io.js">
var socket = io();
io.to($userGroup).emit("launchGame");
</script>';
} catch (Exception $e) {
$error = $e->getMessage();

Loading…
Cancel
Save