Sha256: 4a8dff889f3f6a1f0f82dd774477c867f56a89134fadce4a248cbc12ba8603fa
Contents?: true
Size: 304 Bytes
Versions: 17
Compression:
Stored size: 304 Bytes
Contents
module SalesforceStreamer class ReplayIdErrorExtension REPLAY_ERROR_REGEX = /^400::The replayId /.freeze def incoming(message, callback) if message['error']&.match?(REPLAY_ERROR_REGEX) fail ReplayIdError, message['error'] end callback.call message end end end
Version data entries
17 entries across 17 versions & 1 rubygems