Skip to main content

Questions tagged [socket]

Question about sending or receiving data via a connection to a server TCP socket in Mathematica.

Filter by
Sorted by
Tagged with
2 votes
0 answers
161 views

Background Information: I'm in the process of building a workflow for real-time financial data analysis using the Wolfram Language on a budget. Due to the lack of native websocket support in ...
JEM's user avatar
  • 1,195
1 vote
0 answers
33 views

I have two computers over which I would like to distribute some large-scale computations. On each computer there is a TCP server, written in another language, that listens for requests and return the ...
Shredderroy's user avatar
  • 5,431
11 votes
0 answers
382 views

Edit 3: This bug is no longer present in Version 14.1. It appears to have been fixed in either Version 14.0 or Version 14.1. Edit 1: A support case with the identification [CASE:5059026] was created. ...
Shredderroy's user avatar
  • 5,431
3 votes
1 answer
104 views

I noticed that when the response length passes around 1k characters then it is cut at weird lengths: 424, 936 or 1448 characters. Response is generated correctly but then it is cut so if the body was ...
Kuba's user avatar
  • 139k
4 votes
1 answer
175 views

I want to launch an asynchronous task with Wolfram Script to listen to a socket and print back information in the CLI. This was handled in previous versions by ...
kale's user avatar
  • 11.1k
1 vote
0 answers
78 views

I have a SocketConnection which fails every so often and I can't seem to find a way to reduce the default timeout. I did try TimeConstrained but that seems not to work consistently for network ...
Dave's user avatar
  • 11
11 votes
1 answer
530 views

I have a large codebase in which some functions make calls to Python TCP servers. The code used to work perfectly in Mathematica 12.2, but has not worked since I ...
Shredderroy's user avatar
  • 5,431
4 votes
0 answers
129 views

Background I am playing with https://github.com/arnoudbuzing/wolfram-server and I faced problems with requests that are slightly longer. I tried to narrow it down here. Problem This could be my ...
Kuba's user avatar
  • 139k
3 votes
0 answers
65 views

I use mysock = SocketConnect[...] to connect to a socket hosted by a c++ program. Then, I send a string mystr to that socket via ...
Kagaratsch's user avatar
  • 12.1k
4 votes
1 answer
218 views

I have a Python function that can be accessed over a TCP connection on port 1234. In Wolfram Language, I have the following code: ...
Shredderroy's user avatar
  • 5,431
0 votes
0 answers
188 views

Let's say I have a socket server set up on my system, and connect to it in Mathematica 11.3 via mysock = SocketConnect["X.X.X.X:YYYYY"]; where ...
Kagaratsch's user avatar
  • 12.1k
2 votes
0 answers
180 views

I'm writing a PUSH/PULL ZMQ architecture. I've already written PUB/SUB where PUB binds in Python and sends data to SUB in Mathematica. However, I'd like to write a PUSH/PULL where both the socket ...
luke's user avatar
  • 21
5 votes
1 answer
306 views

If one runs SocketListen on a Virtual Private Server (VPS), in principle one can set up a webpage with the Wolfram Language as a back-end. For instance, with ...
Fortsaint's user avatar
  • 2,090
11 votes
2 answers
359 views

I learned some codes to make a mini HTTP server in MMA way here. ...
Jerry's user avatar
  • 2,529
2 votes
0 answers
135 views

The following code fails to work when I try to send a message from the server to the client. ...
kenkangxgwe's user avatar
2 votes
0 answers
403 views

I opened a stream like: str = OpenWrite[NotebookDirectory[] <> "myStream.tsv"]; and made an error when writing the first line (meant to be the tsv headers):...
user305883's user avatar
7 votes
1 answer
847 views

I'm trying to use Binance's API. The following works: ...
anderstood's user avatar
  • 14.6k
7 votes
0 answers
712 views

I am trying to connect to a web socket feed of Gdax. The documentation is here, https://docs.gdax.com/#websocket-feed. There is no account needed and the information is public. I have successfully ...
Ray Troy's user avatar
  • 1,309
2 votes
1 answer
539 views

I am trying to connect to a web socket feed of the Gdax. The documentation is here, https://docs.gdax.com/#websocket-feed. There is no account needed and the information is public. ...
Ray Troy's user avatar
  • 1,309
15 votes
3 answers
749 views

Mathematica 11.2 can do ZMQ socket programming now! But I cannot find out how to set subscribe channel from searching the doc. When using c language there is a function ...
hliu's user avatar
  • 261
11 votes
1 answer
540 views

In Mathematica 11.2, there are new sockets functions that are potentially very useful in network programming. I'm trying to use it to communicate between Mathematica and some external program, but I'm ...
xslittlegrass's user avatar
2 votes
0 answers
818 views

I try to implement sockets from java.net.ServerSocket in Mathematica. I execute this code step by step: Needs["JLink`"] InstallJava[] (* LinkObject[..] *) ...
Kirill Belov's user avatar
7 votes
2 answers
372 views

Is it possible for Wolfam Development Platform to use sockets or anything other for real time communication? For example, in Javascript I can use RethinkDb, Firebase, socket.io or something similar. ...
Hristo Vrigazov's user avatar
21 votes
5 answers
2k views

How might I implement a local HTTP server using either Java, C#, C or purely Mathematica? It should be able to respond with Mathematica input to GET and POST requests ideally on W7. This is related ...
William's user avatar
  • 7,675
4 votes
0 answers
271 views

At last (since 10.3) we have straightforward/documented access to TCP sockets. It's been a long wait. So far there is very little discussion of the new feature. Although some older posts are still ...
Martin R's user avatar
  • 480
5 votes
1 answer
634 views

My question is if it is possible to directly open a (named) pipe using OpenRead. Introduction In the docs of OpenRead, we have, under details and options, If ...
Paul's user avatar
  • 51