Merge branch 'master' of https://codefirst.iut.uca.fr/git/nathan.boileau/Scripted
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
47890dd216
@ -1,8 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
<!--script src="/root/node_modules/socket.io"></script-->
|
||||
<script src="C:\wamp64\www\Scripted\node_modules/socket.io"></script>
|
||||
<script src="C:\wamp64\www\Scripted\server.js"></script>
|
||||
vous êtes dans la partie
|
||||
</body>
|
||||
</html>
|
@ -1,8 +1,4 @@
|
||||
<html>
|
||||
<body>
|
||||
</body>
|
||||
<script src="/root/node_modules/socket.io"></script>
|
||||
<script src="/var/www/html/Scripted/WEB/server.js"></script>
|
||||
<!--script src="C:\wamp64\www\Scripted\node_modules/socket.io"></script-->
|
||||
<!--script src="C:\wamp64\www\Scripted\server.js"></script-->
|
||||
</html>
|
@ -1,11 +1,26 @@
|
||||
//const io = require('socket.io')('http://localhost:3000');
|
||||
const io = require('socket.io')('http://82.165.180.114:3000');
|
||||
|
||||
//modules
|
||||
module = '/usr/local/lib/node_modules/';
|
||||
console.log('module');
|
||||
const express = require(module + "express");
|
||||
console.log('express');
|
||||
const socketIO = require(module +"socket.io");//('http://82.165.180.114:3000');
|
||||
console.log('socketIO');
|
||||
const app = express();
|
||||
console.log('app');
|
||||
const server = app.listen(3000);
|
||||
const io =socketIO(server);
|
||||
io.on('connection', socket => {
|
||||
console.log("connection de l'utilisateur à l'id ". socket.id);
|
||||
})
|
||||
console.log('ioOnConnection');
|
||||
|
||||
io.on('launchGame') , function () {
|
||||
io.on('launchGame' , function () {
|
||||
console.log('launch the game');
|
||||
location.reload();
|
||||
}
|
||||
})
|
||||
module.exports = {
|
||||
io : io
|
||||
};
|
||||
|
||||
console.log('iolisten');
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue