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.. // Dependency injection works, too..
@ExposeWs("read_message") @ExposeWs("read_message")
void sendMessage(WebSocketContext socket, WebSocketAction, Db db) async { void sendMessage(WebSocketContext socket, WebSocketAction action, Db db) async {
socket.send( socket.send(
"found_message", "found_message",
db.collection("messages").findOne(where.id(action.data['message_id']))); db.collection("messages").findOne(where.id(action.data['message_id'])));