fix(305)Panic when receive bad packet (#308)
fix(305)Panic when receive bad packet (#308)

* use slice index instead of copy of 2 value in range

* fix https://github.com/emitter-io/emitter/issues/305

emitter-io/emitter,emitter-io/emitter