Update README.md

This commit is contained in:
Tobe O 2017-04-17 14:19:27 -04:00 committed by GitHub
parent e8f49bdf37
commit 804e695e58

View file

@ -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'])));