Update README.md
This commit is contained in:
parent
e8f49bdf37
commit
804e695e58
1 changed files with 1 additions and 1 deletions
|
@ -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'])));
|
||||
|
|
Loading…
Reference in a new issue