Added ws broadcasting support through events