8000 Merge pull request #458 from Nufflee/patch-1 · DerialE/arduinoWebSockets@c038f10 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit c038f10

Browse files
authored
Merge pull request Links2004#458 from Nufflee/patch-1
Syntax highlighting in README.md
2 parents 0444a78 + 771831c commit c038f10
< 8000 /div>

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,22 @@ The mode can be activated in the ```WebSockets.h``` (see WEBSOCKETS_NETWORK_TYPE
5757
### High Level Client API ###
5858

5959
- `begin` : Initiate connection sequence to the websocket host.
60-
```
60+
```c++
6161
void begin(const char *host, uint16_t port, const char * url = "/", const char * protocol = "arduino");
6262
void begin(String host, uint16_t port, String url = "/", String protocol = "arduino");
6363
```
6464
- `onEvent`: Callback to handle for websocket events
6565
66-
```
66+
```c++
6767
void onEvent(WebSocketClientEvent cbEvent);
6868
```
6969

7070
- `WebSocketClientEvent`: Handler for websocket events
71-
```
71+
```c++
7272
void (*WebSocketClientEvent)(WStype_t type, uint8_t * payload, size_t length)
7373
```
7474
Where `WStype_t type` is defined as:
75-
```
75+
```c++
7676
typedef enum {
7777
WStype_ERROR,
7878
WStype_DISCONNECTED,

0 commit comments

Comments
 (0)
0