File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ export class Client {
160160 * @private
161161 */
162162 private close ( ) {
163- if ( "open" == this . conn . readyState ) {
163+ if ( "open" === this . conn . readyState ) {
164164 debug ( "forcing transport close" ) ;
165165 this . conn . close ( ) ;
166166 this . onclose ( "forced server close" ) ;
@@ -186,7 +186,7 @@ export class Client {
186186 }
187187 }
188188
189- if ( "open" == this . conn . readyState ) {
189+ if ( "open" === this . conn . readyState ) {
190190 debug ( "writing packet %j" , packet ) ;
191191 if ( ! opts . preEncoded ) {
192192 // not broadcasting, need to encode
@@ -220,7 +220,7 @@ export class Client {
220220 * @private
221221 */
222222 private ondecoded ( packet : Packet ) {
223- if ( PacketType . CONNECT == packet . type ) {
223+ if ( PacketType . CONNECT === packet . type ) {
224224 this . connect ( packet . nsp , packet . data ) ;
225225 } else {
226226 const socket = this . nsps . get ( packet . nsp ) ;
You can’t perform that action at this time.
0 commit comments