Usage of parameter "sync" in sendMessage

#1

Hello,

I am new to websocket and autobahn.

I am not sure the usage of parameter “sync” in sendMessage(payload, binary=False, payload_frag_size=None, sync=False) .

What is it mean?

Thank you.

0 Likes

#2

Hello,

I am new to websocket and autobahn.
I am not sure the usage of parameter "sync" in sendMessage(payload,
binary=False, payload_frag_size=None, sync=False) .
What is it mean?

With "sync = True", Autobahn will (try to) force out stuff send onto network/wire immediately. This option only exists because the AutobahnTestsuite uses this for certain tests. Don't set it for "normal" use .. you won't need it / does not make sense. Same applies to the payload_frag_size parameter ..

···

Am 04.01.2013 02:55, schrieb Keith:

Thank you.

0 Likes