ReadonlybufferedReadonlyCLOSEDReadonlyCLOSINGReadonlyCONNECTINGReadonlyextensionsOptionaloncloseOptionalonerrorOptionalonmessageOptionalonopenReadonlyOPENReadonlyprotocolReadonlyreadyReadonlyurlOptionalcode: numberOptionalreason: string
Common WebSocket interface that can be implemented by different WebSocket-like classes This is compatible with the standard WebSocket API but allows for custom implementations