Commits

Michael Kedzierski committed 5de81dd

Removed extraneous line endings in challenge handshake. Fixed minor typos.

  • Participants
  • Parent commits 9671f54

Comments (0)

Files changed (1)

websocket_client.py

         else:
             self.challenge = pack('>II8s', number_2, number_1, key_3)
             self.challenge_alt = pack('>II8s', number_1, number_2, key_3)
-        header = fields + "\r\n" + key_3 + "\r\n\r\n"
+        header = fields + "\r\n" + key_3
         self.transport.write(header)
 
 
         try:
             self.check_handshake(self.data)
         except HandshakeResponseError, error:
-            self.onHandshakeError(error)
+            self.handshakeError(error)
 
         self.frameDecoder = self.FrameDecoder(self.frameReceived,
                                               self.transport.loseConnection,
         """
         pass
 
-    def frameReceived(self, error):
+    def frameReceived(self, data):
         """
         Called when a complete frame was received.
         Implementations should override this method.