4ib3r / StompBrokerJS

NodeJS StompBroker
MIT License
35 stars 66 forks source link

Fixing iterating over subscribes array #21

Closed marverix closed 3 years ago

marverix commented 4 years ago

for in should be used when iterating over keys of some object. I'm fixing this because server was crashing when I had own Array.prototype methods. Other option to iterate over array is for of but it would not work, becasue you need to be able to use delete. Below patch fixed my issues.

marverix commented 3 years ago

Woohoo! At last :D :+1: