You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
# Kotlin Web Application Messaging Protocol (KWAMP)
2
2
This is an implementation of the [Web Application Messaging Protocol](https://wamp-proto.org/) (WAMP) written in Kotlin.
3
3
4
+
The provides facilities for routed Remote Procdeure Calls (RPC) and Publish and Subscribe (PubSub).
5
+
4
6
It's based on the [WAMP RFC](https://wamp-proto.org/_static/wamp_latest.html).
5
7
6
8
So far this project aims to fulfil the WAMP basic profile.
@@ -9,9 +11,9 @@ So far this project aims to fulfil the WAMP basic profile.
9
11
KWAMP is mostly transport independent (it must be a valid [WAMP transport](https://wamp-proto.org/_static/wamp_latest.html#transports)). E.G raw socket or web socket.
10
12
11
13
To use the KWAMP client or router you can use the kwamp-client-core or kwamp-router-core packages respectively.
12
-
They just need to be hooked into a transport (can be seen in kwamp-client-example and kwamp-router-example respectively).
14
+
They just need to be hooked into a transport (doing this can be seen in kwamp-client-example and kwamp-router-example respectively).
13
15
14
-
(At some point these should become actual packages in this project which can be used by themselves.)
16
+
(At some point these integrations should become actual packages in this project which can be used by themselves.)
15
17
16
18
### Router
17
19
The router supports the WAMP basic profile.
@@ -90,11 +92,10 @@ val call = client.call(Uri("<PROCEDURE_URI_HERE>"))
90
92
```
91
93
92
94
This produces a `DeferredCallResult`.
93
-
You then then use
95
+
You then then use to await the result.
94
96
```kotlin
95
97
val result = call.await()
96
98
```
97
-
to await the result.
98
99
99
100
If there is an error executing the procedure then this will throw an exception.
0 commit comments