Before and after close
p http.@sockets.map(&.closed?) p http.@sockets # or
@didactic-drunk it's actually returning empty arrays for me before and after. It's kind of odd. Maybe something is happening after the
#listen method that is causing some issue?
# Before Close   # After Close  
p @socketsbefore & after
listen(). The array probably gets nuked after
listenor it wouldn't accept connections at all
@didactic-drunk It returns socket output after
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.
Bool | Nil, but I guess it would be true only in the first branch and false | nil in the second
JSON::Serializableand create a general class, which consumes any json string and returns Hash representation.