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

peristanceBDD
Thomas Chazot 2 years ago
parent 6b2fe92a50
commit c211f6a277

@ -14,7 +14,6 @@ RUN yarn install --frozen-lockfile
# Bundle app source
COPY bob_party/server.js .
COPY bob_party/index.html .
EXPOSE 3000

@ -1,18 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Node.js Socket.io Chat Application</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
NodeJs-Socket.on app running successfully!!!
<script>
jQuery(document).ready(function() {
var socket = io.connect();
});
</script>
</body>
</html>

@ -8,10 +8,6 @@ const app = express();
const server = http.createServer(app);
const io = new Server(server);
app.get('/', function (req, res) {
res.sendFile(__dirname + '/index.html');
});
io.on('connection', (socket) => {
console.log(socket.id);

@ -1,4 +1,4 @@
const { io } = require("socket.io-client");
export const socket = io("https://codefirst.iut.uca.fr/containers/BOB_PARTEAM-server-bobParty");
export const socket = io("https://codefirst.iut.uca.fr/containers/BOB_PARTEAM-server-bobParty:3000");

@ -23,6 +23,7 @@ function Home(props: { navigation: any; }) {
const { navigation } = props
console.log(socket.connected);
//It has to be in the home page that way the database will reload the conversations when the user receive a message een if he is in another page

Loading…
Cancel
Save