blob: 4d980fcfcf858bf74855e06e8b0782fd48956220 [file] [log] [blame]
jat@google.com5e86cbd2009-08-22 23:59:24 +00001Startup protocol changes for version 2:
2
3C->S S->C
4==== ====
5{later:
6GetRealPlugin(String pluginType, String platformId)
7
8 FatalError(String message)
9
10 RealPlugin(byte[] plugin)
11}
12
13
14CheckVersions(int minProtoVersion, int maxProtoVersion,
15 String hostedHtmlVersion)
16
17 FatalError(String message)
18
19 ProtocolVersion(int protoVersion)
20
21
22{may be ommitted if no other supported transports:
23ChooseTransport(String[] supportedTransports)
24
25 FatalError(String msg)
26
27 SwitchTransport(String transport, String transportArgs)
28
29 [If transport is not empty, all further communication should be
30 switched to the selected transport. transportArgs varies by the
31 transport.]
32}
33
34
35LoadModule(String url, String sessionKey, String userAgent, String moduleName)
36
37 [sessionKey is some arbitrary string to identify one group of modules as
38 being part of the same session of one application.]
39
40... as before
41
42
43
44The v1 protocol LoadModule message is still accepted, though with reduced
45functionality in the OOPHM UI. After the module is loaded, v1 and v2 are
46exactly the same, which makes supporting both versions easier.