Can anybody offer me some help understanding websockets?
I have an application working reasonably well with HTTP using long polling but would like to see if I can improve speed and reliability with Websockets. I have downloaded WebSocketExample and think I have my head around sending messages to the server but not so sure about getting them back:
- Presumably events are named and raised by the remote server - ie wsh_ServerTime will fire on my device when the Server raises an event called "ServerTime"?
- I define "Sub wsh_ServerTime(l as List) in the Activity in which I have Dim wsh as WebSocketHandler?
When sending messages, does the Server need to know the structure of my message of is the Map as defined in the example ("messsage",myMsg) a standard format?
Finally - to try and get my Server developer going (he is as confused as me so far) we have SBS Server 2011 running IIS7. Can he do anything with this using asp.net or must we upgrade to 2012/IIS8?
Thanks
I have an application working reasonably well with HTTP using long polling but would like to see if I can improve speed and reliability with Websockets. I have downloaded WebSocketExample and think I have my head around sending messages to the server but not so sure about getting them back:
- Presumably events are named and raised by the remote server - ie wsh_ServerTime will fire on my device when the Server raises an event called "ServerTime"?
- I define "Sub wsh_ServerTime(l as List) in the Activity in which I have Dim wsh as WebSocketHandler?
When sending messages, does the Server need to know the structure of my message of is the Map as defined in the example ("messsage",myMsg) a standard format?
Finally - to try and get my Server developer going (he is as confused as me so far) we have SBS Server 2011 running IIS7. Can he do anything with this using asp.net or must we upgrade to 2012/IIS8?
Thanks