@Override
protected StreamInbound createWebSocketInbound(String subProtocol, HttpServletRequest req) {
return new MessageInbound() {
@Override
protected void onOpen(WsOutbound outbound) {
logger.debug("Opened new WS connection");
TomcatBitcoinServlet.this.connections.add(this);
}