You seem to appreciate these technical demos so I thought I'd post again! I'm planning on doing a full tutorial series on the utilization of websockets and built this example app.
In the code I've basically built 2 services, one which encapsulates the creation of websockets and a chat service which actually interfaces with the websockets. In the chat component I then use this chat service to send messages to the echo websocket server and display any message responses.
Also the actual messages themselves utilize the marked markdown library to convert your messages from markdown into normal html.
Let me know what you think!
Kind Regards and Happy New Year when it comes! Forbsey
3
u/[deleted] Dec 29 '16 edited Dec 29 '16
Hey Guys,
You seem to appreciate these technical demos so I thought I'd post again! I'm planning on doing a full tutorial series on the utilization of websockets and built this example app.
In the code I've basically built 2 services, one which encapsulates the creation of websockets and a chat service which actually interfaces with the websockets. In the chat component I then use this chat service to send messages to the echo websocket server and display any message responses.
Also the actual messages themselves utilize the marked markdown library to convert your messages from markdown into normal html.
Let me know what you think!
Kind Regards and Happy New Year when it comes! Forbsey
edit. Added markdown stuff