These should probably return a deferrable of some sort, either one that is always succeeded or one that succeeds as long as the connection is still up. That way, the interface is more consistent from client perspective (he can hook up callbacks without having to worry about whether or not he's going to get a deferrable back).
These should probably return a deferrable of some sort, either one that is always succeeded or one that succeeds as long as the connection is still up. That way, the interface is more consistent from client perspective (he can hook up callbacks without having to worry about whether or not he's going to get a deferrable back).