Wrapping the chrome.sockets API with some objects and events and things!