Sha256: 5e600fe5af937b4ef6a67e42359ffdf396ea52d2b061f13fbfbd780e3b1cd995
Contents?: true
Size: 297 Bytes
Versions: 10
Compression:
Stored size: 297 Bytes
Contents
module SalesforceStreamer class ReplayIdErrorExtension REPLAY_ERROR_REGEX = /^400::The replayId / 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
10 entries across 10 versions & 1 rubygems