Skip to content

Commit

Permalink
updated the simplified handler check
Browse files Browse the repository at this point in the history
  • Loading branch information
hoeken authored Dec 10, 2023
1 parent 05852a1 commit 3b6cad4
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,12 +461,9 @@ All of the above functions either accept simple ```char *``` string of you can c

```cpp
//make sure our client is still connected.
PsychicClient *client = server.getClient(socket);
PsychicWebSocketClient *client = websocketHandler.getClient(socket);
if (client != NULL)
{
PsychicWebSocketClient ws(client);
ws.send("Your Message")
}
client->send("Your Message")
```
### EventSource / SSE
Expand Down Expand Up @@ -513,12 +510,9 @@ All of the above functions accept a simple ```char *``` message, and optionally:
```cpp
//make sure our client is still connected.
PsychicClient *client = server.getClient(socket);
PsychicEventSourceClient *client = eventSource.getClient(socket);
if (client != NULL)
{
PsychicEventSourceClient es(client);
es.send("Your Event")
}
client->send("Your Event")
```

### HTTPS / SSL
Expand Down

0 comments on commit 3b6cad4

Please sign in to comment.