pymensago/serverconn.py
def sendfast(conn: ServerConnection, msgdata: str, domain: utils.Domain) -> RetVal:
	'''Works like send(), but only works for messages able to fit within the 16KiB command limit. 
	Note that this 16KiB includes all JSON formatting, so the actual message payload will need 
	to be smaller than this.'''
	
	# 49 is the number of bytes used in this message when minified without including the two
	# variables in the message: the domain size and the size of the message data
	totalsize = len(msgdata) + len(domain.as_string()) + 49
	if totalsize > 16384:
		return ErrOutOfRange

	status = conn.send_message({
		'Action': 'SENDFAST',
		'Data': {
			'Domain': domain.as_string(),
			'Message': msgdata
		}
	})
	if status.error():
		return status

	response = conn.read_response(server_response)
	if response['Code'] != 200:
		return wrap_server_error(response)
	
	return RetVal()
Works like send(), but only works for messages able to fit within the 16KiB command limit. 
	Note that this 16KiB includes all JSON formatting, so the actual message payload will need 
	to be smaller than this.
Works like send(), but only works for messages able to fit within the 16KiB command limit.
Note that this 16KiB includes all JSON formatting, so the actual message payload will need
to be smaller than this.
Works like send () but only works for messages able to fit within the 16KiB command limit . Note that this 16KiB includes all JSON formatting so the actual message payload will need to be smaller than this .
def sendfast(conn: ServerConnection, msgdata: str, domain: utils.Domain) -> RetVal:
	totalsize = len(msgdata) + len(domain.as_string()) + 49
	if totalsize > 16384:
		return ErrOutOfRange
	status = conn.send_message({
		'Action': 'SENDFAST',
		'Data': {
			'Domain': domain.as_string(),
			'Message': msgdata
		}
	})
	if status.error():
		return status
	response = conn.read_response(server_response)
	if response['Code'] != 200:
		return wrap_server_error(response)
	return RetVal()
def sendfast ( conn : ServerConnection , msgdata : str , domain : utils . Domain ) -> RetVal : totalsize = len ( msgdata ) + len ( domain . as_string ( ) ) + 49 if totalsize > 16384 : return ErrOutOfRange status = conn . send_message ( { 'Action' : 'SENDFAST' , 'Data' : { 'Domain' : domain . as_string ( ) , 'Message' : msgdata } } ) if status . error ( ) : return status response = conn . read_response ( server_response ) if response [ 'Code' ] != 200 : return wrap_server_error ( response ) return RetVal ( )
Works like send(), but only works for messages able to fit within the 16KiB command limit.
Works like send () but only works for messages able to fit within the 16KiB command limit .
'''Works like send(), but only works for messages able to fit within the 16KiB command limit. 
	Note that this 16KiB includes all JSON formatting, so the actual message payload will need 
	to be smaller than this.''' # 49 is the number of bytes used in this message when minified without including the two # variables in the message: the domain size and the size of the message data
conn
ServerConnection
msgdata
str
domain
utils.Domain