Thursday 20 April 2017

Socket id of socket.io hash can have commas?

I am using socket.io library over Node. I want to split by commas a string have different hash (socket id) of same user, this solution is broke if hash of socket ID have commas.

For example i want to save this string:

username@email.com:xlCGTJrldYLAs8eoAAAD,nLS5Avb1WHdwarrjAAAC

If socket ID hash have a comma, split function not work

Thanks !!



via Christian Carrillo

No comments:

Post a Comment