Check if the socket is alive.
100 101 102
# File 'opal/browser/socket.rb', line 100 def alive? state == :open end