Alexander, What I am working on is not the client, but the server... I am not really sure what you are looking for exactly, but I have been working with websockets and json-rpc client-server structure for a few years now, so happy to fill you in with some infos if needed.
Le mercredi 25 janvier 2017 11:59:06 UTC+1, Alexander Prokhorov a écrit : > > Colleagues, > > you are really fast :) How can I help you? For our project we will > definitely need a JavaScript client. Quick googling led me to > https://github.com/JsCommunity/jsonrpc-websocket-client it does not look > mature, but such client is quite easy to implement. Do you have plans to > include simple JavaScript client to the package? If so I could try to start > doing one right now. > > среда, 25 января 2017 г., 11:57:35 UTC+3 пользователь Fabien Millerand > написал: >> >> Fair enough. I understand that in distributed system. But maybe you >> should add a note about that, as if the whole system is not distributed >> over network(s), it is highly unlikely to lose frames :D >> >> >> >> On 25 Jan 2017, at 09:08, Andrew Godwin <and...@aeracode.org> wrote: >> >> Yes, it's a bit alarmist if you don't come from the background of writing >> distributed systems. I just don't like to hide the truth one bit! >> >> All your software and hardware can fail in myriad ways; I have a talk I >> need to give about it at some point. Knowing how it fails is half the >> battle! >> >> Andrew >> >> On Wed, Jan 25, 2017 at 12:06 AM, Fabien Millerand <mill...@gmail.com> >> wrote: >> >>> Ok, I start to understand now. >>> To be frank the docs are a bit alarming :) >>> >>> >>> >>> Le mercredi 25 janvier 2017 08:47:06 UTC+1, Andrew Godwin a écrit : >>>> >>>> >>>>>> I am not sure to understand. In which case can there be >>>>> messages/frames lost?! Where does that happen? Between the server >>>>> interface >>>>> and the Django layer? I would need to know more about that... Otherwise I >>>>> might need to move with uWSGI or something.... JSON-RPC in itself doesn't >>>>> implement a timeout, althought the javascript client better have one... >>>>> >>>>> >>>> It simply means that it's possible that you might lose an incoming >>>> frame. This is also true of implementing it in uWSGI (the process handling >>>> the socket might get OOM killed, or the server might die, etc.) >>>> >>>> It's not a normal case, it's just that if something super bad happens, >>>> the resulting handling is to drop a message rather than play it twice. >>>> Most >>>> systems I know of that handle websockets do this. >>>> >>>> Andrew >>>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Django users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to django-users...@googlegroups.com. >>> To post to this group, send email to django...@googlegroups.com. >>> Visit this group at https://groups.google.com/group/django-users. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-users/97e75375-6caf-4e8d-a781-be6da421840d%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/django-users/97e75375-6caf-4e8d-a781-be6da421840d%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Django users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/django-users/b00Ie8wBPnc/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> django-users...@googlegroups.com. >> To post to this group, send email to django...@googlegroups.com. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/CAFwN1uoPw%2BTjz3dmTvLeOck%3DHfRfRycA%3DHZ_GQa%2BbYBt7oXxwA%40mail.gmail.com >> >> <https://groups.google.com/d/msgid/django-users/CAFwN1uoPw%2BTjz3dmTvLeOck%3DHfRfRycA%3DHZ_GQa%2BbYBt7oXxwA%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> >> >> -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/58235bfb-2aae-47bd-bd7a-fc4baa98a11d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.