def tworld_write(self, connid, msg):
        if not self.tworldavailable:
            raise Exception('Tworld service is not available.')
        if type(msg) is dict:
            val = wcproto.message(connid, msg)
        else:
            val = wcproto.message(connid, msg, alreadyjson=True)
        self.tworld.write(val)
Shortcut for writing to the tworld process. May raise exceptions.
dataset/ETHPy150Open erkyrath/tworld/lib/tweblib/servers.py/ServerMgr.tworld_write