I was not expecting less than that from Massimo :) Em ter., 18 de fev. de 2020 às 03:45, Massimo Di Pierro < massimo.dipie...@gmail.com> escreveu:
> It would be trivial to implement it like flask does. > > You can do it right now using the bottlepy way: > https://pypi.org/project/bottle-websocket/ > or > https://github.com/marlboromoo/bottle-socketio-example > py4web uses bottle under the hood. > > The problem is that I would like something better than that. > I am not convinced it would work well in a cloud setting o when you have > servers behind a load balancer. > > Imagine you have two chat clients connected to two servers. If your client > posts a chat message, how does one server notify the other server to notify > the other client? This is the hard problem to solve. I am not interests in > toy examples. py4web will have this. > > Massimo > > > On Monday, 17 February 2020 10:31:39 UTC-8, Ramos wrote: >> >> hello , just asking if py4web will have the ability like flask to have a >> socket as simple as ... >> Regards >> >> @socketio.on('my event')def handle_my_custom_event(arg1, arg2, arg3): >> print('received args: ' + arg1 + arg2 + arg3) >> >> -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/web2py/dc01a0c6-dd54-4cab-a3c6-6073f95cd19d%40googlegroups.com > <https://groups.google.com/d/msgid/web2py/dc01a0c6-dd54-4cab-a3c6-6073f95cd19d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/CAEM0BxNNWP1XqqyYPDfOH34PNcw3PCO%2BWvVOQTm-L1Fe3K0WvQ%40mail.gmail.com.