How do I do something after a specific Websocket.send() in javascript
<p>I want to send a POST request after sending a message to a websocket.
Ive tried call baks like this :</p>

<pre><code>socket.send(message,function(){...});
</code></pre>

<p>and</p>

<pre><code>function sendsocket(message,callback){
socket.send(message);
callback;}
</code></pre>

<p>and call it like</p>

<pre><code>sendsocket(message,function(){....});
</code></pre>

<p>doesnt work !!!</p>

<p>please help </p>