Incorporated Holger's fix for Chrome 5
This commit is contained in:
3
AUTHORS
3
AUTHORS
@@ -60,4 +60,5 @@ Thanks To
|
|||||||
* David Ziegler, reporting issue #53
|
* David Ziegler, reporting issue #53
|
||||||
* Favo Yang, twisted hub patch
|
* Favo Yang, twisted hub patch
|
||||||
* Schmir, patch that fixes readline method with chunked encoding in wsgi.py
|
* 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
|
@@ -8,7 +8,7 @@ http://assorted.svn.sourceforge.net/viewvc/assorted/real-time-plotter/trunk/src/
|
|||||||
<script>
|
<script>
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
var data = {};
|
var data = {};
|
||||||
var s = new WebSocket("ws://localhost:7000/data");
|
var s = new WebSocket("ws://127.0.0.1:7000/data");
|
||||||
s.onopen = function() {
|
s.onopen = function() {
|
||||||
//alert('open');
|
//alert('open');
|
||||||
s.send('hi');
|
s.send('hi');
|
||||||
|
@@ -35,6 +35,6 @@ def dispatch(environ, start_response):
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# run an example app from the command line
|
# 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"
|
print "\nVisit http://localhost:7000/ in your websocket-capable browser.\n"
|
||||||
wsgi.server(listener, dispatch)
|
wsgi.server(listener, dispatch)
|
||||||
|
Reference in New Issue
Block a user