build freeback with websocket for mina