Worked on chat and publicator client. added back onopen and onclose events.