Chat room example

Hi all,

Could someone please take a look at my chat example below and tell me if there is any reason why it shouldn’t work?

Any help would grateful.