Build with <3 by therebelrobot using Node.js
ws://sockb.in
/
Basic echo./?response=%7Bfoo%3A%20bar%7D
Custom Response./?pipe=http%3A%2F%2Fhttpbin.org%2Fget
Fetch an external url./delay/:n
Return response after n millisecond delay./repeat/:n
Return response n times./runfor/:n/delay/:n
Return response with n ms delay for n ms./repeat/:n/delay/:n
Functions can be chained.Testing a websocket library can become difficult sometimes. HTTPbin is fantastic for testing normal HTTP requests, but doesn't provide endpoints for websockets. This exists to cover that need. Currently only supports raw websocket requests, however support for additional websocket libraries are being worked on (Socket.io, etc).
Note: Due to hosting restrictions, repeat, delay, and runfor have default values (<50, >5000, <350000, respectively). To override these values, please install sockbin locally and use the override
method. See below for details.
Examples on this page are using soxx, a simple websocket microlib.
You can install sockbin locally and override the hosting service restrictions by cloning the repo and setting an OVERRIDE
environment variable.
$ git clone https://github.com/therebelrobot/sockbin.git
$ cd sockbin
$ npm install
$ OVERRIDE=token npm start
When you then add &override=token
to your request endpoint, you can spam your server as much as you like.
I'm currently working on getting a cli published to NPM (it's on there, but no interface atm). Check back soon for that.
Refer to Sockbin's Github releases page.
Originally created by Trent Oswald (@therebelrobot).
mockbin - Custom HTTP Request & Response Endpoints.
httpbin - HTTP Request & Response Service.
Postman - Make HTTP requests and inspect responses.
Hurl.it - Make HTTP requests.
RequestBin - Inspect HTTP requests.
Output: