Incorporated Holger's fix for Chrome 5

This commit is contained in:
Ryan Williams 2010-07-28 18:49:08 -07:00
parent 6dd2bcf011
commit 27ff9d1bba
3 changed files with 4 additions and 3 deletions

View File

@ -60,4 +60,5 @@ Thanks To
* David Ziegler, reporting issue #53
* Favo Yang, twisted hub patch
* Schmir, patch that fixes readline method with chunked encoding in wsgi.py
* Slide, for open-sourcing gogreen
* Slide, for open-sourcing gogreen
* Holger Krekel, websocket example small fix

View File

@ -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');

View File

@ -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)