Cool. I implemented a similar toy project once, to directly expose a database on the server to the client via web socket. I say “toy” because that’s obviously incredibly insecure.
What are the security considerations here? If you have multiple clients, should their topics be isolated? Presumably Alice should not be able to run a DEL command on a topic owned by Bob. Where would you put code for authentication / ACL?