Преглед изворни кода

Corrected error in example code

Taddeus Kroes пре 12 година
родитељ
комит
d4362ea887
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -79,7 +79,7 @@ Basic usage
                 print 'Received message "%s"' % message.payload
                 self.send(wspy.TextMessage(message.payload))
 
-            def onclose(self, message):
+            def onclose(self, code, reason):
                 print 'Connection closed'
 
         server = wspy.websocket()