WebSocket
As A Service 

Integrate real-time functionalities in your application, with our scalable WebSocket Channels.

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 On Client

  • 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://CLUSTER_ID.piesocket.com/v3/"+channelId+"?api_key="+apiKey)!)
    
    socket = WebSocket(request: request)
    socket.connect()
    
  • var channelId = "channel_1";
    var clusterId = "demo";
    var apiKey = "hidden";
    const webSocketEndopint = `wss://${clusterId}.piesocket.com/v3/${channelId}?api_key=${apiKey}`
    

Publish From Server

  • # npm i piesocket-nodejs
    piesocket.publish((JSON.stringify({
        "message": { "text": "Hello world!" } 
    }))
    
  • requests.request(
        "POST", "https://CLUSTER_ID.piesocket.com/api/publish", headers=headers, data = json.dumps({                                
        "message": { "text": "Hello world!" }
    }))
    
  • curl_setopt_array($curl, [CURLOPT_POSTFIELDS => [
        'url' => "https://CLUSTER_ID.piesocket.com/api/publish"                        
        'message' => ["text" => "Hello world!"]
    ]]);
    
  • request = Net::HTTP::Post.new("https://CLUSTER_ID.piesocket.com/api/publish")
    request["Content-Type"] = "application/json"
    request.body = { message: { "text": "Hello world!" } }.to_json
    response = https.request(request)
    
  • Request request = new Request.Builder()
        .url("https://CLUSTER_ID.piesocket.com/api/publish")
        .build();
    Response response = client.newCall(request).execute();
    
  • payload := strings.NewReader("{\"message\": \"Hello world!\"\n}")
    req, err := http.NewRequest(method, "https://CLUSTER_ID.piesocket.com/api/publish", payload)
    res, err := client.Do(req)
    defer res.Body.Close()
    
  • # Replace Cluster ID, API key and secret
    curl --location --request POST 'https://CLUSTER_ID.piesocket.com/api/publish' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "key": "oCdCMcMPQpbvNjUIzqtvF1d2X2okWpDQj4AwARJuAgtjhzKxVEjQU6IdCjwm",
        "secret": "d8129f82f8dd71910aa4a7efa30a7297",
        "channelId": "channel_1",
        "message": "Hello world!"
    }'
  • # Replace Cluster ID, API key and secret
    wget --no-check-certificate --quiet --method POST --header 'Content-Type: application/json' \
      --body-data '{
        "key": "oCdCMcMPQpbvNjUIzqtvF1d2X2okWpDQj4AwARJuAgtjhzKxVEjQU6IdCjwm",
        "secret": "d8129f82f8dd71910aa4a7efa30a7297",
        "channelId": "channel_1",
        "message": "Hello world!"
    }' \
       'https://CLUSTER_ID.piesocket.com/api/publish'

Client To Client Communication

PieSocket's WebSocket Server API enables you the freedom to build real-time
applications without server, using C2C communication.

Trusted By Companies, All Over The Globe.

  • Satish G.

    PurpleRain Technologies Inc.

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

  • Mark Lizada

    FireBooth

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

  • Andrew Swiler

    Uniqbrow SL

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

  • Anthony La Rocca

    Accessdoorsandpanels.com

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

  • Sam Toms

    The Design Yard

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

    Pricing

    How many concurrent connections do you need?
    {{ suggestedPlanLimit }}

    Free

    $0 / Month

    $0 / Year

    • Paid features
    • 500k messages / day
    • 100 concurrent connections
    • Standard support
    • Authentication
    • Preferred server location
    • MQTT for IoT
    • Host yourself

    Starter

    $29 / Month

    $261 / Year

    • Paid features
    • 3 million messages / day
    • 1000 concurrent connections
    • Standard support
    • Authentication
    • Preferred server location
    • MQTT for IoT
    • Host yourself

    Professional

    $49 / Month

    $441 / Year

    • Paid features
    • 5 million messages / day
    • 2000 concurrent connections
    • Standard support
    • Authentication
    • Preferred server location
    • MQTT for IoT
    • Host yourself

    Professional Plus

    $99 / Month

    $891 / Year

    • Paid features
    • 10 million messages / day
    • 5000 concurrent connections
    • Priority support
    • Authentication
    • Preferred server location
    • MQTT for IoT
    • Host yourself

    Premium

    $139 / Month

    $1251 / Year

    • Paid features
    • 15 million messages / day
    • 7000 concurrent connections
    • Priority support
    • Authentication
    • Preferred server location
    • MQTT for IoT
    • Host yourself

    Premium Plus

    $199 / Month

    $1791 / Year

    • Paid features
    • 20 million messages / day
    • 10000 concurrent connections
    • Priority support
    • Authentication
    • Preferred server location
    • MQTT for IoT
    • Host yourself

    Business

    $299 / Month

    $2691 / Year

    • Paid features
    • 30 million messages / day
    • 15000 concurrent connections
    • Priority support
    • Authentication
    • Preferred server location
    • MQTT for IoT
    • Host yourself

    Business Plus

    $499 / Month

    $4491 / Year

    • Paid features
    • 60 million messages / day
    • 20000 concurrent connections
    • Support over Slack
    • Authentication
    • Preferred server location
    • MQTT for IoT
    • Host yourself

    Enterprise

    $999 / Month

    $8991 / Year

    • Paid features
    • 100 million messages / day
    • 30000 concurrent connections
    • 24*7 Phone support
    • Authentication
    • Preferred server location
    • MQTT for IoT
    • Host yourself

    Enterprise Plus

    Customized Plans

    • Paid features
    • Unlimited messages / day
    • Unlimited concurrent connections
    • 24*7 Phone support
    • Authentication
    • Preferred server location
    • MQTT for IoT
    • Host yourself
    Not sure which plan to pick? Select a plan that suits your minimum concurrent connection needs and enable autoscaling. Next? Sit back and relax, We got you covered!