Ionic2+ nats.io

has anybody tried to connect nats server from ionic2…If yes then how?? please tell me the steps to connect nats server using ionic2

thanks in advance