Skip to content

Commit e2b4583

Browse files
committed
[doc] Add documentation for the server-side transport option
1 parent 5e996a6 commit e2b4583

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ plugin | The plugins that should be applied | `{}`
134134
timeout | The heartbeat timeout | `35000`
135135
global | Set a custom client class / global name | `Primus`
136136
compression | Use permessage-deflate / HTTP compression | `false`
137+
transport | Transformer specific configuration | `{}`
137138
origins | **cors** List of origins | `*`
138139
methods | **cors** List of accepted HTTP methods | `GET,HEAD,PUT,POST,DELETE,OPTIONS`
139140
credentials | **cors** Allow sending of credentials | `true`
@@ -146,6 +147,13 @@ The options that are prefixed with **cors** are supplied to our
146147
HTTP Access Control (CORS), so for a more detailed explanation of these options
147148
check it out.
148149

150+
The `transport` option allows you to use any configuration option supported by
151+
the underlying real-time framework. Its use is discouraged as these options
152+
are framework specific and no longer work if you change transformer. Our advise
153+
is to use it only if you know what you are doing and if you need fine-grained
154+
control over the real-time framework. Please also keep in mind that some of
155+
these options are overriden by Primus.
156+
149157
The heartbeat timeout is used to forcefully disconnect a spark if no data is
150158
received from the client within the specified amount of time. It is possible
151159
to completely disable the heartbeat timeout by setting the value of the

0 commit comments

Comments
 (0)