File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " adonis-websocket-wechatmp" ,
3- "version" : " 0.0.3 " ,
3+ "version" : " 0.0.5 " ,
44 "description" : " WeChat Mini Program Websocket client for AdonisJs" ,
55 "main" : " dist/index.js" ,
66 "scripts" : {
7- "build" : " rollup -c"
7+ "build" : " rollup -c" ,
8+ "prepublish" : " npm run build"
9+ },
10+ "repository" : {
11+ "type" : " git" ,
12+ "url" : " https://github.com/borie88/adonis-websocket-wechatmp"
813 },
914 "keywords" : [
1015 " websocket" ,
Original file line number Diff line number Diff line change @@ -597,7 +597,6 @@ export default class Connection extends Emitter {
597597 this . ws . onError ( ( event ) => this . _onError ( event ) )
598598 this . ws . onOpen ( ( event ) => this . _onOpen ( event ) )
599599 this . ws . onMessage ( ( event ) => this . _onMessage ( event ) )
600- console . log ( this . ws , url )
601600
602601 return this
603602 }
@@ -614,7 +613,7 @@ export default class Connection extends Emitter {
614613 write ( payload ) {
615614 if ( this . ws . readyState !== this . ws . OPEN ) {
616615 if ( this . options . env !== 'production' ) {
617- console . log ( ' connection is not in open state, current state %s' , this . ws . readyState )
616+ console . log ( ` connection is not in open state, current state ${ this . ws . readyState } ` )
618617 }
619618 return
620619 }
Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ export default class Socket {
233233 close ( ) {
234234 this . state = 'closing'
235235 // if (process.env.NODE_ENV !== 'production') {
236- console . log ( `closing subscription for ${ this . topic } topic with server` )
236+ // console.log(`closing subscription for ${this.topic} topic with server`)
237237 // }
238238 this . connection . sendPacket ( wsp . leavePacket ( this . topic ) )
239239 }
You can’t perform that action at this time.
0 commit comments