TypeError: callback is not a function in examples/basic-crud-application
Describe the bug
The example does not work as intended. There is a TypeError on the server side. When called, the server cannot fullfill the request but crashes with
\socket.io\examples\basic-crud-application\server\lib\todo-management\todo.handlers.ts:153 callback({ ^ TypeError: callback is not a function
To Reproduce
Install the server side of the basic-crud-application as described in the readMe. npm install
Start the server side as described in the readMe. npm start
Connect to localhost:3000 via Postman.
Send todo:list as event in Postman.
Error visible in server log.
Socket.IO server version: ^4.0.1
Code: See code from your example in app-ts, events.ts and todo-management\todo.handlers.ts
The error is thrown in todo-management\todo.handlers.ts
Expected behavior No error and response from server on the provided event.
Platform:
- Device: PC
- OS: Windows 10