diff --git a/stomp/backward.py b/stomp/backward.py
index <HASH>..<HASH> 100755
--- a/stomp/backward.py
+++ b/stomp/backward.py
@@ -3,15 +3,6 @@ import sys
 #

 # Functions for backwards compatibility

 #

-

-def get_func_argcount(func):

-    """

-    Return the argument count for a function

-    """

-    if sys.hexversion >= 0x03000000:

-        return func.__code__.co_argcount

-    else:

-        return func.func_code.co_argcount

         

 def input_prompt(prompt):

     """

diff --git a/stomp/connect.py b/stomp/connect.py
index <HASH>..<HASH> 100755
--- a/stomp/connect.py
+++ b/stomp/connect.py
@@ -602,15 +602,12 @@ class Connection(object):
             if frame_type == 'connecting':
                 listener.on_connecting(self.__current_host_and_port)
                 continue
+            elif frame_type == 'disconnected':
+                listener.on_disconnected()
+                continue
 
             notify_func = getattr(listener, 'on_%s' % frame_type)
-            params = backward.get_func_argcount(notify_func)
-            if params >= 3:
-                notify_func(headers, body)
-            elif params == 2:
-                notify_func(headers)
-            else:
-                notify_func()
+            notify_func(headers, body)
 
     def __receiver_loop(self):
         """
change listener to use consistent number of args - two