photonpeer untied from lite

Options
I have had an JS app which was not sharing similar operations with Lite app of photon and I was going to use PhotonPeer() , not the Lite() extension.
But as many others here I ran into problem that both of them are tied to each other, so I took a look into sources and fixed that one.
So, while PhotonPeer api is still in beta 3.0.0.3 you can use my fixed version. Also you are welcome to add your own fixes.

https://bitbucket.org/narushevich/photonpeer

Comments

  • operation request can be done originally, by PhotonPeer._sendOperation(opCode, data) method.
    As it's data parameter it accepts array like: [1, param1, 2, param2] and so on.

    Also you can use my custom method PhotonPeer.operationRequest(op, parameters) where parameters is array of params like:
    [param1, param2].