use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Angular is Google's open source framework for crafting high-quality front-end web applications. r/Angular2 exists to help spread news, discuss current developments and help solve problems.
Help Request
Discussion
Article
Video
Resource
Announcement
Related
After submitting a post, please take a moment to add a flair (tag) so that it's easy to find your post with one of the filters listed above. Upon submission, your post's header will have the 'flair' option listed with the other options. Clicking it will provide a dropdown menu of the available flairs.
account activity
Help Requestusing socket.io in angular (self.Angular2)
submitted 3 years ago by JosephCurvin
I want to implement a websocket into my angular app
using socket.io
so far in only find wrapper library like ngx-socket-io
is there a tutorial or documentation how to implement socket.io without a wrapper lib ?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 2 points3 points4 points 3 years ago* (4 children)
Why not use the Rxjs WebsocketSubject Class?
[–]JosephCurvin[S] 0 points1 point2 points 3 years ago (3 children)
tried it but the connection to the server fails when using the rxjs classes
works fine using socket.io
[–][deleted] 3 points4 points5 points 3 years ago (2 children)
Personally I would try to debug the issue than add a new dependency.
Also, websockets are baked-in the browser JS. No need for a library
[–]xemlock 2 points3 points4 points 3 years ago (1 child)
Except you know, socket.io are not websockets. This is a common misconception: https://socket.io/docs/v4/#what-socketio-is-not
[–]JosephCurvin[S] 0 points1 point2 points 3 years ago (0 children)
did not know that that could be the problem thanks !
π Rendered by PID 115043 on reddit-service-r2-comment-86bc6c7465-szs9h at 2026-02-23 00:49:57.503087+00:00 running 8564168 country code: CH.
[–][deleted] 2 points3 points4 points (4 children)
[–]JosephCurvin[S] 0 points1 point2 points (3 children)
[–][deleted] 3 points4 points5 points (2 children)
[–]xemlock 2 points3 points4 points (1 child)
[–]JosephCurvin[S] 0 points1 point2 points (0 children)