10
guru
8y

Hi Guys,

Has anyone used websockets in their projects?

Want to know what problem did it solved and what kind of project it was ?

Comments
  • 0
    I used web sockets using node.js server and socket.io javascript library. Was for telling connected clients about certain user generated events. Basically an extension of an example node js chat server example i found
  • 0
    @plumbus Thanks a lot. Were you able to send the push notifications (without clients request) ? Similar to server send events??
  • 1
  • 1
    @guru Yup, push from the server is exactly what's nice about web sockets.
  • 1
    @guru well... if user A did action foo user B would see a notification. Would push to everyone connected iirc. But I didn't have the server sending anything periodically or unsolicited
  • 0
    Did a few things in Go with it. Fairly easy to implement a clean event based system.

    Also build a slackbot based on https://opsdash.com/blog/...
  • 0
    I have used socket.io for a real time chat app
  • 1
    I haven't used them myself, but Stack Exchange chat is built on websockets.
  • 0
    I was using Socket.io on a Windows server and setting up the app to read the SSL certificate was kind of a pain.
  • 1
    @spongessuck You lost me at "Windows server"
  • 0
    real time notifications.
  • 0
    We use it for our ng-mongoose and mongoose-ws package, basically mongoose (odm for mongodb) in the browser for Angular and "realtime" db everywhere.

    Quite handy.
  • 2
    I used it for a client's event mobile page. An admin pushes different types of contents for the visitors in realtime. New visitors see the last pushed stuff. Backend in php (I know it's not for this, but sysadmin only enabled php for the daemon running the server), frontend in simple jquery.
  • 0
    @bguiz OK, guy, I guess you're cool.
  • 2
    We use websocket to push live stock ticker to several thousand users. It's also used to push generic messages to users. Benchmarked several stacks and languages and settled with Golang. People say nodejs is best but if you want scale forget about it and go with Golang or Elixir.
  • 0
    @spongessuck Hey I don't grow this nebeard for nothin'!

    ... JK, just love trolling!
Add Comment