Server
The inter-process communication server that is connected with the bot.
Last updated
The inter-process communication server that is connected with the bot.
Last updated
bot
: The bot instance.
host
: The address for the server (the default host is 127.0.0.1
and you don't wanna change this in most cases).
secret_key
: This string will be used as authentication password while taking requests.
standard_port
: The port to run the standard server (the default is 1025
).
multicast_port
: The port to run the multicasting server (the default is 20000
).
do_multicast
: Should the multicasting be allowed (this is enabled by default)
logger
: You can specify the logger for logs related to the lib (the default is discord.ext.ipc.server
)
Anything that is not listed below is used for internal use and you should not touch it without knowing what you're doing
start
This function created web sockets for each server and attaches handlers to them
coroutine
stop
This function shuts down all started processes and logs when done
coroutine
route
This function registers a coroutine as route that can be called from a Client
class method
started
Returns a boolean that indicated the state of the server
property