Overview

I provides websocket test server, implemented some useful examples.

Call ws://lab.laobubu.net:8000 with specified protocol to get lorem ipsue!

Protocols

json-message

Send JSONs per 2-5 sec. This generates JSONs like this:

{
	status:	"success",	// or fail (at 30%)
	type:	"message",	// or warning (at 20%)
	title:	"Lorem...",	// lorem ipsue title
	author:	"Lorem",	// random word
	time:	"......",	// js date format like "Sun Dec 28 2014 03:09:53 GMT-0500 (EST)"
	data:	"Lorem...",	// lorem ipsue text
	image:	"http://lorempixel.com/400/200/"	//fixed
}

echo-protocol

Just repeat what you sent.

Reference

Google