<NME> README.md
<BEF> 
# socket.io-client

[![Build Status](https://github.com/socketio/socket.io-client/workflows/CI/badge.svg?branch=main)](https://github.com/socketio/socket.io-client/actions)
[![NPM version](https://badge.fury.io/js/socket.io-client.svg)](https://www.npmjs.com/package/socket.io-client)
![Downloads](http://img.shields.io/npm/dm/socket.io-client.svg?style=flat)
[![](http://slack.socket.io/badge.svg?)](http://slack.socket.io)

[![Sauce Test Status](https://saucelabs.com/browser-matrix/socket.svg)](https://saucelabs.com/u/socket)

## Documentation

Please see the documentation [here](https://socket.io/docs/v4/client-initialization/).

The source code of the website can be found [here](https://github.com/socketio/socket.io-website). Contributions are welcome!

## Debug / logging

In order to see all the client debug output, run the following command on the browser console – including the desired scope – and reload your app page:

```
localStorage.debug = '*';
```

And then, filter by the scopes you're interested in. See also: https://socket.io/docs/v4/logging-and-debugging/

## License

	<script>
		io.setPath('/path/to/socket.io/');
	</script>

	socket = new io.Socket('localhost');
	socket.connect();
	socket.addEvent('message', function(data){
		alert('got some data' + data);
	});

## Documentation 


<MSG> Readme fix

<DFF> @@ -29,6 +29,8 @@ In your head
 	<script>
 		io.setPath('/path/to/socket.io/');
 	</script>
+	
+In your code
 
 	socket = new io.Socket('localhost');
 	socket.connect();
@@ -36,6 +38,8 @@ In your head
 	socket.addEvent('message', function(data){
 		alert('got some data' + data);
 	});
+	
+For an example, check out the chat [source](https://github.com/RosePad/Socket.IO-node/blob/master/test/chat.html).
 
 ## Documentation 
 

{'addition_count': 4, 'commit_subject': 'Readme fix', 'deletion_count': 0, 'file_extension': '.md', 'lang': 'md', 'license': 'mit', 'repo_name': 'socketio/socket.io-client'}