guness / node-xcs

NodeJS implementation of Google's XMPP Connection Server
BSD 2-Clause "Simplified" License
38 stars 23 forks source link

use priority values from constants for setter value validation #8

Closed javamonn closed 7 years ago

javamonn commented 8 years ago

This allows for usage of the priority setter as described in the README, i.e. priority will accept "high" and "normal" as inputs, instead of the current inputs of 1 and 2.

javamonn commented 8 years ago

This could be considered a breaking change if there are users of this module that rely on .priority taking the 1 and 2 inputs.