File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- <h2 >A very simple WebSocket Server written in Python</h2 >
1
+ <h2 >A Simple Websocket Server written in Python</h2 >
2
2
3
3
Supports
4
4
- RFC 6455 (All latest browsers)
@@ -65,21 +65,21 @@ Note: if you are having problems connecting, ensure that the certificate is adde
65
65
66
66
<h4 >For the Programmers</h4 >
67
67
68
- def handleConnected() : called when handskake is complete
68
+ handleConnected: called when handskake is complete
69
69
- self.address: TCP address port tuple of the endpoint
70
70
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
72
72
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
74
74
- self.opcode: the WebSocket frame type (STREAM, TEXT, BINARY)
75
75
- self.data: bytearray (BINARY frame) or unicode payload (TEXT frame)
76
76
- self.request: HTTP details from the WebSocket handshake (refer to BaseHTTPRequestHandler)
77
77
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
79
79
- sending data as a unicode object will send a TEXT frame
80
80
- sending data as a bytearray object will send a BINARY frame
81
81
82
- def sendClose() : send close frame to endpoint
82
+ sendClose: send close frame to endpoint
83
83
84
84
85
85
---------------------
You can’t perform that action at this time.
0 commit comments