We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 489eca7 commit bb582c1Copy full SHA for bb582c1
readme.md
@@ -17,6 +17,19 @@ Then you can `@import("ws")` in [src/main.zig](examples/exe/src/main.zig#L2).
17
This example uses public echo ws server at ws://ws.vi-server.org/mirror/.
18
Connects to websocket server, sends hello message and prints echoed reply.
19
20
+Above url is taken from [websocat - curl for WebSocket](https://github.com/vi/websocat) tool.
21
+
22
+You can start websocat server locally with for example:
23
+```sh
24
+websocat -s 8080
25
+```
26
+and then connect to it by changing [hostname, uri, port](examples/exe/src/main.zig#L9:L11) to:
27
+```Zig
28
+ const hostname = "localhost";
29
+ const uri = "ws://localhost/";
30
+ const port = 8080;
31
32
33
### References
34
35
[The WebSocket Protocol RFC](https://www.rfc-editor.org/rfc/rfc6455)
0 commit comments