node.js - Does node + socketio + express + https secure the socket data as well -


with following code snippet:

var express = require('express'),   app = express(),   server = require('https').createserver(app),   io = require('socket.io')(server);  app.get('/', function(req, res, next) {   res.sendfile(__dirname + '/assets/html/index.html'); }); /** more routing functions **/  io.on('connection', function(socket) {     components.socket.onconnect(socket, config); }); io.on('save', function(data){   var saved = save(data);   io.emit('response', saved); }); /** more socket.io functions **/  server.listen(443, function() {   console.log("server ready."); }); 

assuming server side setup (with ssl cert) , clients connect securely, data value on save , saved value emitted socket.io encrypted ssl cert web data too?

the answer yes long use https initial connection. in example, since you're ever using https, never problem you.


Comments

Popular posts from this blog

php - Auto increment employee ID -

php - isset function not working properly -

javascript - Thinglink image not visible until browser resize -