ws

abstract fun ws(path: String, onConnect: WsSession.() -> Unit, onBinary: WsSession.(data: ByteArray) -> Unit, onText: WsSession.(text: String) -> Unit, onPing: WsSession.(data: ByteArray) -> Unit = {}, onPong: WsSession.(data: ByteArray) -> Unit = {}, onClose: WsSession.(status: Int, reason: String) -> Unit): WsSession