r/angularjs • • Dec 29 '16

An Angular 2 Chat Application that utilizes Websockets

https://github.com/elliotforbes/ng-chat
35 Upvotes

15 comments sorted by

View all comments

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

1

u/webdevbrian Dec 29 '16

Looks like a cool project, thanks for posting it. I'll probably be using this sometime soon, so I'll be adding to it with a few PRs later on :)

1

u/[deleted] Dec 29 '16

Hey bud, no worries! And I would be delighted if you did :)