The Crystal programming language | http://crystal-lang.org | Fund Crystal's development: http://is.gd/X7PRtI | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/
@aaaScript Empty
@sockets
explains whyclose
doesn't work.p @sockets
before & afterbind
&listen()
. The array probably gets nuked afterlisten
or it wouldn't accept connections at all
@didactic-drunk It returns socket output after bind_tls
and listen
as expected. However, it just seems to get wiped like you mentioned. It's kind of weird. I'm not overwriting the object or anything.
if h
etc.
Bool | Nil
, but I guess it would be true only in the first branch and false | nil in the second
JSON::Serializable
and create a general class, which consumes any json string and returns Hash representation.