/*
* Cettia
* http://cettia.io/projects/cettia-protocol/
*
* Copyright 2016 the original author or authors.
* Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*/
var events = require("events");
var WebSocket = require("ws");