send_sync
method of the server,
which is an instance of PromptServer
(defined in server.py
). They are processed
by a socket event listener registered in api.js
. See messages.
Messages from the client to the server are sent by the api.fetchApi()
method defined in api.js
,
and are handled by http routes defined by the server. See routes.