public Client setToWebsocket(WebSocket socket) {
		channels = new ArrayList<Channel>();
		this.socket = null;
		this.websocket = socket;

		if(websocket == null) {
			return null;
		}
		
		this.name = String.format("WebSocket Client #%s", socket.getLocalSocketAddress().hashCode());

		return this;
	}