Fixes #14

Turns out Cowboy has multiple ways of signalizing remote disconnection.
Merge pull request #15 from brainly/idorobots/websocket-ping-fix

Fixes #14