Skip to content

Commit 6396d28

Browse files
committed
Fix readme
1 parent 7a210c1 commit 6396d28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ test "WebSocketClient" do
120120
{:ok, socket} = TestServer.websocket_init("/ws")
121121

122122
:ok = TestServer.websocket_handle(socket)
123-
:ok = TestServer.websocket_handle(socket, to: fn {:text, "ping"}, state -> {:reply, "pong", state} end)
123+
:ok = TestServer.websocket_handle(socket, to: fn {:text, "ping"}, state -> {:reply, {:text, "pong"}, state} end)
124124
:ok = TestServer.websocket_handle(socket, match: fn {:text, message}, _state -> message == "hi")
125125

126126
{:ok, client} = WebSocketClient.start_link(TestServer.url("/ws"))

0 commit comments

Comments
 (0)