This repository has been archived by the owner on Jul 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Caleb Lloyd <caleb@synadia.com>
- Loading branch information
Caleb Lloyd
committed
Jul 28, 2022
1 parent
d715153
commit e28baff
Showing
13 changed files
with
346 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# BlazorWasm | ||
|
||
Blazor WebAssembly demo with NATS request/reply | ||
|
||
## Pre-requisites | ||
|
||
Start `nats-server` with a WebSocket listener on port 4280 | ||
|
||
**With nats-server** | ||
|
||
```bash | ||
nats-server -c nats-server.conf | ||
``` | ||
|
||
**With docker** | ||
|
||
|
||
```bash | ||
docker run --rm \ | ||
--name nats-server \ | ||
-p 4222:4222 \ | ||
-p 4280:4280 \ | ||
-v "$(pwd)/nats-server.conf:/etc/nats/nats-server.conf" \ | ||
nats | ||
``` | ||
|
||
## Run the Project | ||
|
||
```bash | ||
dotnet run --project Server | ||
``` | ||
|
||
Navigate to http://localhost:5000/fetchdata |
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
sandbox/BlazorWasm/docker/nats-server.conf → sandbox/BlazorWasm/nats-server.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
port: 4222 | ||
|
||
websocket { | ||
port: 4280 | ||
no_tls: true | ||
} | ||
|
||
monitor_port: 8222 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace AlterNats.Tests; | ||
|
||
public class NatsConnectionTestTcp : NatsConnectionTest | ||
{ | ||
public NatsConnectionTestTcp(ITestOutputHelper output) : base(output, TransportType.Tcp) | ||
{ | ||
} | ||
} | ||
|
||
public class NatsConnectionTestWs : NatsConnectionTest | ||
{ | ||
public NatsConnectionTestWs(ITestOutputHelper output) : base(output, TransportType.WebSocket) | ||
{ | ||
} | ||
} |
Oops, something went wrong.