isProtocol property

bool get isProtocol

pusher_internal: frames are the protocol talking about itself; everything else is an application event a subscriber asked for.

Implementation

bool get isProtocol =>
    event.startsWith('pusher:') || event.startsWith('pusher_internal:');