I am working on a web-socket project and i want web-socket cowboy server to listen to 8080 port but to forward messages to another port . Can I do that ? any help is appreciated
1
There are 1 best solutions below
Related Questions in WEBSOCKET
- How to send raw data using socket.io
- HttpRequestContext vs HttpContext
- Websocket support on JBoss 6
- How to send/receive messages through a web socket on windows phone 8.1
- Stop receiving an event for some time in socket io
- Nginx not passing websocket upgrade response back to client?
- Jboss showing this error in eclipse
- Oauth in Tyrus WebSocket
- Meteor: Workaround for having websockets blocked in port 80?
- Python Server - Processing WebSocket.close()
- Multithread using Executor and WebSocket
- Start Rumpetroll on Debian
- What are the possible bugs that cause slow response (sometimes but not all the time) for a websocket connection?
- Ratchet websocket server not responding after some hour
- Angularjs data is not updated on call of $apply
Related Questions in ERLANG
- erlang os:cmd() command with UTF8 binary
- Erlang syntax error unclear
- How to index a field with mongodb-erlang
- Erlang Dialyzer: only accept certain integers?
- Erlang spawning large amounts of C processes
- erlang processes and message passing architecture
- Mnesia pagination with fragmented table
- Does Erlang Have Map?
- First word of binary string erlang
- Elixir exrm release crashes on eredis start_link
- Erlang: Returning a function from a function
- How to index existing not-indexed data in riak search?
- Why do I receive a FunctionClauseError ("no function clause matching") in this Elixir program, translated from Erlang?
- How to list all the bucket types in riak?
- oauth2 authentication support in ejabberd
Related Questions in COWBOY
- In a Phoenix application, what is the difference between the :port key of the :http and :url configurations?
- Why is my cowboy server not running?
- Include Jiffy in my Cowboy server
- I have jiffy in my src directory but it my Cowboy server crashes when I run
- [Cowboy-Erlang]: Error when pin-pointing to localhost:8080 using provided cowboy example web_server
- Best way to log access to web pages
- Error Returning boss_db data via websocket in chicago boss
- Command 'generate' not found, compiling with rebar
- Cowboy HTTP POST handlers
- Cowboy crashes when calling handling callback in REST flow
- Erlang Cowboy - Dependency crypto is specified as a dependency but is not reachable by the system
- Serving static files in Cowboy (Erlang)
- Installing gmake on Ubuntu; Cowboy server not starting
- Cowboy web server application very slow
- In the `cowboy_req` module, how does one set the 'length' and 'period' values in app config?
Related Questions in ERLANG-PORTS
- Can anyone explain this Erlang Crash dump?
- Why does EUnit compile .beam files into .eunit/ebin?
- Open a Python port from Erlang: no reply messages
- How do I connect Erlang to C++?
- How should Erlang filter the elements in the list, and add punctuation and []?
- Write a program to spawn a new process, which recieves X an integer and returns X+1. It exits if a non integer message is passed to it in erlang?
- net_adm:ping failure very strange
- Erlang - Connect to already running external programs?
- how could an erlang port's port info change to undefined?
- How to get binary data into integer on mapreduce in riak
- Cowboy forward to port
- How erlang returns exit status to linux
- Message passing between processes in erlang?
- Controlling python GUI using erlang
- How to write a reduce phase function in erlang on riak database
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
what do you mean by forward messages to another port? cowboy's handler is handling the messages that arrive on your websocket. You can take those an redirect them anywhere you like. However I think what you are really after is a proxy that fronts your cowboy. If that is the case you should consider nginx as a front. Once you installed it you can provide this config:
this will enable you to run cowboy listening on any port you like (8080 in your example) while letting nginx take care of you SSL needs while forwarding websocket requests to cowboy. The client can connect @
If you do not need SSL address will be
and listen port in the config above needs to change to 80.