Registers socket classes to the server app.
Server instance.
Path to the directory with socket classes.
Registers socket classes to the server app.