Django-channels and JSON-RPC

2017-01-19 Thread Fabien Millerand
Hi everyone, I am looking to implement a websocket server based on Django using JSON-RPC protocol. I have been looking around for a pre-made solution without success. I am also a newbie in Django so I am a little bit lost... Did anyone try to develop something like that? -- You received

Re: Django-channels and JSON-RPC

2017-01-20 Thread Fabien Millerand
> the consumer pattern very well. > > Andrew > > On Thu, Jan 19, 2017 at 7:34 AM, Fabien Millerand > wrote: > >> Hi everyone, >> >> I am looking to implement a websocket server based on Django using >> JSON-RPC protocol. >> >> I have been looking

Re: Django-channels and JSON-RPC

2017-01-24 Thread Fabien Millerand
UTC+1, Alexander Prokhorov a écrit : > > If you are going to implement JSON-RPC based on Channels, I would be happy > to participate, I suppose we will start doing this in a few week anyway. > > пятница, 20 января 2017 г., 13:36:49 UTC+3 пользователь Fabien Millerand > написал:

Re: Django-channels and JSON-RPC

2017-01-24 Thread Fabien Millerand
24 января 2017 г., 11:00:06 UTC+3 пользователь Fabien Millerand > написал: >> >> Hi, >> >> I will start implementing something this week (starting today). >> I will let you know how things go. >> Alexander, I would be happy to share my work and get some feedb

Re: Django-channels and JSON-RPC

2017-01-24 Thread Fabien Millerand
to create a decorator for the consumer's method so it can send back the "Method Not Found" error if needed. Andrew, if you have some ideas or input on that, it would be much appreciated. Cheers, Fabien Le mardi 24 janvier 2017 11:24:35 UTC+1, Fabien Millerand a écrit : > >

Re: Django-channels and JSON-RPC

2017-01-24 Thread Fabien Millerand
ed to move with uWSGI or something JSON-RPC in itself doesn't implement a timeout, althought the javascript client better have one... > Andrew > > On Tue, Jan 24, 2017 at 8:39 AM, Fabien Millerand > wrote: > >> alexander, I uploaded some ideas. >> >>

Re: Django-channels and JSON-RPC

2017-01-25 Thread Fabien Millerand
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 D

Re: Django-channels and JSON-RPC

2017-01-25 Thread Fabien Millerand
> Andrew > > On Wed, Jan 25, 2017 at 12:06 AM, Fabien Millerand <mailto:miller...@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 : &

Re: Django-channels and JSON-RPC

2017-01-26 Thread Fabien Millerand
ook > 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 > написал: >

Re: Django-channels and JSON-RPC

2017-01-26 Thread Fabien Millerand
the > battle! > > Andrew > > On Wed, Jan 25, 2017 at 12:06 AM, Fabien Millerand > 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, And

Re: Django-channels and JSON-RPC

2017-01-26 Thread Fabien Millerand
simple Python module though, so you can just do: > > > from channels_jsonrpc import JsonRpcWebsocketConsumer > > class MyConsumer(JsonRpcWebsocketConsumer): > > > > In your own consumers file. > > Andrew > > On Thu, Jan 26, 2017 at 12:14 PM, Fab

Re: Django-channels and JSON-RPC

2017-01-27 Thread Fabien Millerand
ame clash. > > пятница, 27 января 2017 г., 1:07:38 UTC+3 пользователь Fabien Millerand > написал: >> >> Yes, that was my thought as well... >> >> Will do and let you know. It could be good to add a link in your docs as >> a side note... >> >> I

Re: Django-channels and JSON-RPC

2017-01-27 Thread Fabien Millerand
Ok, module is uploaded https://pypi.python.org/pypi/django-channels-jsonrpc/0.1 Feel free to use it. Le vendredi 27 janvier 2017 11:30:15 UTC+1, Fabien Millerand a écrit : > > Thanks Alex. > > I also rectified something that your test brought up. > I am modifying the structure a

Django custom Model.Fields

2017-02-02 Thread Fabien Millerand
Hi all, down votefavorite I am trying to create a Model Fields that is basically a AutoField, but in base 36. Here my definition: class AutoBase36Field(models.AutoField): description = _("AutoField on base3