phasync
WebSocket / isClosed

Method

WebSocket::isClosed

Whether the connection is closed: end() was called, the client said goodbye, or the connection ended.

Description#

public WebSocket::isClosed(): bool

Return values#

bool

See also#

  • WebSocket::endClose the connection: send a close frame with $code and $reason and end the sending side, once.