Re: [Vala] I cannot get a simple websocket server working



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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]