title: Socket.io client doesn't receive message from Server
body: <p>I'm using Socket.IO for websockets and I want clients receive a welcome message in console from server when they connect but it's not working:</p>
  
  <p><strong>Server</strong>:</p>
  
  <pre><code>var fs = require('fs');
  var https = require('https');
  var express = require('express');
  var app = express();
  var options = {
    key: 
      fs.readFileSync('/myfolder/mykey.pem'),
    cert: 
      fs.readFileSync('/myfolder/mychain.pem')
  };
  
  var serverPort = 3080;
  
  var server = https.createServer(options,app);
  var io = require('socket.io')(server);
  
  app.get('/',function(req,res){
     res.sendFile(__dirname+'/index.html');
  });
  
  server.listen(serverPort, function(){
     console.log('Server is working');
     //console.log(__dirname);
  });
  
  
  io.on('connection', function(socket){
  
   console.log("Connected!");
   socket.broadcast.emit("Welcome","Good day sunshine!");
  });
  </code></pre>
  
  <p><strong>Client:</strong></p>
  
  <pre><code>&lt;script src="https://localhost:3080/socket.io/socket.io.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  var URL_SERVER = 'https://localhost:3080';
  var socket = io.connect(URL_SERVER);
  
  socket.on("Welcome", function(data){
     console.log(data);
  }); 
  
  &lt;/script&gt;
  </code></pre>
  
  <p>I'm getting message console in server side but not the server answer in the console client. </p>
  
  <p>How can I fix it?</p>