message: WebAdapter: add getConnection method
diff: @@ -316,4 +316,15 @@ export class WebAdapter extends BotAdapter {
  public isConnected(user: string): boolean {
  return typeof clients[user] !== 'undefined';
  }
  +
  + /**
  + * Returns websocket connection of given user
  + * @param user
  + */
  + public getConnection(user: string): WebSocket {
  + if (!this.isConnected(user)) {
  + throw new Error('User ' + user + ' is not connected');
  + }
  + return clients[user];
  + }
  }
  