Skip to content

nickolanack/push-node-socket-io-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

push-node-socket-io-client

socketio client wrapper

Install

npm install --save https://github.com/nickolanack/push-node-socket-io-client

Usage

const SocketIO=require("push-node-socket-io-client");

const config={
	server:"https://...",
	auth:{
		appId:"asdf...xxx",
		username:"Optional Display Name",
		//[password:"xxx"] //required to push data,
		//[token:"xxx"] //required to subscribe to non public channels
	}

}

const client = new SocketIOClient(config.server);
client.connect(config.auth, (success) => {

	if(!success){
		console.log("Failed to connect");
		return;
	}



}

About

socketio client wrapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •