// To signal when kite is ready to accept connections

// To signal when kite is closed with Close()

// Proxy properties used to give urls and bind the listener

// If given it must match the domain in certificate.

// Uses for registering and defining the public port.

// third part kites are going to use this to register themself to

// proxy-kite and get a proxy url, which they use for register to kontrol.

// TODO: change this to publicdomain and also kites should add them to

// OnDisconnect is called whenever a kite is disconnected from us.

" Removing kite Id ' %s ' from proxy. It's disconnected "

// we don't use https explicitly, ssl termination is done here

// isWebsocket checks wether the incoming request is a part of websocket

" Registering kite with url: ' %s '. Can be reached now with: ' %s ' "

// remove the first empty path

// get our kiteId and individuals paths

" kite for id ' %s ' is not found: %s "

// backendURL.Path contains the baseURL, like "/kite" and rest contains

// SockJS related endpoints, like /info or /123/kjasd213/websocket