Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Relrin committed Nov 28, 2016
1 parent c313fe7 commit c7d6d61
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Features

Requirements
-----
- Python >= 3.4.0
- Autobahn.ws >= 0.12.1
- Python >= 3.4.2
- Autobahn.ws == 0.16.0

Optional:
- SQLAlchemy ORM >= 1.0
Expand Down Expand Up @@ -54,8 +54,7 @@ Getting started
var ws = null;
var isopen = false;

window.onload = function()
{
window.onload = function() {
ws = new WebSocket("ws://127.0.0.1:8080");
ws.onopen = function() {
console.log("Connected!");
Expand Down Expand Up @@ -103,7 +102,7 @@ class HelloClientProtocol(WebSocketClientProtocol):


if __name__ == '__main__':
factory = WebSocketClientFactory("ws://localhost:8080", debug=False)
factory = WebSocketClientFactory("ws://localhost:8080")
factory.protocol = HelloClientProtocol

loop = asyncio.get_event_loop()
Expand Down

0 comments on commit c7d6d61

Please sign in to comment.