Protocol::WebSocket SourceProtocolWebSocketPingFrame

class PingFrame

Represents a ping frame that is sent or received by a WebSocket connection.

Definitions

def reply(**options)

Generate a suitable reply.

Signature

returns PongFrame

Implementation

def reply(**options)
	PongFrame.new(true, self.unpack, **options)
end

def apply(connection)

Apply this frame to the specified connection.

Implementation

def apply(connection)
	connection.receive_ping(self)
end