<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: More WebSockets, now with Python!</title>
	<atom:link href="http://dev.enekoalonso.com/2010/05/22/more-websockets-now-with-python/feed/" rel="self" type="application/rss+xml" />
	<link>http://dev.enekoalonso.com/2010/05/22/more-websockets-now-with-python/</link>
	<description>having fun with code</description>
	<lastBuildDate>Thu, 15 Sep 2011 22:21:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Luke</title>
		<link>http://dev.enekoalonso.com/2010/05/22/more-websockets-now-with-python/comment-page-1/#comment-42660</link>
		<dc:creator>Luke</dc:creator>
		<pubDate>Tue, 30 Aug 2011 15:58:04 +0000</pubDate>
		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=576#comment-42660</guid>
		<description>I got it to work in Google Chrome. I had no issues, there must be something you did wrong.</description>
		<content:encoded><![CDATA[<p>I got it to work in Google Chrome. I had no issues, there must be something you did wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles</title>
		<link>http://dev.enekoalonso.com/2010/05/22/more-websockets-now-with-python/comment-page-1/#comment-42568</link>
		<dc:creator>Charles</dc:creator>
		<pubDate>Tue, 30 Aug 2011 04:12:51 +0000</pubDate>
		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=576#comment-42568</guid>
		<description>This should work with the latest version of Google chrome.  

If not try the updated Firefox.  That will work for sure.</description>
		<content:encoded><![CDATA[<p>This should work with the latest version of Google chrome.  </p>
<p>If not try the updated Firefox.  That will work for sure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Holly</title>
		<link>http://dev.enekoalonso.com/2010/05/22/more-websockets-now-with-python/comment-page-1/#comment-40845</link>
		<dc:creator>Holly</dc:creator>
		<pubDate>Mon, 25 Jul 2011 22:51:41 +0000</pubDate>
		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=576#comment-40845</guid>
		<description>@tom- you need to DITCH google chrome!

I&#039;m just sayin...</description>
		<content:encoded><![CDATA[<p>@tom- you need to DITCH google chrome!</p>
<p>I&#8217;m just sayin&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://dev.enekoalonso.com/2010/05/22/more-websockets-now-with-python/comment-page-1/#comment-40609</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Mon, 18 Jul 2011 10:59:43 +0000</pubDate>
		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=576#comment-40609</guid>
		<description>&quot;It will also work if you open the page in multiple browser windows or even if you open the page in different computers.&quot;

I am having difficulty getting this to work with Google Chrome - any suggestions guys?</description>
		<content:encoded><![CDATA[<p>&#8220;It will also work if you open the page in multiple browser windows or even if you open the page in different computers.&#8221;</p>
<p>I am having difficulty getting this to work with Google Chrome &#8211; any suggestions guys?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eneko Alonso</title>
		<link>http://dev.enekoalonso.com/2010/05/22/more-websockets-now-with-python/comment-page-1/#comment-36451</link>
		<dc:creator>Eneko Alonso</dc:creator>
		<pubDate>Mon, 14 Mar 2011 15:36:52 +0000</pubDate>
		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=576#comment-36451</guid>
		<description>Thanks for sharing, dbr.</description>
		<content:encoded><![CDATA[<p>Thanks for sharing, dbr.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbr</title>
		<link>http://dev.enekoalonso.com/2010/05/22/more-websockets-now-with-python/comment-page-1/#comment-36396</link>
		<dc:creator>dbr</dc:creator>
		<pubDate>Sat, 12 Mar 2011 11:31:41 +0000</pubDate>
		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=576#comment-36396</guid>
		<description>The WebSocket protocol changed, to include a quite weird handshake. I&#039;ve modified your example to work with the new protocol, posted on StackOverflow:

http://stackoverflow.com/questions/4372657/websocket-handshake-problem-using-python-server/5282208#5282208</description>
		<content:encoded><![CDATA[<p>The WebSocket protocol changed, to include a quite weird handshake. I&#8217;ve modified your example to work with the new protocol, posted on StackOverflow:</p>
<p><a href="http://stackoverflow.com/questions/4372657/websocket-handshake-problem-using-python-server/5282208#5282208" rel="nofollow">http://stackoverflow.com/questions/4372657/websocket-handshake-problem-using-python-server/5282208#5282208</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Mills</title>
		<link>http://dev.enekoalonso.com/2010/05/22/more-websockets-now-with-python/comment-page-1/#comment-35873</link>
		<dc:creator>James Mills</dc:creator>
		<pubDate>Fri, 25 Feb 2011 03:08:25 +0000</pubDate>
		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=576#comment-35873</guid>
		<description>circuits.web (1) as of revision fe3965b21fe2 now implements a working WebSockets Server:

https://bitbucket.org/prologic...

This allows you to have a WebSockets server that sits alongside your application server (no need for a separate server, etc). This will be integrated into the circuits.web namespace before the next release.

cheers
James

1. http://bitbucket.org/prologic/.../</description>
		<content:encoded><![CDATA[<p>circuits.web (1) as of revision fe3965b21fe2 now implements a working WebSockets Server:</p>
<p><a href="https://bitbucket.org/prologic.." rel="nofollow">https://bitbucket.org/prologic..</a>.</p>
<p>This allows you to have a WebSockets server that sits alongside your application server (no need for a separate server, etc). This will be integrated into the circuits.web namespace before the next release.</p>
<p>cheers<br />
James</p>
<p>1. <a href="http://bitbucket.org/prologic/.../" rel="nofollow">http://bitbucket.org/prologic/&#8230;/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dany</title>
		<link>http://dev.enekoalonso.com/2010/05/22/more-websockets-now-with-python/comment-page-1/#comment-34774</link>
		<dc:creator>dany</dc:creator>
		<pubDate>Tue, 25 Jan 2011 23:20:45 +0000</pubDate>
		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=576#comment-34774</guid>
		<description>Thanks for your blog ! I have not used any thread and this is what I get :

while 1:
    ssock, saddr = s.accept()
    print(&#039;Connected by&#039;, saddr) 
    data = ssock.recv(4096)
    while 1 :
        data = s.recv(1024)
        print(&#039;Data from&#039;, saddr, &#039;:&#039;, data)
        ssock.sendall(data)

Unfortunately, this does not work ! Why ?

It is the same if I add the handshake :

while 1:
    ssock, saddr = s.accept()
    print(&#039;Connected by&#039;, saddr) 
    handsake = &quot;HTTP/1.1 101 Web Socket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nWebSocket-Origin: http://%s\r\nWebSocket-Location: ws://%s/\r\nWebSocket-Protocol: sample\r\n\r\n&quot; % (httphost, sockethost)
    s.send(handsake)
    data = ssock.recv(4096)
    while 1 :
        data = s.recv(1024)
        print(&#039;Data from&#039;, saddr, &#039;:&#039;, data)
        ssock.sendall(data)

Do you know why ? In both cases, I get the same following error : [Errno 10057] socket is not connected, no address.
Is it because I use no thread ?

Thanks for your help !</description>
		<content:encoded><![CDATA[<p>Thanks for your blog ! I have not used any thread and this is what I get :</p>
<p>while 1:<br />
    ssock, saddr = s.accept()<br />
    print(&#8216;Connected by&#8217;, saddr)<br />
    data = ssock.recv(4096)<br />
    while 1 :<br />
        data = s.recv(1024)<br />
        print(&#8216;Data from&#8217;, saddr, &#8216;:&#8217;, data)<br />
        ssock.sendall(data)</p>
<p>Unfortunately, this does not work ! Why ?</p>
<p>It is the same if I add the handshake :</p>
<p>while 1:<br />
    ssock, saddr = s.accept()<br />
    print(&#8216;Connected by&#8217;, saddr)<br />
    handsake = &#8220;HTTP/1.1 101 Web Socket Protocol Handshake\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nWebSocket-Origin: <a href="http://%s" rel="nofollow">http://%s</a>\r\nWebSocket-Location: ws://%s/\r\nWebSocket-Protocol: sample\r\n\r\n&#8221; % (httphost, sockethost)<br />
    s.send(handsake)<br />
    data = ssock.recv(4096)<br />
    while 1 :<br />
        data = s.recv(1024)<br />
        print(&#8216;Data from&#8217;, saddr, &#8216;:&#8217;, data)<br />
        ssock.sendall(data)</p>
<p>Do you know why ? In both cases, I get the same following error : [Errno 10057] socket is not connected, no address.<br />
Is it because I use no thread ?</p>
<p>Thanks for your help !</p>
]]></content:encoded>
	</item>
</channel>
</rss>

