Sfoglia il codice sorgente

Corrected another error in README example code

Taddeus Kroes 12 anni fa
parent
commit
80ac440e57
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -130,7 +130,7 @@ Basic usage
                 print 'Received message "%s"' % message.payload
                 client.send(wspy.TextMessage(message.payload))
 
-            def onclose(self, client):
+            def onclose(self, client, code, reason):
                 print 'Client %s disconnected' % client
 
         EchoServer(('', 8000)).run()