Last active
December 21, 2015 06:59
-
-
Save Idorobots/6268501 to your computer and use it in GitHub Desktop.
Proof of concept
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"phases" : [], | |
"sessions" : [ | |
{ | |
"name" : "Session name", | |
"transport" : "xhr_polling", | |
"weight" : 0.2, | |
"metadata" : { | |
"foo" : "bar", | |
"baz" : "hurr" | |
}, | |
"do" : [ | |
{"op" : "start_timeout", "name" : "session_timeout", "value" : 600}, | |
{"op" : "on_timeout", "name" : "session_timeout", "do" : [ | |
{"op" : "terminate", "reason" : ["foo", "bar", "baz"]} | |
]}, | |
{"op" : "on_socketio", "opcode" : 1, "do" : [ | |
{"op" : "start_timeout", "name" : "hb_timeout", "value" : 17000}, | |
{"op" : "on_socketio", "opcode" : 8, "do" : [ | |
{"op" : "restart_timeout", "name" : "hb_timeout"} | |
]}, | |
{"op" : "on_timeout", "name" : "hb_timeout", "do" : [ | |
{"op" : "terminate", "reason" : "shutdown"} | |
]}, | |
{"op" : "on_event", "event" : "ping", "do" : [ | |
{"op" : "emit_event", "event" : {"name" : "ping", "args" : ["pong"]}} | |
]}, | |
{"op" : "on_event", "event" : "comet_error", "do" : [ | |
{"op" : "log", "what" : "$event"}, | |
{"op" : "terminate", "reason" : "$event"} | |
]} | |
]}, | |
{"op" : "on_socketio", "opcode" : 0, "do" : [ | |
{"op" : "log", "what" : "Disconnecting!"}, | |
{"op" : "terminate", "reason" : "shutdown"} | |
]} | |
] | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment