Yes, this is solved in the [middleware here](https://github.com/ably-forks/jsbin/blob/a97f5daa1103e05ff5cf9f8459ec8a8578bcfa5a/lib/middleware.js#L215)