Re: socket.io with other frameworks (grails, PHP, etc)

1,080 views
Skip to first unread message

Dan Shaw

unread,
Jun 6, 2012, 6:26:31 PM6/6/12
to sock...@googlegroups.com
Absolutely. This is basically what we did at Spreecast. There was a
Rails webserver and then another system that handled realtime
interactions with Socket.io. From talking to people, it's a fairly
common use case.

Daniel Shaw
@dshaw


On Wed, Jun 6, 2012 at 11:41 AM, James Carr <james....@gmail.com> wrote:
> I'm looking into a proof of concept using socket.io with other frameworks
> such as grails. Is this doable?
>
> Thanks,
> James
>

Angel Java Lopez

unread,
Jun 6, 2012, 6:43:08 PM6/6/12
to sock...@googlegroups.com
Interesting!

Who calls who? Rails webserver send message to the another system? Or web clients are the senders?

Rails webserver can dialog (bidirectional) with the another system with socket.io?

Abhishek Soni

unread,
Jun 6, 2012, 6:37:40 PM6/6/12
to sock...@googlegroups.com
I think it should be doable as the code of javascript is in frontend. and the backend code is in javascript (if you use node.js).

Regards
Ab

laxmikant

unread,
Jun 7, 2012, 3:24:34 AM6/7/12
to sock...@googlegroups.com
Hey Guys,
Can I use socket.IO or Node.js to run Log Running processes As
background processes with Django?
Anybody ........?

Thanks
Laxmikant

Angel Java Lopez

unread,
Jun 7, 2012, 5:28:06 AM6/7/12
to sock...@googlegroups.com
Apparently, there is a lack of socket.io client implementation in other languages, am I right? My guess: people implements WebSockets.

The first try could be:
- Implement xhr polling
A partial example:

The other way is to have a WebSocket client.... Hmmm, some links from google


@TooTallNate et al. have a WebSocket project in Java
Another one

I guess you can use @TooTallNate project as starting point to connect a Node.js+socket.io server from Grails/Java server side.

But I don't know if socket.io needs a handshake before connecting to a WebSocket client.

Angel "Java" Lopez
Reply all
Reply to author
Forward
0 new messages