R
R
Root_men2017-02-14 21:25:57
Node.js
Root_men, 2017-02-14 21:25:57

How to force to connect via ssl?

in the console it gives net::ERR_CONNECTION_CLOSED, I don't know what else to do.
server

var app = require('express')(),
    server = require('https').Server(app),
    io = require('socket.io')(server);


var redis = require("redis");
var client = redis.createClient();

var requestify = require('requestify');

function log(log) { console.log('[APP] ' + log) }

server.listen(55);
log('Локальный сервер запущен на порте 8081');

Client (like something like this)
var socket = io.connect('https://domain.name:55', {secure: true});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rustamka Vorontsov, 2017-02-14
@rmfordev

where is laravel? and ssl port 443

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question