flash messages can be generated by server or client, client generates one if connection isn't via websockets