-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Added sendJSON method #4
Conversation
3f43bff
to
abda556
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, cool! 😃 Not sure why I didn't think to include this, I do it all the time too.
I'll make the changes, but how do you feel about calling it json
instead of sendJSON
?
No worries, that's the beauty of opensource! |
I have just realised you meant just |
No problem 😆 I'm leaning towards Lemme ask around real quick for opinions and I'll get back shortly~ |
FWIW, I think just |
Me too 😄 That was also the consensus I got today when I asked others. 🙌 |
Calls to `ws.send` don't return anything, so there's no need to return anything either~
Thank you @bl4ckm0r3~! 🎉 |
thank you @lukeed very nice library! |
Haha, great!! |
I have found myself writing a lot of JSON.stringify, so i made an utility method that will do it for you!