enum Grip::ServerSent::Strategy

Defined in:

grip/server_sent/strategy.cr

Enum Members

DropOldest = 0

Drops the oldest un-flushed frame to make room for live real-time data (Default)

DropNewest = 1

Ignores incoming frames while the buffer is full until network capacity frees up

Block = 2

Blocks the calling fiber until room opens in the queue (Preserves strict ordering & delivery)

Instance Method Summary

Instance Method Detail

def block? #

Returns true if this enum value equals Block


[View source]
def drop_newest? #

Returns true if this enum value equals DropNewest


[View source]
def drop_oldest? #

Returns true if this enum value equals DropOldest


[View source]