event

fun event(event: String, returnEventFields: Set<String> = Collections.emptySet(), callback: (JsonElement) -> Unit): JQueryReceiver(source)
inline fun <T : Any> event(eventName: String, crossinline callback: (T) -> Unit): JQueryReceiver(source)