socket-io server instance middleware function Registering a middleware funcs leveraging express middleware this function will be executed only once per connection (even if the connection consists in multiple HTTP requests).