Skip to content

Commit 45b736d

Browse files
author
Lukas Ruebbelke
committed
Why must I wallow in my stupidity?
1 parent 3bdac83 commit 45b736d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,12 @@
66
"dependencies": {
77
"express": "3.x",
88
"socket.io": "0.9.x"
9+
},
10+
"subdomain": "simpulton.angularjs-collab-board",
11+
"scripts": {
12+
"start": "app.js"
13+
},
14+
"engines": {
15+
"node": "0.8.x"
916
}
10-
}
17+
}

public/js/collab-board.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ app.directive('stickyNote', function(socket) {
5757
});
5858

5959
app.factory('socket', function($rootScope) {
60-
var socket = io.connect('http://192.168.1.109');
60+
var socket = io.connect();
6161
return {
6262
on: function(eventName, callback) {
6363
socket.on(eventName, function() {
@@ -86,6 +86,7 @@ app.controller('MainCtrl', function($scope, socket) {
8686
// Incoming
8787
socket.on('onNoteCreated', function(data) {
8888
$scope.notes.push(data);
89+
console.log('ON NOTE CREATED');
8990
});
9091

9192
socket.on('onNoteUpdated', function(data) {

0 commit comments

Comments
 (0)