It depends on the setting. If it's a formal one, where content is longer and needs more review before send, I'd have a button. If it's an actual chat application, enter should be fine. LinkedIn has both options, and features a toggle function for preference, and it doesn't take up very much space.