ChatExchange icon indicating copy to clipboard operation
ChatExchange copied to clipboard

Reexport some common methods onto client

Open Manishearth opened this issue 10 years ago • 4 comments

Perhaps some common room methods like send_message and watch should be reexported on Client with an extra room id parameter for convenience?

Manishearth avatar May 20 '14 17:05 Manishearth

By "reexport", do you mean "move" or "put also a send_message in Client which will use get_room to get a room to call send_message there"?

thomas-daniels avatar Jul 24 '15 07:07 thomas-daniels

Reexport just means that Client gets the same method that proxies to the room

Manishearth avatar Jul 24 '15 07:07 Manishearth

So in we finally will be able to do everything by only accessing the client module and not having to call other modules' methods? If I understood that correctly, I'm in favor of it.

ByteCommander avatar Jul 24 '15 08:07 ByteCommander

Pretty much, yeah

Manishearth avatar Jul 24 '15 09:07 Manishearth