Commits

Jeffrey Gelens committed f39f3f2

Updated example

  • Participants
  • Parent commits c8d4bf2

Comments (0)

Files changed (1)

 
 ::
 
-    from geventwebsocket.server import WebSocketServer, WebSocketApplication
+    from geventwebsocket import WebSocketServer, WebSocketApplication, Resource
 
-    class EchoApplication(WebSocketServer):
+    class EchoApplication(WebSocketApplication):
         def on_open(self):
             print "Connection opened"
 
     WebSocketServer(
         ('', 8000),
         Resource({'/': EchoApplication})
-    )
+    ).serve_forever()
 
 or a low level implementation::