Lorenzbi/portalalert — pull request #2 by derrickoswald (2014-03-10 20:37:37+00:00)
Title: Break out onConnect listeners to avoid exception.

Try this.
When I run it it doesn't connect... but it doesn't crash either.