wsky / top-link

embedded duplex multi-channel endpoint and connection management for c#/java/...
6 stars 1 forks source link

support pass extra headers while handshaking #38

Closed wsky closed 11 years ago

wsky commented 11 years ago

used for auth or more

wsky commented 11 years ago

use onConnect to auth remoting connection, but it was not like remotingSink for rpc-call, it was extra setting for low-level remoting channel.

so i wont add it to remotingSink design, just as a ServerChannelHandler extension

RemotingConfiguration.configure().defaultServerChannelHandler(customHandler);

client maybe like this too.

handshake-auth is special way for websocket channel