mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
`.substr()` is deprecated so we replace it with `.slice()` which works similarly but isn't deprecated. See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr Signed-off-by: Lam Wei Li <peteriman@mail.com>