WebSocket Socket.io - Connection Problem!

Hello everyone,
I’m using the WebSocketsClient.h library and I have some problems, The NodeMCU 12E doesn’t connect to the Webserver don’t know why.
Arduino Code:

/*
 * WebSocketClientSocketIO.ino
 *
 *  Created on: 06.06.2016
 *
 */

#include <Arduino.h>

#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>

#include <WebSocketsClient.h>

#include <Hash.h>

ESP8266WiFiMulti WiFiMulti;
WebSocketsClient webSocket;


#define USE_SERIAL Serial

#define MESSAGE_INTERVAL 30000
#define HEARTBEAT_INTERVAL 25000

uint64_t messageTimestamp = 0;
uint64_t heartbeatTimestamp = 0;
bool isConnected = false;

void webSocketEvent(WStype_t type, uint8_t * payload, size_t lenght) {


    switch(type) {
        case WStype_DISCONNECTED:
            USE_SERIAL.printf("[WSc] Disconnected!\n");
            isConnected = false;
            break;
        case WStype_CONNECTED:
            {
                USE_SERIAL.printf("[WSc] Connected to url: %s\n",  payload);
                isConnected = true;

			    // send message to server when Connected
                // socket.io upgrade confirmation message (required)
				webSocket.sendTXT("5");
            }
            break;
        case WStype_TEXT:
            USE_SERIAL.printf("[WSc] get text: %s\n", payload);

			// send message to server
			// webSocket.sendTXT("message here");
            break;
        case WStype_BIN:
            USE_SERIAL.printf("[WSc] get binary lenght: %u\n", lenght);
            hexdump(payload, lenght);

            // send data to server
            // webSocket.sendBIN(payload, lenght);
            break;
    }

}

void setup() {
    // USE_SERIAL.begin(921600);
    USE_SERIAL.begin(115200);

    //Serial.setDebugOutput(true);
    USE_SERIAL.setDebugOutput(true);

    USE_SERIAL.println();
    USE_SERIAL.println();
    USE_SERIAL.println();

      for(uint8_t t = 4; t > 0; t--) {
          USE_SERIAL.printf("[SETUP] BOOT WAIT %d...\n", t);
          USE_SERIAL.flush();
          delay(1000);
      }

    WiFiMulti.addAP("Linksys - HotBox", "123123");

    //WiFi.disconnect();
    while(WiFiMulti.run() != WL_CONNECTED) {
        delay(100);
    }

    webSocket.begin("192.168.1.105", 81);
    //webSocket.setAuthorization("user", "Password"); // HTTP Basic Authorization
    webSocket.onEvent(webSocketEvent);

}

void loop() {
    webSocket.loop();

    if(isConnected) {

        uint64_t now = millis();

        if(now - messageTimestamp > MESSAGE_INTERVAL) {
            messageTimestamp = now;
            // example socket.io message with type "messageType" and JSON payload
            webSocket.sendTXT("42[\"messageType\",{\"greeting\":\"hello\"}]");
        }
        if((now - heartbeatTimestamp) > HEARTBEAT_INTERVAL) {
            heartbeatTimestamp = now;
            // socket.io heartbeat message
            webSocket.sendTXT("2");
        }
    }
}

Arduino Serial Monitor:

[SETUP] BOOT WAIT 4...
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 4
cnt 

connected with Linksys - HotBox, channel 11
dhcp client start...
[SETUP] BOOT WAIT 3...
[SETUP] BOOT WAIT 2...
[SETUP] BOOT WAIT 1...
ip:192.168.1.109,mask:255.255.255.0,gw:192.168.1.1
[WSc] Disconnected!
[WSc] Disconnected!
[WSc] Disconnected!
[WSc] Disconnected!
[WSc] Disconnected!
[WSc] Disconnected!
[WSc] Disconnected!
[WSc] Disconnected!

Socket.io & Node.JS server Codes:

var express = require('express');
app = express();
server = require('http').createServer(app);
io = require('socket.io').listen(server);

server.listen(81);
app.use(express.static('public'));

io.sockets.on('connection', function (socket) {

    console.log('Socket connected: ' + socket.conn.remoteAddress);

    socket.on('led', function (data) {
    });


    socket.on('disconnect', function(socket) {
        console.log('Socket disconnected');
    });
});


console.log("Server is running.");

Picture: http://prntscr.com/cxgvx0

Thanks for everyone’s help!

        uint64_t now = millis();

millis() returns a 32 bit value on most Arduinos.

dhcp client start...

Why do you need to be trying to use DHCP, when you are not even able to connect reliably? You have FAR TOO MUCH code, using libraries that you did not provide links to, to illustrate the problem.

I didn't make this code, It's just a ready example that I'm trying to run but it doesn't work. I'm trying to do it in different ways but nothing works. Do you know maybe the problem?

Do you know maybe the problem?

The code makes a lot of assumptions about it's ability to get what it needs from the server. Without knowing what your server is capable of doing, and knowing whether all of the code's assumptions are correct, no I do not.

I'm trying just to connect the NodeMCU to the server and to be able to send/recieve infromation from the server And vice versa!

I'm trying just to connect the NodeMCU to the server and to be able to send/recieve infromation from the server

You are trying, with that code, to do a lot more than that. Why does the NodeMCU need a dynamic IP address? What is going to supply it? And, why are you asking questions about that not-really-an-Arduino here?