My understanding is that there are 2 main option for implementing websockets on a Pi
1 - Tornado - a light Python based web framework
2 - NodeJS+SocketIO
Pros-cons of each?
Is anyone familiar with either or perhaps can suggest a better alternative?
I'm currently playing around with Tornado - here's where I am up to:
Raspberry Pi and Tornado Websockets Part 1
I've also created the html client but not yet recorded part 2. Feel free to take a look. Part 2 should be there today and I'll be continuing to develop/evolve the code.
Node.js and socket.io is better option because Socket.IO support mobile device and realtime connectivity on every browse.
More details see this link http://socket.io/#browser-support
Actually, a third alternative is too use Java WebSocket (though the use of Java on a Pi can be discussed...)
Related
Im looking for a simulator that i can use to test my smpp 3.4 client that sends sms via network operator to their smsc that i have developed with nodejs
If you don't want to write your own, this is one I used to use and was very helpful.
Oh, recently me too had such question, but I found already made solution. This one is a really good. For me it was easy to strat using
I am trying mostly for learning purposes to implement a module similar to SignalR(still a beginner in SignalR) using raw websockets. (I am already very familiar with websockets)
Is there any guide or something that explains what functionality does SignalR have on top of websockets? (so that i know what features i need to implement) ? .
From what i understood it keeps a persistent connection , and can fallback to other protocols if websockets are not supported (long polling ...etc).
I have already checked this video but i need something more in detail.
I had written one article regarding SignalR one year back. It contains SignalR basic information and code example.
Following is the link of it -
https://medium.com/#aparnagadgil/real-time-web-functionality-using-signalr-ba483efcb959
Hope this helps you!
First of all, is it a nice and successfull idea to use peer 2 peer to broadcast realtime video ? I know that it will make the application scallable and will allow more users to get the real time video without affecting the server much, but are there drawbacks performance-wise and video quality-wise ?
Now the specefic question, my intention is to share realtime video, and then use peer2peer in the webclient level using websockets, are there any libraries that are used for this purpose?
I know that streaming should be better using UDP but the follwing post says that even using websockets (TCP) at 30fps is fast ennough (Video streaming over websockets using JavaScript)
XSockets.NET provides a WebRTC API.
This will provide you a JavaScript API for P2P communication. You can actually have a video chat with 2 or more participants really easy.
If you are a .NET dev you can install the sample from nuget. That sample contains a example of a multivideo chat.
The video will be of high quality, but you can set parameters to get lower resolution if you have low bandwith.
WebRTC works in Chrome and Firefox today (as well as chrome 29 on android). You can try this site with Chrome (not updated for Firefox or mobile) http://browsermeeting.com/
Nuget Package
You can check out IceLink (disclaimer: I work # FM), it'll help you do this.
I've actually built something along these lines for a client of ours, where each successive client becomes a potential "distribution" node. So X clients connect to the main server, and from there, other clients can connect to those clients (provided they have appropriate bandwidth/CPU/etc) for a re-broadcast version. It's sort of a supernode/mesh concept, and it works reasonably well.
I've taken a look at the basic websocket capabilities in Dart, using this simple example:
https://github.com/financeCoding/chat-websocket-dart
But I was wondering if there's a nice library I could use to build a realtime online game using websockets. I've had experience in this using node.js with socket.io, which worked out quite well. I need to be able to have "rooms", join rooms, leave rooms, broadcast to clients in a room, etc. as well as some nice notion of connection "health", reconnection etc. So what I'm asking is if there's a nice library for dart that has similar functionality? Even cooler would be a library on top of that library that could enable nice RPC functionality with variable syncing etc. such as http://nowjs.com/ which achieves this using socket.io. But I guess that might be too ambitious.
If anyone's had any experience or found a project which is similar to what I'm talking about, let me know :)
Duct is clone of Socket.IO in Dart which aims to be protocol-level compatible with the original implementation.
https://github.com/petrhosek/duct
Sorry, at the time of this writing, I'm not aware of a socket.io port for Dart. socket.io is nice because it has a bunch of implementation options for browsers that don't support Web sockets.
Sounds like a good idea for a hackathon project!
I am using ejabberd as server and want to deploy it on a large scale. Can you suggest me the client best suited so that I can plug it in seamlessly. I am thinking of using wokkel or pidgin but not really sure of the best possibility. Any sort of guidance will be appreciated.
Actually my complete requirement is development of a chat engine - including server, clients etc. Currently I am working on things at my desktop only but once done, I have to host it; basically incorporate it with in a site for chatting purpose. So, now my problem is:
I am not clear about how the actual data flow is? I have googled and read about xmpp (a book by Peter Andre) also but I am not clear about the flow and what are the actual requirementsto do the above mentioned task. What I currently know is:
1) I need a server - so selected ejabberd
2) I need client - still not sure which one to use and one other doubt is how this client thing will work when deployed on some website for chatting purpose.
3) Some library - dont know which one and what is the purpose?
2) You can use a web client like Candy Chat (uses Strophe IIRC) http://candy-chat.github.io/candy/
3) Create your own webclient using javascript and the Strophe library which ggozad mentioned.