Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
thoov authored Nov 6, 2016
1 parent 345416d commit 01adc7d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ To use within a node environment you can simply import or require the files dire
option is great for phantomjs or CI environments.

```js
// ES 2015:
const { WebSocket, Server, SocketIO } from 'mock-socket';
import { WebSocket, Server, SocketIO } from 'mock-socket';

// ES5:
var mockWebSocket = require('mock-socket').WebSocket;
var mockServer = require('mock-socket').Server;
var socketIO = require('mock-socket').SocketIO;
// OR

const mockServer = require('mock-socket').Server;
const socketIO = require('mock-socket').SocketIO;
const mockWebSocket = require('mock-socket').WebSocket;
```

## Native WebSocket Example
Expand Down

0 comments on commit 01adc7d

Please sign in to comment.