mnutt / hummingbird

Real time web analytics using node.js and web sockets
http://mnutt.github.com/hummingbird
MIT License
2.92k stars 15 forks source link

Can not start server due to object #<Manager> has no method 'broadcast' #29

Closed ggd543 closed 12 years ago

ggd543 commented 13 years ago

Here is the log:

Dashboard server running at http://_:8080 Tracking server running at http://_:8000/tracking_pixel.gif info - socket.io started 1 Jul 10:34:53 - Skipping metric Location. 1 Jul 10:34:53 - Loading metric Sales. 1 Jul 10:34:53 - Loading metric hits. 1 Jul 10:34:53 - Loading metric view_totals. Web Socket server running at ws://*:8000 UDP server running on UDP port 8000

/home/archer/hummingbird/lib/metric.js:42 metric.socket.broadcast(JSON.stringify({type: this.name, data: metric.data ^ TypeError: Object # has no method 'broadcast' at Timer. (/home/archer/hummingbird/lib/metric.js:42:19) at Timer.callback (timers.js:208:16)

ggd543 commented 13 years ago

My version of hummingbird is :

commit 9e2750b0fc6a3ebeece6f1c40cc4c48bb7d01c4d Merge: 67d809c ad879d7 Author: Michael Nutt michael@nuttnet.net Date: Thu Jun 16 10:00:31 2011 -0700

Merge pull request #27 from thurmda/master

Converted config to a module
mnutt commented 13 years ago

Could you tell me which version of NPM you're using, and the output of npm list? I'm wondering if it's a mismatched version of socket.io.

sfishgang commented 13 years ago

Guys, I am bit new to node.js and socket.io and I've tried some sample code from socket.io tutorial ("diving-into-websockets").

I am receiving the same error : Object # has no method 'broadcast'. I am trying to do it on MAC OS X.

Any help will be highly appreciated!

mnutt commented 13 years ago

I've now upgraded socket.io to the latest version (0.8.4); can you pull and try it again?

sfishgang commented 13 years ago

Thanks a lot, We'll try as soon as possible

Simon Fishgang

sfishgang@gmail.com

On Sep 7, 2011, at 10:27 AM, Michael Nutt wrote:

I've now upgraded socket.io to the latest version (0.8.4); can you pull and try it again?

Reply to this email directly or view it on GitHub: https://github.com/mnutt/hummingbird/issues/29#issuecomment-2026301

xenevreu commented 13 years ago

I'm facing the same error... any update? I'm using the socket.io version 0.8.4....

mnutt commented 13 years ago

The original error came from using an older version of Hummingbird with socket.io 0.8.4. I've since modified Hummingbird to work with socket.io 0.8.4, so if you pull then the problem should be fixed. (we no longer use 'broadcast')

mnutt commented 12 years ago

Should be fixed in latest master.