Re: websockets w/ clojure

2011-03-05 Thread Sean Allen
I'd missed that when it went up. Thanks for pinging the list on this.

On Fri, Mar 4, 2011 at 1:49 PM, Jay Fields j...@jayfields.com wrote:
 I finally got around to writing this:
 http://blog.jayfields.com/2011/02/clojure-web-socket-introduction.html

 Cheers, Jay

 -- Forwarded message --
 From: Sean Allen s...@monkeysnatchbanana.com
 Date: Dec 24 2010, 11:58 pm
 Subject: websockets w/ clojure
 To: Clojure


 Jay,

 Do you have any publicly released code I could take a look at?
 I've only found a couple of jetty/clojure/websocket examples and would
 love
 to have more I could study.

 -Sean-







 On Fri, Dec 24, 2010 at 7:53 PM, Jay Fields j...@jayfields.com
 wrote:
 I've written a few Clojure websocket apps and used Jetty. Things worked out
 fine and there wasn't much code at all to integrate. I'd recommend it.

 Sent from my iPhone

 On Dec 24, 2010, at 11:58 AM, Sean Allen s...@monkeysnatchbanana.com
 wrote:

 We did a prototype application using websockets for work using node.js as
 the server.
 Websocket client connects, sending some basic info... said info is used to
 repeatedly get
 new data from a database that is pushed down as it arrives in the db to the
 client which displays.
 There will be more than 1 client, each with its own data constraints that
 are used to get the data
 to send.

 If it goes into production we need to run on the jvm so I've been rewriting
 in clojure. I spent a couple
 hours yesterday trying to figuring out the best websockets option to use w/
 the clojure based server
 before I gave up. I realized w/o any background I'm just running blind.

 Given the basic idea of the application, what is the best websockets
 abstraction to use w/ clojure?
 Aleph? The jetty websocket support? Something else?

 Pointers from anyone will more experience doing a websocket server in
 clojure greatly appreciated.

 Thanks,
 Sean

 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
  clojure+unsubscr...@googlegroups.com
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
  http://groups.google.com/group/clojure?hl=en
http://groups.google.com/group/clojure?hl=en

  --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.comclojure%2bunsubscr...@googlegroups.com 
 For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with your 
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Fwd: websockets w/ clojure

2011-03-04 Thread Jay Fields
I finally got around to writing this:
http://blog.jayfields.com/2011/02/clojure-web-socket-introduction.html

Cheers, Jay

-- Forwarded message --
From: Sean Allen s...@monkeysnatchbanana.com
Date: Dec 24 2010, 11:58 pm
Subject: websockets w/ clojure
To: Clojure


Jay,

Do you have any publicly released code I could take a look at?
I've only found a couple of jetty/clojure/websocket examples and would
love
to have more I could study.

-Sean-







On Fri, Dec 24, 2010 at 7:53 PM, Jay Fields j...@jayfields.com
wrote:
 I've written a few Clojure websocket apps and used Jetty. Things worked out
 fine and there wasn't much code at all to integrate. I'd recommend it.

 Sent from my iPhone

 On Dec 24, 2010, at 11:58 AM, Sean Allen s...@monkeysnatchbanana.com
 wrote:

 We did a prototype application using websockets for work using node.js as
 the server.
 Websocket client connects, sending some basic info... said info is used to
 repeatedly get
 new data from a database that is pushed down as it arrives in the db to the
 client which displays.
 There will be more than 1 client, each with its own data constraints that
 are used to get the data
 to send.

 If it goes into production we need to run on the jvm so I've been rewriting
 in clojure. I spent a couple
 hours yesterday trying to figuring out the best websockets option to use w/
 the clojure based server
 before I gave up. I realized w/o any background I'm just running blind.

 Given the basic idea of the application, what is the best websockets
 abstraction to use w/ clojure?
 Aleph? The jetty websocket support? Something else?

 Pointers from anyone will more experience doing a websocket server in
 clojure greatly appreciated.

 Thanks,
 Sean

 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
  clojure+unsubscr...@googlegroups.com
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
  http://groups.google.com/group/clojure?hl=en
http://groups.google.com/group/clojure?hl=en

  --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.comclojure%2bunsubscr...@googlegroups.com 
 For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: websockets w/ clojure

