now when user types message, server receives it as a chat message