May you want to take a look at Valum project for web server/development:

http://docs.valum-framework.org/en/latest/

2017-12-17 11:09 GMT-06:00 Marcin Lewandowski <mar...@saepia.net>:

> Hello,
>
> you need to do any operation that will increase ref count on your conn in
> websocket_handler. Otherwise it will be freed as soon as the handler
> finishes. You can just call conn.ref() but it is no too smart, usually
> better option is to keep e.g. a list of all open connections and adding it
> to the list should automatically increase ref count.
>
> m.
> _______________________________________________
> vala-list mailing list
> vala-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/vala-list
>



-- 
This electronic message may contain privileged and confidential information
intended only for the use of the addressees named above.  If you are not
the intended recipient of this email, we kindly ask you to delete this
message and any attachment. You are hereby notified that any use,
dissemination, distribution, reproduction of this email is prohibited.  If
you have received this email in error, please notify sender immediately.

Any document, image or any other form of electronic representation of any
work attached to this email, is suitable to be protected by copyright
enforcement by applicable law in your or sender's Country's and
International Legislation

Trabajar, la mejor arma para tu superación
"de grano en grano, se hace la arena" (R) (en trámite, pero para los
cuates: LIBRE)
_______________________________________________
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to