the communication is little more complex than in a normal webserver scenario as there is another party involved but no mistery at all. carefully read the collabora integration guide (and referenced articles) and you will understand everything you need and much more in terms of WOPI protocol and integration.