Is it possible to use a callback with send()

304 views
Skip to first unread message

bigras...@gmail.com

unread,
Aug 27, 2012, 11:18:40 AM8/27/12
to soc...@googlegroups.com
Hi,

Is it possible to use a callback with send().

I would like to do something like :

socket.send("stuff", function (result) {
    console.log("result", result);
});

Thanks!

Bruno

Serge S. Koval

unread,
Aug 27, 2012, 11:24:23 AM8/27/12
to bigra...@gmail.com, soc...@googlegroups.com
Hi,

Nope, websockets don't do that. You can write your own RPC on top of sockjs though.

Serge.

Bruno Bigras

unread,
Aug 27, 2012, 11:27:33 AM8/27/12
to Serge S. Koval, bigra...@gmail.com, soc...@googlegroups.com
I see, Thanks!

Bruno

2012/8/27 Serge S. Koval <serge...@gmail.com>

raf....@gmail.com

unread,
Jan 10, 2013, 1:01:10 PM1/10/13
to soc...@googlegroups.com
This is an interesting idea. I would like to write that myself but don't really know where to start. Could you help me on the way? Are there any example Projects you know of? Thanks

raf....@gmail.com

unread,
Jan 10, 2013, 1:01:58 PM1/10/13
to soc...@googlegroups.com

Vladimir Dronnikov

unread,
Jan 10, 2013, 11:46:24 PM1/10/13
to raf...@gmail.com, sockjs
Reply all
Reply to author
Forward
0 new messages