|
This archive contains the compiled sources for the WebSocketServer (WebSocketServer.dll) and the WebSocketChatServer (WebSocketChatServer.exe).
Please rename WebSocketChatServer.exe_ to WebSocketChatServer.exe inorder to be able to execute it.
To interact with the server please use the following javascript on a web page running on localhost:8080
if('WebSocket' in window){
connect('ws://localhost:8181/chat');
}
function connect(host) {
var ws = new WebSocket(host);
ws.onopen = function () {
alert('connected');
};
ws.onmessage = function (evt) {
alert('reveived data:'+evt.data);
};
ws.onclose = function () {
alert('socket closed');
};
};
See http://www.codeproject.com/KB/webservices/c_sharp_web_socket_server.aspx to read the full article and to download the source code
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.