Make things happen in
realtime.

Scalable WebSocket Server API, integrate seamless realtime & bi-directional communication into your application.

Easy Integrations

No-log Policy

Auto Scaling

Delivering 10B+ messages/day

Publish & Subscribe

Subscribe with our official SDKs or any WebSocket client.
Publish with a simple post request.

Subscribe

  • var channel = piesocket.subscribe(channelId);
    channel.on('message', function(msg){
        console.log(msg);
    });
    
  • val listener = PieSocketListener();
    val ws: WebSocket = client.newWebSocket(
        request, listener
    );
  • var request = URLRequest(url: URL(string: "wss://demo.websocket.me/v3/"+channelId+"?api_key="+apiKey)!)
    socket = WebSocket(request: request)
    socket.connect()
    

Publish

  • unirest('POST', 'https://www.piesocket.com/api/publish')
        .send(JSON.stringify({
            "message": { "text": "Hello world!" } 
        }))
    
  • requests.request(
        "POST", url, headers=headers, data = json.dumps({                                
        "message": { "text": "Hello world!" }
    }))
    
  • curl_setopt_array($curl, [CURLOPT_POSTFIELDS => ['message' => 
        ["text" => "Hello world!"]]]
    );
    curl_exec($curl);
    
  • request = Net::HTTP::Post.new(url)
    request["Content-Type"] = "application/json"
    request.body = { message: { "text": "Hello world!" } }.to_json
    response = https.request(request)
    
  • Request request = new Request.Builder()
        .url("https://www.piesocket.com/api/publish")
        .build();
    Response response = client.newCall(request).execute();
    
  • payload := strings.NewReader("{\"message\": \"Hello world!\"\n}")
    res, err := client.Do(req)
    defer res.Body.Close()
    body, err := ioutil.ReadAll(res.Body)
    
  • # Demo API key and secret used, get yours at https://piesocket.com
    
    curl --location --request POST 'https://www.piesocket.com/api/publish' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "key": "oCdCMcMPQpbvNjUIzqtvF1d2X2okWpDQj4AwARJuAgtjhzKxVEjQU6IdCjwm",
        "secret": "d8129f82f8dd71910aa4a7efa30a7297",
        "channelId": 1,
        "message": "Hello world!"
    }'
  • # Demo API key and secret used, get yours at https://piesocket.com
    
    wget --no-check-certificate --quiet \
      --method POST \
      --timeout=0 \
      --header 'Content-Type: application/json' \
      --body-data '{
        "key": "oCdCMcMPQpbvNjUIzqtvF1d2X2okWpDQj4AwARJuAgtjhzKxVEjQU6IdCjwm",
        "secret": "d8129f82f8dd71910aa4a7efa30a7297",
        "channelId": 1,
        "message": "Hello world!"
    }' \
       'https://www.piesocket.com/api/publish'

Managed WebSocket API

SDKs not enough? WebSocket API enables you to build with our WebSocket infrastructure,
using third-party WebSocket clients.

Words Of Appreciation

  • Mark Lizada

    FireBooth

    Thank you,PieSocket team, for taking away my worries about the WebSocket infrastructure.

  • Anthony La Rocca

    Accessdoorsandpanels.com

    Highly recommended services, our developer suggested it and it has been a lifesaver since then.

  • Satish G.

    PurpleRain Technologies Inc.

    Shifting to PieSocket for Limecall was one of the best decisions we took!

  • Andrew Swiler

    Uniqbrow SL

    What a great team! I Signed up for how easy it is to integrate, stayed for reliability and support.

  • Sam Toms

    The Design Yard

    PieSocket powers all of the projects that require websocket capabilities at our company.

    Pricing

    Save 25% by subscribing to an annual plan.

    Free

    $0 / Month

    $0 / Year

    • Paid features
    • 500k messages / day
    • 100 concurrent connections
    • Standard Support

    Starter

    $10 / Month

    $90 / Year

    • Paid features
    • 1 million messages / day
    • 500 concurrent connections
    • Standard support

    Starter Plus

    $29 / Month

    $261 / Year

    • Paid features
    • 3 million messages / day
    • 1000 concurrent connections
    • Standard support

    Professional

    $49 / Month

    $441 / Year

    • Paid features
    • 5 million messages / day
    • 2000 concurrent connections
    • Standard support

    Professional Plus

    $99 / Month

    $891 / Year

    • Paid features
    • 10 million messages / day
    • 5000 concurrent connections
    • Priority support

    Premium

    $139 / Month

    $1251 / Year

    • Paid features
    • 15 million messages / day
    • 7000 concurrent connections
    • Priority support

    Premium Plus

    $199 / Month

    $1791 / Year

    • Paid features
    • 20 million messages / day
    • 10000 concurrent connections
    • Priority support

    Business

    $299 / Month

    $2691 / Year

    • Paid features
    • 30 million messages / day
    • 15000 concurrent connections
    • Priority support

    Business Plus

    $499 / Month

    $4491 / Year

    • Paid features
    • 60 million messages / day
    • 20000 concurrent connections
    • Support over Slack

    Enterprise

    $999 / Month

    $8991 / Year

    • Paid features
    • 100 million messages / day
    • 30000 concurrent connections
    • 24*7 Phone support
    How many concurrent connections do you need?
    {{ suggestedPlanLimit }}
    Not sure which plan to pick? Select any large enough paid plan, enable auto-scaling and you are all set! Still confused? Reach out to us for expert advice.

    Enterprise Plus

    Need a more customized plan for your business?

    • All paid features
    • Up to Unlimited messages and connections
    • Bulk discounts
    • Customized solutions
    • Advance data analytics & insights
    • 24*7 Phone support
    • What are concurrent connections?

      It is the number of users/peers/clients connected to a channel at a time.

    • How are messages counted?

      A message is counted as number of messages delivered, lets say there are 100 peers connected to your channel and one of them sends a message, it will be counted as 100 messages (99 if notifySelf is disabled).

    • Why chose a bigger plan when I can enable autoscaling?

      Paying fixed price upfront for the resource usage results in cost-saving over autoscaling.

    • How much does auto-scaling cost?

      Autoscaling is available with all paid plans, it costs $0.000001 per message or $1 per million messages.

      If autoscaling is disabled, extra connections/messages will be droppped.

    • What happens if I exceed my daily message quota?

      With auto-scaling enabled, you will be charged $0.000001 per message for all extra messages sent over your plan's daily limit. To help you stay alert, we send out daily usage alerts every mid-night (UTC time).

      If you have auto-scaling disabled for your API key, post quota-exhaustion the server will refuse all connections.

    • What happens if I reach my concurrent connections limit?

      Same as messages, with auto-scaling enabled the cluster will accept extra connections beyond your quota. Charges will apply as $0.000001 per message.

      If autoscaling is disabled, extra connections will be droppped.

    • These plans do not meet my requirements

      Please get in touch with us with your requirements and we will setup a custom plan for you.

    • Can I upgrade mid-month?

      Yes, the pricing is prorated. You will pay for the new plan for the remaining days in the month, minus the amount not used from your previous plan's payment.