diff options
| author | Ryan Williams <breath@alum.mit.edu> | 2010-07-28 18:49:08 -0700 |
|---|---|---|
| committer | Ryan Williams <breath@alum.mit.edu> | 2010-07-28 18:49:08 -0700 |
| commit | 27ff9d1bba10c5dd845faad005c6fe36712f4974 (patch) | |
| tree | 57529502f16afcc85e46feed2137f990b28edbea /examples | |
| parent | 6dd2bcf011cdeb8c9d6d907890defa5fb30c7582 (diff) | |
| download | eventlet-27ff9d1bba10c5dd845faad005c6fe36712f4974.tar.gz | |
Incorporated Holger's fix for Chrome 5
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/websocket.html | 2 | ||||
| -rw-r--r-- | examples/websocket.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/websocket.html b/examples/websocket.html index c6ee68c..cea6a20 100644 --- a/examples/websocket.html +++ b/examples/websocket.html @@ -8,7 +8,7 @@ http://assorted.svn.sourceforge.net/viewvc/assorted/real-time-plotter/trunk/src/ <script> window.onload = function() { var data = {}; - var s = new WebSocket("ws://localhost:7000/data"); + var s = new WebSocket("ws://127.0.0.1:7000/data"); s.onopen = function() { //alert('open'); s.send('hi'); diff --git a/examples/websocket.py b/examples/websocket.py index ae8181f..ed81701 100644 --- a/examples/websocket.py +++ b/examples/websocket.py @@ -35,6 +35,6 @@ def dispatch(environ, start_response): if __name__ == "__main__": # run an example app from the command line - listener = eventlet.listen(('localhost', 7000)) + listener = eventlet.listen(('127.0.0.1', 7000)) print "\nVisit http://localhost:7000/ in your websocket-capable browser.\n" wsgi.server(listener, dispatch) |
