Skip to content
This repository has been archived by the owner on Dec 20, 2019. It is now read-only.

Commit

Permalink
Logo color
Browse files Browse the repository at this point in the history
  • Loading branch information
dajuric committed Oct 15, 2017
1 parent 016dea3 commit c2e47db
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 21 deletions.
Binary file modified Deploy/Logo/Logo-big.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Deploy/Logo/Logo-small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Deploy/Logo/Logo.pptx
Binary file not shown.
Binary file removed Deploy/Logo/WebSocketRPC.pptx
Binary file not shown.
2 changes: 1 addition & 1 deletion Deploy/Nuget/Build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

:: settings
set nugetPath=%cd%\..\..\.nuget
set version=0.8.1
set version=1.0.1
set output=%cd%\bin

:: Create output directory
Expand Down
7 changes: 3 additions & 4 deletions Deploy/Nuget/nuSpecs/WebsocketRPC.JS.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
<title>WebsocketRPC.JS</title>
<authors>Darko Jurić</authors>
<owners>Darko Jurić</owners>
<!--<iconUrl></iconUrl>-->
<description>
Generates the Javascript code for websocket-connection using the provided .NET interface.
</description>
<licenseUrl>https://raw.githubusercontent.com/dajuric/websocket-rpc/master/LICENSE.md</licenseUrl>
<iconUrl>https://raw.githubusercontent.com/dajuric/websocket-rpc/master/Deploy/Logo/logo-small.png</iconUrl>
<description>Generates the Javascript code for websocket-connection using the provided .NET interface.</description>
<summary>Generates the Javascript code for websocket-connection using the provided .NET interface.</summary>
<tags>websocket; websocket-client; Javascript; RPC; C#; .NET</tags>

Expand Down
9 changes: 4 additions & 5 deletions Deploy/Nuget/nuSpecs/WebsocketRPC.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@
<title>WebsocketRPC</title>
<authors>Darko Jurić</authors>
<owners>Darko Jurić</owners>
<!--<iconUrl></iconUrl>-->
<description>
Provides full duplex RPC over websocket.
</description>
<licenseUrl>https://raw.githubusercontent.com/dajuric/websocket-rpc/master/LICENSE.md</licenseUrl>
<iconUrl>https://raw.githubusercontent.com/dajuric/websocket-rpc/master/Deploy/Logo/logo-small.png</iconUrl>
<description>Provides full duplex RPC over websocket.</description>
<summary>Provides full duplex RPC over websocket.</summary>
<tags>websocket; RPC; C#; .NET</tags>
<tags>websocket; websocket-server; websocket-client; RPC; C#; .NET</tags>

<dependencies>
<dependency id="Newtonsoft.Json" version="10.0.3" />
Expand Down
17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
<p align="center">
<a href="https://www.nuget.org/profiles/dajuric"> <img src="Deploy/Logo/Logo-big.png" alt="WebSocketRPC logo" width="120" align="center"> </a>
<a href="https://www.nuget.org/profiles/dajuric"> <img src="Deploy/Logo/logo-big.png" alt="WebSocketRPC logo" width="120" align="center"> </a>
</p>

<!--
<p align="center">
<a href="https://www.nuget.org/profiles/dajuric"> <img src="https://img.shields.io/badge/WebSokcetRPC-v1.0.1-blue.svg?style=flat-square" alt="NuGet packages version"/> </a>
<a href="https://www.nuget.org/profiles/dajuric"> <img src="https://img.shields.io/badge/WebSokcetRPC.JS-v1.0.1-blue.svg?style=flat-square" alt="NuGet packages version"/> </a>
</p>
-->

**WebSokcetRPC** - RPC over weboskcets for .NET
Leightweight .NET framework for making RPC over websockets. Supports full duplex connections; .NET or Javascript clients.

<!-- > **Tutorial:** <a href="http://www.codeproject.com/Articles/828012/Introducing-Lightweight-Weboskcet-RPC-library-for-Csharp" target="_blank">CodeProject article</a>-->
> **Tutorial:** <a href="https://www.codeproject.com/Articles/1210350/Introducing-Lightweight-WebSocket-RPC-library-for" target="_blank">CodeProject article</a>

## Why WebSocketRPC ?
Expand All @@ -23,11 +21,11 @@ The only dependency is <a href="https://www.newtonsoft.com/json">JSON.NET</a> li
+ **Simple**
There is only one relevant method: **Bind** for binding object/interface onto connection, and **CallAsync** for calling RPCs.

+ **Connection relaying in a single line of code**
The library is capable to relay incoming requests to a background services with just one command: **Relay**
+ **Use 3rdParty assemblies as API(s)**
Implemented API, if used only for RPC, does not use anything from the library.

+ **Automatic Javascript code generation** *(WebsocketRPC.JS package)*
Javascript websokcet client code is automatically generated (with JsDoc comments) from an existing .NET
Javascript websokcet client code is automatically generated **_(with JsDoc comments)_** from an existing .NET
interface (API contract).


Expand All @@ -51,8 +49,7 @@ class MathAPI
File.WriteAllText("MathAPI.js", RPCJs.GenerateCallerWithDoc<MathAPI>());
//run server
Server.ListenAsync("http://localhost:8000/", CancellationToken.None,
(c, wc) => c.Bind<MathAPI>(new MathAPI()))
.Wait(0);
(c, wc) => c.Bind<MathAPI>(new MathAPI())).Wait(0);
```

**Client**
Expand All @@ -68,7 +65,7 @@ api.connect(async () =>

## Getting started
+ Samples
<!--+ <a href="http://www.codeproject.com/Articles/828012/Introducing-Lightweight-Weboskcet-RPC-library-for-Csharp" target="_blank">CodeProject article</a>-->
+ <a href="https://www.codeproject.com/Articles/1210350/Introducing-Lightweight-WebSocket-RPC-library-for" target="_blank">CodeProject article</a>

## How to Engage, Contribute and Provide Feedback
Remember: Your opinion is important and will define the future roadmap.
Expand Down
1 change: 1 addition & 0 deletions Samples/ClientJs/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public async Task<int> LongRunningTask(int a, int b)
public class Program
{
//if access denied execute: "netsh http delete urlacl url=http://+:8001/"
//open Index.html to run the client
static void Main(string[] args)
{
//generate js code
Expand Down
1 change: 1 addition & 0 deletions Samples/MultiService/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public string Add(string a, string b)
public class Program
{
//if access denied execute: "netsh http delete urlacl url=http://+:8001/"
//open Index.html to run the client
static void Main(string[] args)
{
//generate js code
Expand Down
1 change: 1 addition & 0 deletions Samples/Serialization/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ unsafe Bgr<byte> swapChannels(Bgr<byte> c, int[] order)
class Program
{
//if access denied execute: "netsh http delete urlacl url=http://+:8001/"
//open Index.html to run the client
static void Main(string[] args)
{
RPCSettings.MaxMessageSize = 1 * 1024 * 1024; //1MiB
Expand Down
2 changes: 1 addition & 1 deletion Source/WebsocketRPC/ClientServer/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public static async Task ListenAsync(HttpListenerContext listenerContext, Cancel
}
finally
{
//webSocket?.Dispose();
webSocket?.Dispose();
}
}
}
Expand Down

0 comments on commit c2e47db

Please sign in to comment.