Skip to content

Core\Http\Socket

A WebSocket connection your program opened to another server: it sends and receives messages until one side closes it. Core\Http\Client::openSocket() returns one.

Returned by

You get a Core\Http\Socket from these methods:

Members

5 members.

MemberSignature
receivereceive(): ?Core\Socket\Message
sendsend(string $frame): void
sendBytessendBytes(bytes $frame): void
closeclose(?uint $code = null, ?string $reason = null): void
protocolprotocol(): ?string