def send(self, msg):
assert isinstance(msg, str), "<STR_LIT>"<EOL>if self._debug:<EOL><INDENT>log.info("<STR_LIT>", self.id, str(msg)[:<NUM_LIT:200>])<EOL><DEDENT>if self.state != STATE_OPEN:<EOL><INDENT>return<EOL><DEDENT>self._feed(FRAME_MESSAGE, msg)<EOL>
send message to client.