We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6f5d00 commit 6723f50Copy full SHA for 6723f50
README.md
@@ -1,7 +1,8 @@
1
-# Go DDP Server
+# Go DDP
2
3
+DDP server and client implemented with go.
4
-## Example
5
+## Server Example
6
7
```go
8
package main
client/README.md
@@ -0,0 +1,3 @@
+# Go DDP Client
+
+DDP client implemented with go.
server/README.md
@@ -0,0 +1,23 @@
+# Go DDP Server
+DDP server implemented with go.
+## Example
+```go
+package main
9
10
+import (
11
+ "github.com/meteorhacks/goddp/server"
12
+)
13
14
+func main() {
15
+ server := server.New()
16
+ server.Method("hello", methodHandler)
17
+ server.Listen(":1337")
18
+}
19
20
+func methodHandler(p []interface{}) (interface{}, error) {
21
+ return "result", nil
22
23
+```
0 commit comments