Closed ggd543 closed 12 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
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.
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 #
Any help will be highly appreciated!
I've now upgraded socket.io to the latest version (0.8.4); can you pull and try it again?
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
I'm facing the same error... any update? I'm using the socket.io version 0.8.4....
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')
Should be fixed in latest master.
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)