Skip to content

multiple subscription issue #65

@mohsenShakiba

Description

@mohsenShakiba

I need to subscribe to a pattern and to a normal channel,
here is my code

client_sub = getRedisSub()
client_sub |> Exredis.Sub.subscribe "status", fn(msg) ->
  case msg do
    {:message, _, groupID, _} -> RedisActions.onSendMessageToMembersOf(groupID)
    _ -> IO.inspect msg
  end
end

client_sub |> Exredis.Sub.psubscribe "message:*", fn(msg) ->
  Message.parse_redis_message(msg)
end

but the problem is only one of them will receive the published events, whichever that comes first.
what am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions