added stuff
parent
06fc05ee04
commit
f1b7a6de0f
@ -0,0 +1,13 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Rider ignored files
|
||||||
|
/.idea.websocket-sharp.iml
|
||||||
|
/contentModel.xml
|
||||||
|
/projectSettingsUpdater.xml
|
||||||
|
/modules.xml
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/../../../../../../../../:\Users\cover\RiderProjects\websocket-sharp\.idea\.idea.websocket-sharp\.idea/dataSources/
|
||||||
|
/dataSources.local.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
|
||||||
|
</project>
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ContentModelUserStore">
|
||||||
|
<attachedFolders />
|
||||||
|
<explicitIncludes />
|
||||||
|
<explicitExcludes />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="RIDER_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager">
|
||||||
|
<content url="file://$MODULE_DIR$/../.." />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
|
<mapping directory="$PROJECT_DIR$/TestServer2" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<packages>
|
||||||
|
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net35" />
|
||||||
|
</packages>
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<packages>
|
||||||
|
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net35" />
|
||||||
|
</packages>
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<packages>
|
||||||
|
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net35" />
|
||||||
|
</packages>
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<packages>
|
||||||
|
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net35" />
|
||||||
|
</packages>
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configuration>
|
||||||
|
<appSettings>
|
||||||
|
<add key="CertFilePassword" value="password"/>
|
||||||
|
<add key="DocumentRootPath" value="../../Public"/>
|
||||||
|
<add key="ServerCertFile" value="/path/to/cert.pfx"/>
|
||||||
|
</appSettings>
|
||||||
|
</configuration>
|
||||||
@ -0,0 +1,68 @@
|
|||||||
|
/*
|
||||||
|
* echotest.js
|
||||||
|
*
|
||||||
|
* Derived from Echo Test of WebSocket.org (http://www.websocket.org/echo.html).
|
||||||
|
*
|
||||||
|
* Copyright (c) 2012 Kaazing Corporation.
|
||||||
|
*/
|
||||||
|
|
||||||
|
var url = "ws://localhost:4649/Echo";
|
||||||
|
//var url = "wss://localhost:5963/Echo";
|
||||||
|
var output;
|
||||||
|
|
||||||
|
function init () {
|
||||||
|
output = document.getElementById ("output");
|
||||||
|
doWebSocket ();
|
||||||
|
}
|
||||||
|
|
||||||
|
function doWebSocket () {
|
||||||
|
websocket = new WebSocket (url);
|
||||||
|
|
||||||
|
websocket.onopen = function (e) {
|
||||||
|
onOpen (e);
|
||||||
|
};
|
||||||
|
|
||||||
|
websocket.onmessage = function (e) {
|
||||||
|
onMessage (e);
|
||||||
|
};
|
||||||
|
|
||||||
|
websocket.onerror = function (e) {
|
||||||
|
onError (e);
|
||||||
|
};
|
||||||
|
|
||||||
|
websocket.onclose = function (e) {
|
||||||
|
onClose (e);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function onOpen (event) {
|
||||||
|
writeToScreen ("CONNECTED");
|
||||||
|
send ("WebSocket rocks");
|
||||||
|
}
|
||||||
|
|
||||||
|
function onMessage (event) {
|
||||||
|
writeToScreen ('<span style="color: blue;">RESPONSE: ' + event.data + '</span>');
|
||||||
|
websocket.close ();
|
||||||
|
}
|
||||||
|
|
||||||
|
function onError (event) {
|
||||||
|
writeToScreen ('<span style="color: red;">ERROR: ' + event.data + '</span>');
|
||||||
|
}
|
||||||
|
|
||||||
|
function onClose (event) {
|
||||||
|
writeToScreen ("DISCONNECTED");
|
||||||
|
}
|
||||||
|
|
||||||
|
function send (message) {
|
||||||
|
writeToScreen ("SENT: " + message);
|
||||||
|
websocket.send (message);
|
||||||
|
}
|
||||||
|
|
||||||
|
function writeToScreen (message) {
|
||||||
|
var pre = document.createElement ("p");
|
||||||
|
pre.style.wordWrap = "break-word";
|
||||||
|
pre.innerHTML = message;
|
||||||
|
output.appendChild (pre);
|
||||||
|
}
|
||||||
|
|
||||||
|
window.addEventListener ("load", init, false);
|
||||||
@ -0,0 +1,12 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>WebSocket Echo Test</title>
|
||||||
|
<script type="text/javascript" src="/Js/echotest.js">
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h2>WebSocket Echo Test</h2>
|
||||||
|
<div id="output"></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Binary file not shown.
@ -0,0 +1,20 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2007 James Newton-King
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
|
this software and associated documentation files (the "Software"), to deal in
|
||||||
|
the Software without restriction, including without limitation the rights to
|
||||||
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||||
|
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||||
|
subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||||
|
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||||
|
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||||
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
After Width: | Height: | Size: 8.7 KiB |
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<packages>
|
||||||
|
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net35" />
|
||||||
|
</packages>
|
||||||
Loading…
Reference in New Issue