Close connections rejected on open

Merged
PU
10d ago
+11-0

When Server::open() rejects a connection for the connection limit or the origin, it sends a pusher:error but does not close the socket. The client can keep using the socket after the error.

This change closes the socket after the error. This matches what Reverb already does for an unknown app key, and what the Pusher protocol expects for 4000-4099 errors.