diff --git a/README.md b/README.md index 281c0bb9..307775a0 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ class MyController extends WebSocketController { // Dependency injection works, too.. @ExposeWs("read_message") - void sendMessage(WebSocketContext socket, WebSocketAction, Db db) async { + void sendMessage(WebSocketContext socket, WebSocketAction action, Db db) async { socket.send( "found_message", db.collection("messages").findOne(where.id(action.data['message_id'])));