Skip to content

Commit 3f15476

Browse files
author
Dave P
committed
comments
1 parent dea74ce commit 3f15476

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<h2>A very simple WebSocket Server written in Python</h2>
1+
<h2>A Simple Websocket Server written in Python</h2>
22

33
Supports
44
- RFC 6455 (All latest browsers)
@@ -65,21 +65,21 @@ Note: if you are having problems connecting, ensure that the certificate is adde
6565

6666
<h4>For the Programmers</h4>
6767

68-
def handleConnected(): called when handskake is complete
68+
handleConnected: called when handskake is complete
6969
- self.address: TCP address port tuple of the endpoint
7070

71-
def handleClose(): called when the endpoint is closed or there is an error
71+
handleClose: called when the endpoint is closed or there is an error
7272

73-
def handleMessage(): gets called when there is an incoming message from the client endpoint
73+
handleMessage: gets called when there is an incoming message from the client endpoint
7474
- self.opcode: the WebSocket frame type (STREAM, TEXT, BINARY)
7575
- self.data: bytearray (BINARY frame) or unicode payload (TEXT frame)
7676
- self.request: HTTP details from the WebSocket handshake (refer to BaseHTTPRequestHandler)
7777

78-
def sendMessage(data): send some text or binary data to the client endpoint
78+
sendMessage: send some text or binary data to the client endpoint
7979
- sending data as a unicode object will send a TEXT frame
8080
- sending data as a bytearray object will send a BINARY frame
8181

82-
def sendClose() : send close frame to endpoint
82+
sendClose: send close frame to endpoint
8383

8484

8585
---------------------

0 commit comments

Comments
 (0)