Typetalk websocket client sample
Setup
Install npm libraries
$ npm install
Register an application
Create your application for using API.
Grant Type must be Client Credentials.
Execute
You should set environments to use Typetalk API before execute.
Windows
> set TYPETALK_CLIENT_ID=XXXX
> set TYPETALK_CLIENT_SECRET=XXXX
> node index.js
Mac
$ export TYPETALK_CLIENT_ID=XXXX
$ export TYPETALK_CLIENT_SECRET=XXXX
$ node index.js