Using MoBubby is notably simple. To begin using MoBubby, we first need to include the necessary files.
	
	<link rel="stylesheet" href="https://mobubby.com/resource/connect.css">
	<script src="https://mobubby.com/resource/connect.js"></script>
	
	
Then we call moBubbyConnect whenever we're ready to connect to MoBubby. moBubbyConnect takes four arguments:

  • max users: the maximum numbers of users per a session
  • connect: a function that executes once the user is connected
  • disconnect: a function that executes once the user is disconnected
  • receive: a function that executes when new data is received
	
	moBubbyConnect(
		5
		
		,function(event){
			console.log("you are connected");
			
		}
		
		,function(event){
			console.log("you are disconnected");
			
		}
		
		,function(event){
			console.log("data received: " + event.data);
			
		}
		
	);
	
	
Obviously you'll need to send data at some point. To do so, use moBubbySend. Simply pass it the ASCII data you'd like to send.
	
	moBubbySend( asciiStringData );
	
	
If you'd like to refer to the current user's name, you can use the variable moBubbyProfile. That's it! If you would like to see a simple example of MoBubby at work, click here.