2010-12-29 Thread Stuart Sierra
Netty. Excellent library, great documentation, built-in websocket support. 
 http://www.jboss.org/netty

Example use from my work-in-progress, Cljque:
https://github.com/stuartsierra/cljque/blob/master/modules/cljque-netty/src/main/clojure/cljque/netty/util.clj

-Stuart Sierra
clojure.com

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: websockets w/ clojure

2010-12-29 Thread Nuno Marques
I'm not sure if people are aware or not but websockets have been dropped
from firefox and
operahttp://hacks.mozilla.org/2010/12/websockets-disabled-in-firefox-4/
and
they expect other browsers to follow.

If you follow the links you can read the thread on the ietf mailing list
where the paper authors, that expose a vulnerability when transparent
proxies are involved, propose a different handshake for the protocol.

On 29 December 2010 15:51, Stuart Sierra the.stuart.sie...@gmail.comwrote:

 Netty. Excellent library, great documentation, built-in websocket support.
  http://www.jboss.org/netty

 Example use from my work-in-progress, Cljque:

 https://github.com/stuartsierra/cljque/blob/master/modules/cljque-netty/src/main/clojure/cljque/netty/util.clj

 -Stuart Sierra
 clojure.com

 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.comclojure%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: websockets w/ clojure

2010-12-26 Thread Jay Fields
I don't have any publicly available jetty/clojure/websocket code. I'll see if I 
can throw something together tomorrow.

Cheers, Jay

On Dec 24, 2010, at 11:58 PM, Sean Allen wrote:

 Jay,
 
 Do you have any publicly released code I could take a look at?
 I've only found a couple of jetty/clojure/websocket examples and would love
 to have more I could study.
 
 -Sean-
 
 On Fri, Dec 24, 2010 at 7:53 PM, Jay Fields j...@jayfields.com wrote:
 I've written a few Clojure websocket apps and used Jetty. Things worked out 
 fine and there wasn't much code at all to integrate. I'd recommend it. 
 
 Sent from my iPhone
 
 On Dec 24, 2010, at 11:58 AM, Sean Allen s...@monkeysnatchbanana.com wrote:
 
 We did a prototype application using websockets for work using node.js as 
 the server.
 Websocket client connects, sending some basic info... said info is used to 
 repeatedly get
 new data from a database that is pushed down as it arrives in the db to the 
 client which displays.
 There will be more than 1 client, each with its own data constraints that 
 are used to get the data 
 to send.
 
 If it goes into production we need to run on the jvm so I've been rewriting 
 in clojure. I spent a couple
 hours yesterday trying to figuring out the best websockets option to use w/ 
 the clojure based server
 before I gave up. I realized w/o any background I'm just running blind.
 
 Given the basic idea of the application, what is the best websockets 
 abstraction to use w/ clojure?
 Aleph? The jetty websocket support? Something else? 
 
 Pointers from anyone will more experience doing a websocket server in 
 clojure greatly appreciated.
 
 Thanks,
 Sean
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with your 
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with your 
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with your 
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

websockets w/ clojure

2010-12-24 Thread Sean Allen
We did a prototype application using websockets for work using node.js as
the server.
Websocket client connects, sending some basic info... said info is used to
repeatedly get
new data from a database that is pushed down as it arrives in the db to the
client which displays.
There will be more than 1 client, each with its own data constraints that
are used to get the data
to send.

If it goes into production we need to run on the jvm so I've been rewriting
in clojure. I spent a couple
hours yesterday trying to figuring out the best websockets option to use w/
the clojure based server
before I gave up. I realized w/o any background I'm just running blind.

Given the basic idea of the application, what is the best websockets
abstraction to use w/ clojure?
Aleph? The jetty websocket support? Something else?

Pointers from anyone will more experience doing a websocket server in
clojure greatly appreciated.

Thanks,
Sean

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: websockets w/ clojure

2010-12-24 Thread Zach Tellman
If you decide to try Aleph and have any questions, I'm available via
Github or on the mailing list at http://groups.google.com/group/aleph-lib.

Zach

On Dec 24, 10:55 am, paul santa clara kesseri...@gmail.com wrote:
 I have had a lot of success with Aleph.  Just remember to clone the git repo
 as things move quickly and the clojars version is often out of date.  Also,
 I would recommend taking the time to read over lamina wiki's as Aleph
 utilizes their channel 
 abstractions:https://github.com/ztellman/lamina/wiki/Channels

 And of course:https://github.com/ztellman/aleph/wiki/HTTP

 good luck,
 -Paul SC

 On Fri, Dec 24, 2010 at 11:58 AM, Sean Allen 
 s...@monkeysnatchbanana.comwrote:







  We did a prototype application using websockets for work using node.js as
  the server.
  Websocket client connects, sending some basic info... said info is used to
  repeatedly get
  new data from a database that is pushed down as it arrives in the db to the
  client which displays.
  There will be more than 1 client, each with its own data constraints that
  are used to get the data
  to send.

  If it goes into production we need to run on the jvm so I've been rewriting
  in clojure. I spent a couple
  hours yesterday trying to figuring out the best websockets option to use w/
  the clojure based server
  before I gave up. I realized w/o any background I'm just running blind.

  Given the basic idea of the application, what is the best websockets
  abstraction to use w/ clojure?
  Aleph? The jetty websocket support? Something else?

  Pointers from anyone will more experience doing a websocket server in
  clojure greatly appreciated.

  Thanks,
  Sean

  --
  You received this message because you are subscribed to the Google
  Groups Clojure group.
  To post to this group, send email to clojure@googlegroups.com
  Note that posts from new members are moderated - please be patient with
  your first post.
  To unsubscribe from this group, send email to
  clojure+unsubscr...@googlegroups.comclojure%2bunsubscr...@googlegroups.com 
  
  For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: websockets w/ clojure

2010-12-24 Thread Jay Fields
I've written a few Clojure websocket apps and used Jetty. Things worked out 
fine and there wasn't much code at all to integrate. I'd recommend it. 

Sent from my iPhone

On Dec 24, 2010, at 11:58 AM, Sean Allen s...@monkeysnatchbanana.com wrote:

 We did a prototype application using websockets for work using node.js as the 
 server.
 Websocket client connects, sending some basic info... said info is used to 
 repeatedly get
 new data from a database that is pushed down as it arrives in the db to the 
 client which displays.
 There will be more than 1 client, each with its own data constraints that are 
 used to get the data 
 to send.
 
 If it goes into production we need to run on the jvm so I've been rewriting 
 in clojure. I spent a couple
 hours yesterday trying to figuring out the best websockets option to use w/ 
 the clojure based server
 before I gave up. I realized w/o any background I'm just running blind.
 
 Given the basic idea of the application, what is the best websockets 
 abstraction to use w/ clojure?
 Aleph? The jetty websocket support? Something else? 
 
 Pointers from anyone will more experience doing a websocket server in clojure 
 greatly appreciated.
 
 Thanks,
 Sean
 -- 
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with your 
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: websockets w/ clojure

2010-12-24 Thread Sean Allen
Jay,

Do you have any publicly released code I could take a look at?
I've only found a couple of jetty/clojure/websocket examples and would love
to have more I could study.

-Sean-

On Fri, Dec 24, 2010 at 7:53 PM, Jay Fields j...@jayfields.com wrote:

 I've written a few Clojure websocket apps and used Jetty. Things worked out
 fine and there wasn't much code at all to integrate. I'd recommend it.

 Sent from my iPhone

 On Dec 24, 2010, at 11:58 AM, Sean Allen s...@monkeysnatchbanana.com
 wrote:

 We did a prototype application using websockets for work using node.js as
 the server.
 Websocket client connects, sending some basic info... said info is used to
 repeatedly get
 new data from a database that is pushed down as it arrives in the db to the
 client which displays.
 There will be more than 1 client, each with its own data constraints that
 are used to get the data
 to send.

 If it goes into production we need to run on the jvm so I've been rewriting
 in clojure. I spent a couple
 hours yesterday trying to figuring out the best websockets option to use w/
 the clojure based server
 before I gave up. I realized w/o any background I'm just running blind.

 Given the basic idea of the application, what is the best websockets
 abstraction to use w/ clojure?
 Aleph? The jetty websocket support? Something else?

 Pointers from anyone will more experience doing a websocket server in
 clojure greatly appreciated.

 Thanks,
 Sean

 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
  clojure+unsubscr...@googlegroups.com
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
  http://groups.google.com/group/clojure?hl=en
 http://groups.google.com/group/clojure?hl=en

  --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.comclojure%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en