Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from string topics to keyword topics #12

Closed
emiln opened this issue Mar 6, 2015 · 0 comments
Closed

Switch from string topics to keyword topics #12

emiln opened this issue Mar 6, 2015 · 0 comments

Comments

@emiln
Copy link
Owner

emiln commented Mar 6, 2015

The client will currently emit! topics of type String, like "message". The only reason it isn't emitting the more idiomatic keyword type is laziness. It would be very easy to convert the limited range of Strings used by Slack to keywords.

Something along these lines:

(fn [string]
  (-> string
    (clojure.string/replace #"_" "-")
    (keyword)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant