event re-issue on reconnect?

2009-01-06 Thread Kevin Burton
I have an event watching a file... and if I restart the server I get this:

onConnect
onData path: /foo, version: 4, data: '2333'
onDisconnect
onConnect
onData path: /foo, version: 4, data: '2333'

It re-issues the same version of the file. I can of course watch for this in
my code but it seems like a bug.

Shouldn't the client keep track of the stat of watches and not bubble up the
same event on server reconnect?

Kevin

-- 
Founder/CEO Spinn3r.com
Location: San Francisco, CA
AIM/YIM: sfburtonator
Skype: burtonator
Work: http://spinn3r.com


Re: event re-issue on reconnect?

2009-01-06 Thread Mahadev Konar
Does onData mean a datawatch?
onConnect
 onData path: /foo, version: 4, data: '2333'
 onDisconnect
 onConnect
 onData path: /foo, version: 4, data: '2333'


Are these the sequence of events that you get on the client?

mahadev


On 1/6/09 5:03 PM, Kevin Burton bur...@spinn3r.com wrote:

 I have an event watching a file... and if I restart the server I get this:
 
 onConnect
 onData path: /foo, version: 4, data: '2333'
 onDisconnect
 onConnect
 onData path: /foo, version: 4, data: '2333'
 
 It re-issues the same version of the file. I can of course watch for this in
 my code but it seems like a bug.
 
 Shouldn't the client keep track of the stat of watches and not bubble up the
 same event on server reconnect?
 
 Kevin