io.scalajs.dom.ws
The connection is closed or couldn't be opened.
The connection is in the process of closing.
The connection is not yet open.
The connection is open and ready to communicate.