stomp-js / stomp-websocket

Stomp client for Web browsers and node.js apps
https://stomp-js.github.io/stomp-websocket/
Apache License 2.0
141 stars 36 forks source link

how can I use closeEventCallback ? #25

Closed yanzheng9527 closed 6 years ago

yanzheng9527 commented 6 years ago

I saw closeEventCallback in https://github.com/stomp-js/stomp-websocket/pull/23 but in index.d.ts there are only 2 ways :

connect(headers: StompHeaders, connectCallback: (frame?: Frame) => any, errorCallback?: (error: string) => any): any;

connect(login: string, passcode: string, connectCallback: (frame?: Frame) => any, errorCallback?: (error: string) => any, host?: string): any;

How to use closeEventCallback ? Do I need to change index.d.ts ?

kum-deepak commented 6 years ago

Yes that will be the case. Will you be able to make the change and send a pull request?

Otherwise I will do it in the weekend.

kum-deepak commented 6 years ago

Planning for next version of stompjs is on the way. Your participation will be really appreciated, please join at https://github.com/stomp-js/stompjs/issues/1