mirror of
https://github.com/samsonjs/cpwebsocket.git
synced 2026-04-27 15:07:39 +00:00
forgot to actually send a message in the usage example
This commit is contained in:
parent
984dbef933
commit
61a48b32aa
1 changed files with 7 additions and 0 deletions
|
|
@ -46,6 +46,13 @@ var webSocket = [CPWebSocket openWebSocketWithURL: @"ws://localhost:8080" delega
|
||||||
{
|
{
|
||||||
CPLog('web socket error');
|
CPLog('web socket error');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ...
|
||||||
|
// somewhere else
|
||||||
|
// ...
|
||||||
|
|
||||||
|
[webSocket send: @"Hey, this is pretty slick!"];
|
||||||
|
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue