How to monitor a web socket connection? [closed] - sockets

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I tried to find a tool to monitor single web socket connection... I didn't find any useful resources. My intention is to read the data that is going through a socket like, what data is passed through these methods.
subscribe()
unsubscribe()
onreceive()
send()
connect()

just saw this question. Answering for any others that may be wondering on the issue.
As mentioned Wireshark can "inspect" WebSocket frames as described here.
However for around an year now, Google Chrome has built in support for this. In Developer Tools, under Network there is a sub-filter for WebSockets. Another nice Chrome feature are the so-called "Net-Internals" thay can really help dive "behind the scenes" in the browser.
Here are some nice articles on how this can all be used together:
Logging WebSocket Frames using Chrome Developer Tools, Net-internals and Wireshark (TOTD #184)
And a book chapter listed by Springer (PDF) The book seems to be The Definitive Guide to HTML5 WebSocket.

This may not be what you're after, but you could use something like wireshark. It'll let you monitor all of the network traffic that's going on from your machine. From what I can remember, you could then apply filters to only listen for particular types of traffic, or for traffic between certain IP addresses. I'm not sure if you can apply filters to particular sockets, however it is a pretty flexible piece of software.
If you're looking for a much higher level, then you might be able to get away with just using a something like fiddler, which is a local proxy server that lets you examine web traffic.

Related

Which technology is the best to inform clients about server events immediately? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Improve this question
I'm going to create a game.
At first it will be the browser game.
Later it will be APP (Android, iPhone game).
At the server side I use nginx, apache, php.
=================
I need to inform online players about different events.
For example: one user is attacked by another one. I should inform him about that immediately.
Classical AJAX can't wrong there. I've read some about comet, web sockets and some other technologies.
But I still can't understand, which solution is the best for me?
Please, help me with the decision.
WebSocket should be the preferred option. It is a broadly supported technology.
It is a persistent, full duplex connection, compatible with all major browsers http://caniuse.com/websockets
maybe you could try Server Sent Events.
with SSE, a constant connection is maintained, until the page is unloaded, if something goes wrong with the connection or if you close the connection manually.
everytime something happens, e.g. a player is being attacked, you send an event command to the client, which then takes action depending on the event data.
although it does not work in every browser yet, it is a technique you could try
http://www.html5rocks.com/en/tutorials/eventsource/basics/ gives some further explaination on SSE and on how to set it up
Go with WebSocket. Using this, you can handle both the data sent from client browsers to the server (e.g. "user A attacks user B") and data sent from the server over a single channel. This saves server resources - and having a single technology is better than two separate ones (AJAX + something for the back channel).
Additionally, there are libraries for WebSocket for Android and iOS, so you could also attach native clients there in the future.
Since you'll need to distribute events to multiple clients at once, using something like Publish & Subscribe on top of WebSocket would make sense.
I suggest taking a look at Crossbar.io - it's an open source application router which does Publish & Subscribe out of the box.
Full disclosure: I work for Tavendo, the originators of the Crossbar.io open source project.

Website or Server down notification tools [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
We've some production and local development servers that we use to host database and web apps for our clients. Some of them are mapped as websites to client's domain (i.e. we've both web apps with url - http://71.22.33.xx/demo/login & http://order.clientweb.com/login)
Recently one of our clients reported that the website is down it returns a
"Service Unavailable" error. Eventually it turned that
the server was not reachable via remote desktop and none of the
websites on that server were responsive! We had to ping the hosting
company to reboot the server after which it was back online.
We can't predict future situations but how to get notified when the website or the server is down? A simple way would be to ping 71.22.33.xx but I believe that's old school. Are there any tools (like this) which would not only monitor or eventually check the availability and most importantly mail the admin when it goes down.
I'm sure I'm not the first one with such requirement :-) Here's a similar post. Some one please help ?
Thank you.
PS: Or do I've to write my own like this.
There are a number of products/services that can notify you if your website is down:
New Relic
Nagios
Montastic
Pingdom
Some provide more features than others so pick the solution most suitable for your needs.

Any API to share data between two iphones/ipod touches/ipads? (Except GameKit) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
is there any framework/api to easily to find other devices and share data between them?
Not gamekit please. And bonjour would be great but it is to complex to build..Mayby there's any API that uses Bonjour?
EDIT: Is there any API/Framework that is based on Bonjour?
I know that you've dismissed Bonjour outright, but you might be able to leverage a wrapper class to make it more manageable. For example, Bill Dudney created such a wrapper within his sample Bonjour iPhone application (described here). I generated a Mac version of this sample application to show how you can communicate between the iPhone and a desktop PC. You can see this in action in the Networking session of my class on iTunes U, as well as some other examples of peer-to-peer communication.
For device-device discovery and communication, Bonjour or something based on it (like GameKit) is going to be your best choice. Bonjour is the only way to do discovery of local iPhones over Bluetooth, for example (again, GameKit leverages this). It also works transparently with WiFi or Bluetooth, so you can create communication code that is network-agnostic.
GameKit provides a nice abstraction layer above Bonjour, so I wouldn't immediately reject it. You can decide to not use the system-supplied GKPeerPickerController if you were concerned about the user interface of this.
Dropbox has an API:
https://www.dropbox.com/developers
Bonjour would probably be the best to go with. It's supported by Apple, so you can count on it working for years to come and will only get better with time.

What is the _acp-sync._tcp bonjour service for? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
When I browse my home network with a bonjour browser, I see this _acp-sync._tcp bonjour service beeing advertised by all my AirPort base stations. Can anyone give me any insights on what this is for?
The only likely reference I can find for an ACP protocol is in the man page for natutil:
natutil uses the ACP protocol to detect, configure, and extract status information from Internet gate-way gateway way devices (IGDs) (such as AirPort Base Stations) on the local network.
I doubt you'll find out much further about it without firing up a packet sniffer as the dearth of information about it is a good indicator that Apple want to keep it proprietary.
Of course, I'd quite forgotten about that feature of Server. And Lion now contains the natutil(8) utility in the client, with more documentation (but inaccurate control of Airport base stations). _airport._tcp uses same port number (5009). Sadly, the IANA registry contains very sparse information on the formats of the TXT records in either case, so we lose beyond this point. :-(

Programming an IPTV application- Client/Server [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am part of a team which has been given a task to deploy an IPTV solution for a company. The system has been architect-ed like this.
There is Video capture card , which receives satellite signals from a satellite receiver. This video capture card is part of a windows 7 machine. The signals need to be trans coded here and passed to a streaming server which will be received by end users.
The end users will be desktop users having a C#.NET application installed to view the channels.
I am confused at the choice of server software as I have multiple choices - Windows Media Server, VideoLan (VLC project), or Flash Media Server, it also supports MPEG-2 HD.
My main aim to be able to stream MPEG-2 channels with HD quality and encrypt the channels at the server end so that the streams can be protected. I know reversing is possible but it wont be easy as for every naive user with wireshark snooping my streams.
If any of you here has ever done such an implementation please do suggest me the best technologies I should go for.
Iam open to C#,C++ and other similar languages. Any help shall be deeply appreciated.
edit: End Users shall be part of Internet and not necessarily a lan, reason for this question is internet doesn't support multicast like Lan, so I need some suggestions.
Guys, We have finally settled to use XMBC , Boxee's code base for our solution.