def send(text, connections, **kwargs):
 if (not isinstance(connections, collections.Iterable)):
  connections = [connections]
 router = get_router()
 message = router.new_outgoing_message(text=text, connections=connections, **kwargs)
 router.send_outgoing(message)
 return message

def send ( text , connections , ** kwargs ) : if ( not isinstance ( connections , collections . Iterable ) ) : connections = [ connections ] router = get_router ( ) message = router . new_outgoing_message ( text = text , connections = connections , ** kwargs ) router . send_outgoing ( message ) return message
send a message to the socket for the given session id .