Skip to content

Commit

Permalink
Use 2 spaces instead of 4 spaces for tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
jondubois committed May 26, 2017
1 parent 5affa4c commit 8ee6ad2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,21 @@ Once that's done, you will be able to emit events to the server and listen to in

```js
var options = {
port: 8000
port: 8000
};

// Initiate the connection to the server
var socket = socketCluster.connect(options);
socket.on('connect', function () {
console.log('CONNECTED');
console.log('CONNECTED');
});

// Listen to an event called 'rand' from the server
socket.on('rand', function (num) {
console.log('RANDOM: ' + num);
var curHTML = document.body.innerHTML;
curHTML += 'RANDOM: ' + num + '<br />';
document.body.innerHTML = curHTML;
console.log('RANDOM: ' + num);
var curHTML = document.body.innerHTML;
curHTML += 'RANDOM: ' + num + '<br />';
document.body.innerHTML = curHTML;
});
```

Expand All @@ -58,7 +58,7 @@ var options = {
secure: true,
port: 443,
rejectUnauthorized: false // Only necessary during debug if using a self-signed certificate
}
};

// Initiate the connection to the server
var socket = socketCluster.connect(options);
Expand Down

0 comments on commit 8ee6ad2

Please sign in to comment.