How can i add image embedding to this chatroom?

How would i be able to include image embedding from links sent? I am using this SocketIO chatroom template.

There are a few different ways. You could upload the file to the server, or you can just convert the image to base64 and sent it like that.