Correct indefinite article use: WebSockets have _an_ onMessage... See http://www.englishclub.com/pronunciation/a-an.htm.