Static

Description

(>= 1.3.0) Allows you to connect to the server. Created a Socket object from socket.io. Use the property io then to perform methods of Socket.io

To use Socket.io , do not forget to put the JS file :

<script src="socket.io.min.js"></script>

Usage

Parameters

  • host {String}

    IP or host name

  • port {Integer}

    Port

Example

CE.connectServer('http://127.0.0.1', 8333);
CE.io.on("reconnecting", function() {
    console.log("reconnecting");
});

Discussion